api.go 2.5 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180551815518255183551845518555186551875518855189551905519155192551935519455195551965519755198551995520055201552025520355204552055520655207552085520955210552115521255213552145521555216552175521855219552205522155222552235522455225552265522755228552295523055231552325523355234552355523655237552385523955240552415524255243552445524555246552475524855249552505525155252552535525455255552565525755258552595526055261552625526355264552655526655267552685526955270552715527255273552745527555276552775527855279552805528155282552835528455285552865528755288552895529055291552925529355294552955529655297552985529955300553015530255303553045530555306553075530855309553105531155312553135531455315553165531755318553195532055321553225532355324553255532655327553285532955330553315533255333553345533555336553375533855339553405534155342553435534455345553465534755348553495535055351553525535355354553555535655357553585535955360553615536255363553645536555366553675536855369553705537155372553735537455375553765537755378553795538055381553825538355384553855538655387553885538955390553915539255393553945539555396553975539855399554005540155402554035540455405554065540755408554095541055411554125541355414554155541655417554185541955420554215542255423554245542555426554275542855429554305543155432554335543455435554365543755438554395544055441554425544355444554455544655447554485544955450554515545255453554545545555456554575545855459554605546155462554635546455465554665546755468554695547055471554725547355474554755547655477554785547955480554815548255483554845548555486554875548855489554905549155492554935549455495554965549755498554995550055501555025550355504555055550655507555085550955510555115551255513555145551555516555175551855519555205552155522555235552455525555265552755528555295553055531555325553355534555355553655537555385553955540555415554255543555445554555546555475554855549555505555155552555535555455555555565555755558555595556055561555625556355564555655556655567555685556955570555715557255573555745557555576555775557855579555805558155582555835558455585555865558755588555895559055591555925559355594555955559655597555985559955600556015560255603556045560555606556075560855609556105561155612556135561455615556165561755618556195562055621556225562355624556255562655627556285562955630556315563255633556345563555636556375563855639556405564155642556435564455645556465564755648556495565055651556525565355654556555565655657556585565955660556615566255663556645566555666556675566855669556705567155672556735567455675556765567755678556795568055681556825568355684556855568655687556885568955690556915569255693556945569555696556975569855699557005570155702557035570455705557065570755708557095571055711557125571355714557155571655717557185571955720557215572255723557245572555726557275572855729557305573155732557335573455735557365573755738557395574055741557425574355744557455574655747557485574955750557515575255753557545575555756557575575855759557605576155762557635576455765557665576755768557695577055771557725577355774557755577655777557785577955780557815578255783557845578555786557875578855789557905579155792557935579455795557965579755798557995580055801558025580355804558055580655807558085580955810558115581255813558145581555816558175581855819558205582155822558235582455825558265582755828558295583055831558325583355834558355583655837558385583955840558415584255843558445584555846558475584855849558505585155852558535585455855558565585755858558595586055861558625586355864558655586655867558685586955870558715587255873558745587555876558775587855879558805588155882558835588455885558865588755888558895589055891558925589355894558955589655897558985589955900559015590255903559045590555906559075590855909559105591155912559135591455915559165591755918559195592055921559225592355924559255592655927559285592955930559315593255933559345593555936559375593855939559405594155942559435594455945559465594755948559495595055951559525595355954559555595655957559585595955960559615596255963559645596555966559675596855969559705597155972559735597455975559765597755978559795598055981559825598355984559855598655987559885598955990559915599255993559945599555996559975599855999560005600156002560035600456005560065600756008560095601056011560125601356014560155601656017560185601956020560215602256023560245602556026560275602856029560305603156032560335603456035560365603756038560395604056041560425604356044560455604656047560485604956050560515605256053560545605556056560575605856059560605606156062560635606456065560665606756068560695607056071560725607356074560755607656077560785607956080560815608256083560845608556086560875608856089560905609156092560935609456095560965609756098560995610056101561025610356104561055610656107561085610956110561115611256113561145611556116561175611856119561205612156122561235612456125561265612756128561295613056131561325613356134561355613656137561385613956140561415614256143561445614556146561475614856149561505615156152561535615456155561565615756158561595616056161561625616356164561655616656167561685616956170561715617256173561745617556176561775617856179561805618156182561835618456185561865618756188561895619056191561925619356194561955619656197561985619956200562015620256203562045620556206562075620856209562105621156212562135621456215562165621756218562195622056221562225622356224562255622656227562285622956230562315623256233562345623556236562375623856239562405624156242562435624456245562465624756248562495625056251562525625356254562555625656257562585625956260562615626256263562645626556266562675626856269562705627156272562735627456275562765627756278562795628056281562825628356284562855628656287562885628956290562915629256293562945629556296562975629856299563005630156302563035630456305563065630756308563095631056311563125631356314563155631656317563185631956320563215632256323563245632556326563275632856329563305633156332563335633456335563365633756338563395634056341563425634356344563455634656347563485634956350563515635256353563545635556356563575635856359563605636156362563635636456365563665636756368563695637056371563725637356374563755637656377563785637956380563815638256383563845638556386563875638856389563905639156392563935639456395563965639756398563995640056401564025640356404564055640656407564085640956410564115641256413564145641556416564175641856419564205642156422564235642456425564265642756428564295643056431564325643356434564355643656437564385643956440564415644256443564445644556446564475644856449564505645156452564535645456455564565645756458564595646056461564625646356464564655646656467564685646956470564715647256473564745647556476564775647856479564805648156482564835648456485564865648756488564895649056491564925649356494564955649656497564985649956500565015650256503565045650556506565075650856509565105651156512565135651456515565165651756518565195652056521565225652356524565255652656527565285652956530565315653256533565345653556536565375653856539565405654156542565435654456545565465654756548565495655056551565525655356554565555655656557565585655956560565615656256563565645656556566565675656856569565705657156572565735657456575565765657756578565795658056581565825658356584565855658656587565885658956590565915659256593565945659556596565975659856599566005660156602566035660456605566065660756608566095661056611566125661356614566155661656617566185661956620566215662256623566245662556626566275662856629566305663156632566335663456635566365663756638566395664056641566425664356644566455664656647566485664956650566515665256653566545665556656566575665856659566605666156662566635666456665566665666756668566695667056671566725667356674566755667656677566785667956680566815668256683566845668556686566875668856689566905669156692566935669456695566965669756698566995670056701567025670356704567055670656707567085670956710567115671256713567145671556716567175671856719567205672156722567235672456725567265672756728567295673056731567325673356734567355673656737567385673956740567415674256743567445674556746567475674856749567505675156752567535675456755567565675756758567595676056761567625676356764567655676656767567685676956770567715677256773567745677556776567775677856779567805678156782567835678456785567865678756788567895679056791567925679356794567955679656797567985679956800568015680256803568045680556806568075680856809568105681156812568135681456815568165681756818568195682056821568225682356824568255682656827568285682956830568315683256833568345683556836568375683856839568405684156842568435684456845568465684756848568495685056851568525685356854568555685656857568585685956860568615686256863568645686556866568675686856869568705687156872568735687456875568765687756878568795688056881568825688356884568855688656887568885688956890568915689256893568945689556896568975689856899569005690156902569035690456905569065690756908569095691056911569125691356914569155691656917569185691956920569215692256923569245692556926569275692856929569305693156932569335693456935569365693756938569395694056941569425694356944569455694656947569485694956950569515695256953569545695556956569575695856959569605696156962569635696456965569665696756968569695697056971569725697356974569755697656977569785697956980569815698256983569845698556986569875698856989569905699156992569935699456995569965699756998569995700057001570025700357004570055700657007570085700957010570115701257013570145701557016570175701857019570205702157022570235702457025570265702757028570295703057031570325703357034570355703657037570385703957040570415704257043570445704557046570475704857049570505705157052570535705457055570565705757058570595706057061570625706357064570655706657067570685706957070570715707257073570745707557076570775707857079570805708157082570835708457085570865708757088570895709057091570925709357094570955709657097570985709957100571015710257103571045710557106571075710857109571105711157112571135711457115571165711757118571195712057121571225712357124571255712657127571285712957130571315713257133571345713557136571375713857139571405714157142571435714457145571465714757148571495715057151571525715357154571555715657157571585715957160571615716257163571645716557166571675716857169571705717157172571735717457175571765717757178571795718057181571825718357184571855718657187571885718957190571915719257193571945719557196571975719857199572005720157202572035720457205572065720757208572095721057211572125721357214572155721657217572185721957220572215722257223572245722557226572275722857229572305723157232572335723457235572365723757238572395724057241572425724357244572455724657247572485724957250572515725257253572545725557256572575725857259572605726157262572635726457265572665726757268572695727057271572725727357274572755727657277572785727957280572815728257283572845728557286572875728857289572905729157292572935729457295572965729757298572995730057301573025730357304573055730657307573085730957310573115731257313573145731557316573175731857319573205732157322573235732457325573265732757328573295733057331573325733357334573355733657337573385733957340573415734257343573445734557346573475734857349573505735157352573535735457355573565735757358573595736057361573625736357364573655736657367573685736957370573715737257373573745737557376573775737857379573805738157382573835738457385573865738757388573895739057391573925739357394573955739657397573985739957400574015740257403574045740557406574075740857409574105741157412574135741457415574165741757418574195742057421574225742357424574255742657427574285742957430574315743257433574345743557436574375743857439574405744157442574435744457445574465744757448574495745057451574525745357454574555745657457574585745957460574615746257463574645746557466574675746857469574705747157472574735747457475574765747757478574795748057481574825748357484574855748657487574885748957490574915749257493574945749557496574975749857499575005750157502575035750457505575065750757508575095751057511575125751357514575155751657517575185751957520575215752257523575245752557526575275752857529575305753157532575335753457535575365753757538575395754057541575425754357544575455754657547575485754957550575515755257553575545755557556575575755857559575605756157562575635756457565575665756757568575695757057571575725757357574575755757657577575785757957580575815758257583575845758557586575875758857589575905759157592575935759457595575965759757598575995760057601576025760357604576055760657607576085760957610576115761257613576145761557616576175761857619576205762157622576235762457625576265762757628576295763057631576325763357634576355763657637576385763957640576415764257643576445764557646576475764857649576505765157652576535765457655576565765757658576595766057661576625766357664576655766657667576685766957670576715767257673576745767557676576775767857679576805768157682576835768457685576865768757688576895769057691576925769357694576955769657697576985769957700577015770257703577045770557706577075770857709577105771157712577135771457715577165771757718577195772057721577225772357724577255772657727577285772957730577315773257733577345773557736577375773857739577405774157742577435774457745577465774757748577495775057751577525775357754577555775657757577585775957760577615776257763577645776557766577675776857769577705777157772577735777457775577765777757778577795778057781577825778357784577855778657787577885778957790577915779257793577945779557796577975779857799578005780157802578035780457805578065780757808578095781057811578125781357814578155781657817578185781957820578215782257823578245782557826578275782857829578305783157832578335783457835578365783757838578395784057841578425784357844578455784657847578485784957850578515785257853578545785557856578575785857859578605786157862578635786457865578665786757868578695787057871578725787357874578755787657877578785787957880578815788257883578845788557886578875788857889578905789157892578935789457895578965789757898578995790057901579025790357904579055790657907579085790957910579115791257913579145791557916579175791857919579205792157922579235792457925579265792757928579295793057931579325793357934579355793657937579385793957940579415794257943579445794557946579475794857949579505795157952579535795457955579565795757958579595796057961579625796357964579655796657967579685796957970579715797257973579745797557976579775797857979579805798157982579835798457985579865798757988579895799057991579925799357994579955799657997579985799958000580015800258003580045800558006580075800858009580105801158012580135801458015580165801758018580195802058021580225802358024580255802658027580285802958030580315803258033580345803558036580375803858039580405804158042580435804458045580465804758048580495805058051580525805358054580555805658057580585805958060580615806258063580645806558066580675806858069580705807158072580735807458075580765807758078580795808058081580825808358084580855808658087580885808958090580915809258093580945809558096580975809858099581005810158102581035810458105581065810758108581095811058111581125811358114581155811658117581185811958120581215812258123581245812558126581275812858129581305813158132581335813458135581365813758138581395814058141581425814358144581455814658147581485814958150581515815258153581545815558156581575815858159581605816158162581635816458165581665816758168581695817058171581725817358174581755817658177581785817958180581815818258183581845818558186581875818858189581905819158192581935819458195581965819758198581995820058201582025820358204582055820658207582085820958210582115821258213582145821558216582175821858219582205822158222582235822458225582265822758228582295823058231582325823358234582355823658237582385823958240582415824258243582445824558246582475824858249582505825158252582535825458255582565825758258582595826058261582625826358264582655826658267582685826958270582715827258273582745827558276582775827858279582805828158282582835828458285582865828758288582895829058291582925829358294582955829658297582985829958300583015830258303583045830558306583075830858309583105831158312583135831458315583165831758318583195832058321583225832358324583255832658327583285832958330583315833258333583345833558336583375833858339583405834158342583435834458345583465834758348583495835058351583525835358354583555835658357583585835958360583615836258363583645836558366583675836858369583705837158372583735837458375583765837758378583795838058381583825838358384583855838658387583885838958390583915839258393583945839558396583975839858399584005840158402584035840458405584065840758408584095841058411584125841358414584155841658417584185841958420584215842258423584245842558426584275842858429584305843158432584335843458435584365843758438584395844058441584425844358444584455844658447584485844958450584515845258453584545845558456584575845858459584605846158462584635846458465584665846758468584695847058471584725847358474584755847658477584785847958480584815848258483584845848558486584875848858489584905849158492584935849458495584965849758498584995850058501585025850358504585055850658507585085850958510585115851258513585145851558516585175851858519585205852158522585235852458525585265852758528585295853058531585325853358534585355853658537585385853958540585415854258543585445854558546585475854858549585505855158552585535855458555585565855758558585595856058561585625856358564585655856658567585685856958570585715857258573585745857558576585775857858579585805858158582585835858458585585865858758588585895859058591585925859358594585955859658597585985859958600586015860258603586045860558606586075860858609586105861158612586135861458615586165861758618586195862058621586225862358624586255862658627586285862958630586315863258633586345863558636586375863858639586405864158642586435864458645586465864758648586495865058651586525865358654586555865658657586585865958660586615866258663586645866558666586675866858669586705867158672586735867458675586765867758678586795868058681586825868358684586855868658687586885868958690586915869258693586945869558696586975869858699587005870158702587035870458705587065870758708587095871058711587125871358714587155871658717587185871958720587215872258723587245872558726587275872858729587305873158732587335873458735587365873758738587395874058741587425874358744587455874658747587485874958750587515875258753587545875558756587575875858759587605876158762587635876458765587665876758768587695877058771587725877358774587755877658777587785877958780587815878258783587845878558786587875878858789587905879158792587935879458795587965879758798587995880058801588025880358804588055880658807588085880958810588115881258813588145881558816588175881858819588205882158822588235882458825588265882758828588295883058831588325883358834588355883658837588385883958840588415884258843588445884558846588475884858849588505885158852588535885458855588565885758858588595886058861588625886358864588655886658867588685886958870588715887258873588745887558876588775887858879588805888158882588835888458885588865888758888588895889058891588925889358894588955889658897588985889958900589015890258903589045890558906589075890858909589105891158912589135891458915589165891758918589195892058921589225892358924589255892658927589285892958930589315893258933589345893558936589375893858939589405894158942589435894458945589465894758948589495895058951589525895358954589555895658957589585895958960589615896258963589645896558966589675896858969589705897158972589735897458975589765897758978589795898058981589825898358984589855898658987589885898958990589915899258993589945899558996589975899858999590005900159002590035900459005590065900759008590095901059011590125901359014590155901659017590185901959020590215902259023590245902559026590275902859029590305903159032590335903459035590365903759038590395904059041590425904359044590455904659047590485904959050590515905259053590545905559056590575905859059590605906159062590635906459065590665906759068590695907059071590725907359074590755907659077590785907959080590815908259083590845908559086590875908859089590905909159092590935909459095590965909759098590995910059101591025910359104591055910659107591085910959110591115911259113591145911559116591175911859119591205912159122591235912459125591265912759128591295913059131591325913359134591355913659137591385913959140591415914259143591445914559146591475914859149591505915159152591535915459155591565915759158591595916059161591625916359164591655916659167591685916959170591715917259173591745917559176591775917859179591805918159182591835918459185591865918759188591895919059191591925919359194591955919659197591985919959200592015920259203592045920559206592075920859209592105921159212592135921459215592165921759218592195922059221592225922359224592255922659227592285922959230592315923259233592345923559236592375923859239592405924159242592435924459245592465924759248592495925059251592525925359254592555925659257592585925959260592615926259263592645926559266592675926859269592705927159272592735927459275592765927759278592795928059281592825928359284592855928659287592885928959290592915929259293592945929559296592975929859299593005930159302593035930459305593065930759308593095931059311593125931359314593155931659317593185931959320593215932259323593245932559326593275932859329593305933159332593335933459335593365933759338593395934059341593425934359344593455934659347593485934959350593515935259353593545935559356593575935859359593605936159362593635936459365593665936759368593695937059371593725937359374593755937659377593785937959380593815938259383593845938559386593875938859389593905939159392593935939459395593965939759398593995940059401594025940359404594055940659407594085940959410594115941259413594145941559416594175941859419594205942159422594235942459425594265942759428594295943059431594325943359434594355943659437594385943959440594415944259443594445944559446594475944859449594505945159452594535945459455594565945759458594595946059461594625946359464594655946659467594685946959470594715947259473594745947559476594775947859479594805948159482594835948459485594865948759488594895949059491594925949359494594955949659497594985949959500595015950259503595045950559506595075950859509595105951159512595135951459515595165951759518595195952059521595225952359524595255952659527595285952959530595315953259533595345953559536595375953859539595405954159542595435954459545595465954759548595495955059551595525955359554595555955659557595585955959560595615956259563595645956559566595675956859569595705957159572595735957459575595765957759578595795958059581595825958359584595855958659587595885958959590595915959259593595945959559596595975959859599596005960159602596035960459605596065960759608596095961059611596125961359614596155961659617596185961959620596215962259623596245962559626596275962859629596305963159632596335963459635596365963759638596395964059641596425964359644596455964659647596485964959650596515965259653596545965559656596575965859659596605966159662596635966459665596665966759668596695967059671596725967359674596755967659677596785967959680596815968259683596845968559686596875968859689596905969159692596935969459695596965969759698596995970059701597025970359704597055970659707597085970959710597115971259713597145971559716597175971859719597205972159722597235972459725597265972759728597295973059731597325973359734597355973659737597385973959740597415974259743597445974559746597475974859749597505975159752597535975459755597565975759758597595976059761597625976359764597655976659767597685976959770597715977259773597745977559776597775977859779597805978159782597835978459785597865978759788597895979059791597925979359794597955979659797597985979959800598015980259803598045980559806598075980859809598105981159812598135981459815598165981759818598195982059821598225982359824598255982659827598285982959830598315983259833598345983559836598375983859839598405984159842598435984459845598465984759848598495985059851598525985359854598555985659857598585985959860598615986259863598645986559866598675986859869598705987159872598735987459875598765987759878598795988059881598825988359884598855988659887598885988959890598915989259893598945989559896598975989859899599005990159902599035990459905599065990759908599095991059911599125991359914599155991659917599185991959920599215992259923599245992559926599275992859929599305993159932599335993459935599365993759938599395994059941599425994359944599455994659947599485994959950599515995259953599545995559956599575995859959599605996159962599635996459965599665996759968599695997059971599725997359974599755997659977599785997959980599815998259983599845998559986599875998859989599905999159992599935999459995599965999759998599996000060001600026000360004600056000660007600086000960010600116001260013600146001560016600176001860019600206002160022600236002460025600266002760028600296003060031600326003360034600356003660037600386003960040600416004260043600446004560046600476004860049600506005160052600536005460055600566005760058600596006060061600626006360064600656006660067600686006960070600716007260073600746007560076600776007860079600806008160082600836008460085600866008760088600896009060091600926009360094600956009660097600986009960100601016010260103601046010560106601076010860109601106011160112601136011460115601166011760118601196012060121601226012360124601256012660127601286012960130601316013260133601346013560136601376013860139601406014160142601436014460145601466014760148601496015060151601526015360154601556015660157601586015960160601616016260163601646016560166601676016860169601706017160172601736017460175601766017760178601796018060181601826018360184601856018660187601886018960190601916019260193601946019560196601976019860199602006020160202602036020460205602066020760208602096021060211602126021360214602156021660217602186021960220602216022260223602246022560226602276022860229602306023160232602336023460235602366023760238602396024060241602426024360244602456024660247602486024960250602516025260253602546025560256602576025860259602606026160262602636026460265602666026760268602696027060271602726027360274602756027660277602786027960280602816028260283602846028560286602876028860289602906029160292602936029460295602966029760298602996030060301603026030360304603056030660307603086030960310603116031260313603146031560316603176031860319603206032160322603236032460325603266032760328603296033060331603326033360334603356033660337603386033960340603416034260343603446034560346603476034860349603506035160352603536035460355603566035760358603596036060361603626036360364603656036660367603686036960370603716037260373603746037560376603776037860379603806038160382603836038460385603866038760388603896039060391603926039360394603956039660397603986039960400604016040260403604046040560406604076040860409604106041160412604136041460415604166041760418604196042060421604226042360424604256042660427604286042960430604316043260433604346043560436604376043860439604406044160442604436044460445604466044760448604496045060451604526045360454604556045660457604586045960460604616046260463604646046560466604676046860469604706047160472604736047460475604766047760478604796048060481604826048360484604856048660487604886048960490604916049260493604946049560496604976049860499605006050160502605036050460505605066050760508605096051060511605126051360514605156051660517605186051960520605216052260523605246052560526605276052860529605306053160532605336053460535605366053760538605396054060541605426054360544605456054660547605486054960550605516055260553605546055560556605576055860559605606056160562605636056460565605666056760568605696057060571605726057360574605756057660577605786057960580605816058260583605846058560586605876058860589605906059160592605936059460595605966059760598605996060060601606026060360604606056060660607606086060960610606116061260613606146061560616606176061860619606206062160622606236062460625606266062760628606296063060631606326063360634606356063660637606386063960640606416064260643606446064560646606476064860649606506065160652606536065460655606566065760658606596066060661606626066360664606656066660667606686066960670606716067260673606746067560676606776067860679606806068160682606836068460685606866068760688606896069060691606926069360694606956069660697606986069960700607016070260703607046070560706607076070860709607106071160712607136071460715607166071760718607196072060721607226072360724607256072660727607286072960730607316073260733607346073560736607376073860739607406074160742607436074460745607466074760748607496075060751607526075360754607556075660757607586075960760607616076260763607646076560766607676076860769607706077160772607736077460775607766077760778607796078060781607826078360784607856078660787607886078960790607916079260793607946079560796607976079860799608006080160802608036080460805608066080760808608096081060811608126081360814608156081660817608186081960820608216082260823608246082560826608276082860829608306083160832608336083460835608366083760838608396084060841608426084360844608456084660847608486084960850608516085260853608546085560856608576085860859608606086160862608636086460865608666086760868608696087060871608726087360874608756087660877608786087960880608816088260883608846088560886608876088860889608906089160892608936089460895608966089760898608996090060901609026090360904609056090660907609086090960910609116091260913609146091560916609176091860919609206092160922609236092460925609266092760928609296093060931609326093360934609356093660937609386093960940609416094260943609446094560946609476094860949609506095160952609536095460955609566095760958609596096060961609626096360964609656096660967609686096960970609716097260973609746097560976609776097860979609806098160982609836098460985609866098760988609896099060991609926099360994609956099660997609986099961000610016100261003610046100561006610076100861009610106101161012610136101461015610166101761018610196102061021610226102361024610256102661027610286102961030610316103261033610346103561036610376103861039610406104161042610436104461045610466104761048610496105061051610526105361054610556105661057610586105961060610616106261063610646106561066610676106861069610706107161072610736107461075610766107761078610796108061081610826108361084610856108661087610886108961090610916109261093610946109561096610976109861099611006110161102611036110461105611066110761108611096111061111611126111361114611156111661117611186111961120611216112261123611246112561126611276112861129611306113161132611336113461135611366113761138611396114061141611426114361144611456114661147611486114961150611516115261153611546115561156611576115861159611606116161162611636116461165611666116761168611696117061171611726117361174611756117661177611786117961180611816118261183611846118561186611876118861189611906119161192611936119461195611966119761198611996120061201612026120361204612056120661207612086120961210612116121261213612146121561216612176121861219612206122161222612236122461225612266122761228612296123061231612326123361234612356123661237612386123961240612416124261243612446124561246612476124861249612506125161252612536125461255612566125761258612596126061261612626126361264612656126661267612686126961270612716127261273612746127561276612776127861279612806128161282612836128461285612866128761288612896129061291612926129361294612956129661297612986129961300613016130261303613046130561306613076130861309613106131161312613136131461315613166131761318613196132061321613226132361324613256132661327613286132961330613316133261333613346133561336613376133861339613406134161342613436134461345613466134761348613496135061351613526135361354613556135661357613586135961360613616136261363613646136561366613676136861369613706137161372613736137461375613766137761378613796138061381613826138361384613856138661387613886138961390613916139261393613946139561396613976139861399614006140161402614036140461405614066140761408614096141061411614126141361414614156141661417614186141961420614216142261423614246142561426614276142861429614306143161432614336143461435614366143761438614396144061441614426144361444614456144661447614486144961450614516145261453614546145561456614576145861459614606146161462614636146461465614666146761468614696147061471614726147361474614756147661477614786147961480614816148261483614846148561486614876148861489614906149161492614936149461495614966149761498614996150061501615026150361504615056150661507615086150961510615116151261513615146151561516615176151861519615206152161522615236152461525615266152761528615296153061531615326153361534615356153661537615386153961540615416154261543615446154561546615476154861549615506155161552615536155461555615566155761558615596156061561615626156361564615656156661567615686156961570615716157261573615746157561576615776157861579615806158161582615836158461585615866158761588615896159061591615926159361594615956159661597615986159961600616016160261603616046160561606616076160861609616106161161612616136161461615616166161761618616196162061621616226162361624616256162661627616286162961630616316163261633616346163561636616376163861639616406164161642616436164461645616466164761648616496165061651616526165361654616556165661657616586165961660616616166261663616646166561666616676166861669616706167161672616736167461675616766167761678616796168061681616826168361684616856168661687616886168961690616916169261693616946169561696616976169861699617006170161702617036170461705617066170761708617096171061711617126171361714617156171661717617186171961720617216172261723617246172561726617276172861729617306173161732617336173461735617366173761738617396174061741617426174361744617456174661747617486174961750617516175261753617546175561756617576175861759617606176161762617636176461765617666176761768617696177061771617726177361774617756177661777617786177961780617816178261783617846178561786617876178861789617906179161792617936179461795617966179761798617996180061801618026180361804618056180661807618086180961810618116181261813618146181561816618176181861819618206182161822618236182461825618266182761828618296183061831618326183361834618356183661837618386183961840618416184261843618446184561846618476184861849618506185161852618536185461855618566185761858618596186061861618626186361864618656186661867618686186961870618716187261873618746187561876618776187861879618806188161882618836188461885618866188761888618896189061891618926189361894618956189661897618986189961900619016190261903619046190561906619076190861909619106191161912619136191461915619166191761918619196192061921619226192361924619256192661927619286192961930619316193261933619346193561936619376193861939619406194161942619436194461945619466194761948619496195061951619526195361954619556195661957619586195961960619616196261963619646196561966619676196861969619706197161972619736197461975619766197761978619796198061981619826198361984619856198661987619886198961990619916199261993619946199561996619976199861999620006200162002620036200462005620066200762008620096201062011620126201362014620156201662017620186201962020620216202262023620246202562026620276202862029620306203162032620336203462035620366203762038620396204062041620426204362044620456204662047620486204962050620516205262053620546205562056620576205862059620606206162062620636206462065620666206762068620696207062071620726207362074620756207662077620786207962080620816208262083620846208562086620876208862089620906209162092620936209462095620966209762098620996210062101621026210362104621056210662107621086210962110621116211262113621146211562116621176211862119621206212162122621236212462125621266212762128621296213062131621326213362134621356213662137621386213962140621416214262143621446214562146621476214862149621506215162152621536215462155621566215762158621596216062161621626216362164621656216662167621686216962170621716217262173621746217562176621776217862179621806218162182621836218462185621866218762188621896219062191621926219362194621956219662197621986219962200622016220262203622046220562206622076220862209622106221162212622136221462215622166221762218622196222062221622226222362224622256222662227622286222962230622316223262233622346223562236622376223862239622406224162242622436224462245622466224762248622496225062251622526225362254622556225662257622586225962260622616226262263622646226562266622676226862269622706227162272622736227462275622766227762278622796228062281622826228362284622856228662287622886228962290622916229262293622946229562296622976229862299623006230162302623036230462305623066230762308623096231062311623126231362314623156231662317623186231962320623216232262323623246232562326623276232862329623306233162332623336233462335623366233762338623396234062341623426234362344623456234662347623486234962350623516235262353623546235562356623576235862359623606236162362623636236462365623666236762368623696237062371623726237362374623756237662377623786237962380623816238262383623846238562386623876238862389623906239162392623936239462395623966239762398623996240062401624026240362404624056240662407624086240962410624116241262413624146241562416624176241862419624206242162422624236242462425624266242762428624296243062431624326243362434624356243662437624386243962440624416244262443624446244562446624476244862449624506245162452624536245462455624566245762458624596246062461624626246362464624656246662467624686246962470624716247262473624746247562476624776247862479624806248162482624836248462485624866248762488624896249062491624926249362494624956249662497624986249962500625016250262503625046250562506625076250862509625106251162512625136251462515625166251762518625196252062521625226252362524625256252662527625286252962530625316253262533625346253562536625376253862539625406254162542625436254462545625466254762548625496255062551625526255362554625556255662557625586255962560625616256262563625646256562566625676256862569625706257162572625736257462575625766257762578625796258062581625826258362584625856258662587625886258962590625916259262593625946259562596625976259862599626006260162602626036260462605626066260762608626096261062611626126261362614626156261662617626186261962620626216262262623626246262562626626276262862629626306263162632626336263462635626366263762638626396264062641626426264362644626456264662647626486264962650626516265262653626546265562656626576265862659626606266162662626636266462665626666266762668626696267062671626726267362674626756267662677626786267962680626816268262683626846268562686626876268862689626906269162692626936269462695626966269762698626996270062701627026270362704627056270662707627086270962710627116271262713627146271562716627176271862719627206272162722627236272462725627266272762728627296273062731627326273362734627356273662737627386273962740627416274262743627446274562746627476274862749627506275162752627536275462755627566275762758627596276062761627626276362764627656276662767627686276962770627716277262773627746277562776627776277862779627806278162782627836278462785627866278762788627896279062791627926279362794627956279662797627986279962800628016280262803628046280562806628076280862809628106281162812628136281462815628166281762818628196282062821628226282362824628256282662827628286282962830628316283262833628346283562836628376283862839628406284162842628436284462845628466284762848628496285062851628526285362854628556285662857628586285962860628616286262863628646286562866628676286862869628706287162872628736287462875628766287762878628796288062881628826288362884628856288662887628886288962890628916289262893628946289562896628976289862899629006290162902629036290462905629066290762908629096291062911629126291362914629156291662917629186291962920629216292262923629246292562926629276292862929629306293162932629336293462935629366293762938629396294062941629426294362944629456294662947629486294962950629516295262953629546295562956629576295862959629606296162962629636296462965629666296762968629696297062971629726297362974629756297662977629786297962980629816298262983629846298562986629876298862989629906299162992629936299462995629966299762998629996300063001630026300363004630056300663007630086300963010630116301263013630146301563016630176301863019630206302163022630236302463025630266302763028630296303063031630326303363034630356303663037630386303963040630416304263043630446304563046630476304863049630506305163052630536305463055630566305763058630596306063061630626306363064630656306663067630686306963070630716307263073630746307563076630776307863079630806308163082630836308463085630866308763088630896309063091630926309363094630956309663097630986309963100631016310263103631046310563106631076310863109631106311163112631136311463115631166311763118631196312063121631226312363124631256312663127631286312963130631316313263133631346313563136631376313863139631406314163142631436314463145631466314763148631496315063151631526315363154631556315663157631586315963160631616316263163631646316563166631676316863169631706317163172631736317463175631766317763178631796318063181631826318363184631856318663187631886318963190631916319263193631946319563196631976319863199632006320163202632036320463205632066320763208632096321063211632126321363214632156321663217632186321963220632216322263223632246322563226632276322863229632306323163232632336323463235632366323763238632396324063241632426324363244632456324663247632486324963250632516325263253632546325563256632576325863259632606326163262632636326463265632666326763268632696327063271632726327363274632756327663277632786327963280632816328263283632846328563286632876328863289632906329163292632936329463295632966329763298632996330063301633026330363304633056330663307633086330963310633116331263313633146331563316633176331863319633206332163322633236332463325633266332763328633296333063331633326333363334633356333663337633386333963340633416334263343633446334563346633476334863349633506335163352633536335463355633566335763358633596336063361633626336363364633656336663367633686336963370633716337263373633746337563376633776337863379633806338163382633836338463385633866338763388633896339063391633926339363394633956339663397633986339963400634016340263403634046340563406634076340863409634106341163412634136341463415634166341763418634196342063421634226342363424634256342663427634286342963430634316343263433634346343563436634376343863439634406344163442634436344463445634466344763448634496345063451634526345363454634556345663457634586345963460634616346263463634646346563466634676346863469634706347163472634736347463475634766347763478634796348063481634826348363484634856348663487634886348963490634916349263493634946349563496634976349863499635006350163502635036350463505635066350763508635096351063511635126351363514635156351663517635186351963520635216352263523635246352563526635276352863529635306353163532635336353463535635366353763538635396354063541635426354363544635456354663547635486354963550635516355263553635546355563556635576355863559635606356163562635636356463565635666356763568635696357063571635726357363574635756357663577635786357963580635816358263583635846358563586635876358863589635906359163592635936359463595635966359763598635996360063601636026360363604636056360663607636086360963610636116361263613636146361563616636176361863619636206362163622636236362463625636266362763628636296363063631636326363363634636356363663637636386363963640636416364263643636446364563646636476364863649636506365163652636536365463655636566365763658636596366063661636626366363664636656366663667636686366963670636716367263673636746367563676636776367863679636806368163682636836368463685636866368763688636896369063691636926369363694636956369663697636986369963700637016370263703637046370563706637076370863709637106371163712637136371463715637166371763718637196372063721637226372363724637256372663727637286372963730637316373263733637346373563736637376373863739637406374163742637436374463745637466374763748637496375063751637526375363754637556375663757637586375963760637616376263763637646376563766637676376863769637706377163772637736377463775637766377763778637796378063781637826378363784637856378663787637886378963790637916379263793637946379563796637976379863799638006380163802638036380463805638066380763808638096381063811638126381363814638156381663817638186381963820638216382263823638246382563826638276382863829638306383163832638336383463835638366383763838638396384063841638426384363844638456384663847638486384963850638516385263853638546385563856638576385863859638606386163862638636386463865638666386763868638696387063871638726387363874638756387663877638786387963880638816388263883638846388563886638876388863889638906389163892638936389463895638966389763898638996390063901639026390363904639056390663907639086390963910639116391263913639146391563916639176391863919639206392163922639236392463925639266392763928639296393063931639326393363934639356393663937639386393963940639416394263943639446394563946639476394863949639506395163952639536395463955639566395763958639596396063961639626396363964639656396663967639686396963970639716397263973639746397563976639776397863979639806398163982639836398463985639866398763988639896399063991639926399363994639956399663997639986399964000640016400264003640046400564006640076400864009640106401164012640136401464015640166401764018640196402064021640226402364024640256402664027640286402964030640316403264033640346403564036640376403864039640406404164042640436404464045640466404764048640496405064051640526405364054640556405664057640586405964060640616406264063640646406564066640676406864069640706407164072640736407464075640766407764078640796408064081640826408364084640856408664087640886408964090640916409264093640946409564096640976409864099641006410164102641036410464105641066410764108641096411064111641126411364114641156411664117641186411964120641216412264123641246412564126641276412864129641306413164132641336413464135641366413764138641396414064141641426414364144641456414664147641486414964150641516415264153641546415564156641576415864159641606416164162641636416464165641666416764168641696417064171641726417364174641756417664177641786417964180641816418264183641846418564186641876418864189641906419164192641936419464195641966419764198641996420064201642026420364204642056420664207642086420964210642116421264213642146421564216642176421864219642206422164222642236422464225642266422764228642296423064231642326423364234642356423664237642386423964240642416424264243642446424564246642476424864249642506425164252642536425464255642566425764258642596426064261642626426364264642656426664267642686426964270642716427264273642746427564276642776427864279642806428164282642836428464285642866428764288642896429064291642926429364294642956429664297642986429964300643016430264303643046430564306643076430864309643106431164312643136431464315643166431764318643196432064321643226432364324643256432664327643286432964330643316433264333643346433564336643376433864339643406434164342643436434464345643466434764348643496435064351643526435364354643556435664357643586435964360643616436264363643646436564366643676436864369643706437164372643736437464375643766437764378643796438064381643826438364384643856438664387643886438964390643916439264393643946439564396643976439864399644006440164402644036440464405644066440764408644096441064411644126441364414644156441664417644186441964420644216442264423644246442564426644276442864429644306443164432644336443464435644366443764438644396444064441644426444364444644456444664447644486444964450644516445264453644546445564456644576445864459644606446164462644636446464465644666446764468644696447064471644726447364474644756447664477644786447964480644816448264483644846448564486644876448864489644906449164492644936449464495644966449764498644996450064501645026450364504645056450664507645086450964510645116451264513645146451564516645176451864519645206452164522645236452464525645266452764528645296453064531645326453364534645356453664537645386453964540645416454264543645446454564546645476454864549645506455164552645536455464555645566455764558645596456064561645626456364564645656456664567645686456964570645716457264573645746457564576645776457864579645806458164582645836458464585645866458764588645896459064591645926459364594645956459664597645986459964600646016460264603646046460564606646076460864609646106461164612646136461464615646166461764618646196462064621646226462364624646256462664627646286462964630646316463264633646346463564636646376463864639646406464164642646436464464645646466464764648646496465064651646526465364654646556465664657646586465964660646616466264663646646466564666646676466864669646706467164672646736467464675646766467764678646796468064681646826468364684646856468664687646886468964690646916469264693646946469564696646976469864699647006470164702647036470464705647066470764708647096471064711647126471364714647156471664717647186471964720647216472264723647246472564726647276472864729647306473164732647336473464735647366473764738647396474064741647426474364744647456474664747647486474964750647516475264753647546475564756647576475864759647606476164762647636476464765647666476764768647696477064771647726477364774647756477664777647786477964780647816478264783647846478564786647876478864789647906479164792647936479464795647966479764798647996480064801648026480364804648056480664807648086480964810648116481264813648146481564816648176481864819648206482164822648236482464825648266482764828648296483064831648326483364834648356483664837648386483964840648416484264843648446484564846648476484864849648506485164852648536485464855648566485764858648596486064861648626486364864648656486664867648686486964870648716487264873648746487564876648776487864879648806488164882648836488464885648866488764888648896489064891648926489364894648956489664897648986489964900649016490264903649046490564906649076490864909649106491164912649136491464915649166491764918649196492064921649226492364924649256492664927649286492964930649316493264933649346493564936649376493864939649406494164942649436494464945649466494764948649496495064951649526495364954649556495664957649586495964960649616496264963649646496564966649676496864969649706497164972649736497464975649766497764978649796498064981649826498364984649856498664987649886498964990649916499264993649946499564996649976499864999650006500165002650036500465005650066500765008650096501065011650126501365014650156501665017650186501965020650216502265023650246502565026650276502865029650306503165032650336503465035650366503765038650396504065041650426504365044650456504665047650486504965050650516505265053650546505565056650576505865059650606506165062650636506465065650666506765068650696507065071650726507365074650756507665077650786507965080650816508265083650846508565086650876508865089650906509165092650936509465095650966509765098650996510065101651026510365104651056510665107651086510965110651116511265113651146511565116651176511865119651206512165122651236512465125651266512765128651296513065131651326513365134651356513665137651386513965140651416514265143651446514565146651476514865149651506515165152651536515465155651566515765158651596516065161651626516365164651656516665167651686516965170651716517265173651746517565176651776517865179651806518165182651836518465185651866518765188651896519065191651926519365194651956519665197651986519965200652016520265203652046520565206652076520865209652106521165212652136521465215652166521765218652196522065221652226522365224652256522665227652286522965230652316523265233652346523565236652376523865239652406524165242652436524465245652466524765248652496525065251652526525365254652556525665257652586525965260652616526265263652646526565266652676526865269652706527165272652736527465275652766527765278652796528065281652826528365284652856528665287652886528965290652916529265293652946529565296652976529865299653006530165302653036530465305653066530765308653096531065311653126531365314653156531665317653186531965320653216532265323653246532565326653276532865329653306533165332653336533465335653366533765338653396534065341653426534365344653456534665347653486534965350653516535265353653546535565356653576535865359653606536165362653636536465365653666536765368653696537065371653726537365374653756537665377653786537965380653816538265383653846538565386653876538865389653906539165392653936539465395653966539765398653996540065401654026540365404654056540665407654086540965410654116541265413654146541565416654176541865419654206542165422654236542465425654266542765428654296543065431654326543365434654356543665437654386543965440654416544265443654446544565446654476544865449654506545165452654536545465455654566545765458654596546065461654626546365464654656546665467654686546965470654716547265473654746547565476654776547865479654806548165482654836548465485654866548765488654896549065491654926549365494654956549665497654986549965500655016550265503655046550565506655076550865509655106551165512655136551465515655166551765518655196552065521655226552365524655256552665527655286552965530655316553265533655346553565536655376553865539655406554165542655436554465545655466554765548655496555065551655526555365554655556555665557655586555965560655616556265563655646556565566655676556865569655706557165572655736557465575655766557765578655796558065581655826558365584655856558665587655886558965590655916559265593655946559565596655976559865599656006560165602656036560465605656066560765608656096561065611656126561365614656156561665617656186561965620656216562265623656246562565626656276562865629656306563165632656336563465635656366563765638656396564065641656426564365644656456564665647656486564965650656516565265653656546565565656656576565865659656606566165662656636566465665656666566765668656696567065671656726567365674656756567665677656786567965680656816568265683656846568565686656876568865689656906569165692656936569465695656966569765698656996570065701657026570365704657056570665707657086570965710657116571265713657146571565716657176571865719657206572165722657236572465725657266572765728657296573065731657326573365734657356573665737657386573965740657416574265743657446574565746657476574865749657506575165752657536575465755657566575765758657596576065761657626576365764657656576665767657686576965770657716577265773657746577565776657776577865779657806578165782657836578465785657866578765788657896579065791657926579365794657956579665797657986579965800658016580265803658046580565806658076580865809658106581165812658136581465815658166581765818658196582065821658226582365824658256582665827658286582965830658316583265833658346583565836658376583865839658406584165842658436584465845658466584765848658496585065851658526585365854658556585665857658586585965860658616586265863658646586565866658676586865869658706587165872658736587465875658766587765878658796588065881658826588365884658856588665887658886588965890658916589265893658946589565896658976589865899659006590165902659036590465905659066590765908659096591065911659126591365914659156591665917659186591965920659216592265923659246592565926659276592865929659306593165932659336593465935659366593765938659396594065941659426594365944659456594665947659486594965950659516595265953659546595565956659576595865959659606596165962659636596465965659666596765968659696597065971659726597365974659756597665977659786597965980659816598265983659846598565986659876598865989659906599165992659936599465995659966599765998659996600066001660026600366004660056600666007660086600966010660116601266013660146601566016660176601866019660206602166022660236602466025660266602766028660296603066031660326603366034660356603666037660386603966040660416604266043660446604566046660476604866049660506605166052660536605466055660566605766058660596606066061660626606366064660656606666067660686606966070660716607266073660746607566076660776607866079660806608166082660836608466085660866608766088660896609066091660926609366094660956609666097660986609966100661016610266103661046610566106661076610866109661106611166112661136611466115661166611766118661196612066121661226612366124661256612666127661286612966130661316613266133661346613566136661376613866139661406614166142661436614466145661466614766148661496615066151661526615366154661556615666157661586615966160661616616266163661646616566166661676616866169661706617166172661736617466175661766617766178661796618066181661826618366184661856618666187661886618966190661916619266193661946619566196661976619866199662006620166202662036620466205662066620766208662096621066211662126621366214662156621666217662186621966220662216622266223662246622566226662276622866229662306623166232662336623466235662366623766238662396624066241662426624366244662456624666247662486624966250662516625266253662546625566256662576625866259662606626166262662636626466265662666626766268662696627066271662726627366274662756627666277662786627966280662816628266283662846628566286662876628866289662906629166292662936629466295662966629766298662996630066301663026630366304663056630666307663086630966310663116631266313663146631566316663176631866319663206632166322663236632466325663266632766328663296633066331663326633366334663356633666337663386633966340663416634266343663446634566346663476634866349663506635166352663536635466355663566635766358663596636066361663626636366364663656636666367663686636966370663716637266373663746637566376663776637866379663806638166382663836638466385663866638766388663896639066391663926639366394663956639666397663986639966400664016640266403664046640566406664076640866409664106641166412664136641466415664166641766418664196642066421664226642366424664256642666427664286642966430664316643266433664346643566436664376643866439664406644166442664436644466445664466644766448664496645066451664526645366454664556645666457664586645966460664616646266463664646646566466664676646866469664706647166472664736647466475664766647766478664796648066481664826648366484664856648666487664886648966490664916649266493664946649566496664976649866499665006650166502665036650466505665066650766508665096651066511665126651366514665156651666517665186651966520665216652266523665246652566526665276652866529665306653166532665336653466535665366653766538665396654066541665426654366544665456654666547665486654966550665516655266553665546655566556665576655866559665606656166562665636656466565665666656766568665696657066571665726657366574665756657666577665786657966580665816658266583665846658566586665876658866589665906659166592665936659466595665966659766598665996660066601666026660366604666056660666607666086660966610666116661266613666146661566616666176661866619666206662166622666236662466625666266662766628666296663066631666326663366634666356663666637666386663966640666416664266643666446664566646666476664866649666506665166652666536665466655666566665766658666596666066661666626666366664666656666666667666686666966670666716667266673666746667566676666776667866679666806668166682666836668466685666866668766688666896669066691666926669366694666956669666697666986669966700667016670266703667046670566706667076670866709667106671166712667136671466715667166671766718667196672066721667226672366724667256672666727667286672966730667316673266733667346673566736667376673866739667406674166742667436674466745667466674766748667496675066751667526675366754667556675666757667586675966760667616676266763667646676566766667676676866769667706677166772667736677466775667766677766778667796678066781667826678366784667856678666787667886678966790667916679266793667946679566796667976679866799668006680166802668036680466805668066680766808668096681066811668126681366814668156681666817668186681966820668216682266823668246682566826668276682866829668306683166832668336683466835668366683766838668396684066841668426684366844668456684666847668486684966850668516685266853668546685566856668576685866859668606686166862668636686466865668666686766868668696687066871668726687366874668756687666877668786687966880668816688266883668846688566886668876688866889668906689166892668936689466895668966689766898668996690066901669026690366904669056690666907669086690966910669116691266913669146691566916669176691866919669206692166922669236692466925669266692766928669296693066931669326693366934669356693666937669386693966940669416694266943669446694566946669476694866949669506695166952669536695466955669566695766958669596696066961669626696366964669656696666967669686696966970669716697266973669746697566976669776697866979669806698166982669836698466985669866698766988669896699066991669926699366994669956699666997669986699967000670016700267003670046700567006670076700867009670106701167012670136701467015670166701767018670196702067021670226702367024670256702667027670286702967030670316703267033670346703567036670376703867039670406704167042670436704467045670466704767048670496705067051670526705367054670556705667057670586705967060670616706267063670646706567066670676706867069670706707167072670736707467075670766707767078670796708067081670826708367084670856708667087670886708967090670916709267093670946709567096670976709867099671006710167102671036710467105671066710767108671096711067111671126711367114671156711667117671186711967120671216712267123671246712567126671276712867129671306713167132671336713467135671366713767138671396714067141671426714367144671456714667147671486714967150671516715267153671546715567156671576715867159671606716167162671636716467165671666716767168671696717067171671726717367174671756717667177671786717967180671816718267183671846718567186671876718867189671906719167192671936719467195671966719767198671996720067201672026720367204672056720667207672086720967210672116721267213672146721567216672176721867219672206722167222672236722467225672266722767228672296723067231672326723367234672356723667237672386723967240672416724267243672446724567246672476724867249672506725167252672536725467255672566725767258672596726067261672626726367264672656726667267672686726967270672716727267273672746727567276672776727867279672806728167282672836728467285672866728767288672896729067291672926729367294672956729667297672986729967300673016730267303673046730567306673076730867309673106731167312673136731467315673166731767318673196732067321673226732367324673256732667327673286732967330673316733267333673346733567336673376733867339673406734167342673436734467345673466734767348673496735067351673526735367354673556735667357673586735967360673616736267363673646736567366673676736867369673706737167372673736737467375673766737767378673796738067381673826738367384673856738667387673886738967390673916739267393673946739567396673976739867399674006740167402674036740467405674066740767408674096741067411674126741367414674156741667417674186741967420674216742267423674246742567426674276742867429674306743167432674336743467435674366743767438674396744067441674426744367444674456744667447674486744967450674516745267453674546745567456674576745867459674606746167462674636746467465674666746767468674696747067471674726747367474674756747667477674786747967480674816748267483674846748567486674876748867489674906749167492674936749467495674966749767498674996750067501675026750367504675056750667507675086750967510675116751267513675146751567516675176751867519675206752167522675236752467525675266752767528675296753067531675326753367534675356753667537675386753967540675416754267543675446754567546675476754867549675506755167552675536755467555675566755767558675596756067561675626756367564675656756667567675686756967570675716757267573675746757567576675776757867579675806758167582675836758467585675866758767588675896759067591675926759367594675956759667597675986759967600676016760267603676046760567606676076760867609676106761167612676136761467615676166761767618676196762067621676226762367624676256762667627676286762967630676316763267633676346763567636676376763867639676406764167642676436764467645676466764767648676496765067651676526765367654676556765667657676586765967660676616766267663676646766567666676676766867669676706767167672676736767467675676766767767678676796768067681676826768367684676856768667687676886768967690676916769267693676946769567696676976769867699677006770167702677036770467705677066770767708677096771067711677126771367714677156771667717677186771967720677216772267723677246772567726677276772867729677306773167732677336773467735677366773767738677396774067741677426774367744677456774667747677486774967750677516775267753677546775567756677576775867759677606776167762677636776467765677666776767768677696777067771677726777367774677756777667777677786777967780677816778267783677846778567786677876778867789677906779167792677936779467795677966779767798677996780067801678026780367804678056780667807678086780967810678116781267813678146781567816678176781867819678206782167822678236782467825678266782767828678296783067831678326783367834678356783667837678386783967840678416784267843678446784567846678476784867849678506785167852678536785467855678566785767858678596786067861678626786367864678656786667867678686786967870678716787267873678746787567876678776787867879678806788167882678836788467885678866788767888678896789067891678926789367894678956789667897678986789967900679016790267903679046790567906679076790867909679106791167912679136791467915679166791767918679196792067921679226792367924679256792667927679286792967930679316793267933679346793567936679376793867939679406794167942679436794467945679466794767948679496795067951679526795367954679556795667957679586795967960679616796267963679646796567966679676796867969679706797167972679736797467975679766797767978679796798067981679826798367984679856798667987679886798967990679916799267993679946799567996679976799867999680006800168002680036800468005680066800768008680096801068011680126801368014680156801668017680186801968020680216802268023680246802568026680276802868029680306803168032680336803468035680366803768038680396804068041680426804368044680456804668047680486804968050680516805268053680546805568056680576805868059680606806168062680636806468065680666806768068680696807068071680726807368074680756807668077680786807968080680816808268083680846808568086680876808868089680906809168092680936809468095680966809768098680996810068101681026810368104681056810668107681086810968110681116811268113681146811568116681176811868119681206812168122681236812468125681266812768128681296813068131681326813368134681356813668137681386813968140681416814268143681446814568146681476814868149681506815168152681536815468155681566815768158681596816068161681626816368164681656816668167681686816968170681716817268173681746817568176681776817868179681806818168182681836818468185681866818768188681896819068191681926819368194681956819668197681986819968200682016820268203682046820568206682076820868209682106821168212682136821468215682166821768218682196822068221682226822368224682256822668227682286822968230682316823268233682346823568236682376823868239682406824168242682436824468245682466824768248682496825068251682526825368254682556825668257682586825968260682616826268263682646826568266682676826868269682706827168272682736827468275682766827768278682796828068281682826828368284682856828668287682886828968290682916829268293682946829568296682976829868299683006830168302683036830468305683066830768308683096831068311683126831368314683156831668317683186831968320683216832268323683246832568326683276832868329683306833168332683336833468335683366833768338683396834068341683426834368344683456834668347683486834968350683516835268353683546835568356683576835868359683606836168362683636836468365683666836768368683696837068371683726837368374683756837668377683786837968380683816838268383683846838568386683876838868389683906839168392683936839468395683966839768398683996840068401684026840368404684056840668407684086840968410684116841268413684146841568416684176841868419684206842168422684236842468425684266842768428684296843068431684326843368434684356843668437684386843968440684416844268443684446844568446684476844868449684506845168452684536845468455684566845768458684596846068461684626846368464684656846668467684686846968470684716847268473684746847568476684776847868479684806848168482684836848468485684866848768488684896849068491684926849368494684956849668497684986849968500685016850268503685046850568506685076850868509685106851168512685136851468515685166851768518685196852068521685226852368524685256852668527685286852968530685316853268533685346853568536685376853868539685406854168542685436854468545685466854768548685496855068551685526855368554685556855668557685586855968560685616856268563685646856568566685676856868569685706857168572685736857468575685766857768578685796858068581685826858368584685856858668587685886858968590685916859268593685946859568596685976859868599686006860168602686036860468605686066860768608686096861068611686126861368614686156861668617686186861968620686216862268623686246862568626686276862868629686306863168632686336863468635686366863768638686396864068641686426864368644686456864668647686486864968650686516865268653686546865568656686576865868659686606866168662686636866468665686666866768668686696867068671686726867368674686756867668677686786867968680686816868268683686846868568686686876868868689686906869168692686936869468695686966869768698686996870068701687026870368704687056870668707687086870968710687116871268713687146871568716687176871868719687206872168722687236872468725687266872768728687296873068731687326873368734687356873668737687386873968740687416874268743687446874568746687476874868749687506875168752687536875468755687566875768758687596876068761687626876368764687656876668767687686876968770687716877268773687746877568776687776877868779687806878168782687836878468785687866878768788687896879068791687926879368794687956879668797687986879968800688016880268803688046880568806688076880868809688106881168812688136881468815688166881768818688196882068821688226882368824688256882668827688286882968830688316883268833688346883568836688376883868839688406884168842688436884468845688466884768848688496885068851688526885368854688556885668857688586885968860688616886268863688646886568866688676886868869688706887168872688736887468875688766887768878688796888068881688826888368884688856888668887688886888968890688916889268893688946889568896688976889868899689006890168902689036890468905689066890768908689096891068911689126891368914689156891668917689186891968920689216892268923689246892568926689276892868929689306893168932689336893468935689366893768938689396894068941689426894368944689456894668947689486894968950689516895268953689546895568956689576895868959689606896168962689636896468965689666896768968689696897068971689726897368974689756897668977689786897968980689816898268983689846898568986689876898868989689906899168992689936899468995689966899768998689996900069001690026900369004690056900669007690086900969010690116901269013690146901569016690176901869019690206902169022690236902469025690266902769028690296903069031690326903369034690356903669037690386903969040690416904269043690446904569046690476904869049690506905169052690536905469055690566905769058690596906069061690626906369064690656906669067690686906969070690716907269073690746907569076690776907869079690806908169082690836908469085690866908769088690896909069091690926909369094690956909669097690986909969100691016910269103691046910569106691076910869109691106911169112691136911469115691166911769118691196912069121691226912369124691256912669127691286912969130691316913269133691346913569136691376913869139691406914169142691436914469145691466914769148691496915069151691526915369154691556915669157691586915969160691616916269163691646916569166691676916869169691706917169172691736917469175691766917769178691796918069181691826918369184691856918669187691886918969190691916919269193691946919569196691976919869199692006920169202692036920469205692066920769208692096921069211692126921369214692156921669217692186921969220692216922269223692246922569226692276922869229692306923169232692336923469235692366923769238692396924069241692426924369244692456924669247692486924969250692516925269253692546925569256692576925869259692606926169262692636926469265692666926769268692696927069271692726927369274692756927669277692786927969280692816928269283692846928569286692876928869289692906929169292692936929469295692966929769298692996930069301693026930369304693056930669307693086930969310693116931269313693146931569316693176931869319693206932169322693236932469325693266932769328693296933069331693326933369334693356933669337693386933969340693416934269343693446934569346693476934869349693506935169352693536935469355693566935769358693596936069361693626936369364693656936669367693686936969370693716937269373693746937569376693776937869379693806938169382693836938469385693866938769388693896939069391693926939369394693956939669397693986939969400694016940269403694046940569406694076940869409694106941169412694136941469415694166941769418694196942069421694226942369424694256942669427694286942969430694316943269433694346943569436694376943869439694406944169442694436944469445694466944769448694496945069451694526945369454694556945669457694586945969460694616946269463694646946569466694676946869469694706947169472694736947469475694766947769478694796948069481694826948369484694856948669487694886948969490694916949269493694946949569496694976949869499695006950169502695036950469505695066950769508695096951069511695126951369514695156951669517695186951969520695216952269523695246952569526695276952869529695306953169532695336953469535695366953769538695396954069541695426954369544695456954669547695486954969550695516955269553695546955569556695576955869559695606956169562695636956469565695666956769568695696957069571695726957369574695756957669577695786957969580695816958269583695846958569586695876958869589695906959169592695936959469595695966959769598695996960069601696026960369604696056960669607696086960969610696116961269613696146961569616696176961869619696206962169622696236962469625696266962769628696296963069631696326963369634696356963669637696386963969640696416964269643696446964569646696476964869649696506965169652696536965469655696566965769658696596966069661696626966369664696656966669667696686966969670696716967269673696746967569676696776967869679696806968169682696836968469685696866968769688696896969069691696926969369694696956969669697696986969969700697016970269703697046970569706697076970869709697106971169712697136971469715697166971769718697196972069721697226972369724697256972669727697286972969730697316973269733697346973569736697376973869739697406974169742697436974469745697466974769748697496975069751697526975369754697556975669757697586975969760697616976269763697646976569766697676976869769697706977169772697736977469775697766977769778697796978069781697826978369784697856978669787697886978969790697916979269793697946979569796697976979869799698006980169802698036980469805698066980769808698096981069811698126981369814698156981669817698186981969820698216982269823698246982569826698276982869829698306983169832698336983469835698366983769838698396984069841698426984369844698456984669847698486984969850698516985269853698546985569856698576985869859698606986169862698636986469865698666986769868698696987069871698726987369874698756987669877698786987969880698816988269883698846988569886698876988869889698906989169892698936989469895698966989769898698996990069901699026990369904699056990669907699086990969910699116991269913699146991569916699176991869919699206992169922699236992469925699266992769928699296993069931699326993369934699356993669937699386993969940699416994269943699446994569946699476994869949699506995169952699536995469955699566995769958699596996069961699626996369964699656996669967699686996969970699716997269973699746997569976699776997869979699806998169982699836998469985699866998769988699896999069991699926999369994699956999669997699986999970000700017000270003700047000570006700077000870009700107001170012700137001470015700167001770018700197002070021700227002370024700257002670027700287002970030700317003270033700347003570036700377003870039700407004170042700437004470045700467004770048700497005070051700527005370054700557005670057700587005970060700617006270063700647006570066700677006870069700707007170072700737007470075700767007770078700797008070081700827008370084700857008670087700887008970090700917009270093700947009570096700977009870099701007010170102701037010470105701067010770108701097011070111701127011370114701157011670117701187011970120701217012270123701247012570126701277012870129701307013170132701337013470135701367013770138701397014070141701427014370144701457014670147701487014970150701517015270153701547015570156701577015870159701607016170162701637016470165701667016770168701697017070171701727017370174701757017670177701787017970180701817018270183701847018570186701877018870189701907019170192701937019470195701967019770198701997020070201702027020370204702057020670207702087020970210702117021270213702147021570216702177021870219702207022170222702237022470225702267022770228702297023070231702327023370234702357023670237702387023970240702417024270243702447024570246702477024870249702507025170252702537025470255702567025770258702597026070261702627026370264702657026670267702687026970270702717027270273702747027570276702777027870279702807028170282702837028470285702867028770288702897029070291702927029370294702957029670297702987029970300703017030270303703047030570306703077030870309703107031170312703137031470315703167031770318703197032070321703227032370324703257032670327703287032970330703317033270333703347033570336703377033870339703407034170342703437034470345703467034770348703497035070351703527035370354703557035670357703587035970360703617036270363703647036570366703677036870369703707037170372703737037470375703767037770378703797038070381703827038370384703857038670387703887038970390703917039270393703947039570396703977039870399704007040170402704037040470405704067040770408704097041070411704127041370414704157041670417704187041970420704217042270423704247042570426704277042870429704307043170432704337043470435704367043770438704397044070441704427044370444704457044670447704487044970450704517045270453704547045570456704577045870459704607046170462704637046470465704667046770468704697047070471704727047370474704757047670477704787047970480704817048270483704847048570486704877048870489704907049170492704937049470495704967049770498704997050070501705027050370504705057050670507705087050970510705117051270513705147051570516705177051870519705207052170522705237052470525705267052770528705297053070531705327053370534705357053670537705387053970540705417054270543705447054570546705477054870549705507055170552705537055470555705567055770558705597056070561705627056370564705657056670567705687056970570705717057270573705747057570576705777057870579705807058170582705837058470585705867058770588705897059070591705927059370594705957059670597705987059970600706017060270603706047060570606706077060870609706107061170612706137061470615706167061770618706197062070621706227062370624706257062670627706287062970630706317063270633706347063570636706377063870639706407064170642706437064470645706467064770648706497065070651706527065370654706557065670657706587065970660706617066270663706647066570666706677066870669706707067170672706737067470675706767067770678706797068070681706827068370684706857068670687706887068970690706917069270693706947069570696706977069870699707007070170702707037070470705707067070770708707097071070711707127071370714707157071670717707187071970720707217072270723707247072570726707277072870729707307073170732707337073470735707367073770738707397074070741707427074370744707457074670747707487074970750707517075270753707547075570756707577075870759707607076170762707637076470765707667076770768707697077070771707727077370774707757077670777707787077970780707817078270783707847078570786707877078870789707907079170792707937079470795707967079770798707997080070801708027080370804708057080670807708087080970810708117081270813708147081570816708177081870819708207082170822708237082470825708267082770828708297083070831708327083370834708357083670837708387083970840708417084270843708447084570846708477084870849708507085170852708537085470855708567085770858708597086070861708627086370864708657086670867708687086970870708717087270873708747087570876708777087870879708807088170882708837088470885708867088770888708897089070891708927089370894708957089670897708987089970900709017090270903709047090570906709077090870909709107091170912709137091470915709167091770918709197092070921709227092370924709257092670927709287092970930709317093270933709347093570936709377093870939709407094170942709437094470945709467094770948709497095070951709527095370954709557095670957709587095970960709617096270963709647096570966709677096870969709707097170972709737097470975709767097770978709797098070981709827098370984709857098670987709887098970990709917099270993709947099570996709977099870999710007100171002710037100471005710067100771008710097101071011710127101371014710157101671017710187101971020710217102271023710247102571026710277102871029710307103171032710337103471035710367103771038710397104071041710427104371044710457104671047710487104971050710517105271053710547105571056710577105871059710607106171062710637106471065710667106771068710697107071071710727107371074710757107671077710787107971080710817108271083710847108571086710877108871089710907109171092710937109471095710967109771098710997110071101711027110371104711057110671107711087110971110711117111271113711147111571116711177111871119711207112171122711237112471125711267112771128711297113071131711327113371134711357113671137711387113971140711417114271143711447114571146711477114871149711507115171152711537115471155711567115771158711597116071161711627116371164711657116671167711687116971170711717117271173711747117571176711777117871179711807118171182711837118471185711867118771188711897119071191711927119371194711957119671197711987119971200712017120271203712047120571206712077120871209712107121171212712137121471215712167121771218712197122071221712227122371224712257122671227712287122971230712317123271233712347123571236712377123871239712407124171242712437124471245712467124771248712497125071251712527125371254712557125671257712587125971260712617126271263712647126571266712677126871269712707127171272712737127471275712767127771278712797128071281712827128371284712857128671287712887128971290712917129271293712947129571296712977129871299713007130171302713037130471305713067130771308713097131071311713127131371314713157131671317713187131971320713217132271323713247132571326713277132871329713307133171332713337133471335713367133771338713397134071341713427134371344713457134671347713487134971350713517135271353713547135571356713577135871359713607136171362713637136471365713667136771368713697137071371713727137371374713757137671377713787137971380713817138271383713847138571386713877138871389713907139171392713937139471395713967139771398713997140071401714027140371404714057140671407714087140971410714117141271413714147141571416714177141871419714207142171422714237142471425714267142771428714297143071431714327143371434714357143671437714387143971440714417144271443714447144571446714477144871449714507145171452714537145471455714567145771458714597146071461714627146371464714657146671467714687146971470714717147271473714747147571476714777147871479714807148171482714837148471485714867148771488714897149071491714927149371494714957149671497714987149971500715017150271503715047150571506715077150871509715107151171512715137151471515715167151771518715197152071521715227152371524715257152671527715287152971530715317153271533715347153571536715377153871539715407154171542715437154471545715467154771548715497155071551715527155371554715557155671557715587155971560715617156271563715647156571566715677156871569715707157171572715737157471575715767157771578715797158071581715827158371584715857158671587715887158971590715917159271593715947159571596715977159871599716007160171602716037160471605716067160771608716097161071611716127161371614716157161671617716187161971620716217162271623716247162571626716277162871629716307163171632716337163471635716367163771638716397164071641716427164371644716457164671647716487164971650716517165271653716547165571656716577165871659716607166171662716637166471665716667166771668716697167071671716727167371674716757167671677716787167971680716817168271683716847168571686716877168871689716907169171692716937169471695716967169771698716997170071701717027170371704717057170671707717087170971710717117171271713717147171571716717177171871719717207172171722717237172471725717267172771728717297173071731717327173371734717357173671737717387173971740717417174271743717447174571746717477174871749717507175171752717537175471755717567175771758717597176071761717627176371764717657176671767
  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 completes
  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 completes
  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 completes
  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 completes
  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 completes
  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 completes
  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 completes
  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 completes
  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 completes
  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 completes
  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 completes
  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 completes
  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 completes
  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 completes
  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 completes
  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 completes
  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 completes
  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 completes
  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 completes
  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 completes
  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 completes
  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 completes
  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 completes
  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 completes
  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 completes
  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 completes
  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 completes
  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 completes
  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.
  2102. //
  2103. // Canceling a Spot Instance request does not terminate running Spot Instances
  2104. // associated with the request.
  2105. //
  2106. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2107. // with awserr.Error's Code and Message methods to get detailed information about
  2108. // the error.
  2109. //
  2110. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2111. // API operation CancelSpotInstanceRequests for usage and error information.
  2112. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotInstanceRequests
  2113. func (c *EC2) CancelSpotInstanceRequests(input *CancelSpotInstanceRequestsInput) (*CancelSpotInstanceRequestsOutput, error) {
  2114. req, out := c.CancelSpotInstanceRequestsRequest(input)
  2115. return out, req.Send()
  2116. }
  2117. // CancelSpotInstanceRequestsWithContext is the same as CancelSpotInstanceRequests with the addition of
  2118. // the ability to pass a context and additional request options.
  2119. //
  2120. // See CancelSpotInstanceRequests for details on how to use this API operation.
  2121. //
  2122. // The context must be non-nil and will be used for request cancellation. If
  2123. // the context is nil a panic will occur. In the future the SDK may create
  2124. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2125. // for more information on using Contexts.
  2126. func (c *EC2) CancelSpotInstanceRequestsWithContext(ctx aws.Context, input *CancelSpotInstanceRequestsInput, opts ...request.Option) (*CancelSpotInstanceRequestsOutput, error) {
  2127. req, out := c.CancelSpotInstanceRequestsRequest(input)
  2128. req.SetContext(ctx)
  2129. req.ApplyOptions(opts...)
  2130. return out, req.Send()
  2131. }
  2132. const opConfirmProductInstance = "ConfirmProductInstance"
  2133. // ConfirmProductInstanceRequest generates a "aws/request.Request" representing the
  2134. // client's request for the ConfirmProductInstance operation. The "output" return
  2135. // value will be populated with the request's response once the request completes
  2136. // successfuly.
  2137. //
  2138. // Use "Send" method on the returned Request to send the API call to the service.
  2139. // the "output" return value is not valid until after Send returns without error.
  2140. //
  2141. // See ConfirmProductInstance for more information on using the ConfirmProductInstance
  2142. // API call, and error handling.
  2143. //
  2144. // This method is useful when you want to inject custom logic or configuration
  2145. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2146. //
  2147. //
  2148. // // Example sending a request using the ConfirmProductInstanceRequest method.
  2149. // req, resp := client.ConfirmProductInstanceRequest(params)
  2150. //
  2151. // err := req.Send()
  2152. // if err == nil { // resp is now filled
  2153. // fmt.Println(resp)
  2154. // }
  2155. //
  2156. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ConfirmProductInstance
  2157. func (c *EC2) ConfirmProductInstanceRequest(input *ConfirmProductInstanceInput) (req *request.Request, output *ConfirmProductInstanceOutput) {
  2158. op := &request.Operation{
  2159. Name: opConfirmProductInstance,
  2160. HTTPMethod: "POST",
  2161. HTTPPath: "/",
  2162. }
  2163. if input == nil {
  2164. input = &ConfirmProductInstanceInput{}
  2165. }
  2166. output = &ConfirmProductInstanceOutput{}
  2167. req = c.newRequest(op, input, output)
  2168. return
  2169. }
  2170. // ConfirmProductInstance API operation for Amazon Elastic Compute Cloud.
  2171. //
  2172. // Determines whether a product code is associated with an instance. This action
  2173. // can only be used by the owner of the product code. It is useful when a product
  2174. // code owner must verify whether another user's instance is eligible for support.
  2175. //
  2176. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2177. // with awserr.Error's Code and Message methods to get detailed information about
  2178. // the error.
  2179. //
  2180. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2181. // API operation ConfirmProductInstance for usage and error information.
  2182. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ConfirmProductInstance
  2183. func (c *EC2) ConfirmProductInstance(input *ConfirmProductInstanceInput) (*ConfirmProductInstanceOutput, error) {
  2184. req, out := c.ConfirmProductInstanceRequest(input)
  2185. return out, req.Send()
  2186. }
  2187. // ConfirmProductInstanceWithContext is the same as ConfirmProductInstance with the addition of
  2188. // the ability to pass a context and additional request options.
  2189. //
  2190. // See ConfirmProductInstance for details on how to use this API operation.
  2191. //
  2192. // The context must be non-nil and will be used for request cancellation. If
  2193. // the context is nil a panic will occur. In the future the SDK may create
  2194. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2195. // for more information on using Contexts.
  2196. func (c *EC2) ConfirmProductInstanceWithContext(ctx aws.Context, input *ConfirmProductInstanceInput, opts ...request.Option) (*ConfirmProductInstanceOutput, error) {
  2197. req, out := c.ConfirmProductInstanceRequest(input)
  2198. req.SetContext(ctx)
  2199. req.ApplyOptions(opts...)
  2200. return out, req.Send()
  2201. }
  2202. const opCopyFpgaImage = "CopyFpgaImage"
  2203. // CopyFpgaImageRequest generates a "aws/request.Request" representing the
  2204. // client's request for the CopyFpgaImage operation. The "output" return
  2205. // value will be populated with the request's response once the request completes
  2206. // successfuly.
  2207. //
  2208. // Use "Send" method on the returned Request to send the API call to the service.
  2209. // the "output" return value is not valid until after Send returns without error.
  2210. //
  2211. // See CopyFpgaImage for more information on using the CopyFpgaImage
  2212. // API call, and error handling.
  2213. //
  2214. // This method is useful when you want to inject custom logic or configuration
  2215. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2216. //
  2217. //
  2218. // // Example sending a request using the CopyFpgaImageRequest method.
  2219. // req, resp := client.CopyFpgaImageRequest(params)
  2220. //
  2221. // err := req.Send()
  2222. // if err == nil { // resp is now filled
  2223. // fmt.Println(resp)
  2224. // }
  2225. //
  2226. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopyFpgaImage
  2227. func (c *EC2) CopyFpgaImageRequest(input *CopyFpgaImageInput) (req *request.Request, output *CopyFpgaImageOutput) {
  2228. op := &request.Operation{
  2229. Name: opCopyFpgaImage,
  2230. HTTPMethod: "POST",
  2231. HTTPPath: "/",
  2232. }
  2233. if input == nil {
  2234. input = &CopyFpgaImageInput{}
  2235. }
  2236. output = &CopyFpgaImageOutput{}
  2237. req = c.newRequest(op, input, output)
  2238. return
  2239. }
  2240. // CopyFpgaImage API operation for Amazon Elastic Compute Cloud.
  2241. //
  2242. // Copies the specified Amazon FPGA Image (AFI) to the current region.
  2243. //
  2244. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2245. // with awserr.Error's Code and Message methods to get detailed information about
  2246. // the error.
  2247. //
  2248. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2249. // API operation CopyFpgaImage for usage and error information.
  2250. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopyFpgaImage
  2251. func (c *EC2) CopyFpgaImage(input *CopyFpgaImageInput) (*CopyFpgaImageOutput, error) {
  2252. req, out := c.CopyFpgaImageRequest(input)
  2253. return out, req.Send()
  2254. }
  2255. // CopyFpgaImageWithContext is the same as CopyFpgaImage with the addition of
  2256. // the ability to pass a context and additional request options.
  2257. //
  2258. // See CopyFpgaImage for details on how to use this API operation.
  2259. //
  2260. // The context must be non-nil and will be used for request cancellation. If
  2261. // the context is nil a panic will occur. In the future the SDK may create
  2262. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2263. // for more information on using Contexts.
  2264. func (c *EC2) CopyFpgaImageWithContext(ctx aws.Context, input *CopyFpgaImageInput, opts ...request.Option) (*CopyFpgaImageOutput, error) {
  2265. req, out := c.CopyFpgaImageRequest(input)
  2266. req.SetContext(ctx)
  2267. req.ApplyOptions(opts...)
  2268. return out, req.Send()
  2269. }
  2270. const opCopyImage = "CopyImage"
  2271. // CopyImageRequest generates a "aws/request.Request" representing the
  2272. // client's request for the CopyImage operation. The "output" return
  2273. // value will be populated with the request's response once the request completes
  2274. // successfuly.
  2275. //
  2276. // Use "Send" method on the returned Request to send the API call to the service.
  2277. // the "output" return value is not valid until after Send returns without error.
  2278. //
  2279. // See CopyImage for more information on using the CopyImage
  2280. // API call, and error handling.
  2281. //
  2282. // This method is useful when you want to inject custom logic or configuration
  2283. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2284. //
  2285. //
  2286. // // Example sending a request using the CopyImageRequest method.
  2287. // req, resp := client.CopyImageRequest(params)
  2288. //
  2289. // err := req.Send()
  2290. // if err == nil { // resp is now filled
  2291. // fmt.Println(resp)
  2292. // }
  2293. //
  2294. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopyImage
  2295. func (c *EC2) CopyImageRequest(input *CopyImageInput) (req *request.Request, output *CopyImageOutput) {
  2296. op := &request.Operation{
  2297. Name: opCopyImage,
  2298. HTTPMethod: "POST",
  2299. HTTPPath: "/",
  2300. }
  2301. if input == nil {
  2302. input = &CopyImageInput{}
  2303. }
  2304. output = &CopyImageOutput{}
  2305. req = c.newRequest(op, input, output)
  2306. return
  2307. }
  2308. // CopyImage API operation for Amazon Elastic Compute Cloud.
  2309. //
  2310. // Initiates the copy of an AMI from the specified source region to the current
  2311. // region. You specify the destination region by using its endpoint when making
  2312. // the request.
  2313. //
  2314. // For more information about the prerequisites and limits when copying an AMI,
  2315. // see Copying an AMI (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/CopyingAMIs.html)
  2316. // in the Amazon Elastic Compute Cloud User Guide.
  2317. //
  2318. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2319. // with awserr.Error's Code and Message methods to get detailed information about
  2320. // the error.
  2321. //
  2322. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2323. // API operation CopyImage for usage and error information.
  2324. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopyImage
  2325. func (c *EC2) CopyImage(input *CopyImageInput) (*CopyImageOutput, error) {
  2326. req, out := c.CopyImageRequest(input)
  2327. return out, req.Send()
  2328. }
  2329. // CopyImageWithContext is the same as CopyImage with the addition of
  2330. // the ability to pass a context and additional request options.
  2331. //
  2332. // See CopyImage for details on how to use this API operation.
  2333. //
  2334. // The context must be non-nil and will be used for request cancellation. If
  2335. // the context is nil a panic will occur. In the future the SDK may create
  2336. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2337. // for more information on using Contexts.
  2338. func (c *EC2) CopyImageWithContext(ctx aws.Context, input *CopyImageInput, opts ...request.Option) (*CopyImageOutput, error) {
  2339. req, out := c.CopyImageRequest(input)
  2340. req.SetContext(ctx)
  2341. req.ApplyOptions(opts...)
  2342. return out, req.Send()
  2343. }
  2344. const opCopySnapshot = "CopySnapshot"
  2345. // CopySnapshotRequest generates a "aws/request.Request" representing the
  2346. // client's request for the CopySnapshot operation. The "output" return
  2347. // value will be populated with the request's response once the request completes
  2348. // successfuly.
  2349. //
  2350. // Use "Send" method on the returned Request to send the API call to the service.
  2351. // the "output" return value is not valid until after Send returns without error.
  2352. //
  2353. // See CopySnapshot for more information on using the CopySnapshot
  2354. // API call, and error handling.
  2355. //
  2356. // This method is useful when you want to inject custom logic or configuration
  2357. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2358. //
  2359. //
  2360. // // Example sending a request using the CopySnapshotRequest method.
  2361. // req, resp := client.CopySnapshotRequest(params)
  2362. //
  2363. // err := req.Send()
  2364. // if err == nil { // resp is now filled
  2365. // fmt.Println(resp)
  2366. // }
  2367. //
  2368. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopySnapshot
  2369. func (c *EC2) CopySnapshotRequest(input *CopySnapshotInput) (req *request.Request, output *CopySnapshotOutput) {
  2370. op := &request.Operation{
  2371. Name: opCopySnapshot,
  2372. HTTPMethod: "POST",
  2373. HTTPPath: "/",
  2374. }
  2375. if input == nil {
  2376. input = &CopySnapshotInput{}
  2377. }
  2378. output = &CopySnapshotOutput{}
  2379. req = c.newRequest(op, input, output)
  2380. return
  2381. }
  2382. // CopySnapshot API operation for Amazon Elastic Compute Cloud.
  2383. //
  2384. // Copies a point-in-time snapshot of an EBS volume and stores it in Amazon
  2385. // S3. You can copy the snapshot within the same region or from one region to
  2386. // another. You can use the snapshot to create EBS volumes or Amazon Machine
  2387. // Images (AMIs). The snapshot is copied to the regional endpoint that you send
  2388. // the HTTP request to.
  2389. //
  2390. // Copies of encrypted EBS snapshots remain encrypted. Copies of unencrypted
  2391. // snapshots remain unencrypted, unless the Encrypted flag is specified during
  2392. // the snapshot copy operation. By default, encrypted snapshot copies use the
  2393. // default AWS Key Management Service (AWS KMS) customer master key (CMK); however,
  2394. // you can specify a non-default CMK with the KmsKeyId parameter.
  2395. //
  2396. // To copy an encrypted snapshot that has been shared from another account,
  2397. // you must have permissions for the CMK used to encrypt the snapshot.
  2398. //
  2399. // Snapshots created by the CopySnapshot action have an arbitrary volume ID
  2400. // that should not be used for any purpose.
  2401. //
  2402. // For more information, see Copying an Amazon EBS Snapshot (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-copy-snapshot.html)
  2403. // in the Amazon Elastic Compute Cloud User Guide.
  2404. //
  2405. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2406. // with awserr.Error's Code and Message methods to get detailed information about
  2407. // the error.
  2408. //
  2409. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2410. // API operation CopySnapshot for usage and error information.
  2411. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopySnapshot
  2412. func (c *EC2) CopySnapshot(input *CopySnapshotInput) (*CopySnapshotOutput, error) {
  2413. req, out := c.CopySnapshotRequest(input)
  2414. return out, req.Send()
  2415. }
  2416. // CopySnapshotWithContext is the same as CopySnapshot with the addition of
  2417. // the ability to pass a context and additional request options.
  2418. //
  2419. // See CopySnapshot for details on how to use this API operation.
  2420. //
  2421. // The context must be non-nil and will be used for request cancellation. If
  2422. // the context is nil a panic will occur. In the future the SDK may create
  2423. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2424. // for more information on using Contexts.
  2425. func (c *EC2) CopySnapshotWithContext(ctx aws.Context, input *CopySnapshotInput, opts ...request.Option) (*CopySnapshotOutput, error) {
  2426. req, out := c.CopySnapshotRequest(input)
  2427. req.SetContext(ctx)
  2428. req.ApplyOptions(opts...)
  2429. return out, req.Send()
  2430. }
  2431. const opCreateCustomerGateway = "CreateCustomerGateway"
  2432. // CreateCustomerGatewayRequest generates a "aws/request.Request" representing the
  2433. // client's request for the CreateCustomerGateway operation. The "output" return
  2434. // value will be populated with the request's response once the request completes
  2435. // successfuly.
  2436. //
  2437. // Use "Send" method on the returned Request to send the API call to the service.
  2438. // the "output" return value is not valid until after Send returns without error.
  2439. //
  2440. // See CreateCustomerGateway for more information on using the CreateCustomerGateway
  2441. // API call, and error handling.
  2442. //
  2443. // This method is useful when you want to inject custom logic or configuration
  2444. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2445. //
  2446. //
  2447. // // Example sending a request using the CreateCustomerGatewayRequest method.
  2448. // req, resp := client.CreateCustomerGatewayRequest(params)
  2449. //
  2450. // err := req.Send()
  2451. // if err == nil { // resp is now filled
  2452. // fmt.Println(resp)
  2453. // }
  2454. //
  2455. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateCustomerGateway
  2456. func (c *EC2) CreateCustomerGatewayRequest(input *CreateCustomerGatewayInput) (req *request.Request, output *CreateCustomerGatewayOutput) {
  2457. op := &request.Operation{
  2458. Name: opCreateCustomerGateway,
  2459. HTTPMethod: "POST",
  2460. HTTPPath: "/",
  2461. }
  2462. if input == nil {
  2463. input = &CreateCustomerGatewayInput{}
  2464. }
  2465. output = &CreateCustomerGatewayOutput{}
  2466. req = c.newRequest(op, input, output)
  2467. return
  2468. }
  2469. // CreateCustomerGateway API operation for Amazon Elastic Compute Cloud.
  2470. //
  2471. // Provides information to AWS about your VPN customer gateway device. The customer
  2472. // gateway is the appliance at your end of the VPN connection. (The device on
  2473. // the AWS side of the VPN connection is the virtual private gateway.) You must
  2474. // provide the Internet-routable IP address of the customer gateway's external
  2475. // interface. The IP address must be static and may be behind a device performing
  2476. // network address translation (NAT).
  2477. //
  2478. // For devices that use Border Gateway Protocol (BGP), you can also provide
  2479. // the device's BGP Autonomous System Number (ASN). You can use an existing
  2480. // ASN assigned to your network. If you don't have an ASN already, you can use
  2481. // a private ASN (in the 64512 - 65534 range).
  2482. //
  2483. // Amazon EC2 supports all 2-byte ASN numbers in the range of 1 - 65534, with
  2484. // the exception of 7224, which is reserved in the us-east-1 region, and 9059,
  2485. // which is reserved in the eu-west-1 region.
  2486. //
  2487. // For more information about VPN customer gateways, see AWS Managed VPN Connections
  2488. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html) in the
  2489. // Amazon Virtual Private Cloud User Guide.
  2490. //
  2491. // You cannot create more than one customer gateway with the same VPN type,
  2492. // IP address, and BGP ASN parameter values. If you run an identical request
  2493. // more than one time, the first request creates the customer gateway, and subsequent
  2494. // requests return information about the existing customer gateway. The subsequent
  2495. // requests do not create new customer gateway resources.
  2496. //
  2497. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2498. // with awserr.Error's Code and Message methods to get detailed information about
  2499. // the error.
  2500. //
  2501. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2502. // API operation CreateCustomerGateway for usage and error information.
  2503. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateCustomerGateway
  2504. func (c *EC2) CreateCustomerGateway(input *CreateCustomerGatewayInput) (*CreateCustomerGatewayOutput, error) {
  2505. req, out := c.CreateCustomerGatewayRequest(input)
  2506. return out, req.Send()
  2507. }
  2508. // CreateCustomerGatewayWithContext is the same as CreateCustomerGateway with the addition of
  2509. // the ability to pass a context and additional request options.
  2510. //
  2511. // See CreateCustomerGateway for details on how to use this API operation.
  2512. //
  2513. // The context must be non-nil and will be used for request cancellation. If
  2514. // the context is nil a panic will occur. In the future the SDK may create
  2515. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2516. // for more information on using Contexts.
  2517. func (c *EC2) CreateCustomerGatewayWithContext(ctx aws.Context, input *CreateCustomerGatewayInput, opts ...request.Option) (*CreateCustomerGatewayOutput, error) {
  2518. req, out := c.CreateCustomerGatewayRequest(input)
  2519. req.SetContext(ctx)
  2520. req.ApplyOptions(opts...)
  2521. return out, req.Send()
  2522. }
  2523. const opCreateDefaultSubnet = "CreateDefaultSubnet"
  2524. // CreateDefaultSubnetRequest generates a "aws/request.Request" representing the
  2525. // client's request for the CreateDefaultSubnet operation. The "output" return
  2526. // value will be populated with the request's response once the request completes
  2527. // successfuly.
  2528. //
  2529. // Use "Send" method on the returned Request to send the API call to the service.
  2530. // the "output" return value is not valid until after Send returns without error.
  2531. //
  2532. // See CreateDefaultSubnet for more information on using the CreateDefaultSubnet
  2533. // API call, and error handling.
  2534. //
  2535. // This method is useful when you want to inject custom logic or configuration
  2536. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2537. //
  2538. //
  2539. // // Example sending a request using the CreateDefaultSubnetRequest method.
  2540. // req, resp := client.CreateDefaultSubnetRequest(params)
  2541. //
  2542. // err := req.Send()
  2543. // if err == nil { // resp is now filled
  2544. // fmt.Println(resp)
  2545. // }
  2546. //
  2547. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateDefaultSubnet
  2548. func (c *EC2) CreateDefaultSubnetRequest(input *CreateDefaultSubnetInput) (req *request.Request, output *CreateDefaultSubnetOutput) {
  2549. op := &request.Operation{
  2550. Name: opCreateDefaultSubnet,
  2551. HTTPMethod: "POST",
  2552. HTTPPath: "/",
  2553. }
  2554. if input == nil {
  2555. input = &CreateDefaultSubnetInput{}
  2556. }
  2557. output = &CreateDefaultSubnetOutput{}
  2558. req = c.newRequest(op, input, output)
  2559. return
  2560. }
  2561. // CreateDefaultSubnet API operation for Amazon Elastic Compute Cloud.
  2562. //
  2563. // Creates a default subnet with a size /20 IPv4 CIDR block in the specified
  2564. // Availability Zone in your default VPC. You can have only one default subnet
  2565. // per Availability Zone. For more information, see Creating a Default Subnet
  2566. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/default-vpc.html#create-default-subnet)
  2567. // in the Amazon Virtual Private Cloud User Guide.
  2568. //
  2569. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2570. // with awserr.Error's Code and Message methods to get detailed information about
  2571. // the error.
  2572. //
  2573. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2574. // API operation CreateDefaultSubnet for usage and error information.
  2575. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateDefaultSubnet
  2576. func (c *EC2) CreateDefaultSubnet(input *CreateDefaultSubnetInput) (*CreateDefaultSubnetOutput, error) {
  2577. req, out := c.CreateDefaultSubnetRequest(input)
  2578. return out, req.Send()
  2579. }
  2580. // CreateDefaultSubnetWithContext is the same as CreateDefaultSubnet with the addition of
  2581. // the ability to pass a context and additional request options.
  2582. //
  2583. // See CreateDefaultSubnet for details on how to use this API operation.
  2584. //
  2585. // The context must be non-nil and will be used for request cancellation. If
  2586. // the context is nil a panic will occur. In the future the SDK may create
  2587. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2588. // for more information on using Contexts.
  2589. func (c *EC2) CreateDefaultSubnetWithContext(ctx aws.Context, input *CreateDefaultSubnetInput, opts ...request.Option) (*CreateDefaultSubnetOutput, error) {
  2590. req, out := c.CreateDefaultSubnetRequest(input)
  2591. req.SetContext(ctx)
  2592. req.ApplyOptions(opts...)
  2593. return out, req.Send()
  2594. }
  2595. const opCreateDefaultVpc = "CreateDefaultVpc"
  2596. // CreateDefaultVpcRequest generates a "aws/request.Request" representing the
  2597. // client's request for the CreateDefaultVpc operation. The "output" return
  2598. // value will be populated with the request's response once the request completes
  2599. // successfuly.
  2600. //
  2601. // Use "Send" method on the returned Request to send the API call to the service.
  2602. // the "output" return value is not valid until after Send returns without error.
  2603. //
  2604. // See CreateDefaultVpc for more information on using the CreateDefaultVpc
  2605. // API call, and error handling.
  2606. //
  2607. // This method is useful when you want to inject custom logic or configuration
  2608. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2609. //
  2610. //
  2611. // // Example sending a request using the CreateDefaultVpcRequest method.
  2612. // req, resp := client.CreateDefaultVpcRequest(params)
  2613. //
  2614. // err := req.Send()
  2615. // if err == nil { // resp is now filled
  2616. // fmt.Println(resp)
  2617. // }
  2618. //
  2619. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateDefaultVpc
  2620. func (c *EC2) CreateDefaultVpcRequest(input *CreateDefaultVpcInput) (req *request.Request, output *CreateDefaultVpcOutput) {
  2621. op := &request.Operation{
  2622. Name: opCreateDefaultVpc,
  2623. HTTPMethod: "POST",
  2624. HTTPPath: "/",
  2625. }
  2626. if input == nil {
  2627. input = &CreateDefaultVpcInput{}
  2628. }
  2629. output = &CreateDefaultVpcOutput{}
  2630. req = c.newRequest(op, input, output)
  2631. return
  2632. }
  2633. // CreateDefaultVpc API operation for Amazon Elastic Compute Cloud.
  2634. //
  2635. // Creates a default VPC with a size /16 IPv4 CIDR block and a default subnet
  2636. // in each Availability Zone. For more information about the components of a
  2637. // default VPC, see Default VPC and Default Subnets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/default-vpc.html)
  2638. // in the Amazon Virtual Private Cloud User Guide. You cannot specify the components
  2639. // of the default VPC yourself.
  2640. //
  2641. // You can create a default VPC if you deleted your previous default VPC. You
  2642. // cannot have more than one default VPC per region.
  2643. //
  2644. // If your account supports EC2-Classic, you cannot use this action to create
  2645. // a default VPC in a region that supports EC2-Classic. If you want a default
  2646. // VPC in a region that supports EC2-Classic, see "I really want a default VPC
  2647. // for my existing EC2 account. Is that possible?" in the Default VPCs FAQ (http://aws.amazon.com/vpc/faqs/#Default_VPCs).
  2648. //
  2649. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2650. // with awserr.Error's Code and Message methods to get detailed information about
  2651. // the error.
  2652. //
  2653. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2654. // API operation CreateDefaultVpc for usage and error information.
  2655. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateDefaultVpc
  2656. func (c *EC2) CreateDefaultVpc(input *CreateDefaultVpcInput) (*CreateDefaultVpcOutput, error) {
  2657. req, out := c.CreateDefaultVpcRequest(input)
  2658. return out, req.Send()
  2659. }
  2660. // CreateDefaultVpcWithContext is the same as CreateDefaultVpc with the addition of
  2661. // the ability to pass a context and additional request options.
  2662. //
  2663. // See CreateDefaultVpc for details on how to use this API operation.
  2664. //
  2665. // The context must be non-nil and will be used for request cancellation. If
  2666. // the context is nil a panic will occur. In the future the SDK may create
  2667. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2668. // for more information on using Contexts.
  2669. func (c *EC2) CreateDefaultVpcWithContext(ctx aws.Context, input *CreateDefaultVpcInput, opts ...request.Option) (*CreateDefaultVpcOutput, error) {
  2670. req, out := c.CreateDefaultVpcRequest(input)
  2671. req.SetContext(ctx)
  2672. req.ApplyOptions(opts...)
  2673. return out, req.Send()
  2674. }
  2675. const opCreateDhcpOptions = "CreateDhcpOptions"
  2676. // CreateDhcpOptionsRequest generates a "aws/request.Request" representing the
  2677. // client's request for the CreateDhcpOptions operation. The "output" return
  2678. // value will be populated with the request's response once the request completes
  2679. // successfuly.
  2680. //
  2681. // Use "Send" method on the returned Request to send the API call to the service.
  2682. // the "output" return value is not valid until after Send returns without error.
  2683. //
  2684. // See CreateDhcpOptions for more information on using the CreateDhcpOptions
  2685. // API call, and error handling.
  2686. //
  2687. // This method is useful when you want to inject custom logic or configuration
  2688. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2689. //
  2690. //
  2691. // // Example sending a request using the CreateDhcpOptionsRequest method.
  2692. // req, resp := client.CreateDhcpOptionsRequest(params)
  2693. //
  2694. // err := req.Send()
  2695. // if err == nil { // resp is now filled
  2696. // fmt.Println(resp)
  2697. // }
  2698. //
  2699. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateDhcpOptions
  2700. func (c *EC2) CreateDhcpOptionsRequest(input *CreateDhcpOptionsInput) (req *request.Request, output *CreateDhcpOptionsOutput) {
  2701. op := &request.Operation{
  2702. Name: opCreateDhcpOptions,
  2703. HTTPMethod: "POST",
  2704. HTTPPath: "/",
  2705. }
  2706. if input == nil {
  2707. input = &CreateDhcpOptionsInput{}
  2708. }
  2709. output = &CreateDhcpOptionsOutput{}
  2710. req = c.newRequest(op, input, output)
  2711. return
  2712. }
  2713. // CreateDhcpOptions API operation for Amazon Elastic Compute Cloud.
  2714. //
  2715. // Creates a set of DHCP options for your VPC. After creating the set, you must
  2716. // associate it with the VPC, causing all existing and new instances that you
  2717. // launch in the VPC to use this set of DHCP options. The following are the
  2718. // individual DHCP options you can specify. For more information about the options,
  2719. // see RFC 2132 (http://www.ietf.org/rfc/rfc2132.txt).
  2720. //
  2721. // * domain-name-servers - The IP addresses of up to four domain name servers,
  2722. // or AmazonProvidedDNS. The default DHCP option set specifies AmazonProvidedDNS.
  2723. // If specifying more than one domain name server, specify the IP addresses
  2724. // in a single parameter, separated by commas. If you want your instance
  2725. // to receive a custom DNS hostname as specified in domain-name, you must
  2726. // set domain-name-servers to a custom DNS server.
  2727. //
  2728. // * domain-name - If you're using AmazonProvidedDNS in us-east-1, specify
  2729. // ec2.internal. If you're using AmazonProvidedDNS in another region, specify
  2730. // region.compute.internal (for example, ap-northeast-1.compute.internal).
  2731. // Otherwise, specify a domain name (for example, MyCompany.com). This value
  2732. // is used to complete unqualified DNS hostnames. Important: Some Linux operating
  2733. // systems accept multiple domain names separated by spaces. However, Windows
  2734. // and other Linux operating systems treat the value as a single domain,
  2735. // which results in unexpected behavior. If your DHCP options set is associated
  2736. // with a VPC that has instances with multiple operating systems, specify
  2737. // only one domain name.
  2738. //
  2739. // * ntp-servers - The IP addresses of up to four Network Time Protocol (NTP)
  2740. // servers.
  2741. //
  2742. // * netbios-name-servers - The IP addresses of up to four NetBIOS name servers.
  2743. //
  2744. // * netbios-node-type - The NetBIOS node type (1, 2, 4, or 8). We recommend
  2745. // that you specify 2 (broadcast and multicast are not currently supported).
  2746. // For more information about these node types, see RFC 2132 (http://www.ietf.org/rfc/rfc2132.txt).
  2747. //
  2748. // Your VPC automatically starts out with a set of DHCP options that includes
  2749. // only a DNS server that we provide (AmazonProvidedDNS). If you create a set
  2750. // of options, and if your VPC has an Internet gateway, make sure to set the
  2751. // domain-name-servers option either to AmazonProvidedDNS or to a domain name
  2752. // server of your choice. For more information about DHCP options, see DHCP
  2753. // Options Sets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_DHCP_Options.html)
  2754. // in the Amazon Virtual Private Cloud User Guide.
  2755. //
  2756. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2757. // with awserr.Error's Code and Message methods to get detailed information about
  2758. // the error.
  2759. //
  2760. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2761. // API operation CreateDhcpOptions for usage and error information.
  2762. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateDhcpOptions
  2763. func (c *EC2) CreateDhcpOptions(input *CreateDhcpOptionsInput) (*CreateDhcpOptionsOutput, error) {
  2764. req, out := c.CreateDhcpOptionsRequest(input)
  2765. return out, req.Send()
  2766. }
  2767. // CreateDhcpOptionsWithContext is the same as CreateDhcpOptions with the addition of
  2768. // the ability to pass a context and additional request options.
  2769. //
  2770. // See CreateDhcpOptions for details on how to use this API operation.
  2771. //
  2772. // The context must be non-nil and will be used for request cancellation. If
  2773. // the context is nil a panic will occur. In the future the SDK may create
  2774. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2775. // for more information on using Contexts.
  2776. func (c *EC2) CreateDhcpOptionsWithContext(ctx aws.Context, input *CreateDhcpOptionsInput, opts ...request.Option) (*CreateDhcpOptionsOutput, error) {
  2777. req, out := c.CreateDhcpOptionsRequest(input)
  2778. req.SetContext(ctx)
  2779. req.ApplyOptions(opts...)
  2780. return out, req.Send()
  2781. }
  2782. const opCreateEgressOnlyInternetGateway = "CreateEgressOnlyInternetGateway"
  2783. // CreateEgressOnlyInternetGatewayRequest generates a "aws/request.Request" representing the
  2784. // client's request for the CreateEgressOnlyInternetGateway operation. The "output" return
  2785. // value will be populated with the request's response once the request completes
  2786. // successfuly.
  2787. //
  2788. // Use "Send" method on the returned Request to send the API call to the service.
  2789. // the "output" return value is not valid until after Send returns without error.
  2790. //
  2791. // See CreateEgressOnlyInternetGateway for more information on using the CreateEgressOnlyInternetGateway
  2792. // API call, and error handling.
  2793. //
  2794. // This method is useful when you want to inject custom logic or configuration
  2795. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2796. //
  2797. //
  2798. // // Example sending a request using the CreateEgressOnlyInternetGatewayRequest method.
  2799. // req, resp := client.CreateEgressOnlyInternetGatewayRequest(params)
  2800. //
  2801. // err := req.Send()
  2802. // if err == nil { // resp is now filled
  2803. // fmt.Println(resp)
  2804. // }
  2805. //
  2806. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateEgressOnlyInternetGateway
  2807. func (c *EC2) CreateEgressOnlyInternetGatewayRequest(input *CreateEgressOnlyInternetGatewayInput) (req *request.Request, output *CreateEgressOnlyInternetGatewayOutput) {
  2808. op := &request.Operation{
  2809. Name: opCreateEgressOnlyInternetGateway,
  2810. HTTPMethod: "POST",
  2811. HTTPPath: "/",
  2812. }
  2813. if input == nil {
  2814. input = &CreateEgressOnlyInternetGatewayInput{}
  2815. }
  2816. output = &CreateEgressOnlyInternetGatewayOutput{}
  2817. req = c.newRequest(op, input, output)
  2818. return
  2819. }
  2820. // CreateEgressOnlyInternetGateway API operation for Amazon Elastic Compute Cloud.
  2821. //
  2822. // [IPv6 only] Creates an egress-only Internet gateway for your VPC. An egress-only
  2823. // Internet gateway is used to enable outbound communication over IPv6 from
  2824. // instances in your VPC to the Internet, and prevents hosts outside of your
  2825. // VPC from initiating an IPv6 connection with your instance.
  2826. //
  2827. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2828. // with awserr.Error's Code and Message methods to get detailed information about
  2829. // the error.
  2830. //
  2831. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2832. // API operation CreateEgressOnlyInternetGateway for usage and error information.
  2833. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateEgressOnlyInternetGateway
  2834. func (c *EC2) CreateEgressOnlyInternetGateway(input *CreateEgressOnlyInternetGatewayInput) (*CreateEgressOnlyInternetGatewayOutput, error) {
  2835. req, out := c.CreateEgressOnlyInternetGatewayRequest(input)
  2836. return out, req.Send()
  2837. }
  2838. // CreateEgressOnlyInternetGatewayWithContext is the same as CreateEgressOnlyInternetGateway with the addition of
  2839. // the ability to pass a context and additional request options.
  2840. //
  2841. // See CreateEgressOnlyInternetGateway for details on how to use this API operation.
  2842. //
  2843. // The context must be non-nil and will be used for request cancellation. If
  2844. // the context is nil a panic will occur. In the future the SDK may create
  2845. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2846. // for more information on using Contexts.
  2847. func (c *EC2) CreateEgressOnlyInternetGatewayWithContext(ctx aws.Context, input *CreateEgressOnlyInternetGatewayInput, opts ...request.Option) (*CreateEgressOnlyInternetGatewayOutput, error) {
  2848. req, out := c.CreateEgressOnlyInternetGatewayRequest(input)
  2849. req.SetContext(ctx)
  2850. req.ApplyOptions(opts...)
  2851. return out, req.Send()
  2852. }
  2853. const opCreateFleet = "CreateFleet"
  2854. // CreateFleetRequest generates a "aws/request.Request" representing the
  2855. // client's request for the CreateFleet operation. The "output" return
  2856. // value will be populated with the request's response once the request completes
  2857. // successfuly.
  2858. //
  2859. // Use "Send" method on the returned Request to send the API call to the service.
  2860. // the "output" return value is not valid until after Send returns without error.
  2861. //
  2862. // See CreateFleet for more information on using the CreateFleet
  2863. // API call, and error handling.
  2864. //
  2865. // This method is useful when you want to inject custom logic or configuration
  2866. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2867. //
  2868. //
  2869. // // Example sending a request using the CreateFleetRequest method.
  2870. // req, resp := client.CreateFleetRequest(params)
  2871. //
  2872. // err := req.Send()
  2873. // if err == nil { // resp is now filled
  2874. // fmt.Println(resp)
  2875. // }
  2876. //
  2877. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateFleet
  2878. func (c *EC2) CreateFleetRequest(input *CreateFleetInput) (req *request.Request, output *CreateFleetOutput) {
  2879. op := &request.Operation{
  2880. Name: opCreateFleet,
  2881. HTTPMethod: "POST",
  2882. HTTPPath: "/",
  2883. }
  2884. if input == nil {
  2885. input = &CreateFleetInput{}
  2886. }
  2887. output = &CreateFleetOutput{}
  2888. req = c.newRequest(op, input, output)
  2889. return
  2890. }
  2891. // CreateFleet API operation for Amazon Elastic Compute Cloud.
  2892. //
  2893. // Launches an EC2 Fleet.
  2894. //
  2895. // You can create a single EC2 Fleet that includes multiple launch specifications
  2896. // that vary by instance type, AMI, Availability Zone, or subnet.
  2897. //
  2898. // For more information, see Launching an EC2 Fleet (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet.html)
  2899. // in the Amazon Elastic Compute Cloud User Guide.
  2900. //
  2901. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2902. // with awserr.Error's Code and Message methods to get detailed information about
  2903. // the error.
  2904. //
  2905. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2906. // API operation CreateFleet for usage and error information.
  2907. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateFleet
  2908. func (c *EC2) CreateFleet(input *CreateFleetInput) (*CreateFleetOutput, error) {
  2909. req, out := c.CreateFleetRequest(input)
  2910. return out, req.Send()
  2911. }
  2912. // CreateFleetWithContext is the same as CreateFleet with the addition of
  2913. // the ability to pass a context and additional request options.
  2914. //
  2915. // See CreateFleet for details on how to use this API operation.
  2916. //
  2917. // The context must be non-nil and will be used for request cancellation. If
  2918. // the context is nil a panic will occur. In the future the SDK may create
  2919. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2920. // for more information on using Contexts.
  2921. func (c *EC2) CreateFleetWithContext(ctx aws.Context, input *CreateFleetInput, opts ...request.Option) (*CreateFleetOutput, error) {
  2922. req, out := c.CreateFleetRequest(input)
  2923. req.SetContext(ctx)
  2924. req.ApplyOptions(opts...)
  2925. return out, req.Send()
  2926. }
  2927. const opCreateFlowLogs = "CreateFlowLogs"
  2928. // CreateFlowLogsRequest generates a "aws/request.Request" representing the
  2929. // client's request for the CreateFlowLogs operation. The "output" return
  2930. // value will be populated with the request's response once the request completes
  2931. // successfuly.
  2932. //
  2933. // Use "Send" method on the returned Request to send the API call to the service.
  2934. // the "output" return value is not valid until after Send returns without error.
  2935. //
  2936. // See CreateFlowLogs for more information on using the CreateFlowLogs
  2937. // API call, and error handling.
  2938. //
  2939. // This method is useful when you want to inject custom logic or configuration
  2940. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2941. //
  2942. //
  2943. // // Example sending a request using the CreateFlowLogsRequest method.
  2944. // req, resp := client.CreateFlowLogsRequest(params)
  2945. //
  2946. // err := req.Send()
  2947. // if err == nil { // resp is now filled
  2948. // fmt.Println(resp)
  2949. // }
  2950. //
  2951. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateFlowLogs
  2952. func (c *EC2) CreateFlowLogsRequest(input *CreateFlowLogsInput) (req *request.Request, output *CreateFlowLogsOutput) {
  2953. op := &request.Operation{
  2954. Name: opCreateFlowLogs,
  2955. HTTPMethod: "POST",
  2956. HTTPPath: "/",
  2957. }
  2958. if input == nil {
  2959. input = &CreateFlowLogsInput{}
  2960. }
  2961. output = &CreateFlowLogsOutput{}
  2962. req = c.newRequest(op, input, output)
  2963. return
  2964. }
  2965. // CreateFlowLogs API operation for Amazon Elastic Compute Cloud.
  2966. //
  2967. // Creates one or more flow logs to capture IP traffic for a specific network
  2968. // interface, subnet, or VPC. Flow logs are delivered to a specified log group
  2969. // in Amazon CloudWatch Logs. If you specify a VPC or subnet in the request,
  2970. // a log stream is created in CloudWatch Logs for each network interface in
  2971. // the subnet or VPC. Log streams can include information about accepted and
  2972. // rejected traffic to a network interface. You can view the data in your log
  2973. // streams using Amazon CloudWatch Logs.
  2974. //
  2975. // In your request, you must also specify an IAM role that has permission to
  2976. // publish logs to CloudWatch Logs.
  2977. //
  2978. // For more information, see VPC Flow Logs (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/flow-logs.html)
  2979. // in the Amazon Virtual Private Cloud User Guide.
  2980. //
  2981. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2982. // with awserr.Error's Code and Message methods to get detailed information about
  2983. // the error.
  2984. //
  2985. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2986. // API operation CreateFlowLogs for usage and error information.
  2987. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateFlowLogs
  2988. func (c *EC2) CreateFlowLogs(input *CreateFlowLogsInput) (*CreateFlowLogsOutput, error) {
  2989. req, out := c.CreateFlowLogsRequest(input)
  2990. return out, req.Send()
  2991. }
  2992. // CreateFlowLogsWithContext is the same as CreateFlowLogs with the addition of
  2993. // the ability to pass a context and additional request options.
  2994. //
  2995. // See CreateFlowLogs for details on how to use this API operation.
  2996. //
  2997. // The context must be non-nil and will be used for request cancellation. If
  2998. // the context is nil a panic will occur. In the future the SDK may create
  2999. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3000. // for more information on using Contexts.
  3001. func (c *EC2) CreateFlowLogsWithContext(ctx aws.Context, input *CreateFlowLogsInput, opts ...request.Option) (*CreateFlowLogsOutput, error) {
  3002. req, out := c.CreateFlowLogsRequest(input)
  3003. req.SetContext(ctx)
  3004. req.ApplyOptions(opts...)
  3005. return out, req.Send()
  3006. }
  3007. const opCreateFpgaImage = "CreateFpgaImage"
  3008. // CreateFpgaImageRequest generates a "aws/request.Request" representing the
  3009. // client's request for the CreateFpgaImage operation. The "output" return
  3010. // value will be populated with the request's response once the request completes
  3011. // successfuly.
  3012. //
  3013. // Use "Send" method on the returned Request to send the API call to the service.
  3014. // the "output" return value is not valid until after Send returns without error.
  3015. //
  3016. // See CreateFpgaImage for more information on using the CreateFpgaImage
  3017. // API call, and error handling.
  3018. //
  3019. // This method is useful when you want to inject custom logic or configuration
  3020. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3021. //
  3022. //
  3023. // // Example sending a request using the CreateFpgaImageRequest method.
  3024. // req, resp := client.CreateFpgaImageRequest(params)
  3025. //
  3026. // err := req.Send()
  3027. // if err == nil { // resp is now filled
  3028. // fmt.Println(resp)
  3029. // }
  3030. //
  3031. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateFpgaImage
  3032. func (c *EC2) CreateFpgaImageRequest(input *CreateFpgaImageInput) (req *request.Request, output *CreateFpgaImageOutput) {
  3033. op := &request.Operation{
  3034. Name: opCreateFpgaImage,
  3035. HTTPMethod: "POST",
  3036. HTTPPath: "/",
  3037. }
  3038. if input == nil {
  3039. input = &CreateFpgaImageInput{}
  3040. }
  3041. output = &CreateFpgaImageOutput{}
  3042. req = c.newRequest(op, input, output)
  3043. return
  3044. }
  3045. // CreateFpgaImage API operation for Amazon Elastic Compute Cloud.
  3046. //
  3047. // Creates an Amazon FPGA Image (AFI) from the specified design checkpoint (DCP).
  3048. //
  3049. // The create operation is asynchronous. To verify that the AFI is ready for
  3050. // use, check the output logs.
  3051. //
  3052. // An AFI contains the FPGA bitstream that is ready to download to an FPGA.
  3053. // You can securely deploy an AFI on one or more FPGA-accelerated instances.
  3054. // For more information, see the AWS FPGA Hardware Development Kit (https://github.com/aws/aws-fpga/).
  3055. //
  3056. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3057. // with awserr.Error's Code and Message methods to get detailed information about
  3058. // the error.
  3059. //
  3060. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3061. // API operation CreateFpgaImage for usage and error information.
  3062. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateFpgaImage
  3063. func (c *EC2) CreateFpgaImage(input *CreateFpgaImageInput) (*CreateFpgaImageOutput, error) {
  3064. req, out := c.CreateFpgaImageRequest(input)
  3065. return out, req.Send()
  3066. }
  3067. // CreateFpgaImageWithContext is the same as CreateFpgaImage with the addition of
  3068. // the ability to pass a context and additional request options.
  3069. //
  3070. // See CreateFpgaImage for details on how to use this API operation.
  3071. //
  3072. // The context must be non-nil and will be used for request cancellation. If
  3073. // the context is nil a panic will occur. In the future the SDK may create
  3074. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3075. // for more information on using Contexts.
  3076. func (c *EC2) CreateFpgaImageWithContext(ctx aws.Context, input *CreateFpgaImageInput, opts ...request.Option) (*CreateFpgaImageOutput, error) {
  3077. req, out := c.CreateFpgaImageRequest(input)
  3078. req.SetContext(ctx)
  3079. req.ApplyOptions(opts...)
  3080. return out, req.Send()
  3081. }
  3082. const opCreateImage = "CreateImage"
  3083. // CreateImageRequest generates a "aws/request.Request" representing the
  3084. // client's request for the CreateImage operation. The "output" return
  3085. // value will be populated with the request's response once the request completes
  3086. // successfuly.
  3087. //
  3088. // Use "Send" method on the returned Request to send the API call to the service.
  3089. // the "output" return value is not valid until after Send returns without error.
  3090. //
  3091. // See CreateImage for more information on using the CreateImage
  3092. // API call, and error handling.
  3093. //
  3094. // This method is useful when you want to inject custom logic or configuration
  3095. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3096. //
  3097. //
  3098. // // Example sending a request using the CreateImageRequest method.
  3099. // req, resp := client.CreateImageRequest(params)
  3100. //
  3101. // err := req.Send()
  3102. // if err == nil { // resp is now filled
  3103. // fmt.Println(resp)
  3104. // }
  3105. //
  3106. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateImage
  3107. func (c *EC2) CreateImageRequest(input *CreateImageInput) (req *request.Request, output *CreateImageOutput) {
  3108. op := &request.Operation{
  3109. Name: opCreateImage,
  3110. HTTPMethod: "POST",
  3111. HTTPPath: "/",
  3112. }
  3113. if input == nil {
  3114. input = &CreateImageInput{}
  3115. }
  3116. output = &CreateImageOutput{}
  3117. req = c.newRequest(op, input, output)
  3118. return
  3119. }
  3120. // CreateImage API operation for Amazon Elastic Compute Cloud.
  3121. //
  3122. // Creates an Amazon EBS-backed AMI from an Amazon EBS-backed instance that
  3123. // is either running or stopped.
  3124. //
  3125. // If you customized your instance with instance store volumes or EBS volumes
  3126. // in addition to the root device volume, the new AMI contains block device
  3127. // mapping information for those volumes. When you launch an instance from this
  3128. // new AMI, the instance automatically launches with those additional volumes.
  3129. //
  3130. // For more information, see Creating Amazon EBS-Backed Linux AMIs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html)
  3131. // in the Amazon Elastic Compute Cloud 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 CreateImage for usage and error information.
  3139. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateImage
  3140. func (c *EC2) CreateImage(input *CreateImageInput) (*CreateImageOutput, error) {
  3141. req, out := c.CreateImageRequest(input)
  3142. return out, req.Send()
  3143. }
  3144. // CreateImageWithContext is the same as CreateImage with the addition of
  3145. // the ability to pass a context and additional request options.
  3146. //
  3147. // See CreateImage 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) CreateImageWithContext(ctx aws.Context, input *CreateImageInput, opts ...request.Option) (*CreateImageOutput, error) {
  3154. req, out := c.CreateImageRequest(input)
  3155. req.SetContext(ctx)
  3156. req.ApplyOptions(opts...)
  3157. return out, req.Send()
  3158. }
  3159. const opCreateInstanceExportTask = "CreateInstanceExportTask"
  3160. // CreateInstanceExportTaskRequest generates a "aws/request.Request" representing the
  3161. // client's request for the CreateInstanceExportTask operation. The "output" return
  3162. // value will be populated with the request's response once the request completes
  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 CreateInstanceExportTask for more information on using the CreateInstanceExportTask
  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 CreateInstanceExportTaskRequest method.
  3176. // req, resp := client.CreateInstanceExportTaskRequest(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/CreateInstanceExportTask
  3184. func (c *EC2) CreateInstanceExportTaskRequest(input *CreateInstanceExportTaskInput) (req *request.Request, output *CreateInstanceExportTaskOutput) {
  3185. op := &request.Operation{
  3186. Name: opCreateInstanceExportTask,
  3187. HTTPMethod: "POST",
  3188. HTTPPath: "/",
  3189. }
  3190. if input == nil {
  3191. input = &CreateInstanceExportTaskInput{}
  3192. }
  3193. output = &CreateInstanceExportTaskOutput{}
  3194. req = c.newRequest(op, input, output)
  3195. return
  3196. }
  3197. // CreateInstanceExportTask API operation for Amazon Elastic Compute Cloud.
  3198. //
  3199. // Exports a running or stopped instance to an S3 bucket.
  3200. //
  3201. // For information about the supported operating systems, image formats, and
  3202. // known limitations for the types of instances you can export, see Exporting
  3203. // an Instance as a VM Using VM Import/Export (http://docs.aws.amazon.com/vm-import/latest/userguide/vmexport.html)
  3204. // in the VM Import/Export User Guide.
  3205. //
  3206. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3207. // with awserr.Error's Code and Message methods to get detailed information about
  3208. // the error.
  3209. //
  3210. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3211. // API operation CreateInstanceExportTask for usage and error information.
  3212. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateInstanceExportTask
  3213. func (c *EC2) CreateInstanceExportTask(input *CreateInstanceExportTaskInput) (*CreateInstanceExportTaskOutput, error) {
  3214. req, out := c.CreateInstanceExportTaskRequest(input)
  3215. return out, req.Send()
  3216. }
  3217. // CreateInstanceExportTaskWithContext is the same as CreateInstanceExportTask with the addition of
  3218. // the ability to pass a context and additional request options.
  3219. //
  3220. // See CreateInstanceExportTask for details on how to use this API operation.
  3221. //
  3222. // The context must be non-nil and will be used for request cancellation. If
  3223. // the context is nil a panic will occur. In the future the SDK may create
  3224. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3225. // for more information on using Contexts.
  3226. func (c *EC2) CreateInstanceExportTaskWithContext(ctx aws.Context, input *CreateInstanceExportTaskInput, opts ...request.Option) (*CreateInstanceExportTaskOutput, error) {
  3227. req, out := c.CreateInstanceExportTaskRequest(input)
  3228. req.SetContext(ctx)
  3229. req.ApplyOptions(opts...)
  3230. return out, req.Send()
  3231. }
  3232. const opCreateInternetGateway = "CreateInternetGateway"
  3233. // CreateInternetGatewayRequest generates a "aws/request.Request" representing the
  3234. // client's request for the CreateInternetGateway operation. The "output" return
  3235. // value will be populated with the request's response once the request completes
  3236. // successfuly.
  3237. //
  3238. // Use "Send" method on the returned Request to send the API call to the service.
  3239. // the "output" return value is not valid until after Send returns without error.
  3240. //
  3241. // See CreateInternetGateway for more information on using the CreateInternetGateway
  3242. // API call, and error handling.
  3243. //
  3244. // This method is useful when you want to inject custom logic or configuration
  3245. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3246. //
  3247. //
  3248. // // Example sending a request using the CreateInternetGatewayRequest method.
  3249. // req, resp := client.CreateInternetGatewayRequest(params)
  3250. //
  3251. // err := req.Send()
  3252. // if err == nil { // resp is now filled
  3253. // fmt.Println(resp)
  3254. // }
  3255. //
  3256. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateInternetGateway
  3257. func (c *EC2) CreateInternetGatewayRequest(input *CreateInternetGatewayInput) (req *request.Request, output *CreateInternetGatewayOutput) {
  3258. op := &request.Operation{
  3259. Name: opCreateInternetGateway,
  3260. HTTPMethod: "POST",
  3261. HTTPPath: "/",
  3262. }
  3263. if input == nil {
  3264. input = &CreateInternetGatewayInput{}
  3265. }
  3266. output = &CreateInternetGatewayOutput{}
  3267. req = c.newRequest(op, input, output)
  3268. return
  3269. }
  3270. // CreateInternetGateway API operation for Amazon Elastic Compute Cloud.
  3271. //
  3272. // Creates an Internet gateway for use with a VPC. After creating the Internet
  3273. // gateway, you attach it to a VPC using AttachInternetGateway.
  3274. //
  3275. // For more information about your VPC and Internet gateway, see the Amazon
  3276. // Virtual Private Cloud User Guide (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/).
  3277. //
  3278. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3279. // with awserr.Error's Code and Message methods to get detailed information about
  3280. // the error.
  3281. //
  3282. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3283. // API operation CreateInternetGateway for usage and error information.
  3284. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateInternetGateway
  3285. func (c *EC2) CreateInternetGateway(input *CreateInternetGatewayInput) (*CreateInternetGatewayOutput, error) {
  3286. req, out := c.CreateInternetGatewayRequest(input)
  3287. return out, req.Send()
  3288. }
  3289. // CreateInternetGatewayWithContext is the same as CreateInternetGateway with the addition of
  3290. // the ability to pass a context and additional request options.
  3291. //
  3292. // See CreateInternetGateway for details on how to use this API operation.
  3293. //
  3294. // The context must be non-nil and will be used for request cancellation. If
  3295. // the context is nil a panic will occur. In the future the SDK may create
  3296. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3297. // for more information on using Contexts.
  3298. func (c *EC2) CreateInternetGatewayWithContext(ctx aws.Context, input *CreateInternetGatewayInput, opts ...request.Option) (*CreateInternetGatewayOutput, error) {
  3299. req, out := c.CreateInternetGatewayRequest(input)
  3300. req.SetContext(ctx)
  3301. req.ApplyOptions(opts...)
  3302. return out, req.Send()
  3303. }
  3304. const opCreateKeyPair = "CreateKeyPair"
  3305. // CreateKeyPairRequest generates a "aws/request.Request" representing the
  3306. // client's request for the CreateKeyPair operation. The "output" return
  3307. // value will be populated with the request's response once the request completes
  3308. // successfuly.
  3309. //
  3310. // Use "Send" method on the returned Request to send the API call to the service.
  3311. // the "output" return value is not valid until after Send returns without error.
  3312. //
  3313. // See CreateKeyPair for more information on using the CreateKeyPair
  3314. // API call, and error handling.
  3315. //
  3316. // This method is useful when you want to inject custom logic or configuration
  3317. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3318. //
  3319. //
  3320. // // Example sending a request using the CreateKeyPairRequest method.
  3321. // req, resp := client.CreateKeyPairRequest(params)
  3322. //
  3323. // err := req.Send()
  3324. // if err == nil { // resp is now filled
  3325. // fmt.Println(resp)
  3326. // }
  3327. //
  3328. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateKeyPair
  3329. func (c *EC2) CreateKeyPairRequest(input *CreateKeyPairInput) (req *request.Request, output *CreateKeyPairOutput) {
  3330. op := &request.Operation{
  3331. Name: opCreateKeyPair,
  3332. HTTPMethod: "POST",
  3333. HTTPPath: "/",
  3334. }
  3335. if input == nil {
  3336. input = &CreateKeyPairInput{}
  3337. }
  3338. output = &CreateKeyPairOutput{}
  3339. req = c.newRequest(op, input, output)
  3340. return
  3341. }
  3342. // CreateKeyPair API operation for Amazon Elastic Compute Cloud.
  3343. //
  3344. // Creates a 2048-bit RSA key pair with the specified name. Amazon EC2 stores
  3345. // the public key and displays the private key for you to save to a file. The
  3346. // private key is returned as an unencrypted PEM encoded PKCS#1 private key.
  3347. // If a key with the specified name already exists, Amazon EC2 returns an error.
  3348. //
  3349. // You can have up to five thousand key pairs per region.
  3350. //
  3351. // The key pair returned to you is available only in the region in which you
  3352. // create it. If you prefer, you can create your own key pair using a third-party
  3353. // tool and upload it to any region using ImportKeyPair.
  3354. //
  3355. // For more information, see Key Pairs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html)
  3356. // in the Amazon Elastic Compute Cloud User Guide.
  3357. //
  3358. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3359. // with awserr.Error's Code and Message methods to get detailed information about
  3360. // the error.
  3361. //
  3362. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3363. // API operation CreateKeyPair for usage and error information.
  3364. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateKeyPair
  3365. func (c *EC2) CreateKeyPair(input *CreateKeyPairInput) (*CreateKeyPairOutput, error) {
  3366. req, out := c.CreateKeyPairRequest(input)
  3367. return out, req.Send()
  3368. }
  3369. // CreateKeyPairWithContext is the same as CreateKeyPair with the addition of
  3370. // the ability to pass a context and additional request options.
  3371. //
  3372. // See CreateKeyPair for details on how to use this API operation.
  3373. //
  3374. // The context must be non-nil and will be used for request cancellation. If
  3375. // the context is nil a panic will occur. In the future the SDK may create
  3376. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3377. // for more information on using Contexts.
  3378. func (c *EC2) CreateKeyPairWithContext(ctx aws.Context, input *CreateKeyPairInput, opts ...request.Option) (*CreateKeyPairOutput, error) {
  3379. req, out := c.CreateKeyPairRequest(input)
  3380. req.SetContext(ctx)
  3381. req.ApplyOptions(opts...)
  3382. return out, req.Send()
  3383. }
  3384. const opCreateLaunchTemplate = "CreateLaunchTemplate"
  3385. // CreateLaunchTemplateRequest generates a "aws/request.Request" representing the
  3386. // client's request for the CreateLaunchTemplate operation. The "output" return
  3387. // value will be populated with the request's response once the request completes
  3388. // successfuly.
  3389. //
  3390. // Use "Send" method on the returned Request to send the API call to the service.
  3391. // the "output" return value is not valid until after Send returns without error.
  3392. //
  3393. // See CreateLaunchTemplate for more information on using the CreateLaunchTemplate
  3394. // API call, and error handling.
  3395. //
  3396. // This method is useful when you want to inject custom logic or configuration
  3397. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3398. //
  3399. //
  3400. // // Example sending a request using the CreateLaunchTemplateRequest method.
  3401. // req, resp := client.CreateLaunchTemplateRequest(params)
  3402. //
  3403. // err := req.Send()
  3404. // if err == nil { // resp is now filled
  3405. // fmt.Println(resp)
  3406. // }
  3407. //
  3408. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateLaunchTemplate
  3409. func (c *EC2) CreateLaunchTemplateRequest(input *CreateLaunchTemplateInput) (req *request.Request, output *CreateLaunchTemplateOutput) {
  3410. op := &request.Operation{
  3411. Name: opCreateLaunchTemplate,
  3412. HTTPMethod: "POST",
  3413. HTTPPath: "/",
  3414. }
  3415. if input == nil {
  3416. input = &CreateLaunchTemplateInput{}
  3417. }
  3418. output = &CreateLaunchTemplateOutput{}
  3419. req = c.newRequest(op, input, output)
  3420. return
  3421. }
  3422. // CreateLaunchTemplate API operation for Amazon Elastic Compute Cloud.
  3423. //
  3424. // Creates a launch template. A launch template contains the parameters to launch
  3425. // an instance. When you launch an instance using RunInstances, you can specify
  3426. // a launch template instead of providing the launch parameters in the request.
  3427. //
  3428. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3429. // with awserr.Error's Code and Message methods to get detailed information about
  3430. // the error.
  3431. //
  3432. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3433. // API operation CreateLaunchTemplate for usage and error information.
  3434. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateLaunchTemplate
  3435. func (c *EC2) CreateLaunchTemplate(input *CreateLaunchTemplateInput) (*CreateLaunchTemplateOutput, error) {
  3436. req, out := c.CreateLaunchTemplateRequest(input)
  3437. return out, req.Send()
  3438. }
  3439. // CreateLaunchTemplateWithContext is the same as CreateLaunchTemplate with the addition of
  3440. // the ability to pass a context and additional request options.
  3441. //
  3442. // See CreateLaunchTemplate for details on how to use this API operation.
  3443. //
  3444. // The context must be non-nil and will be used for request cancellation. If
  3445. // the context is nil a panic will occur. In the future the SDK may create
  3446. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3447. // for more information on using Contexts.
  3448. func (c *EC2) CreateLaunchTemplateWithContext(ctx aws.Context, input *CreateLaunchTemplateInput, opts ...request.Option) (*CreateLaunchTemplateOutput, error) {
  3449. req, out := c.CreateLaunchTemplateRequest(input)
  3450. req.SetContext(ctx)
  3451. req.ApplyOptions(opts...)
  3452. return out, req.Send()
  3453. }
  3454. const opCreateLaunchTemplateVersion = "CreateLaunchTemplateVersion"
  3455. // CreateLaunchTemplateVersionRequest generates a "aws/request.Request" representing the
  3456. // client's request for the CreateLaunchTemplateVersion operation. The "output" return
  3457. // value will be populated with the request's response once the request completes
  3458. // successfuly.
  3459. //
  3460. // Use "Send" method on the returned Request to send the API call to the service.
  3461. // the "output" return value is not valid until after Send returns without error.
  3462. //
  3463. // See CreateLaunchTemplateVersion for more information on using the CreateLaunchTemplateVersion
  3464. // API call, and error handling.
  3465. //
  3466. // This method is useful when you want to inject custom logic or configuration
  3467. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3468. //
  3469. //
  3470. // // Example sending a request using the CreateLaunchTemplateVersionRequest method.
  3471. // req, resp := client.CreateLaunchTemplateVersionRequest(params)
  3472. //
  3473. // err := req.Send()
  3474. // if err == nil { // resp is now filled
  3475. // fmt.Println(resp)
  3476. // }
  3477. //
  3478. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateLaunchTemplateVersion
  3479. func (c *EC2) CreateLaunchTemplateVersionRequest(input *CreateLaunchTemplateVersionInput) (req *request.Request, output *CreateLaunchTemplateVersionOutput) {
  3480. op := &request.Operation{
  3481. Name: opCreateLaunchTemplateVersion,
  3482. HTTPMethod: "POST",
  3483. HTTPPath: "/",
  3484. }
  3485. if input == nil {
  3486. input = &CreateLaunchTemplateVersionInput{}
  3487. }
  3488. output = &CreateLaunchTemplateVersionOutput{}
  3489. req = c.newRequest(op, input, output)
  3490. return
  3491. }
  3492. // CreateLaunchTemplateVersion API operation for Amazon Elastic Compute Cloud.
  3493. //
  3494. // Creates a new version for a launch template. You can specify an existing
  3495. // version of launch template from which to base the new version.
  3496. //
  3497. // Launch template versions are numbered in the order in which they are created.
  3498. // You cannot specify, change, or replace the numbering of launch template versions.
  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 CreateLaunchTemplateVersion for usage and error information.
  3506. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateLaunchTemplateVersion
  3507. func (c *EC2) CreateLaunchTemplateVersion(input *CreateLaunchTemplateVersionInput) (*CreateLaunchTemplateVersionOutput, error) {
  3508. req, out := c.CreateLaunchTemplateVersionRequest(input)
  3509. return out, req.Send()
  3510. }
  3511. // CreateLaunchTemplateVersionWithContext is the same as CreateLaunchTemplateVersion with the addition of
  3512. // the ability to pass a context and additional request options.
  3513. //
  3514. // See CreateLaunchTemplateVersion 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) CreateLaunchTemplateVersionWithContext(ctx aws.Context, input *CreateLaunchTemplateVersionInput, opts ...request.Option) (*CreateLaunchTemplateVersionOutput, error) {
  3521. req, out := c.CreateLaunchTemplateVersionRequest(input)
  3522. req.SetContext(ctx)
  3523. req.ApplyOptions(opts...)
  3524. return out, req.Send()
  3525. }
  3526. const opCreateNatGateway = "CreateNatGateway"
  3527. // CreateNatGatewayRequest generates a "aws/request.Request" representing the
  3528. // client's request for the CreateNatGateway operation. The "output" return
  3529. // value will be populated with the request's response once the request completes
  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 CreateNatGateway for more information on using the CreateNatGateway
  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 CreateNatGatewayRequest method.
  3543. // req, resp := client.CreateNatGatewayRequest(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/CreateNatGateway
  3551. func (c *EC2) CreateNatGatewayRequest(input *CreateNatGatewayInput) (req *request.Request, output *CreateNatGatewayOutput) {
  3552. op := &request.Operation{
  3553. Name: opCreateNatGateway,
  3554. HTTPMethod: "POST",
  3555. HTTPPath: "/",
  3556. }
  3557. if input == nil {
  3558. input = &CreateNatGatewayInput{}
  3559. }
  3560. output = &CreateNatGatewayOutput{}
  3561. req = c.newRequest(op, input, output)
  3562. return
  3563. }
  3564. // CreateNatGateway API operation for Amazon Elastic Compute Cloud.
  3565. //
  3566. // Creates a NAT gateway in the specified public subnet. This action creates
  3567. // a network interface in the specified subnet with a private IP address from
  3568. // the IP address range of the subnet. Internet-bound traffic from a private
  3569. // subnet can be routed to the NAT gateway, therefore enabling instances in
  3570. // the private subnet to connect to the internet. For more information, see
  3571. // NAT Gateways (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html)
  3572. // in the Amazon Virtual Private Cloud User Guide.
  3573. //
  3574. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3575. // with awserr.Error's Code and Message methods to get detailed information about
  3576. // the error.
  3577. //
  3578. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3579. // API operation CreateNatGateway for usage and error information.
  3580. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNatGateway
  3581. func (c *EC2) CreateNatGateway(input *CreateNatGatewayInput) (*CreateNatGatewayOutput, error) {
  3582. req, out := c.CreateNatGatewayRequest(input)
  3583. return out, req.Send()
  3584. }
  3585. // CreateNatGatewayWithContext is the same as CreateNatGateway with the addition of
  3586. // the ability to pass a context and additional request options.
  3587. //
  3588. // See CreateNatGateway for details on how to use this API operation.
  3589. //
  3590. // The context must be non-nil and will be used for request cancellation. If
  3591. // the context is nil a panic will occur. In the future the SDK may create
  3592. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3593. // for more information on using Contexts.
  3594. func (c *EC2) CreateNatGatewayWithContext(ctx aws.Context, input *CreateNatGatewayInput, opts ...request.Option) (*CreateNatGatewayOutput, error) {
  3595. req, out := c.CreateNatGatewayRequest(input)
  3596. req.SetContext(ctx)
  3597. req.ApplyOptions(opts...)
  3598. return out, req.Send()
  3599. }
  3600. const opCreateNetworkAcl = "CreateNetworkAcl"
  3601. // CreateNetworkAclRequest generates a "aws/request.Request" representing the
  3602. // client's request for the CreateNetworkAcl operation. The "output" return
  3603. // value will be populated with the request's response once the request completes
  3604. // successfuly.
  3605. //
  3606. // Use "Send" method on the returned Request to send the API call to the service.
  3607. // the "output" return value is not valid until after Send returns without error.
  3608. //
  3609. // See CreateNetworkAcl for more information on using the CreateNetworkAcl
  3610. // API call, and error handling.
  3611. //
  3612. // This method is useful when you want to inject custom logic or configuration
  3613. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3614. //
  3615. //
  3616. // // Example sending a request using the CreateNetworkAclRequest method.
  3617. // req, resp := client.CreateNetworkAclRequest(params)
  3618. //
  3619. // err := req.Send()
  3620. // if err == nil { // resp is now filled
  3621. // fmt.Println(resp)
  3622. // }
  3623. //
  3624. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkAcl
  3625. func (c *EC2) CreateNetworkAclRequest(input *CreateNetworkAclInput) (req *request.Request, output *CreateNetworkAclOutput) {
  3626. op := &request.Operation{
  3627. Name: opCreateNetworkAcl,
  3628. HTTPMethod: "POST",
  3629. HTTPPath: "/",
  3630. }
  3631. if input == nil {
  3632. input = &CreateNetworkAclInput{}
  3633. }
  3634. output = &CreateNetworkAclOutput{}
  3635. req = c.newRequest(op, input, output)
  3636. return
  3637. }
  3638. // CreateNetworkAcl API operation for Amazon Elastic Compute Cloud.
  3639. //
  3640. // Creates a network ACL in a VPC. Network ACLs provide an optional layer of
  3641. // security (in addition to security groups) for the instances in your VPC.
  3642. //
  3643. // For more information about network ACLs, see Network ACLs (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_ACLs.html)
  3644. // in the Amazon Virtual Private Cloud User Guide.
  3645. //
  3646. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3647. // with awserr.Error's Code and Message methods to get detailed information about
  3648. // the error.
  3649. //
  3650. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3651. // API operation CreateNetworkAcl for usage and error information.
  3652. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkAcl
  3653. func (c *EC2) CreateNetworkAcl(input *CreateNetworkAclInput) (*CreateNetworkAclOutput, error) {
  3654. req, out := c.CreateNetworkAclRequest(input)
  3655. return out, req.Send()
  3656. }
  3657. // CreateNetworkAclWithContext is the same as CreateNetworkAcl with the addition of
  3658. // the ability to pass a context and additional request options.
  3659. //
  3660. // See CreateNetworkAcl for details on how to use this API operation.
  3661. //
  3662. // The context must be non-nil and will be used for request cancellation. If
  3663. // the context is nil a panic will occur. In the future the SDK may create
  3664. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3665. // for more information on using Contexts.
  3666. func (c *EC2) CreateNetworkAclWithContext(ctx aws.Context, input *CreateNetworkAclInput, opts ...request.Option) (*CreateNetworkAclOutput, error) {
  3667. req, out := c.CreateNetworkAclRequest(input)
  3668. req.SetContext(ctx)
  3669. req.ApplyOptions(opts...)
  3670. return out, req.Send()
  3671. }
  3672. const opCreateNetworkAclEntry = "CreateNetworkAclEntry"
  3673. // CreateNetworkAclEntryRequest generates a "aws/request.Request" representing the
  3674. // client's request for the CreateNetworkAclEntry operation. The "output" return
  3675. // value will be populated with the request's response once the request completes
  3676. // successfuly.
  3677. //
  3678. // Use "Send" method on the returned Request to send the API call to the service.
  3679. // the "output" return value is not valid until after Send returns without error.
  3680. //
  3681. // See CreateNetworkAclEntry for more information on using the CreateNetworkAclEntry
  3682. // API call, and error handling.
  3683. //
  3684. // This method is useful when you want to inject custom logic or configuration
  3685. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3686. //
  3687. //
  3688. // // Example sending a request using the CreateNetworkAclEntryRequest method.
  3689. // req, resp := client.CreateNetworkAclEntryRequest(params)
  3690. //
  3691. // err := req.Send()
  3692. // if err == nil { // resp is now filled
  3693. // fmt.Println(resp)
  3694. // }
  3695. //
  3696. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkAclEntry
  3697. func (c *EC2) CreateNetworkAclEntryRequest(input *CreateNetworkAclEntryInput) (req *request.Request, output *CreateNetworkAclEntryOutput) {
  3698. op := &request.Operation{
  3699. Name: opCreateNetworkAclEntry,
  3700. HTTPMethod: "POST",
  3701. HTTPPath: "/",
  3702. }
  3703. if input == nil {
  3704. input = &CreateNetworkAclEntryInput{}
  3705. }
  3706. output = &CreateNetworkAclEntryOutput{}
  3707. req = c.newRequest(op, input, output)
  3708. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  3709. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3710. return
  3711. }
  3712. // CreateNetworkAclEntry API operation for Amazon Elastic Compute Cloud.
  3713. //
  3714. // Creates an entry (a rule) in a network ACL with the specified rule number.
  3715. // Each network ACL has a set of numbered ingress rules and a separate set of
  3716. // numbered egress rules. When determining whether a packet should be allowed
  3717. // in or out of a subnet associated with the ACL, we process the entries in
  3718. // the ACL according to the rule numbers, in ascending order. Each network ACL
  3719. // has a set of ingress rules and a separate set of egress rules.
  3720. //
  3721. // We recommend that you leave room between the rule numbers (for example, 100,
  3722. // 110, 120, ...), and not number them one right after the other (for example,
  3723. // 101, 102, 103, ...). This makes it easier to add a rule between existing
  3724. // ones without having to renumber the rules.
  3725. //
  3726. // After you add an entry, you can't modify it; you must either replace it,
  3727. // or create an entry and delete the old one.
  3728. //
  3729. // For more information about network ACLs, see Network ACLs (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_ACLs.html)
  3730. // in the Amazon Virtual Private Cloud User Guide.
  3731. //
  3732. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3733. // with awserr.Error's Code and Message methods to get detailed information about
  3734. // the error.
  3735. //
  3736. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3737. // API operation CreateNetworkAclEntry for usage and error information.
  3738. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkAclEntry
  3739. func (c *EC2) CreateNetworkAclEntry(input *CreateNetworkAclEntryInput) (*CreateNetworkAclEntryOutput, error) {
  3740. req, out := c.CreateNetworkAclEntryRequest(input)
  3741. return out, req.Send()
  3742. }
  3743. // CreateNetworkAclEntryWithContext is the same as CreateNetworkAclEntry with the addition of
  3744. // the ability to pass a context and additional request options.
  3745. //
  3746. // See CreateNetworkAclEntry for details on how to use this API operation.
  3747. //
  3748. // The context must be non-nil and will be used for request cancellation. If
  3749. // the context is nil a panic will occur. In the future the SDK may create
  3750. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3751. // for more information on using Contexts.
  3752. func (c *EC2) CreateNetworkAclEntryWithContext(ctx aws.Context, input *CreateNetworkAclEntryInput, opts ...request.Option) (*CreateNetworkAclEntryOutput, error) {
  3753. req, out := c.CreateNetworkAclEntryRequest(input)
  3754. req.SetContext(ctx)
  3755. req.ApplyOptions(opts...)
  3756. return out, req.Send()
  3757. }
  3758. const opCreateNetworkInterface = "CreateNetworkInterface"
  3759. // CreateNetworkInterfaceRequest generates a "aws/request.Request" representing the
  3760. // client's request for the CreateNetworkInterface operation. The "output" return
  3761. // value will be populated with the request's response once the request completes
  3762. // successfuly.
  3763. //
  3764. // Use "Send" method on the returned Request to send the API call to the service.
  3765. // the "output" return value is not valid until after Send returns without error.
  3766. //
  3767. // See CreateNetworkInterface for more information on using the CreateNetworkInterface
  3768. // API call, and error handling.
  3769. //
  3770. // This method is useful when you want to inject custom logic or configuration
  3771. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3772. //
  3773. //
  3774. // // Example sending a request using the CreateNetworkInterfaceRequest method.
  3775. // req, resp := client.CreateNetworkInterfaceRequest(params)
  3776. //
  3777. // err := req.Send()
  3778. // if err == nil { // resp is now filled
  3779. // fmt.Println(resp)
  3780. // }
  3781. //
  3782. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkInterface
  3783. func (c *EC2) CreateNetworkInterfaceRequest(input *CreateNetworkInterfaceInput) (req *request.Request, output *CreateNetworkInterfaceOutput) {
  3784. op := &request.Operation{
  3785. Name: opCreateNetworkInterface,
  3786. HTTPMethod: "POST",
  3787. HTTPPath: "/",
  3788. }
  3789. if input == nil {
  3790. input = &CreateNetworkInterfaceInput{}
  3791. }
  3792. output = &CreateNetworkInterfaceOutput{}
  3793. req = c.newRequest(op, input, output)
  3794. return
  3795. }
  3796. // CreateNetworkInterface API operation for Amazon Elastic Compute Cloud.
  3797. //
  3798. // Creates a network interface in the specified subnet.
  3799. //
  3800. // For more information about network interfaces, see Elastic Network Interfaces
  3801. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html) in the
  3802. // Amazon Virtual Private Cloud User Guide.
  3803. //
  3804. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3805. // with awserr.Error's Code and Message methods to get detailed information about
  3806. // the error.
  3807. //
  3808. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3809. // API operation CreateNetworkInterface for usage and error information.
  3810. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkInterface
  3811. func (c *EC2) CreateNetworkInterface(input *CreateNetworkInterfaceInput) (*CreateNetworkInterfaceOutput, error) {
  3812. req, out := c.CreateNetworkInterfaceRequest(input)
  3813. return out, req.Send()
  3814. }
  3815. // CreateNetworkInterfaceWithContext is the same as CreateNetworkInterface with the addition of
  3816. // the ability to pass a context and additional request options.
  3817. //
  3818. // See CreateNetworkInterface for details on how to use this API operation.
  3819. //
  3820. // The context must be non-nil and will be used for request cancellation. If
  3821. // the context is nil a panic will occur. In the future the SDK may create
  3822. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3823. // for more information on using Contexts.
  3824. func (c *EC2) CreateNetworkInterfaceWithContext(ctx aws.Context, input *CreateNetworkInterfaceInput, opts ...request.Option) (*CreateNetworkInterfaceOutput, error) {
  3825. req, out := c.CreateNetworkInterfaceRequest(input)
  3826. req.SetContext(ctx)
  3827. req.ApplyOptions(opts...)
  3828. return out, req.Send()
  3829. }
  3830. const opCreateNetworkInterfacePermission = "CreateNetworkInterfacePermission"
  3831. // CreateNetworkInterfacePermissionRequest generates a "aws/request.Request" representing the
  3832. // client's request for the CreateNetworkInterfacePermission operation. The "output" return
  3833. // value will be populated with the request's response once the request completes
  3834. // successfuly.
  3835. //
  3836. // Use "Send" method on the returned Request to send the API call to the service.
  3837. // the "output" return value is not valid until after Send returns without error.
  3838. //
  3839. // See CreateNetworkInterfacePermission for more information on using the CreateNetworkInterfacePermission
  3840. // API call, and error handling.
  3841. //
  3842. // This method is useful when you want to inject custom logic or configuration
  3843. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3844. //
  3845. //
  3846. // // Example sending a request using the CreateNetworkInterfacePermissionRequest method.
  3847. // req, resp := client.CreateNetworkInterfacePermissionRequest(params)
  3848. //
  3849. // err := req.Send()
  3850. // if err == nil { // resp is now filled
  3851. // fmt.Println(resp)
  3852. // }
  3853. //
  3854. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkInterfacePermission
  3855. func (c *EC2) CreateNetworkInterfacePermissionRequest(input *CreateNetworkInterfacePermissionInput) (req *request.Request, output *CreateNetworkInterfacePermissionOutput) {
  3856. op := &request.Operation{
  3857. Name: opCreateNetworkInterfacePermission,
  3858. HTTPMethod: "POST",
  3859. HTTPPath: "/",
  3860. }
  3861. if input == nil {
  3862. input = &CreateNetworkInterfacePermissionInput{}
  3863. }
  3864. output = &CreateNetworkInterfacePermissionOutput{}
  3865. req = c.newRequest(op, input, output)
  3866. return
  3867. }
  3868. // CreateNetworkInterfacePermission API operation for Amazon Elastic Compute Cloud.
  3869. //
  3870. // Grants an AWS-authorized account permission to attach the specified network
  3871. // interface to an instance in their account.
  3872. //
  3873. // You can grant permission to a single AWS account only, and only one account
  3874. // at a time.
  3875. //
  3876. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3877. // with awserr.Error's Code and Message methods to get detailed information about
  3878. // the error.
  3879. //
  3880. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3881. // API operation CreateNetworkInterfacePermission for usage and error information.
  3882. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkInterfacePermission
  3883. func (c *EC2) CreateNetworkInterfacePermission(input *CreateNetworkInterfacePermissionInput) (*CreateNetworkInterfacePermissionOutput, error) {
  3884. req, out := c.CreateNetworkInterfacePermissionRequest(input)
  3885. return out, req.Send()
  3886. }
  3887. // CreateNetworkInterfacePermissionWithContext is the same as CreateNetworkInterfacePermission with the addition of
  3888. // the ability to pass a context and additional request options.
  3889. //
  3890. // See CreateNetworkInterfacePermission for details on how to use this API operation.
  3891. //
  3892. // The context must be non-nil and will be used for request cancellation. If
  3893. // the context is nil a panic will occur. In the future the SDK may create
  3894. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3895. // for more information on using Contexts.
  3896. func (c *EC2) CreateNetworkInterfacePermissionWithContext(ctx aws.Context, input *CreateNetworkInterfacePermissionInput, opts ...request.Option) (*CreateNetworkInterfacePermissionOutput, error) {
  3897. req, out := c.CreateNetworkInterfacePermissionRequest(input)
  3898. req.SetContext(ctx)
  3899. req.ApplyOptions(opts...)
  3900. return out, req.Send()
  3901. }
  3902. const opCreatePlacementGroup = "CreatePlacementGroup"
  3903. // CreatePlacementGroupRequest generates a "aws/request.Request" representing the
  3904. // client's request for the CreatePlacementGroup operation. The "output" return
  3905. // value will be populated with the request's response once the request completes
  3906. // successfuly.
  3907. //
  3908. // Use "Send" method on the returned Request to send the API call to the service.
  3909. // the "output" return value is not valid until after Send returns without error.
  3910. //
  3911. // See CreatePlacementGroup for more information on using the CreatePlacementGroup
  3912. // API call, and error handling.
  3913. //
  3914. // This method is useful when you want to inject custom logic or configuration
  3915. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3916. //
  3917. //
  3918. // // Example sending a request using the CreatePlacementGroupRequest method.
  3919. // req, resp := client.CreatePlacementGroupRequest(params)
  3920. //
  3921. // err := req.Send()
  3922. // if err == nil { // resp is now filled
  3923. // fmt.Println(resp)
  3924. // }
  3925. //
  3926. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreatePlacementGroup
  3927. func (c *EC2) CreatePlacementGroupRequest(input *CreatePlacementGroupInput) (req *request.Request, output *CreatePlacementGroupOutput) {
  3928. op := &request.Operation{
  3929. Name: opCreatePlacementGroup,
  3930. HTTPMethod: "POST",
  3931. HTTPPath: "/",
  3932. }
  3933. if input == nil {
  3934. input = &CreatePlacementGroupInput{}
  3935. }
  3936. output = &CreatePlacementGroupOutput{}
  3937. req = c.newRequest(op, input, output)
  3938. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  3939. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3940. return
  3941. }
  3942. // CreatePlacementGroup API operation for Amazon Elastic Compute Cloud.
  3943. //
  3944. // Creates a placement group in which to launch instances. The strategy of the
  3945. // placement group determines how the instances are organized within the group.
  3946. //
  3947. // A cluster placement group is a logical grouping of instances within a single
  3948. // Availability Zone that benefit from low network latency, high network throughput.
  3949. // A spread placement group places instances on distinct hardware.
  3950. //
  3951. // For more information, see Placement Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html)
  3952. // in the Amazon Elastic Compute Cloud User Guide.
  3953. //
  3954. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3955. // with awserr.Error's Code and Message methods to get detailed information about
  3956. // the error.
  3957. //
  3958. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3959. // API operation CreatePlacementGroup for usage and error information.
  3960. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreatePlacementGroup
  3961. func (c *EC2) CreatePlacementGroup(input *CreatePlacementGroupInput) (*CreatePlacementGroupOutput, error) {
  3962. req, out := c.CreatePlacementGroupRequest(input)
  3963. return out, req.Send()
  3964. }
  3965. // CreatePlacementGroupWithContext is the same as CreatePlacementGroup with the addition of
  3966. // the ability to pass a context and additional request options.
  3967. //
  3968. // See CreatePlacementGroup for details on how to use this API operation.
  3969. //
  3970. // The context must be non-nil and will be used for request cancellation. If
  3971. // the context is nil a panic will occur. In the future the SDK may create
  3972. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3973. // for more information on using Contexts.
  3974. func (c *EC2) CreatePlacementGroupWithContext(ctx aws.Context, input *CreatePlacementGroupInput, opts ...request.Option) (*CreatePlacementGroupOutput, error) {
  3975. req, out := c.CreatePlacementGroupRequest(input)
  3976. req.SetContext(ctx)
  3977. req.ApplyOptions(opts...)
  3978. return out, req.Send()
  3979. }
  3980. const opCreateReservedInstancesListing = "CreateReservedInstancesListing"
  3981. // CreateReservedInstancesListingRequest generates a "aws/request.Request" representing the
  3982. // client's request for the CreateReservedInstancesListing operation. The "output" return
  3983. // value will be populated with the request's response once the request completes
  3984. // successfuly.
  3985. //
  3986. // Use "Send" method on the returned Request to send the API call to the service.
  3987. // the "output" return value is not valid until after Send returns without error.
  3988. //
  3989. // See CreateReservedInstancesListing for more information on using the CreateReservedInstancesListing
  3990. // API call, and error handling.
  3991. //
  3992. // This method is useful when you want to inject custom logic or configuration
  3993. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3994. //
  3995. //
  3996. // // Example sending a request using the CreateReservedInstancesListingRequest method.
  3997. // req, resp := client.CreateReservedInstancesListingRequest(params)
  3998. //
  3999. // err := req.Send()
  4000. // if err == nil { // resp is now filled
  4001. // fmt.Println(resp)
  4002. // }
  4003. //
  4004. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateReservedInstancesListing
  4005. func (c *EC2) CreateReservedInstancesListingRequest(input *CreateReservedInstancesListingInput) (req *request.Request, output *CreateReservedInstancesListingOutput) {
  4006. op := &request.Operation{
  4007. Name: opCreateReservedInstancesListing,
  4008. HTTPMethod: "POST",
  4009. HTTPPath: "/",
  4010. }
  4011. if input == nil {
  4012. input = &CreateReservedInstancesListingInput{}
  4013. }
  4014. output = &CreateReservedInstancesListingOutput{}
  4015. req = c.newRequest(op, input, output)
  4016. return
  4017. }
  4018. // CreateReservedInstancesListing API operation for Amazon Elastic Compute Cloud.
  4019. //
  4020. // Creates a listing for Amazon EC2 Standard Reserved Instances to be sold in
  4021. // the Reserved Instance Marketplace. You can submit one Standard Reserved Instance
  4022. // listing at a time. To get a list of your Standard Reserved Instances, you
  4023. // can use the DescribeReservedInstances operation.
  4024. //
  4025. // Only Standard Reserved Instances with a capacity reservation can be sold
  4026. // in the Reserved Instance Marketplace. Convertible Reserved Instances and
  4027. // Standard Reserved Instances with a regional benefit cannot be sold.
  4028. //
  4029. // The Reserved Instance Marketplace matches sellers who want to resell Standard
  4030. // Reserved Instance capacity that they no longer need with buyers who want
  4031. // to purchase additional capacity. Reserved Instances bought and sold through
  4032. // the Reserved Instance Marketplace work like any other Reserved Instances.
  4033. //
  4034. // To sell your Standard Reserved Instances, you must first register as a seller
  4035. // in the Reserved Instance Marketplace. After completing the registration process,
  4036. // you can create a Reserved Instance Marketplace listing of some or all of
  4037. // your Standard Reserved Instances, and specify the upfront price to receive
  4038. // for them. Your Standard Reserved Instance listings then become available
  4039. // for purchase. To view the details of your Standard Reserved Instance listing,
  4040. // you can use the DescribeReservedInstancesListings operation.
  4041. //
  4042. // For more information, see Reserved Instance Marketplace (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html)
  4043. // in the Amazon Elastic Compute Cloud User Guide.
  4044. //
  4045. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4046. // with awserr.Error's Code and Message methods to get detailed information about
  4047. // the error.
  4048. //
  4049. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4050. // API operation CreateReservedInstancesListing for usage and error information.
  4051. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateReservedInstancesListing
  4052. func (c *EC2) CreateReservedInstancesListing(input *CreateReservedInstancesListingInput) (*CreateReservedInstancesListingOutput, error) {
  4053. req, out := c.CreateReservedInstancesListingRequest(input)
  4054. return out, req.Send()
  4055. }
  4056. // CreateReservedInstancesListingWithContext is the same as CreateReservedInstancesListing with the addition of
  4057. // the ability to pass a context and additional request options.
  4058. //
  4059. // See CreateReservedInstancesListing for details on how to use this API operation.
  4060. //
  4061. // The context must be non-nil and will be used for request cancellation. If
  4062. // the context is nil a panic will occur. In the future the SDK may create
  4063. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4064. // for more information on using Contexts.
  4065. func (c *EC2) CreateReservedInstancesListingWithContext(ctx aws.Context, input *CreateReservedInstancesListingInput, opts ...request.Option) (*CreateReservedInstancesListingOutput, error) {
  4066. req, out := c.CreateReservedInstancesListingRequest(input)
  4067. req.SetContext(ctx)
  4068. req.ApplyOptions(opts...)
  4069. return out, req.Send()
  4070. }
  4071. const opCreateRoute = "CreateRoute"
  4072. // CreateRouteRequest generates a "aws/request.Request" representing the
  4073. // client's request for the CreateRoute operation. The "output" return
  4074. // value will be populated with the request's response once the request completes
  4075. // successfuly.
  4076. //
  4077. // Use "Send" method on the returned Request to send the API call to the service.
  4078. // the "output" return value is not valid until after Send returns without error.
  4079. //
  4080. // See CreateRoute for more information on using the CreateRoute
  4081. // API call, and error handling.
  4082. //
  4083. // This method is useful when you want to inject custom logic or configuration
  4084. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4085. //
  4086. //
  4087. // // Example sending a request using the CreateRouteRequest method.
  4088. // req, resp := client.CreateRouteRequest(params)
  4089. //
  4090. // err := req.Send()
  4091. // if err == nil { // resp is now filled
  4092. // fmt.Println(resp)
  4093. // }
  4094. //
  4095. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateRoute
  4096. func (c *EC2) CreateRouteRequest(input *CreateRouteInput) (req *request.Request, output *CreateRouteOutput) {
  4097. op := &request.Operation{
  4098. Name: opCreateRoute,
  4099. HTTPMethod: "POST",
  4100. HTTPPath: "/",
  4101. }
  4102. if input == nil {
  4103. input = &CreateRouteInput{}
  4104. }
  4105. output = &CreateRouteOutput{}
  4106. req = c.newRequest(op, input, output)
  4107. return
  4108. }
  4109. // CreateRoute API operation for Amazon Elastic Compute Cloud.
  4110. //
  4111. // Creates a route in a route table within a VPC.
  4112. //
  4113. // You must specify one of the following targets: Internet gateway or virtual
  4114. // private gateway, NAT instance, NAT gateway, VPC peering connection, network
  4115. // interface, or egress-only Internet gateway.
  4116. //
  4117. // When determining how to route traffic, we use the route with the most specific
  4118. // match. For example, traffic is destined for the IPv4 address 192.0.2.3, and
  4119. // the route table includes the following two IPv4 routes:
  4120. //
  4121. // * 192.0.2.0/24 (goes to some target A)
  4122. //
  4123. // * 192.0.2.0/28 (goes to some target B)
  4124. //
  4125. // Both routes apply to the traffic destined for 192.0.2.3. However, the second
  4126. // route in the list covers a smaller number of IP addresses and is therefore
  4127. // more specific, so we use that route to determine where to target the traffic.
  4128. //
  4129. // For more information about route tables, see Route Tables (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html)
  4130. // in the Amazon Virtual Private Cloud User Guide.
  4131. //
  4132. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4133. // with awserr.Error's Code and Message methods to get detailed information about
  4134. // the error.
  4135. //
  4136. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4137. // API operation CreateRoute for usage and error information.
  4138. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateRoute
  4139. func (c *EC2) CreateRoute(input *CreateRouteInput) (*CreateRouteOutput, error) {
  4140. req, out := c.CreateRouteRequest(input)
  4141. return out, req.Send()
  4142. }
  4143. // CreateRouteWithContext is the same as CreateRoute with the addition of
  4144. // the ability to pass a context and additional request options.
  4145. //
  4146. // See CreateRoute for details on how to use this API operation.
  4147. //
  4148. // The context must be non-nil and will be used for request cancellation. If
  4149. // the context is nil a panic will occur. In the future the SDK may create
  4150. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4151. // for more information on using Contexts.
  4152. func (c *EC2) CreateRouteWithContext(ctx aws.Context, input *CreateRouteInput, opts ...request.Option) (*CreateRouteOutput, error) {
  4153. req, out := c.CreateRouteRequest(input)
  4154. req.SetContext(ctx)
  4155. req.ApplyOptions(opts...)
  4156. return out, req.Send()
  4157. }
  4158. const opCreateRouteTable = "CreateRouteTable"
  4159. // CreateRouteTableRequest generates a "aws/request.Request" representing the
  4160. // client's request for the CreateRouteTable operation. The "output" return
  4161. // value will be populated with the request's response once the request completes
  4162. // successfuly.
  4163. //
  4164. // Use "Send" method on the returned Request to send the API call to the service.
  4165. // the "output" return value is not valid until after Send returns without error.
  4166. //
  4167. // See CreateRouteTable for more information on using the CreateRouteTable
  4168. // API call, and error handling.
  4169. //
  4170. // This method is useful when you want to inject custom logic or configuration
  4171. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4172. //
  4173. //
  4174. // // Example sending a request using the CreateRouteTableRequest method.
  4175. // req, resp := client.CreateRouteTableRequest(params)
  4176. //
  4177. // err := req.Send()
  4178. // if err == nil { // resp is now filled
  4179. // fmt.Println(resp)
  4180. // }
  4181. //
  4182. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateRouteTable
  4183. func (c *EC2) CreateRouteTableRequest(input *CreateRouteTableInput) (req *request.Request, output *CreateRouteTableOutput) {
  4184. op := &request.Operation{
  4185. Name: opCreateRouteTable,
  4186. HTTPMethod: "POST",
  4187. HTTPPath: "/",
  4188. }
  4189. if input == nil {
  4190. input = &CreateRouteTableInput{}
  4191. }
  4192. output = &CreateRouteTableOutput{}
  4193. req = c.newRequest(op, input, output)
  4194. return
  4195. }
  4196. // CreateRouteTable API operation for Amazon Elastic Compute Cloud.
  4197. //
  4198. // Creates a route table for the specified VPC. After you create a route table,
  4199. // you can add routes and associate the table with a subnet.
  4200. //
  4201. // For more information about route tables, see Route Tables (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html)
  4202. // in the Amazon Virtual Private Cloud User Guide.
  4203. //
  4204. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4205. // with awserr.Error's Code and Message methods to get detailed information about
  4206. // the error.
  4207. //
  4208. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4209. // API operation CreateRouteTable for usage and error information.
  4210. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateRouteTable
  4211. func (c *EC2) CreateRouteTable(input *CreateRouteTableInput) (*CreateRouteTableOutput, error) {
  4212. req, out := c.CreateRouteTableRequest(input)
  4213. return out, req.Send()
  4214. }
  4215. // CreateRouteTableWithContext is the same as CreateRouteTable with the addition of
  4216. // the ability to pass a context and additional request options.
  4217. //
  4218. // See CreateRouteTable for details on how to use this API operation.
  4219. //
  4220. // The context must be non-nil and will be used for request cancellation. If
  4221. // the context is nil a panic will occur. In the future the SDK may create
  4222. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4223. // for more information on using Contexts.
  4224. func (c *EC2) CreateRouteTableWithContext(ctx aws.Context, input *CreateRouteTableInput, opts ...request.Option) (*CreateRouteTableOutput, error) {
  4225. req, out := c.CreateRouteTableRequest(input)
  4226. req.SetContext(ctx)
  4227. req.ApplyOptions(opts...)
  4228. return out, req.Send()
  4229. }
  4230. const opCreateSecurityGroup = "CreateSecurityGroup"
  4231. // CreateSecurityGroupRequest generates a "aws/request.Request" representing the
  4232. // client's request for the CreateSecurityGroup operation. The "output" return
  4233. // value will be populated with the request's response once the request completes
  4234. // successfuly.
  4235. //
  4236. // Use "Send" method on the returned Request to send the API call to the service.
  4237. // the "output" return value is not valid until after Send returns without error.
  4238. //
  4239. // See CreateSecurityGroup for more information on using the CreateSecurityGroup
  4240. // API call, and error handling.
  4241. //
  4242. // This method is useful when you want to inject custom logic or configuration
  4243. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4244. //
  4245. //
  4246. // // Example sending a request using the CreateSecurityGroupRequest method.
  4247. // req, resp := client.CreateSecurityGroupRequest(params)
  4248. //
  4249. // err := req.Send()
  4250. // if err == nil { // resp is now filled
  4251. // fmt.Println(resp)
  4252. // }
  4253. //
  4254. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSecurityGroup
  4255. func (c *EC2) CreateSecurityGroupRequest(input *CreateSecurityGroupInput) (req *request.Request, output *CreateSecurityGroupOutput) {
  4256. op := &request.Operation{
  4257. Name: opCreateSecurityGroup,
  4258. HTTPMethod: "POST",
  4259. HTTPPath: "/",
  4260. }
  4261. if input == nil {
  4262. input = &CreateSecurityGroupInput{}
  4263. }
  4264. output = &CreateSecurityGroupOutput{}
  4265. req = c.newRequest(op, input, output)
  4266. return
  4267. }
  4268. // CreateSecurityGroup API operation for Amazon Elastic Compute Cloud.
  4269. //
  4270. // Creates a security group.
  4271. //
  4272. // A security group is for use with instances either in the EC2-Classic platform
  4273. // or in a specific VPC. For more information, see Amazon EC2 Security Groups
  4274. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html)
  4275. // in the Amazon Elastic Compute Cloud User Guide and Security Groups for Your
  4276. // VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html)
  4277. // in the Amazon Virtual Private Cloud User Guide.
  4278. //
  4279. // EC2-Classic: You can have up to 500 security groups.
  4280. //
  4281. // EC2-VPC: You can create up to 500 security groups per VPC.
  4282. //
  4283. // When you create a security group, you specify a friendly name of your choice.
  4284. // You can have a security group for use in EC2-Classic with the same name as
  4285. // a security group for use in a VPC. However, you can't have two security groups
  4286. // for use in EC2-Classic with the same name or two security groups for use
  4287. // in a VPC with the same name.
  4288. //
  4289. // You have a default security group for use in EC2-Classic and a default security
  4290. // group for use in your VPC. If you don't specify a security group when you
  4291. // launch an instance, the instance is launched into the appropriate default
  4292. // security group. A default security group includes a default rule that grants
  4293. // instances unrestricted network access to each other.
  4294. //
  4295. // You can add or remove rules from your security groups using AuthorizeSecurityGroupIngress,
  4296. // AuthorizeSecurityGroupEgress, RevokeSecurityGroupIngress, and RevokeSecurityGroupEgress.
  4297. //
  4298. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4299. // with awserr.Error's Code and Message methods to get detailed information about
  4300. // the error.
  4301. //
  4302. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4303. // API operation CreateSecurityGroup for usage and error information.
  4304. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSecurityGroup
  4305. func (c *EC2) CreateSecurityGroup(input *CreateSecurityGroupInput) (*CreateSecurityGroupOutput, error) {
  4306. req, out := c.CreateSecurityGroupRequest(input)
  4307. return out, req.Send()
  4308. }
  4309. // CreateSecurityGroupWithContext is the same as CreateSecurityGroup with the addition of
  4310. // the ability to pass a context and additional request options.
  4311. //
  4312. // See CreateSecurityGroup for details on how to use this API operation.
  4313. //
  4314. // The context must be non-nil and will be used for request cancellation. If
  4315. // the context is nil a panic will occur. In the future the SDK may create
  4316. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4317. // for more information on using Contexts.
  4318. func (c *EC2) CreateSecurityGroupWithContext(ctx aws.Context, input *CreateSecurityGroupInput, opts ...request.Option) (*CreateSecurityGroupOutput, error) {
  4319. req, out := c.CreateSecurityGroupRequest(input)
  4320. req.SetContext(ctx)
  4321. req.ApplyOptions(opts...)
  4322. return out, req.Send()
  4323. }
  4324. const opCreateSnapshot = "CreateSnapshot"
  4325. // CreateSnapshotRequest generates a "aws/request.Request" representing the
  4326. // client's request for the CreateSnapshot operation. The "output" return
  4327. // value will be populated with the request's response once the request completes
  4328. // successfuly.
  4329. //
  4330. // Use "Send" method on the returned Request to send the API call to the service.
  4331. // the "output" return value is not valid until after Send returns without error.
  4332. //
  4333. // See CreateSnapshot for more information on using the CreateSnapshot
  4334. // API call, and error handling.
  4335. //
  4336. // This method is useful when you want to inject custom logic or configuration
  4337. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4338. //
  4339. //
  4340. // // Example sending a request using the CreateSnapshotRequest method.
  4341. // req, resp := client.CreateSnapshotRequest(params)
  4342. //
  4343. // err := req.Send()
  4344. // if err == nil { // resp is now filled
  4345. // fmt.Println(resp)
  4346. // }
  4347. //
  4348. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSnapshot
  4349. func (c *EC2) CreateSnapshotRequest(input *CreateSnapshotInput) (req *request.Request, output *Snapshot) {
  4350. op := &request.Operation{
  4351. Name: opCreateSnapshot,
  4352. HTTPMethod: "POST",
  4353. HTTPPath: "/",
  4354. }
  4355. if input == nil {
  4356. input = &CreateSnapshotInput{}
  4357. }
  4358. output = &Snapshot{}
  4359. req = c.newRequest(op, input, output)
  4360. return
  4361. }
  4362. // CreateSnapshot API operation for Amazon Elastic Compute Cloud.
  4363. //
  4364. // Creates a snapshot of an EBS volume and stores it in Amazon S3. You can use
  4365. // snapshots for backups, to make copies of EBS volumes, and to save data before
  4366. // shutting down an instance.
  4367. //
  4368. // When a snapshot is created, any AWS Marketplace product codes that are associated
  4369. // with the source volume are propagated to the snapshot.
  4370. //
  4371. // You can take a snapshot of an attached volume that is in use. However, snapshots
  4372. // only capture data that has been written to your EBS volume at the time the
  4373. // snapshot command is issued; this may exclude any data that has been cached
  4374. // by any applications or the operating system. If you can pause any file systems
  4375. // on the volume long enough to take a snapshot, your snapshot should be complete.
  4376. // However, if you cannot pause all file writes to the volume, you should unmount
  4377. // the volume from within the instance, issue the snapshot command, and then
  4378. // remount the volume to ensure a consistent and complete snapshot. You may
  4379. // remount and use your volume while the snapshot status is pending.
  4380. //
  4381. // To create a snapshot for EBS volumes that serve as root devices, you should
  4382. // stop the instance before taking the snapshot.
  4383. //
  4384. // Snapshots that are taken from encrypted volumes are automatically encrypted.
  4385. // Volumes that are created from encrypted snapshots are also automatically
  4386. // encrypted. Your encrypted volumes and any associated snapshots always remain
  4387. // protected.
  4388. //
  4389. // You can tag your snapshots during creation. For more information, see Tagging
  4390. // Your Amazon EC2 Resources (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html).
  4391. //
  4392. // For more information, see Amazon Elastic Block Store (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AmazonEBS.html)
  4393. // and Amazon EBS Encryption (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html)
  4394. // in the Amazon Elastic Compute Cloud User Guide.
  4395. //
  4396. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4397. // with awserr.Error's Code and Message methods to get detailed information about
  4398. // the error.
  4399. //
  4400. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4401. // API operation CreateSnapshot for usage and error information.
  4402. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSnapshot
  4403. func (c *EC2) CreateSnapshot(input *CreateSnapshotInput) (*Snapshot, error) {
  4404. req, out := c.CreateSnapshotRequest(input)
  4405. return out, req.Send()
  4406. }
  4407. // CreateSnapshotWithContext is the same as CreateSnapshot with the addition of
  4408. // the ability to pass a context and additional request options.
  4409. //
  4410. // See CreateSnapshot for details on how to use this API operation.
  4411. //
  4412. // The context must be non-nil and will be used for request cancellation. If
  4413. // the context is nil a panic will occur. In the future the SDK may create
  4414. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4415. // for more information on using Contexts.
  4416. func (c *EC2) CreateSnapshotWithContext(ctx aws.Context, input *CreateSnapshotInput, opts ...request.Option) (*Snapshot, error) {
  4417. req, out := c.CreateSnapshotRequest(input)
  4418. req.SetContext(ctx)
  4419. req.ApplyOptions(opts...)
  4420. return out, req.Send()
  4421. }
  4422. const opCreateSpotDatafeedSubscription = "CreateSpotDatafeedSubscription"
  4423. // CreateSpotDatafeedSubscriptionRequest generates a "aws/request.Request" representing the
  4424. // client's request for the CreateSpotDatafeedSubscription operation. The "output" return
  4425. // value will be populated with the request's response once the request completes
  4426. // successfuly.
  4427. //
  4428. // Use "Send" method on the returned Request to send the API call to the service.
  4429. // the "output" return value is not valid until after Send returns without error.
  4430. //
  4431. // See CreateSpotDatafeedSubscription for more information on using the CreateSpotDatafeedSubscription
  4432. // API call, and error handling.
  4433. //
  4434. // This method is useful when you want to inject custom logic or configuration
  4435. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4436. //
  4437. //
  4438. // // Example sending a request using the CreateSpotDatafeedSubscriptionRequest method.
  4439. // req, resp := client.CreateSpotDatafeedSubscriptionRequest(params)
  4440. //
  4441. // err := req.Send()
  4442. // if err == nil { // resp is now filled
  4443. // fmt.Println(resp)
  4444. // }
  4445. //
  4446. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSpotDatafeedSubscription
  4447. func (c *EC2) CreateSpotDatafeedSubscriptionRequest(input *CreateSpotDatafeedSubscriptionInput) (req *request.Request, output *CreateSpotDatafeedSubscriptionOutput) {
  4448. op := &request.Operation{
  4449. Name: opCreateSpotDatafeedSubscription,
  4450. HTTPMethod: "POST",
  4451. HTTPPath: "/",
  4452. }
  4453. if input == nil {
  4454. input = &CreateSpotDatafeedSubscriptionInput{}
  4455. }
  4456. output = &CreateSpotDatafeedSubscriptionOutput{}
  4457. req = c.newRequest(op, input, output)
  4458. return
  4459. }
  4460. // CreateSpotDatafeedSubscription API operation for Amazon Elastic Compute Cloud.
  4461. //
  4462. // Creates a data feed for Spot Instances, enabling you to view Spot Instance
  4463. // usage logs. You can create one data feed per AWS account. For more information,
  4464. // see Spot Instance Data Feed (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-data-feeds.html)
  4465. // in the Amazon EC2 User Guide for Linux Instances.
  4466. //
  4467. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4468. // with awserr.Error's Code and Message methods to get detailed information about
  4469. // the error.
  4470. //
  4471. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4472. // API operation CreateSpotDatafeedSubscription for usage and error information.
  4473. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSpotDatafeedSubscription
  4474. func (c *EC2) CreateSpotDatafeedSubscription(input *CreateSpotDatafeedSubscriptionInput) (*CreateSpotDatafeedSubscriptionOutput, error) {
  4475. req, out := c.CreateSpotDatafeedSubscriptionRequest(input)
  4476. return out, req.Send()
  4477. }
  4478. // CreateSpotDatafeedSubscriptionWithContext is the same as CreateSpotDatafeedSubscription with the addition of
  4479. // the ability to pass a context and additional request options.
  4480. //
  4481. // See CreateSpotDatafeedSubscription for details on how to use this API operation.
  4482. //
  4483. // The context must be non-nil and will be used for request cancellation. If
  4484. // the context is nil a panic will occur. In the future the SDK may create
  4485. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4486. // for more information on using Contexts.
  4487. func (c *EC2) CreateSpotDatafeedSubscriptionWithContext(ctx aws.Context, input *CreateSpotDatafeedSubscriptionInput, opts ...request.Option) (*CreateSpotDatafeedSubscriptionOutput, error) {
  4488. req, out := c.CreateSpotDatafeedSubscriptionRequest(input)
  4489. req.SetContext(ctx)
  4490. req.ApplyOptions(opts...)
  4491. return out, req.Send()
  4492. }
  4493. const opCreateSubnet = "CreateSubnet"
  4494. // CreateSubnetRequest generates a "aws/request.Request" representing the
  4495. // client's request for the CreateSubnet operation. The "output" return
  4496. // value will be populated with the request's response once the request completes
  4497. // successfuly.
  4498. //
  4499. // Use "Send" method on the returned Request to send the API call to the service.
  4500. // the "output" return value is not valid until after Send returns without error.
  4501. //
  4502. // See CreateSubnet for more information on using the CreateSubnet
  4503. // API call, and error handling.
  4504. //
  4505. // This method is useful when you want to inject custom logic or configuration
  4506. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4507. //
  4508. //
  4509. // // Example sending a request using the CreateSubnetRequest method.
  4510. // req, resp := client.CreateSubnetRequest(params)
  4511. //
  4512. // err := req.Send()
  4513. // if err == nil { // resp is now filled
  4514. // fmt.Println(resp)
  4515. // }
  4516. //
  4517. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSubnet
  4518. func (c *EC2) CreateSubnetRequest(input *CreateSubnetInput) (req *request.Request, output *CreateSubnetOutput) {
  4519. op := &request.Operation{
  4520. Name: opCreateSubnet,
  4521. HTTPMethod: "POST",
  4522. HTTPPath: "/",
  4523. }
  4524. if input == nil {
  4525. input = &CreateSubnetInput{}
  4526. }
  4527. output = &CreateSubnetOutput{}
  4528. req = c.newRequest(op, input, output)
  4529. return
  4530. }
  4531. // CreateSubnet API operation for Amazon Elastic Compute Cloud.
  4532. //
  4533. // Creates a subnet in an existing VPC.
  4534. //
  4535. // When you create each subnet, you provide the VPC ID and the IPv4 CIDR block
  4536. // you want for the subnet. After you create a subnet, you can't change its
  4537. // CIDR block. The size of the subnet's IPv4 CIDR block can be the same as a
  4538. // VPC's IPv4 CIDR block, or a subset of a VPC's IPv4 CIDR block. If you create
  4539. // more than one subnet in a VPC, the subnets' CIDR blocks must not overlap.
  4540. // The smallest IPv4 subnet (and VPC) you can create uses a /28 netmask (16
  4541. // IPv4 addresses), and the largest uses a /16 netmask (65,536 IPv4 addresses).
  4542. //
  4543. // If you've associated an IPv6 CIDR block with your VPC, you can create a subnet
  4544. // with an IPv6 CIDR block that uses a /64 prefix length.
  4545. //
  4546. // AWS reserves both the first four and the last IPv4 address in each subnet's
  4547. // CIDR block. They're not available for use.
  4548. //
  4549. // If you add more than one subnet to a VPC, they're set up in a star topology
  4550. // with a logical router in the middle.
  4551. //
  4552. // If you launch an instance in a VPC using an Amazon EBS-backed AMI, the IP
  4553. // address doesn't change if you stop and restart the instance (unlike a similar
  4554. // instance launched outside a VPC, which gets a new IP address when restarted).
  4555. // It's therefore possible to have a subnet with no running instances (they're
  4556. // all stopped), but no remaining IP addresses available.
  4557. //
  4558. // For more information about subnets, see Your VPC and Subnets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Subnets.html)
  4559. // in the Amazon Virtual Private Cloud User Guide.
  4560. //
  4561. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4562. // with awserr.Error's Code and Message methods to get detailed information about
  4563. // the error.
  4564. //
  4565. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4566. // API operation CreateSubnet for usage and error information.
  4567. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSubnet
  4568. func (c *EC2) CreateSubnet(input *CreateSubnetInput) (*CreateSubnetOutput, error) {
  4569. req, out := c.CreateSubnetRequest(input)
  4570. return out, req.Send()
  4571. }
  4572. // CreateSubnetWithContext is the same as CreateSubnet with the addition of
  4573. // the ability to pass a context and additional request options.
  4574. //
  4575. // See CreateSubnet for details on how to use this API operation.
  4576. //
  4577. // The context must be non-nil and will be used for request cancellation. If
  4578. // the context is nil a panic will occur. In the future the SDK may create
  4579. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4580. // for more information on using Contexts.
  4581. func (c *EC2) CreateSubnetWithContext(ctx aws.Context, input *CreateSubnetInput, opts ...request.Option) (*CreateSubnetOutput, error) {
  4582. req, out := c.CreateSubnetRequest(input)
  4583. req.SetContext(ctx)
  4584. req.ApplyOptions(opts...)
  4585. return out, req.Send()
  4586. }
  4587. const opCreateTags = "CreateTags"
  4588. // CreateTagsRequest generates a "aws/request.Request" representing the
  4589. // client's request for the CreateTags operation. The "output" return
  4590. // value will be populated with the request's response once the request completes
  4591. // successfuly.
  4592. //
  4593. // Use "Send" method on the returned Request to send the API call to the service.
  4594. // the "output" return value is not valid until after Send returns without error.
  4595. //
  4596. // See CreateTags for more information on using the CreateTags
  4597. // API call, and error handling.
  4598. //
  4599. // This method is useful when you want to inject custom logic or configuration
  4600. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4601. //
  4602. //
  4603. // // Example sending a request using the CreateTagsRequest method.
  4604. // req, resp := client.CreateTagsRequest(params)
  4605. //
  4606. // err := req.Send()
  4607. // if err == nil { // resp is now filled
  4608. // fmt.Println(resp)
  4609. // }
  4610. //
  4611. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTags
  4612. func (c *EC2) CreateTagsRequest(input *CreateTagsInput) (req *request.Request, output *CreateTagsOutput) {
  4613. op := &request.Operation{
  4614. Name: opCreateTags,
  4615. HTTPMethod: "POST",
  4616. HTTPPath: "/",
  4617. }
  4618. if input == nil {
  4619. input = &CreateTagsInput{}
  4620. }
  4621. output = &CreateTagsOutput{}
  4622. req = c.newRequest(op, input, output)
  4623. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  4624. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  4625. return
  4626. }
  4627. // CreateTags API operation for Amazon Elastic Compute Cloud.
  4628. //
  4629. // Adds or overwrites one or more tags for the specified Amazon EC2 resource
  4630. // or resources. Each resource can have a maximum of 50 tags. Each tag consists
  4631. // of a key and optional value. Tag keys must be unique per resource.
  4632. //
  4633. // For more information about tags, see Tagging Your Resources (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html)
  4634. // in the Amazon Elastic Compute Cloud User Guide. For more information about
  4635. // creating IAM policies that control users' access to resources based on tags,
  4636. // see Supported Resource-Level Permissions for Amazon EC2 API Actions (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-iam-actions-resources.html)
  4637. // in the Amazon Elastic Compute Cloud User Guide.
  4638. //
  4639. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4640. // with awserr.Error's Code and Message methods to get detailed information about
  4641. // the error.
  4642. //
  4643. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4644. // API operation CreateTags for usage and error information.
  4645. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTags
  4646. func (c *EC2) CreateTags(input *CreateTagsInput) (*CreateTagsOutput, error) {
  4647. req, out := c.CreateTagsRequest(input)
  4648. return out, req.Send()
  4649. }
  4650. // CreateTagsWithContext is the same as CreateTags with the addition of
  4651. // the ability to pass a context and additional request options.
  4652. //
  4653. // See CreateTags for details on how to use this API operation.
  4654. //
  4655. // The context must be non-nil and will be used for request cancellation. If
  4656. // the context is nil a panic will occur. In the future the SDK may create
  4657. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4658. // for more information on using Contexts.
  4659. func (c *EC2) CreateTagsWithContext(ctx aws.Context, input *CreateTagsInput, opts ...request.Option) (*CreateTagsOutput, error) {
  4660. req, out := c.CreateTagsRequest(input)
  4661. req.SetContext(ctx)
  4662. req.ApplyOptions(opts...)
  4663. return out, req.Send()
  4664. }
  4665. const opCreateVolume = "CreateVolume"
  4666. // CreateVolumeRequest generates a "aws/request.Request" representing the
  4667. // client's request for the CreateVolume operation. The "output" return
  4668. // value will be populated with the request's response once the request completes
  4669. // successfuly.
  4670. //
  4671. // Use "Send" method on the returned Request to send the API call to the service.
  4672. // the "output" return value is not valid until after Send returns without error.
  4673. //
  4674. // See CreateVolume for more information on using the CreateVolume
  4675. // API call, and error handling.
  4676. //
  4677. // This method is useful when you want to inject custom logic or configuration
  4678. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4679. //
  4680. //
  4681. // // Example sending a request using the CreateVolumeRequest method.
  4682. // req, resp := client.CreateVolumeRequest(params)
  4683. //
  4684. // err := req.Send()
  4685. // if err == nil { // resp is now filled
  4686. // fmt.Println(resp)
  4687. // }
  4688. //
  4689. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVolume
  4690. func (c *EC2) CreateVolumeRequest(input *CreateVolumeInput) (req *request.Request, output *Volume) {
  4691. op := &request.Operation{
  4692. Name: opCreateVolume,
  4693. HTTPMethod: "POST",
  4694. HTTPPath: "/",
  4695. }
  4696. if input == nil {
  4697. input = &CreateVolumeInput{}
  4698. }
  4699. output = &Volume{}
  4700. req = c.newRequest(op, input, output)
  4701. return
  4702. }
  4703. // CreateVolume API operation for Amazon Elastic Compute Cloud.
  4704. //
  4705. // Creates an EBS volume that can be attached to an instance in the same Availability
  4706. // Zone. The volume is created in the regional endpoint that you send the HTTP
  4707. // request to. For more information see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  4708. //
  4709. // You can create a new empty volume or restore a volume from an EBS snapshot.
  4710. // Any AWS Marketplace product codes from the snapshot are propagated to the
  4711. // volume.
  4712. //
  4713. // You can create encrypted volumes with the Encrypted parameter. Encrypted
  4714. // volumes may only be attached to instances that support Amazon EBS encryption.
  4715. // Volumes that are created from encrypted snapshots are also automatically
  4716. // encrypted. For more information, see Amazon EBS Encryption (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html)
  4717. // in the Amazon Elastic Compute Cloud User Guide.
  4718. //
  4719. // You can tag your volumes during creation. For more information, see Tagging
  4720. // Your Amazon EC2 Resources (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html).
  4721. //
  4722. // For more information, see Creating an Amazon EBS Volume (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-creating-volume.html)
  4723. // in the Amazon Elastic Compute Cloud User Guide.
  4724. //
  4725. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4726. // with awserr.Error's Code and Message methods to get detailed information about
  4727. // the error.
  4728. //
  4729. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4730. // API operation CreateVolume for usage and error information.
  4731. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVolume
  4732. func (c *EC2) CreateVolume(input *CreateVolumeInput) (*Volume, error) {
  4733. req, out := c.CreateVolumeRequest(input)
  4734. return out, req.Send()
  4735. }
  4736. // CreateVolumeWithContext is the same as CreateVolume with the addition of
  4737. // the ability to pass a context and additional request options.
  4738. //
  4739. // See CreateVolume for details on how to use this API operation.
  4740. //
  4741. // The context must be non-nil and will be used for request cancellation. If
  4742. // the context is nil a panic will occur. In the future the SDK may create
  4743. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4744. // for more information on using Contexts.
  4745. func (c *EC2) CreateVolumeWithContext(ctx aws.Context, input *CreateVolumeInput, opts ...request.Option) (*Volume, error) {
  4746. req, out := c.CreateVolumeRequest(input)
  4747. req.SetContext(ctx)
  4748. req.ApplyOptions(opts...)
  4749. return out, req.Send()
  4750. }
  4751. const opCreateVpc = "CreateVpc"
  4752. // CreateVpcRequest generates a "aws/request.Request" representing the
  4753. // client's request for the CreateVpc operation. The "output" return
  4754. // value will be populated with the request's response once the request completes
  4755. // successfuly.
  4756. //
  4757. // Use "Send" method on the returned Request to send the API call to the service.
  4758. // the "output" return value is not valid until after Send returns without error.
  4759. //
  4760. // See CreateVpc for more information on using the CreateVpc
  4761. // API call, and error handling.
  4762. //
  4763. // This method is useful when you want to inject custom logic or configuration
  4764. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4765. //
  4766. //
  4767. // // Example sending a request using the CreateVpcRequest method.
  4768. // req, resp := client.CreateVpcRequest(params)
  4769. //
  4770. // err := req.Send()
  4771. // if err == nil { // resp is now filled
  4772. // fmt.Println(resp)
  4773. // }
  4774. //
  4775. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpc
  4776. func (c *EC2) CreateVpcRequest(input *CreateVpcInput) (req *request.Request, output *CreateVpcOutput) {
  4777. op := &request.Operation{
  4778. Name: opCreateVpc,
  4779. HTTPMethod: "POST",
  4780. HTTPPath: "/",
  4781. }
  4782. if input == nil {
  4783. input = &CreateVpcInput{}
  4784. }
  4785. output = &CreateVpcOutput{}
  4786. req = c.newRequest(op, input, output)
  4787. return
  4788. }
  4789. // CreateVpc API operation for Amazon Elastic Compute Cloud.
  4790. //
  4791. // Creates a VPC with the specified IPv4 CIDR block. The smallest VPC you can
  4792. // create uses a /28 netmask (16 IPv4 addresses), and the largest uses a /16
  4793. // netmask (65,536 IPv4 addresses). To help you decide how big to make your
  4794. // VPC, see Your VPC and Subnets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Subnets.html)
  4795. // in the Amazon Virtual Private Cloud User Guide.
  4796. //
  4797. // You can optionally request an Amazon-provided IPv6 CIDR block for the VPC.
  4798. // The IPv6 CIDR block uses a /56 prefix length, and is allocated from Amazon's
  4799. // pool of IPv6 addresses. You cannot choose the IPv6 range for your VPC.
  4800. //
  4801. // By default, each instance you launch in the VPC has the default DHCP options,
  4802. // which includes only a default DNS server that we provide (AmazonProvidedDNS).
  4803. // For more information about DHCP options, see DHCP Options Sets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_DHCP_Options.html)
  4804. // in the Amazon Virtual Private Cloud User Guide.
  4805. //
  4806. // You can specify the instance tenancy value for the VPC when you create it.
  4807. // You can't change this value for the VPC after you create it. For more information,
  4808. // see Dedicated Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-instance.html)
  4809. // in the Amazon Elastic Compute Cloud User Guide.
  4810. //
  4811. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4812. // with awserr.Error's Code and Message methods to get detailed information about
  4813. // the error.
  4814. //
  4815. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4816. // API operation CreateVpc for usage and error information.
  4817. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpc
  4818. func (c *EC2) CreateVpc(input *CreateVpcInput) (*CreateVpcOutput, error) {
  4819. req, out := c.CreateVpcRequest(input)
  4820. return out, req.Send()
  4821. }
  4822. // CreateVpcWithContext is the same as CreateVpc with the addition of
  4823. // the ability to pass a context and additional request options.
  4824. //
  4825. // See CreateVpc for details on how to use this API operation.
  4826. //
  4827. // The context must be non-nil and will be used for request cancellation. If
  4828. // the context is nil a panic will occur. In the future the SDK may create
  4829. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4830. // for more information on using Contexts.
  4831. func (c *EC2) CreateVpcWithContext(ctx aws.Context, input *CreateVpcInput, opts ...request.Option) (*CreateVpcOutput, error) {
  4832. req, out := c.CreateVpcRequest(input)
  4833. req.SetContext(ctx)
  4834. req.ApplyOptions(opts...)
  4835. return out, req.Send()
  4836. }
  4837. const opCreateVpcEndpoint = "CreateVpcEndpoint"
  4838. // CreateVpcEndpointRequest generates a "aws/request.Request" representing the
  4839. // client's request for the CreateVpcEndpoint operation. The "output" return
  4840. // value will be populated with the request's response once the request completes
  4841. // successfuly.
  4842. //
  4843. // Use "Send" method on the returned Request to send the API call to the service.
  4844. // the "output" return value is not valid until after Send returns without error.
  4845. //
  4846. // See CreateVpcEndpoint for more information on using the CreateVpcEndpoint
  4847. // API call, and error handling.
  4848. //
  4849. // This method is useful when you want to inject custom logic or configuration
  4850. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4851. //
  4852. //
  4853. // // Example sending a request using the CreateVpcEndpointRequest method.
  4854. // req, resp := client.CreateVpcEndpointRequest(params)
  4855. //
  4856. // err := req.Send()
  4857. // if err == nil { // resp is now filled
  4858. // fmt.Println(resp)
  4859. // }
  4860. //
  4861. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpoint
  4862. func (c *EC2) CreateVpcEndpointRequest(input *CreateVpcEndpointInput) (req *request.Request, output *CreateVpcEndpointOutput) {
  4863. op := &request.Operation{
  4864. Name: opCreateVpcEndpoint,
  4865. HTTPMethod: "POST",
  4866. HTTPPath: "/",
  4867. }
  4868. if input == nil {
  4869. input = &CreateVpcEndpointInput{}
  4870. }
  4871. output = &CreateVpcEndpointOutput{}
  4872. req = c.newRequest(op, input, output)
  4873. return
  4874. }
  4875. // CreateVpcEndpoint API operation for Amazon Elastic Compute Cloud.
  4876. //
  4877. // Creates a VPC endpoint for a specified service. An endpoint enables you to
  4878. // create a private connection between your VPC and the service. The service
  4879. // may be provided by AWS, an AWS Marketplace partner, or another AWS account.
  4880. // For more information, see VPC Endpoints (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-endpoints.html)
  4881. // in the Amazon Virtual Private Cloud User Guide.
  4882. //
  4883. // A gateway endpoint serves as a target for a route in your route table for
  4884. // traffic destined for the AWS service. You can specify an endpoint policy
  4885. // to attach to the endpoint that will control access to the service from your
  4886. // VPC. You can also specify the VPC route tables that use the endpoint.
  4887. //
  4888. // An interface endpoint is a network interface in your subnet that serves as
  4889. // an endpoint for communicating with the specified service. You can specify
  4890. // the subnets in which to create an endpoint, and the security groups to associate
  4891. // with the endpoint network interface.
  4892. //
  4893. // Use DescribeVpcEndpointServices to get a list of supported services.
  4894. //
  4895. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4896. // with awserr.Error's Code and Message methods to get detailed information about
  4897. // the error.
  4898. //
  4899. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4900. // API operation CreateVpcEndpoint for usage and error information.
  4901. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpoint
  4902. func (c *EC2) CreateVpcEndpoint(input *CreateVpcEndpointInput) (*CreateVpcEndpointOutput, error) {
  4903. req, out := c.CreateVpcEndpointRequest(input)
  4904. return out, req.Send()
  4905. }
  4906. // CreateVpcEndpointWithContext is the same as CreateVpcEndpoint with the addition of
  4907. // the ability to pass a context and additional request options.
  4908. //
  4909. // See CreateVpcEndpoint for details on how to use this API operation.
  4910. //
  4911. // The context must be non-nil and will be used for request cancellation. If
  4912. // the context is nil a panic will occur. In the future the SDK may create
  4913. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4914. // for more information on using Contexts.
  4915. func (c *EC2) CreateVpcEndpointWithContext(ctx aws.Context, input *CreateVpcEndpointInput, opts ...request.Option) (*CreateVpcEndpointOutput, error) {
  4916. req, out := c.CreateVpcEndpointRequest(input)
  4917. req.SetContext(ctx)
  4918. req.ApplyOptions(opts...)
  4919. return out, req.Send()
  4920. }
  4921. const opCreateVpcEndpointConnectionNotification = "CreateVpcEndpointConnectionNotification"
  4922. // CreateVpcEndpointConnectionNotificationRequest generates a "aws/request.Request" representing the
  4923. // client's request for the CreateVpcEndpointConnectionNotification operation. The "output" return
  4924. // value will be populated with the request's response once the request completes
  4925. // successfuly.
  4926. //
  4927. // Use "Send" method on the returned Request to send the API call to the service.
  4928. // the "output" return value is not valid until after Send returns without error.
  4929. //
  4930. // See CreateVpcEndpointConnectionNotification for more information on using the CreateVpcEndpointConnectionNotification
  4931. // API call, and error handling.
  4932. //
  4933. // This method is useful when you want to inject custom logic or configuration
  4934. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4935. //
  4936. //
  4937. // // Example sending a request using the CreateVpcEndpointConnectionNotificationRequest method.
  4938. // req, resp := client.CreateVpcEndpointConnectionNotificationRequest(params)
  4939. //
  4940. // err := req.Send()
  4941. // if err == nil { // resp is now filled
  4942. // fmt.Println(resp)
  4943. // }
  4944. //
  4945. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpointConnectionNotification
  4946. func (c *EC2) CreateVpcEndpointConnectionNotificationRequest(input *CreateVpcEndpointConnectionNotificationInput) (req *request.Request, output *CreateVpcEndpointConnectionNotificationOutput) {
  4947. op := &request.Operation{
  4948. Name: opCreateVpcEndpointConnectionNotification,
  4949. HTTPMethod: "POST",
  4950. HTTPPath: "/",
  4951. }
  4952. if input == nil {
  4953. input = &CreateVpcEndpointConnectionNotificationInput{}
  4954. }
  4955. output = &CreateVpcEndpointConnectionNotificationOutput{}
  4956. req = c.newRequest(op, input, output)
  4957. return
  4958. }
  4959. // CreateVpcEndpointConnectionNotification API operation for Amazon Elastic Compute Cloud.
  4960. //
  4961. // Creates a connection notification for a specified VPC endpoint or VPC endpoint
  4962. // service. A connection notification notifies you of specific endpoint events.
  4963. // You must create an SNS topic to receive notifications. For more information,
  4964. // see Create a Topic (http://docs.aws.amazon.com/sns/latest/dg/CreateTopic.html)
  4965. // in the Amazon Simple Notification Service Developer Guide.
  4966. //
  4967. // You can create a connection notification for interface endpoints only.
  4968. //
  4969. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4970. // with awserr.Error's Code and Message methods to get detailed information about
  4971. // the error.
  4972. //
  4973. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4974. // API operation CreateVpcEndpointConnectionNotification for usage and error information.
  4975. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpointConnectionNotification
  4976. func (c *EC2) CreateVpcEndpointConnectionNotification(input *CreateVpcEndpointConnectionNotificationInput) (*CreateVpcEndpointConnectionNotificationOutput, error) {
  4977. req, out := c.CreateVpcEndpointConnectionNotificationRequest(input)
  4978. return out, req.Send()
  4979. }
  4980. // CreateVpcEndpointConnectionNotificationWithContext is the same as CreateVpcEndpointConnectionNotification with the addition of
  4981. // the ability to pass a context and additional request options.
  4982. //
  4983. // See CreateVpcEndpointConnectionNotification for details on how to use this API operation.
  4984. //
  4985. // The context must be non-nil and will be used for request cancellation. If
  4986. // the context is nil a panic will occur. In the future the SDK may create
  4987. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4988. // for more information on using Contexts.
  4989. func (c *EC2) CreateVpcEndpointConnectionNotificationWithContext(ctx aws.Context, input *CreateVpcEndpointConnectionNotificationInput, opts ...request.Option) (*CreateVpcEndpointConnectionNotificationOutput, error) {
  4990. req, out := c.CreateVpcEndpointConnectionNotificationRequest(input)
  4991. req.SetContext(ctx)
  4992. req.ApplyOptions(opts...)
  4993. return out, req.Send()
  4994. }
  4995. const opCreateVpcEndpointServiceConfiguration = "CreateVpcEndpointServiceConfiguration"
  4996. // CreateVpcEndpointServiceConfigurationRequest generates a "aws/request.Request" representing the
  4997. // client's request for the CreateVpcEndpointServiceConfiguration operation. The "output" return
  4998. // value will be populated with the request's response once the request completes
  4999. // successfuly.
  5000. //
  5001. // Use "Send" method on the returned Request to send the API call to the service.
  5002. // the "output" return value is not valid until after Send returns without error.
  5003. //
  5004. // See CreateVpcEndpointServiceConfiguration for more information on using the CreateVpcEndpointServiceConfiguration
  5005. // API call, and error handling.
  5006. //
  5007. // This method is useful when you want to inject custom logic or configuration
  5008. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5009. //
  5010. //
  5011. // // Example sending a request using the CreateVpcEndpointServiceConfigurationRequest method.
  5012. // req, resp := client.CreateVpcEndpointServiceConfigurationRequest(params)
  5013. //
  5014. // err := req.Send()
  5015. // if err == nil { // resp is now filled
  5016. // fmt.Println(resp)
  5017. // }
  5018. //
  5019. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpointServiceConfiguration
  5020. func (c *EC2) CreateVpcEndpointServiceConfigurationRequest(input *CreateVpcEndpointServiceConfigurationInput) (req *request.Request, output *CreateVpcEndpointServiceConfigurationOutput) {
  5021. op := &request.Operation{
  5022. Name: opCreateVpcEndpointServiceConfiguration,
  5023. HTTPMethod: "POST",
  5024. HTTPPath: "/",
  5025. }
  5026. if input == nil {
  5027. input = &CreateVpcEndpointServiceConfigurationInput{}
  5028. }
  5029. output = &CreateVpcEndpointServiceConfigurationOutput{}
  5030. req = c.newRequest(op, input, output)
  5031. return
  5032. }
  5033. // CreateVpcEndpointServiceConfiguration API operation for Amazon Elastic Compute Cloud.
  5034. //
  5035. // Creates a VPC endpoint service configuration to which service consumers (AWS
  5036. // accounts, IAM users, and IAM roles) can connect. Service consumers can create
  5037. // an interface VPC endpoint to connect to your service.
  5038. //
  5039. // To create an endpoint service configuration, you must first create a Network
  5040. // Load Balancer for your service. For more information, see VPC Endpoint Services
  5041. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/endpoint-service.html)
  5042. // in the Amazon Virtual Private Cloud User Guide.
  5043. //
  5044. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5045. // with awserr.Error's Code and Message methods to get detailed information about
  5046. // the error.
  5047. //
  5048. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5049. // API operation CreateVpcEndpointServiceConfiguration for usage and error information.
  5050. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpointServiceConfiguration
  5051. func (c *EC2) CreateVpcEndpointServiceConfiguration(input *CreateVpcEndpointServiceConfigurationInput) (*CreateVpcEndpointServiceConfigurationOutput, error) {
  5052. req, out := c.CreateVpcEndpointServiceConfigurationRequest(input)
  5053. return out, req.Send()
  5054. }
  5055. // CreateVpcEndpointServiceConfigurationWithContext is the same as CreateVpcEndpointServiceConfiguration with the addition of
  5056. // the ability to pass a context and additional request options.
  5057. //
  5058. // See CreateVpcEndpointServiceConfiguration for details on how to use this API operation.
  5059. //
  5060. // The context must be non-nil and will be used for request cancellation. If
  5061. // the context is nil a panic will occur. In the future the SDK may create
  5062. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5063. // for more information on using Contexts.
  5064. func (c *EC2) CreateVpcEndpointServiceConfigurationWithContext(ctx aws.Context, input *CreateVpcEndpointServiceConfigurationInput, opts ...request.Option) (*CreateVpcEndpointServiceConfigurationOutput, error) {
  5065. req, out := c.CreateVpcEndpointServiceConfigurationRequest(input)
  5066. req.SetContext(ctx)
  5067. req.ApplyOptions(opts...)
  5068. return out, req.Send()
  5069. }
  5070. const opCreateVpcPeeringConnection = "CreateVpcPeeringConnection"
  5071. // CreateVpcPeeringConnectionRequest generates a "aws/request.Request" representing the
  5072. // client's request for the CreateVpcPeeringConnection operation. The "output" return
  5073. // value will be populated with the request's response once the request completes
  5074. // successfuly.
  5075. //
  5076. // Use "Send" method on the returned Request to send the API call to the service.
  5077. // the "output" return value is not valid until after Send returns without error.
  5078. //
  5079. // See CreateVpcPeeringConnection for more information on using the CreateVpcPeeringConnection
  5080. // API call, and error handling.
  5081. //
  5082. // This method is useful when you want to inject custom logic or configuration
  5083. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5084. //
  5085. //
  5086. // // Example sending a request using the CreateVpcPeeringConnectionRequest method.
  5087. // req, resp := client.CreateVpcPeeringConnectionRequest(params)
  5088. //
  5089. // err := req.Send()
  5090. // if err == nil { // resp is now filled
  5091. // fmt.Println(resp)
  5092. // }
  5093. //
  5094. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcPeeringConnection
  5095. func (c *EC2) CreateVpcPeeringConnectionRequest(input *CreateVpcPeeringConnectionInput) (req *request.Request, output *CreateVpcPeeringConnectionOutput) {
  5096. op := &request.Operation{
  5097. Name: opCreateVpcPeeringConnection,
  5098. HTTPMethod: "POST",
  5099. HTTPPath: "/",
  5100. }
  5101. if input == nil {
  5102. input = &CreateVpcPeeringConnectionInput{}
  5103. }
  5104. output = &CreateVpcPeeringConnectionOutput{}
  5105. req = c.newRequest(op, input, output)
  5106. return
  5107. }
  5108. // CreateVpcPeeringConnection API operation for Amazon Elastic Compute Cloud.
  5109. //
  5110. // Requests a VPC peering connection between two VPCs: a requester VPC that
  5111. // you own and an accepter VPC with which to create the connection. The accepter
  5112. // VPC can belong to another AWS account and can be in a different region to
  5113. // the requester VPC. The requester VPC and accepter VPC cannot have overlapping
  5114. // CIDR blocks.
  5115. //
  5116. // Limitations and rules apply to a VPC peering connection. For more information,
  5117. // see the limitations (http://docs.aws.amazon.com/AmazonVPC/latest/PeeringGuide/vpc-peering-basics.html#vpc-peering-limitations)
  5118. // section in the VPC Peering Guide.
  5119. //
  5120. // The owner of the accepter VPC must accept the peering request to activate
  5121. // the peering connection. The VPC peering connection request expires after
  5122. // 7 days, after which it cannot be accepted or rejected.
  5123. //
  5124. // If you create a VPC peering connection request between VPCs with overlapping
  5125. // CIDR blocks, the VPC peering connection has a status of failed.
  5126. //
  5127. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5128. // with awserr.Error's Code and Message methods to get detailed information about
  5129. // the error.
  5130. //
  5131. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5132. // API operation CreateVpcPeeringConnection for usage and error information.
  5133. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcPeeringConnection
  5134. func (c *EC2) CreateVpcPeeringConnection(input *CreateVpcPeeringConnectionInput) (*CreateVpcPeeringConnectionOutput, error) {
  5135. req, out := c.CreateVpcPeeringConnectionRequest(input)
  5136. return out, req.Send()
  5137. }
  5138. // CreateVpcPeeringConnectionWithContext is the same as CreateVpcPeeringConnection with the addition of
  5139. // the ability to pass a context and additional request options.
  5140. //
  5141. // See CreateVpcPeeringConnection for details on how to use this API operation.
  5142. //
  5143. // The context must be non-nil and will be used for request cancellation. If
  5144. // the context is nil a panic will occur. In the future the SDK may create
  5145. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5146. // for more information on using Contexts.
  5147. func (c *EC2) CreateVpcPeeringConnectionWithContext(ctx aws.Context, input *CreateVpcPeeringConnectionInput, opts ...request.Option) (*CreateVpcPeeringConnectionOutput, error) {
  5148. req, out := c.CreateVpcPeeringConnectionRequest(input)
  5149. req.SetContext(ctx)
  5150. req.ApplyOptions(opts...)
  5151. return out, req.Send()
  5152. }
  5153. const opCreateVpnConnection = "CreateVpnConnection"
  5154. // CreateVpnConnectionRequest generates a "aws/request.Request" representing the
  5155. // client's request for the CreateVpnConnection operation. The "output" return
  5156. // value will be populated with the request's response once the request completes
  5157. // successfuly.
  5158. //
  5159. // Use "Send" method on the returned Request to send the API call to the service.
  5160. // the "output" return value is not valid until after Send returns without error.
  5161. //
  5162. // See CreateVpnConnection for more information on using the CreateVpnConnection
  5163. // API call, and error handling.
  5164. //
  5165. // This method is useful when you want to inject custom logic or configuration
  5166. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5167. //
  5168. //
  5169. // // Example sending a request using the CreateVpnConnectionRequest method.
  5170. // req, resp := client.CreateVpnConnectionRequest(params)
  5171. //
  5172. // err := req.Send()
  5173. // if err == nil { // resp is now filled
  5174. // fmt.Println(resp)
  5175. // }
  5176. //
  5177. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnConnection
  5178. func (c *EC2) CreateVpnConnectionRequest(input *CreateVpnConnectionInput) (req *request.Request, output *CreateVpnConnectionOutput) {
  5179. op := &request.Operation{
  5180. Name: opCreateVpnConnection,
  5181. HTTPMethod: "POST",
  5182. HTTPPath: "/",
  5183. }
  5184. if input == nil {
  5185. input = &CreateVpnConnectionInput{}
  5186. }
  5187. output = &CreateVpnConnectionOutput{}
  5188. req = c.newRequest(op, input, output)
  5189. return
  5190. }
  5191. // CreateVpnConnection API operation for Amazon Elastic Compute Cloud.
  5192. //
  5193. // Creates a VPN connection between an existing virtual private gateway and
  5194. // a VPN customer gateway. The only supported connection type is ipsec.1.
  5195. //
  5196. // The response includes information that you need to give to your network administrator
  5197. // to configure your customer gateway.
  5198. //
  5199. // We strongly recommend that you use HTTPS when calling this operation because
  5200. // the response contains sensitive cryptographic information for configuring
  5201. // your customer gateway.
  5202. //
  5203. // If you decide to shut down your VPN connection for any reason and later create
  5204. // a new VPN connection, you must reconfigure your customer gateway with the
  5205. // new information returned from this call.
  5206. //
  5207. // This is an idempotent operation. If you perform the operation more than once,
  5208. // Amazon EC2 doesn't return an error.
  5209. //
  5210. // For more information, see AWS Managed VPN Connections (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html)
  5211. // in the 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 CreateVpnConnection for usage and error information.
  5219. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnConnection
  5220. func (c *EC2) CreateVpnConnection(input *CreateVpnConnectionInput) (*CreateVpnConnectionOutput, error) {
  5221. req, out := c.CreateVpnConnectionRequest(input)
  5222. return out, req.Send()
  5223. }
  5224. // CreateVpnConnectionWithContext is the same as CreateVpnConnection with the addition of
  5225. // the ability to pass a context and additional request options.
  5226. //
  5227. // See CreateVpnConnection 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) CreateVpnConnectionWithContext(ctx aws.Context, input *CreateVpnConnectionInput, opts ...request.Option) (*CreateVpnConnectionOutput, error) {
  5234. req, out := c.CreateVpnConnectionRequest(input)
  5235. req.SetContext(ctx)
  5236. req.ApplyOptions(opts...)
  5237. return out, req.Send()
  5238. }
  5239. const opCreateVpnConnectionRoute = "CreateVpnConnectionRoute"
  5240. // CreateVpnConnectionRouteRequest generates a "aws/request.Request" representing the
  5241. // client's request for the CreateVpnConnectionRoute operation. The "output" return
  5242. // value will be populated with the request's response once the request completes
  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 CreateVpnConnectionRoute for more information on using the CreateVpnConnectionRoute
  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 CreateVpnConnectionRouteRequest method.
  5256. // req, resp := client.CreateVpnConnectionRouteRequest(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/CreateVpnConnectionRoute
  5264. func (c *EC2) CreateVpnConnectionRouteRequest(input *CreateVpnConnectionRouteInput) (req *request.Request, output *CreateVpnConnectionRouteOutput) {
  5265. op := &request.Operation{
  5266. Name: opCreateVpnConnectionRoute,
  5267. HTTPMethod: "POST",
  5268. HTTPPath: "/",
  5269. }
  5270. if input == nil {
  5271. input = &CreateVpnConnectionRouteInput{}
  5272. }
  5273. output = &CreateVpnConnectionRouteOutput{}
  5274. req = c.newRequest(op, input, output)
  5275. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  5276. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  5277. return
  5278. }
  5279. // CreateVpnConnectionRoute API operation for Amazon Elastic Compute Cloud.
  5280. //
  5281. // Creates a static route associated with a VPN connection between an existing
  5282. // virtual private gateway and a VPN customer gateway. The static route allows
  5283. // traffic to be routed from the virtual private gateway to the VPN customer
  5284. // gateway.
  5285. //
  5286. // For more information about VPN connections, see AWS Managed VPN Connections
  5287. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html) in the
  5288. // Amazon Virtual Private Cloud User Guide.
  5289. //
  5290. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5291. // with awserr.Error's Code and Message methods to get detailed information about
  5292. // the error.
  5293. //
  5294. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5295. // API operation CreateVpnConnectionRoute for usage and error information.
  5296. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnConnectionRoute
  5297. func (c *EC2) CreateVpnConnectionRoute(input *CreateVpnConnectionRouteInput) (*CreateVpnConnectionRouteOutput, error) {
  5298. req, out := c.CreateVpnConnectionRouteRequest(input)
  5299. return out, req.Send()
  5300. }
  5301. // CreateVpnConnectionRouteWithContext is the same as CreateVpnConnectionRoute with the addition of
  5302. // the ability to pass a context and additional request options.
  5303. //
  5304. // See CreateVpnConnectionRoute for details on how to use this API operation.
  5305. //
  5306. // The context must be non-nil and will be used for request cancellation. If
  5307. // the context is nil a panic will occur. In the future the SDK may create
  5308. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5309. // for more information on using Contexts.
  5310. func (c *EC2) CreateVpnConnectionRouteWithContext(ctx aws.Context, input *CreateVpnConnectionRouteInput, opts ...request.Option) (*CreateVpnConnectionRouteOutput, error) {
  5311. req, out := c.CreateVpnConnectionRouteRequest(input)
  5312. req.SetContext(ctx)
  5313. req.ApplyOptions(opts...)
  5314. return out, req.Send()
  5315. }
  5316. const opCreateVpnGateway = "CreateVpnGateway"
  5317. // CreateVpnGatewayRequest generates a "aws/request.Request" representing the
  5318. // client's request for the CreateVpnGateway operation. The "output" return
  5319. // value will be populated with the request's response once the request completes
  5320. // successfuly.
  5321. //
  5322. // Use "Send" method on the returned Request to send the API call to the service.
  5323. // the "output" return value is not valid until after Send returns without error.
  5324. //
  5325. // See CreateVpnGateway for more information on using the CreateVpnGateway
  5326. // API call, and error handling.
  5327. //
  5328. // This method is useful when you want to inject custom logic or configuration
  5329. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5330. //
  5331. //
  5332. // // Example sending a request using the CreateVpnGatewayRequest method.
  5333. // req, resp := client.CreateVpnGatewayRequest(params)
  5334. //
  5335. // err := req.Send()
  5336. // if err == nil { // resp is now filled
  5337. // fmt.Println(resp)
  5338. // }
  5339. //
  5340. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnGateway
  5341. func (c *EC2) CreateVpnGatewayRequest(input *CreateVpnGatewayInput) (req *request.Request, output *CreateVpnGatewayOutput) {
  5342. op := &request.Operation{
  5343. Name: opCreateVpnGateway,
  5344. HTTPMethod: "POST",
  5345. HTTPPath: "/",
  5346. }
  5347. if input == nil {
  5348. input = &CreateVpnGatewayInput{}
  5349. }
  5350. output = &CreateVpnGatewayOutput{}
  5351. req = c.newRequest(op, input, output)
  5352. return
  5353. }
  5354. // CreateVpnGateway API operation for Amazon Elastic Compute Cloud.
  5355. //
  5356. // Creates a virtual private gateway. A virtual private gateway is the endpoint
  5357. // on the VPC side of your VPN connection. You can create a virtual private
  5358. // gateway before creating the VPC itself.
  5359. //
  5360. // For more information about virtual private gateways, see AWS Managed VPN
  5361. // Connections (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html)
  5362. // in the Amazon Virtual Private Cloud User Guide.
  5363. //
  5364. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5365. // with awserr.Error's Code and Message methods to get detailed information about
  5366. // the error.
  5367. //
  5368. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5369. // API operation CreateVpnGateway for usage and error information.
  5370. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnGateway
  5371. func (c *EC2) CreateVpnGateway(input *CreateVpnGatewayInput) (*CreateVpnGatewayOutput, error) {
  5372. req, out := c.CreateVpnGatewayRequest(input)
  5373. return out, req.Send()
  5374. }
  5375. // CreateVpnGatewayWithContext is the same as CreateVpnGateway with the addition of
  5376. // the ability to pass a context and additional request options.
  5377. //
  5378. // See CreateVpnGateway for details on how to use this API operation.
  5379. //
  5380. // The context must be non-nil and will be used for request cancellation. If
  5381. // the context is nil a panic will occur. In the future the SDK may create
  5382. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5383. // for more information on using Contexts.
  5384. func (c *EC2) CreateVpnGatewayWithContext(ctx aws.Context, input *CreateVpnGatewayInput, opts ...request.Option) (*CreateVpnGatewayOutput, error) {
  5385. req, out := c.CreateVpnGatewayRequest(input)
  5386. req.SetContext(ctx)
  5387. req.ApplyOptions(opts...)
  5388. return out, req.Send()
  5389. }
  5390. const opDeleteCustomerGateway = "DeleteCustomerGateway"
  5391. // DeleteCustomerGatewayRequest generates a "aws/request.Request" representing the
  5392. // client's request for the DeleteCustomerGateway operation. The "output" return
  5393. // value will be populated with the request's response once the request completes
  5394. // successfuly.
  5395. //
  5396. // Use "Send" method on the returned Request to send the API call to the service.
  5397. // the "output" return value is not valid until after Send returns without error.
  5398. //
  5399. // See DeleteCustomerGateway for more information on using the DeleteCustomerGateway
  5400. // API call, and error handling.
  5401. //
  5402. // This method is useful when you want to inject custom logic or configuration
  5403. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5404. //
  5405. //
  5406. // // Example sending a request using the DeleteCustomerGatewayRequest method.
  5407. // req, resp := client.DeleteCustomerGatewayRequest(params)
  5408. //
  5409. // err := req.Send()
  5410. // if err == nil { // resp is now filled
  5411. // fmt.Println(resp)
  5412. // }
  5413. //
  5414. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteCustomerGateway
  5415. func (c *EC2) DeleteCustomerGatewayRequest(input *DeleteCustomerGatewayInput) (req *request.Request, output *DeleteCustomerGatewayOutput) {
  5416. op := &request.Operation{
  5417. Name: opDeleteCustomerGateway,
  5418. HTTPMethod: "POST",
  5419. HTTPPath: "/",
  5420. }
  5421. if input == nil {
  5422. input = &DeleteCustomerGatewayInput{}
  5423. }
  5424. output = &DeleteCustomerGatewayOutput{}
  5425. req = c.newRequest(op, input, output)
  5426. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  5427. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  5428. return
  5429. }
  5430. // DeleteCustomerGateway API operation for Amazon Elastic Compute Cloud.
  5431. //
  5432. // Deletes the specified customer gateway. You must delete the VPN connection
  5433. // before you can delete the customer gateway.
  5434. //
  5435. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5436. // with awserr.Error's Code and Message methods to get detailed information about
  5437. // the error.
  5438. //
  5439. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5440. // API operation DeleteCustomerGateway for usage and error information.
  5441. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteCustomerGateway
  5442. func (c *EC2) DeleteCustomerGateway(input *DeleteCustomerGatewayInput) (*DeleteCustomerGatewayOutput, error) {
  5443. req, out := c.DeleteCustomerGatewayRequest(input)
  5444. return out, req.Send()
  5445. }
  5446. // DeleteCustomerGatewayWithContext is the same as DeleteCustomerGateway with the addition of
  5447. // the ability to pass a context and additional request options.
  5448. //
  5449. // See DeleteCustomerGateway for details on how to use this API operation.
  5450. //
  5451. // The context must be non-nil and will be used for request cancellation. If
  5452. // the context is nil a panic will occur. In the future the SDK may create
  5453. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5454. // for more information on using Contexts.
  5455. func (c *EC2) DeleteCustomerGatewayWithContext(ctx aws.Context, input *DeleteCustomerGatewayInput, opts ...request.Option) (*DeleteCustomerGatewayOutput, error) {
  5456. req, out := c.DeleteCustomerGatewayRequest(input)
  5457. req.SetContext(ctx)
  5458. req.ApplyOptions(opts...)
  5459. return out, req.Send()
  5460. }
  5461. const opDeleteDhcpOptions = "DeleteDhcpOptions"
  5462. // DeleteDhcpOptionsRequest generates a "aws/request.Request" representing the
  5463. // client's request for the DeleteDhcpOptions operation. The "output" return
  5464. // value will be populated with the request's response once the request completes
  5465. // successfuly.
  5466. //
  5467. // Use "Send" method on the returned Request to send the API call to the service.
  5468. // the "output" return value is not valid until after Send returns without error.
  5469. //
  5470. // See DeleteDhcpOptions for more information on using the DeleteDhcpOptions
  5471. // API call, and error handling.
  5472. //
  5473. // This method is useful when you want to inject custom logic or configuration
  5474. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5475. //
  5476. //
  5477. // // Example sending a request using the DeleteDhcpOptionsRequest method.
  5478. // req, resp := client.DeleteDhcpOptionsRequest(params)
  5479. //
  5480. // err := req.Send()
  5481. // if err == nil { // resp is now filled
  5482. // fmt.Println(resp)
  5483. // }
  5484. //
  5485. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteDhcpOptions
  5486. func (c *EC2) DeleteDhcpOptionsRequest(input *DeleteDhcpOptionsInput) (req *request.Request, output *DeleteDhcpOptionsOutput) {
  5487. op := &request.Operation{
  5488. Name: opDeleteDhcpOptions,
  5489. HTTPMethod: "POST",
  5490. HTTPPath: "/",
  5491. }
  5492. if input == nil {
  5493. input = &DeleteDhcpOptionsInput{}
  5494. }
  5495. output = &DeleteDhcpOptionsOutput{}
  5496. req = c.newRequest(op, input, output)
  5497. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  5498. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  5499. return
  5500. }
  5501. // DeleteDhcpOptions API operation for Amazon Elastic Compute Cloud.
  5502. //
  5503. // Deletes the specified set of DHCP options. You must disassociate the set
  5504. // of DHCP options before you can delete it. You can disassociate the set of
  5505. // DHCP options by associating either a new set of options or the default set
  5506. // of options with the VPC.
  5507. //
  5508. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5509. // with awserr.Error's Code and Message methods to get detailed information about
  5510. // the error.
  5511. //
  5512. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5513. // API operation DeleteDhcpOptions for usage and error information.
  5514. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteDhcpOptions
  5515. func (c *EC2) DeleteDhcpOptions(input *DeleteDhcpOptionsInput) (*DeleteDhcpOptionsOutput, error) {
  5516. req, out := c.DeleteDhcpOptionsRequest(input)
  5517. return out, req.Send()
  5518. }
  5519. // DeleteDhcpOptionsWithContext is the same as DeleteDhcpOptions with the addition of
  5520. // the ability to pass a context and additional request options.
  5521. //
  5522. // See DeleteDhcpOptions for details on how to use this API operation.
  5523. //
  5524. // The context must be non-nil and will be used for request cancellation. If
  5525. // the context is nil a panic will occur. In the future the SDK may create
  5526. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5527. // for more information on using Contexts.
  5528. func (c *EC2) DeleteDhcpOptionsWithContext(ctx aws.Context, input *DeleteDhcpOptionsInput, opts ...request.Option) (*DeleteDhcpOptionsOutput, error) {
  5529. req, out := c.DeleteDhcpOptionsRequest(input)
  5530. req.SetContext(ctx)
  5531. req.ApplyOptions(opts...)
  5532. return out, req.Send()
  5533. }
  5534. const opDeleteEgressOnlyInternetGateway = "DeleteEgressOnlyInternetGateway"
  5535. // DeleteEgressOnlyInternetGatewayRequest generates a "aws/request.Request" representing the
  5536. // client's request for the DeleteEgressOnlyInternetGateway operation. The "output" return
  5537. // value will be populated with the request's response once the request completes
  5538. // successfuly.
  5539. //
  5540. // Use "Send" method on the returned Request to send the API call to the service.
  5541. // the "output" return value is not valid until after Send returns without error.
  5542. //
  5543. // See DeleteEgressOnlyInternetGateway for more information on using the DeleteEgressOnlyInternetGateway
  5544. // API call, and error handling.
  5545. //
  5546. // This method is useful when you want to inject custom logic or configuration
  5547. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5548. //
  5549. //
  5550. // // Example sending a request using the DeleteEgressOnlyInternetGatewayRequest method.
  5551. // req, resp := client.DeleteEgressOnlyInternetGatewayRequest(params)
  5552. //
  5553. // err := req.Send()
  5554. // if err == nil { // resp is now filled
  5555. // fmt.Println(resp)
  5556. // }
  5557. //
  5558. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteEgressOnlyInternetGateway
  5559. func (c *EC2) DeleteEgressOnlyInternetGatewayRequest(input *DeleteEgressOnlyInternetGatewayInput) (req *request.Request, output *DeleteEgressOnlyInternetGatewayOutput) {
  5560. op := &request.Operation{
  5561. Name: opDeleteEgressOnlyInternetGateway,
  5562. HTTPMethod: "POST",
  5563. HTTPPath: "/",
  5564. }
  5565. if input == nil {
  5566. input = &DeleteEgressOnlyInternetGatewayInput{}
  5567. }
  5568. output = &DeleteEgressOnlyInternetGatewayOutput{}
  5569. req = c.newRequest(op, input, output)
  5570. return
  5571. }
  5572. // DeleteEgressOnlyInternetGateway API operation for Amazon Elastic Compute Cloud.
  5573. //
  5574. // Deletes an egress-only Internet gateway.
  5575. //
  5576. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5577. // with awserr.Error's Code and Message methods to get detailed information about
  5578. // the error.
  5579. //
  5580. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5581. // API operation DeleteEgressOnlyInternetGateway for usage and error information.
  5582. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteEgressOnlyInternetGateway
  5583. func (c *EC2) DeleteEgressOnlyInternetGateway(input *DeleteEgressOnlyInternetGatewayInput) (*DeleteEgressOnlyInternetGatewayOutput, error) {
  5584. req, out := c.DeleteEgressOnlyInternetGatewayRequest(input)
  5585. return out, req.Send()
  5586. }
  5587. // DeleteEgressOnlyInternetGatewayWithContext is the same as DeleteEgressOnlyInternetGateway with the addition of
  5588. // the ability to pass a context and additional request options.
  5589. //
  5590. // See DeleteEgressOnlyInternetGateway for details on how to use this API operation.
  5591. //
  5592. // The context must be non-nil and will be used for request cancellation. If
  5593. // the context is nil a panic will occur. In the future the SDK may create
  5594. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5595. // for more information on using Contexts.
  5596. func (c *EC2) DeleteEgressOnlyInternetGatewayWithContext(ctx aws.Context, input *DeleteEgressOnlyInternetGatewayInput, opts ...request.Option) (*DeleteEgressOnlyInternetGatewayOutput, error) {
  5597. req, out := c.DeleteEgressOnlyInternetGatewayRequest(input)
  5598. req.SetContext(ctx)
  5599. req.ApplyOptions(opts...)
  5600. return out, req.Send()
  5601. }
  5602. const opDeleteFleets = "DeleteFleets"
  5603. // DeleteFleetsRequest generates a "aws/request.Request" representing the
  5604. // client's request for the DeleteFleets operation. The "output" return
  5605. // value will be populated with the request's response once the request completes
  5606. // successfuly.
  5607. //
  5608. // Use "Send" method on the returned Request to send the API call to the service.
  5609. // the "output" return value is not valid until after Send returns without error.
  5610. //
  5611. // See DeleteFleets for more information on using the DeleteFleets
  5612. // API call, and error handling.
  5613. //
  5614. // This method is useful when you want to inject custom logic or configuration
  5615. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5616. //
  5617. //
  5618. // // Example sending a request using the DeleteFleetsRequest method.
  5619. // req, resp := client.DeleteFleetsRequest(params)
  5620. //
  5621. // err := req.Send()
  5622. // if err == nil { // resp is now filled
  5623. // fmt.Println(resp)
  5624. // }
  5625. //
  5626. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteFleets
  5627. func (c *EC2) DeleteFleetsRequest(input *DeleteFleetsInput) (req *request.Request, output *DeleteFleetsOutput) {
  5628. op := &request.Operation{
  5629. Name: opDeleteFleets,
  5630. HTTPMethod: "POST",
  5631. HTTPPath: "/",
  5632. }
  5633. if input == nil {
  5634. input = &DeleteFleetsInput{}
  5635. }
  5636. output = &DeleteFleetsOutput{}
  5637. req = c.newRequest(op, input, output)
  5638. return
  5639. }
  5640. // DeleteFleets API operation for Amazon Elastic Compute Cloud.
  5641. //
  5642. // Deletes the specified EC2 Fleet.
  5643. //
  5644. // After you delete an EC2 Fleet, the EC2 Fleet launches no new instances. You
  5645. // must specify whether the EC2 Fleet should also terminate its instances. If
  5646. // you terminate the instances, the EC2 Fleet enters the deleted_terminating
  5647. // state. Otherwise, the EC2 Fleet enters the deleted_running state, and the
  5648. // instances continue to run until they are interrupted or you terminate them
  5649. // manually.
  5650. //
  5651. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5652. // with awserr.Error's Code and Message methods to get detailed information about
  5653. // the error.
  5654. //
  5655. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5656. // API operation DeleteFleets for usage and error information.
  5657. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteFleets
  5658. func (c *EC2) DeleteFleets(input *DeleteFleetsInput) (*DeleteFleetsOutput, error) {
  5659. req, out := c.DeleteFleetsRequest(input)
  5660. return out, req.Send()
  5661. }
  5662. // DeleteFleetsWithContext is the same as DeleteFleets with the addition of
  5663. // the ability to pass a context and additional request options.
  5664. //
  5665. // See DeleteFleets for details on how to use this API operation.
  5666. //
  5667. // The context must be non-nil and will be used for request cancellation. If
  5668. // the context is nil a panic will occur. In the future the SDK may create
  5669. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5670. // for more information on using Contexts.
  5671. func (c *EC2) DeleteFleetsWithContext(ctx aws.Context, input *DeleteFleetsInput, opts ...request.Option) (*DeleteFleetsOutput, error) {
  5672. req, out := c.DeleteFleetsRequest(input)
  5673. req.SetContext(ctx)
  5674. req.ApplyOptions(opts...)
  5675. return out, req.Send()
  5676. }
  5677. const opDeleteFlowLogs = "DeleteFlowLogs"
  5678. // DeleteFlowLogsRequest generates a "aws/request.Request" representing the
  5679. // client's request for the DeleteFlowLogs operation. The "output" return
  5680. // value will be populated with the request's response once the request completes
  5681. // successfuly.
  5682. //
  5683. // Use "Send" method on the returned Request to send the API call to the service.
  5684. // the "output" return value is not valid until after Send returns without error.
  5685. //
  5686. // See DeleteFlowLogs for more information on using the DeleteFlowLogs
  5687. // API call, and error handling.
  5688. //
  5689. // This method is useful when you want to inject custom logic or configuration
  5690. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5691. //
  5692. //
  5693. // // Example sending a request using the DeleteFlowLogsRequest method.
  5694. // req, resp := client.DeleteFlowLogsRequest(params)
  5695. //
  5696. // err := req.Send()
  5697. // if err == nil { // resp is now filled
  5698. // fmt.Println(resp)
  5699. // }
  5700. //
  5701. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteFlowLogs
  5702. func (c *EC2) DeleteFlowLogsRequest(input *DeleteFlowLogsInput) (req *request.Request, output *DeleteFlowLogsOutput) {
  5703. op := &request.Operation{
  5704. Name: opDeleteFlowLogs,
  5705. HTTPMethod: "POST",
  5706. HTTPPath: "/",
  5707. }
  5708. if input == nil {
  5709. input = &DeleteFlowLogsInput{}
  5710. }
  5711. output = &DeleteFlowLogsOutput{}
  5712. req = c.newRequest(op, input, output)
  5713. return
  5714. }
  5715. // DeleteFlowLogs API operation for Amazon Elastic Compute Cloud.
  5716. //
  5717. // Deletes one or more flow logs.
  5718. //
  5719. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5720. // with awserr.Error's Code and Message methods to get detailed information about
  5721. // the error.
  5722. //
  5723. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5724. // API operation DeleteFlowLogs for usage and error information.
  5725. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteFlowLogs
  5726. func (c *EC2) DeleteFlowLogs(input *DeleteFlowLogsInput) (*DeleteFlowLogsOutput, error) {
  5727. req, out := c.DeleteFlowLogsRequest(input)
  5728. return out, req.Send()
  5729. }
  5730. // DeleteFlowLogsWithContext is the same as DeleteFlowLogs with the addition of
  5731. // the ability to pass a context and additional request options.
  5732. //
  5733. // See DeleteFlowLogs for details on how to use this API operation.
  5734. //
  5735. // The context must be non-nil and will be used for request cancellation. If
  5736. // the context is nil a panic will occur. In the future the SDK may create
  5737. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5738. // for more information on using Contexts.
  5739. func (c *EC2) DeleteFlowLogsWithContext(ctx aws.Context, input *DeleteFlowLogsInput, opts ...request.Option) (*DeleteFlowLogsOutput, error) {
  5740. req, out := c.DeleteFlowLogsRequest(input)
  5741. req.SetContext(ctx)
  5742. req.ApplyOptions(opts...)
  5743. return out, req.Send()
  5744. }
  5745. const opDeleteFpgaImage = "DeleteFpgaImage"
  5746. // DeleteFpgaImageRequest generates a "aws/request.Request" representing the
  5747. // client's request for the DeleteFpgaImage operation. The "output" return
  5748. // value will be populated with the request's response once the request completes
  5749. // successfuly.
  5750. //
  5751. // Use "Send" method on the returned Request to send the API call to the service.
  5752. // the "output" return value is not valid until after Send returns without error.
  5753. //
  5754. // See DeleteFpgaImage for more information on using the DeleteFpgaImage
  5755. // API call, and error handling.
  5756. //
  5757. // This method is useful when you want to inject custom logic or configuration
  5758. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5759. //
  5760. //
  5761. // // Example sending a request using the DeleteFpgaImageRequest method.
  5762. // req, resp := client.DeleteFpgaImageRequest(params)
  5763. //
  5764. // err := req.Send()
  5765. // if err == nil { // resp is now filled
  5766. // fmt.Println(resp)
  5767. // }
  5768. //
  5769. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteFpgaImage
  5770. func (c *EC2) DeleteFpgaImageRequest(input *DeleteFpgaImageInput) (req *request.Request, output *DeleteFpgaImageOutput) {
  5771. op := &request.Operation{
  5772. Name: opDeleteFpgaImage,
  5773. HTTPMethod: "POST",
  5774. HTTPPath: "/",
  5775. }
  5776. if input == nil {
  5777. input = &DeleteFpgaImageInput{}
  5778. }
  5779. output = &DeleteFpgaImageOutput{}
  5780. req = c.newRequest(op, input, output)
  5781. return
  5782. }
  5783. // DeleteFpgaImage API operation for Amazon Elastic Compute Cloud.
  5784. //
  5785. // Deletes the specified Amazon FPGA Image (AFI).
  5786. //
  5787. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5788. // with awserr.Error's Code and Message methods to get detailed information about
  5789. // the error.
  5790. //
  5791. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5792. // API operation DeleteFpgaImage for usage and error information.
  5793. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteFpgaImage
  5794. func (c *EC2) DeleteFpgaImage(input *DeleteFpgaImageInput) (*DeleteFpgaImageOutput, error) {
  5795. req, out := c.DeleteFpgaImageRequest(input)
  5796. return out, req.Send()
  5797. }
  5798. // DeleteFpgaImageWithContext is the same as DeleteFpgaImage with the addition of
  5799. // the ability to pass a context and additional request options.
  5800. //
  5801. // See DeleteFpgaImage for details on how to use this API operation.
  5802. //
  5803. // The context must be non-nil and will be used for request cancellation. If
  5804. // the context is nil a panic will occur. In the future the SDK may create
  5805. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5806. // for more information on using Contexts.
  5807. func (c *EC2) DeleteFpgaImageWithContext(ctx aws.Context, input *DeleteFpgaImageInput, opts ...request.Option) (*DeleteFpgaImageOutput, error) {
  5808. req, out := c.DeleteFpgaImageRequest(input)
  5809. req.SetContext(ctx)
  5810. req.ApplyOptions(opts...)
  5811. return out, req.Send()
  5812. }
  5813. const opDeleteInternetGateway = "DeleteInternetGateway"
  5814. // DeleteInternetGatewayRequest generates a "aws/request.Request" representing the
  5815. // client's request for the DeleteInternetGateway operation. The "output" return
  5816. // value will be populated with the request's response once the request completes
  5817. // successfuly.
  5818. //
  5819. // Use "Send" method on the returned Request to send the API call to the service.
  5820. // the "output" return value is not valid until after Send returns without error.
  5821. //
  5822. // See DeleteInternetGateway for more information on using the DeleteInternetGateway
  5823. // API call, and error handling.
  5824. //
  5825. // This method is useful when you want to inject custom logic or configuration
  5826. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5827. //
  5828. //
  5829. // // Example sending a request using the DeleteInternetGatewayRequest method.
  5830. // req, resp := client.DeleteInternetGatewayRequest(params)
  5831. //
  5832. // err := req.Send()
  5833. // if err == nil { // resp is now filled
  5834. // fmt.Println(resp)
  5835. // }
  5836. //
  5837. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteInternetGateway
  5838. func (c *EC2) DeleteInternetGatewayRequest(input *DeleteInternetGatewayInput) (req *request.Request, output *DeleteInternetGatewayOutput) {
  5839. op := &request.Operation{
  5840. Name: opDeleteInternetGateway,
  5841. HTTPMethod: "POST",
  5842. HTTPPath: "/",
  5843. }
  5844. if input == nil {
  5845. input = &DeleteInternetGatewayInput{}
  5846. }
  5847. output = &DeleteInternetGatewayOutput{}
  5848. req = c.newRequest(op, input, output)
  5849. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  5850. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  5851. return
  5852. }
  5853. // DeleteInternetGateway API operation for Amazon Elastic Compute Cloud.
  5854. //
  5855. // Deletes the specified Internet gateway. You must detach the Internet gateway
  5856. // from the VPC before you can delete it.
  5857. //
  5858. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5859. // with awserr.Error's Code and Message methods to get detailed information about
  5860. // the error.
  5861. //
  5862. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5863. // API operation DeleteInternetGateway for usage and error information.
  5864. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteInternetGateway
  5865. func (c *EC2) DeleteInternetGateway(input *DeleteInternetGatewayInput) (*DeleteInternetGatewayOutput, error) {
  5866. req, out := c.DeleteInternetGatewayRequest(input)
  5867. return out, req.Send()
  5868. }
  5869. // DeleteInternetGatewayWithContext is the same as DeleteInternetGateway with the addition of
  5870. // the ability to pass a context and additional request options.
  5871. //
  5872. // See DeleteInternetGateway for details on how to use this API operation.
  5873. //
  5874. // The context must be non-nil and will be used for request cancellation. If
  5875. // the context is nil a panic will occur. In the future the SDK may create
  5876. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5877. // for more information on using Contexts.
  5878. func (c *EC2) DeleteInternetGatewayWithContext(ctx aws.Context, input *DeleteInternetGatewayInput, opts ...request.Option) (*DeleteInternetGatewayOutput, error) {
  5879. req, out := c.DeleteInternetGatewayRequest(input)
  5880. req.SetContext(ctx)
  5881. req.ApplyOptions(opts...)
  5882. return out, req.Send()
  5883. }
  5884. const opDeleteKeyPair = "DeleteKeyPair"
  5885. // DeleteKeyPairRequest generates a "aws/request.Request" representing the
  5886. // client's request for the DeleteKeyPair operation. The "output" return
  5887. // value will be populated with the request's response once the request completes
  5888. // successfuly.
  5889. //
  5890. // Use "Send" method on the returned Request to send the API call to the service.
  5891. // the "output" return value is not valid until after Send returns without error.
  5892. //
  5893. // See DeleteKeyPair for more information on using the DeleteKeyPair
  5894. // API call, and error handling.
  5895. //
  5896. // This method is useful when you want to inject custom logic or configuration
  5897. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5898. //
  5899. //
  5900. // // Example sending a request using the DeleteKeyPairRequest method.
  5901. // req, resp := client.DeleteKeyPairRequest(params)
  5902. //
  5903. // err := req.Send()
  5904. // if err == nil { // resp is now filled
  5905. // fmt.Println(resp)
  5906. // }
  5907. //
  5908. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteKeyPair
  5909. func (c *EC2) DeleteKeyPairRequest(input *DeleteKeyPairInput) (req *request.Request, output *DeleteKeyPairOutput) {
  5910. op := &request.Operation{
  5911. Name: opDeleteKeyPair,
  5912. HTTPMethod: "POST",
  5913. HTTPPath: "/",
  5914. }
  5915. if input == nil {
  5916. input = &DeleteKeyPairInput{}
  5917. }
  5918. output = &DeleteKeyPairOutput{}
  5919. req = c.newRequest(op, input, output)
  5920. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  5921. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  5922. return
  5923. }
  5924. // DeleteKeyPair API operation for Amazon Elastic Compute Cloud.
  5925. //
  5926. // Deletes the specified key pair, by removing the public key from Amazon EC2.
  5927. //
  5928. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5929. // with awserr.Error's Code and Message methods to get detailed information about
  5930. // the error.
  5931. //
  5932. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5933. // API operation DeleteKeyPair for usage and error information.
  5934. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteKeyPair
  5935. func (c *EC2) DeleteKeyPair(input *DeleteKeyPairInput) (*DeleteKeyPairOutput, error) {
  5936. req, out := c.DeleteKeyPairRequest(input)
  5937. return out, req.Send()
  5938. }
  5939. // DeleteKeyPairWithContext is the same as DeleteKeyPair with the addition of
  5940. // the ability to pass a context and additional request options.
  5941. //
  5942. // See DeleteKeyPair for details on how to use this API operation.
  5943. //
  5944. // The context must be non-nil and will be used for request cancellation. If
  5945. // the context is nil a panic will occur. In the future the SDK may create
  5946. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5947. // for more information on using Contexts.
  5948. func (c *EC2) DeleteKeyPairWithContext(ctx aws.Context, input *DeleteKeyPairInput, opts ...request.Option) (*DeleteKeyPairOutput, error) {
  5949. req, out := c.DeleteKeyPairRequest(input)
  5950. req.SetContext(ctx)
  5951. req.ApplyOptions(opts...)
  5952. return out, req.Send()
  5953. }
  5954. const opDeleteLaunchTemplate = "DeleteLaunchTemplate"
  5955. // DeleteLaunchTemplateRequest generates a "aws/request.Request" representing the
  5956. // client's request for the DeleteLaunchTemplate operation. The "output" return
  5957. // value will be populated with the request's response once the request completes
  5958. // successfuly.
  5959. //
  5960. // Use "Send" method on the returned Request to send the API call to the service.
  5961. // the "output" return value is not valid until after Send returns without error.
  5962. //
  5963. // See DeleteLaunchTemplate for more information on using the DeleteLaunchTemplate
  5964. // API call, and error handling.
  5965. //
  5966. // This method is useful when you want to inject custom logic or configuration
  5967. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5968. //
  5969. //
  5970. // // Example sending a request using the DeleteLaunchTemplateRequest method.
  5971. // req, resp := client.DeleteLaunchTemplateRequest(params)
  5972. //
  5973. // err := req.Send()
  5974. // if err == nil { // resp is now filled
  5975. // fmt.Println(resp)
  5976. // }
  5977. //
  5978. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteLaunchTemplate
  5979. func (c *EC2) DeleteLaunchTemplateRequest(input *DeleteLaunchTemplateInput) (req *request.Request, output *DeleteLaunchTemplateOutput) {
  5980. op := &request.Operation{
  5981. Name: opDeleteLaunchTemplate,
  5982. HTTPMethod: "POST",
  5983. HTTPPath: "/",
  5984. }
  5985. if input == nil {
  5986. input = &DeleteLaunchTemplateInput{}
  5987. }
  5988. output = &DeleteLaunchTemplateOutput{}
  5989. req = c.newRequest(op, input, output)
  5990. return
  5991. }
  5992. // DeleteLaunchTemplate API operation for Amazon Elastic Compute Cloud.
  5993. //
  5994. // Deletes a launch template. Deleting a launch template deletes all of its
  5995. // versions.
  5996. //
  5997. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5998. // with awserr.Error's Code and Message methods to get detailed information about
  5999. // the error.
  6000. //
  6001. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6002. // API operation DeleteLaunchTemplate for usage and error information.
  6003. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteLaunchTemplate
  6004. func (c *EC2) DeleteLaunchTemplate(input *DeleteLaunchTemplateInput) (*DeleteLaunchTemplateOutput, error) {
  6005. req, out := c.DeleteLaunchTemplateRequest(input)
  6006. return out, req.Send()
  6007. }
  6008. // DeleteLaunchTemplateWithContext is the same as DeleteLaunchTemplate with the addition of
  6009. // the ability to pass a context and additional request options.
  6010. //
  6011. // See DeleteLaunchTemplate for details on how to use this API operation.
  6012. //
  6013. // The context must be non-nil and will be used for request cancellation. If
  6014. // the context is nil a panic will occur. In the future the SDK may create
  6015. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6016. // for more information on using Contexts.
  6017. func (c *EC2) DeleteLaunchTemplateWithContext(ctx aws.Context, input *DeleteLaunchTemplateInput, opts ...request.Option) (*DeleteLaunchTemplateOutput, error) {
  6018. req, out := c.DeleteLaunchTemplateRequest(input)
  6019. req.SetContext(ctx)
  6020. req.ApplyOptions(opts...)
  6021. return out, req.Send()
  6022. }
  6023. const opDeleteLaunchTemplateVersions = "DeleteLaunchTemplateVersions"
  6024. // DeleteLaunchTemplateVersionsRequest generates a "aws/request.Request" representing the
  6025. // client's request for the DeleteLaunchTemplateVersions operation. The "output" return
  6026. // value will be populated with the request's response once the request completes
  6027. // successfuly.
  6028. //
  6029. // Use "Send" method on the returned Request to send the API call to the service.
  6030. // the "output" return value is not valid until after Send returns without error.
  6031. //
  6032. // See DeleteLaunchTemplateVersions for more information on using the DeleteLaunchTemplateVersions
  6033. // API call, and error handling.
  6034. //
  6035. // This method is useful when you want to inject custom logic or configuration
  6036. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6037. //
  6038. //
  6039. // // Example sending a request using the DeleteLaunchTemplateVersionsRequest method.
  6040. // req, resp := client.DeleteLaunchTemplateVersionsRequest(params)
  6041. //
  6042. // err := req.Send()
  6043. // if err == nil { // resp is now filled
  6044. // fmt.Println(resp)
  6045. // }
  6046. //
  6047. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteLaunchTemplateVersions
  6048. func (c *EC2) DeleteLaunchTemplateVersionsRequest(input *DeleteLaunchTemplateVersionsInput) (req *request.Request, output *DeleteLaunchTemplateVersionsOutput) {
  6049. op := &request.Operation{
  6050. Name: opDeleteLaunchTemplateVersions,
  6051. HTTPMethod: "POST",
  6052. HTTPPath: "/",
  6053. }
  6054. if input == nil {
  6055. input = &DeleteLaunchTemplateVersionsInput{}
  6056. }
  6057. output = &DeleteLaunchTemplateVersionsOutput{}
  6058. req = c.newRequest(op, input, output)
  6059. return
  6060. }
  6061. // DeleteLaunchTemplateVersions API operation for Amazon Elastic Compute Cloud.
  6062. //
  6063. // Deletes one or more versions of a launch template. You cannot delete the
  6064. // default version of a launch template; you must first assign a different version
  6065. // as the default. If the default version is the only version for the launch
  6066. // template, you must delete the entire launch template using DeleteLaunchTemplate.
  6067. //
  6068. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6069. // with awserr.Error's Code and Message methods to get detailed information about
  6070. // the error.
  6071. //
  6072. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6073. // API operation DeleteLaunchTemplateVersions for usage and error information.
  6074. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteLaunchTemplateVersions
  6075. func (c *EC2) DeleteLaunchTemplateVersions(input *DeleteLaunchTemplateVersionsInput) (*DeleteLaunchTemplateVersionsOutput, error) {
  6076. req, out := c.DeleteLaunchTemplateVersionsRequest(input)
  6077. return out, req.Send()
  6078. }
  6079. // DeleteLaunchTemplateVersionsWithContext is the same as DeleteLaunchTemplateVersions with the addition of
  6080. // the ability to pass a context and additional request options.
  6081. //
  6082. // See DeleteLaunchTemplateVersions for details on how to use this API operation.
  6083. //
  6084. // The context must be non-nil and will be used for request cancellation. If
  6085. // the context is nil a panic will occur. In the future the SDK may create
  6086. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6087. // for more information on using Contexts.
  6088. func (c *EC2) DeleteLaunchTemplateVersionsWithContext(ctx aws.Context, input *DeleteLaunchTemplateVersionsInput, opts ...request.Option) (*DeleteLaunchTemplateVersionsOutput, error) {
  6089. req, out := c.DeleteLaunchTemplateVersionsRequest(input)
  6090. req.SetContext(ctx)
  6091. req.ApplyOptions(opts...)
  6092. return out, req.Send()
  6093. }
  6094. const opDeleteNatGateway = "DeleteNatGateway"
  6095. // DeleteNatGatewayRequest generates a "aws/request.Request" representing the
  6096. // client's request for the DeleteNatGateway operation. The "output" return
  6097. // value will be populated with the request's response once the request completes
  6098. // successfuly.
  6099. //
  6100. // Use "Send" method on the returned Request to send the API call to the service.
  6101. // the "output" return value is not valid until after Send returns without error.
  6102. //
  6103. // See DeleteNatGateway for more information on using the DeleteNatGateway
  6104. // API call, and error handling.
  6105. //
  6106. // This method is useful when you want to inject custom logic or configuration
  6107. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6108. //
  6109. //
  6110. // // Example sending a request using the DeleteNatGatewayRequest method.
  6111. // req, resp := client.DeleteNatGatewayRequest(params)
  6112. //
  6113. // err := req.Send()
  6114. // if err == nil { // resp is now filled
  6115. // fmt.Println(resp)
  6116. // }
  6117. //
  6118. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNatGateway
  6119. func (c *EC2) DeleteNatGatewayRequest(input *DeleteNatGatewayInput) (req *request.Request, output *DeleteNatGatewayOutput) {
  6120. op := &request.Operation{
  6121. Name: opDeleteNatGateway,
  6122. HTTPMethod: "POST",
  6123. HTTPPath: "/",
  6124. }
  6125. if input == nil {
  6126. input = &DeleteNatGatewayInput{}
  6127. }
  6128. output = &DeleteNatGatewayOutput{}
  6129. req = c.newRequest(op, input, output)
  6130. return
  6131. }
  6132. // DeleteNatGateway API operation for Amazon Elastic Compute Cloud.
  6133. //
  6134. // Deletes the specified NAT gateway. Deleting a NAT gateway disassociates its
  6135. // Elastic IP address, but does not release the address from your account. Deleting
  6136. // a NAT gateway does not delete any NAT gateway routes in your route tables.
  6137. //
  6138. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6139. // with awserr.Error's Code and Message methods to get detailed information about
  6140. // the error.
  6141. //
  6142. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6143. // API operation DeleteNatGateway for usage and error information.
  6144. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNatGateway
  6145. func (c *EC2) DeleteNatGateway(input *DeleteNatGatewayInput) (*DeleteNatGatewayOutput, error) {
  6146. req, out := c.DeleteNatGatewayRequest(input)
  6147. return out, req.Send()
  6148. }
  6149. // DeleteNatGatewayWithContext is the same as DeleteNatGateway with the addition of
  6150. // the ability to pass a context and additional request options.
  6151. //
  6152. // See DeleteNatGateway for details on how to use this API operation.
  6153. //
  6154. // The context must be non-nil and will be used for request cancellation. If
  6155. // the context is nil a panic will occur. In the future the SDK may create
  6156. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6157. // for more information on using Contexts.
  6158. func (c *EC2) DeleteNatGatewayWithContext(ctx aws.Context, input *DeleteNatGatewayInput, opts ...request.Option) (*DeleteNatGatewayOutput, error) {
  6159. req, out := c.DeleteNatGatewayRequest(input)
  6160. req.SetContext(ctx)
  6161. req.ApplyOptions(opts...)
  6162. return out, req.Send()
  6163. }
  6164. const opDeleteNetworkAcl = "DeleteNetworkAcl"
  6165. // DeleteNetworkAclRequest generates a "aws/request.Request" representing the
  6166. // client's request for the DeleteNetworkAcl operation. The "output" return
  6167. // value will be populated with the request's response once the request completes
  6168. // successfuly.
  6169. //
  6170. // Use "Send" method on the returned Request to send the API call to the service.
  6171. // the "output" return value is not valid until after Send returns without error.
  6172. //
  6173. // See DeleteNetworkAcl for more information on using the DeleteNetworkAcl
  6174. // API call, and error handling.
  6175. //
  6176. // This method is useful when you want to inject custom logic or configuration
  6177. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6178. //
  6179. //
  6180. // // Example sending a request using the DeleteNetworkAclRequest method.
  6181. // req, resp := client.DeleteNetworkAclRequest(params)
  6182. //
  6183. // err := req.Send()
  6184. // if err == nil { // resp is now filled
  6185. // fmt.Println(resp)
  6186. // }
  6187. //
  6188. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkAcl
  6189. func (c *EC2) DeleteNetworkAclRequest(input *DeleteNetworkAclInput) (req *request.Request, output *DeleteNetworkAclOutput) {
  6190. op := &request.Operation{
  6191. Name: opDeleteNetworkAcl,
  6192. HTTPMethod: "POST",
  6193. HTTPPath: "/",
  6194. }
  6195. if input == nil {
  6196. input = &DeleteNetworkAclInput{}
  6197. }
  6198. output = &DeleteNetworkAclOutput{}
  6199. req = c.newRequest(op, input, output)
  6200. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  6201. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  6202. return
  6203. }
  6204. // DeleteNetworkAcl API operation for Amazon Elastic Compute Cloud.
  6205. //
  6206. // Deletes the specified network ACL. You can't delete the ACL if it's associated
  6207. // with any subnets. You can't delete the default network ACL.
  6208. //
  6209. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6210. // with awserr.Error's Code and Message methods to get detailed information about
  6211. // the error.
  6212. //
  6213. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6214. // API operation DeleteNetworkAcl for usage and error information.
  6215. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkAcl
  6216. func (c *EC2) DeleteNetworkAcl(input *DeleteNetworkAclInput) (*DeleteNetworkAclOutput, error) {
  6217. req, out := c.DeleteNetworkAclRequest(input)
  6218. return out, req.Send()
  6219. }
  6220. // DeleteNetworkAclWithContext is the same as DeleteNetworkAcl with the addition of
  6221. // the ability to pass a context and additional request options.
  6222. //
  6223. // See DeleteNetworkAcl for details on how to use this API operation.
  6224. //
  6225. // The context must be non-nil and will be used for request cancellation. If
  6226. // the context is nil a panic will occur. In the future the SDK may create
  6227. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6228. // for more information on using Contexts.
  6229. func (c *EC2) DeleteNetworkAclWithContext(ctx aws.Context, input *DeleteNetworkAclInput, opts ...request.Option) (*DeleteNetworkAclOutput, error) {
  6230. req, out := c.DeleteNetworkAclRequest(input)
  6231. req.SetContext(ctx)
  6232. req.ApplyOptions(opts...)
  6233. return out, req.Send()
  6234. }
  6235. const opDeleteNetworkAclEntry = "DeleteNetworkAclEntry"
  6236. // DeleteNetworkAclEntryRequest generates a "aws/request.Request" representing the
  6237. // client's request for the DeleteNetworkAclEntry operation. The "output" return
  6238. // value will be populated with the request's response once the request completes
  6239. // successfuly.
  6240. //
  6241. // Use "Send" method on the returned Request to send the API call to the service.
  6242. // the "output" return value is not valid until after Send returns without error.
  6243. //
  6244. // See DeleteNetworkAclEntry for more information on using the DeleteNetworkAclEntry
  6245. // API call, and error handling.
  6246. //
  6247. // This method is useful when you want to inject custom logic or configuration
  6248. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6249. //
  6250. //
  6251. // // Example sending a request using the DeleteNetworkAclEntryRequest method.
  6252. // req, resp := client.DeleteNetworkAclEntryRequest(params)
  6253. //
  6254. // err := req.Send()
  6255. // if err == nil { // resp is now filled
  6256. // fmt.Println(resp)
  6257. // }
  6258. //
  6259. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkAclEntry
  6260. func (c *EC2) DeleteNetworkAclEntryRequest(input *DeleteNetworkAclEntryInput) (req *request.Request, output *DeleteNetworkAclEntryOutput) {
  6261. op := &request.Operation{
  6262. Name: opDeleteNetworkAclEntry,
  6263. HTTPMethod: "POST",
  6264. HTTPPath: "/",
  6265. }
  6266. if input == nil {
  6267. input = &DeleteNetworkAclEntryInput{}
  6268. }
  6269. output = &DeleteNetworkAclEntryOutput{}
  6270. req = c.newRequest(op, input, output)
  6271. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  6272. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  6273. return
  6274. }
  6275. // DeleteNetworkAclEntry API operation for Amazon Elastic Compute Cloud.
  6276. //
  6277. // Deletes the specified ingress or egress entry (rule) from the specified network
  6278. // ACL.
  6279. //
  6280. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6281. // with awserr.Error's Code and Message methods to get detailed information about
  6282. // the error.
  6283. //
  6284. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6285. // API operation DeleteNetworkAclEntry for usage and error information.
  6286. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkAclEntry
  6287. func (c *EC2) DeleteNetworkAclEntry(input *DeleteNetworkAclEntryInput) (*DeleteNetworkAclEntryOutput, error) {
  6288. req, out := c.DeleteNetworkAclEntryRequest(input)
  6289. return out, req.Send()
  6290. }
  6291. // DeleteNetworkAclEntryWithContext is the same as DeleteNetworkAclEntry with the addition of
  6292. // the ability to pass a context and additional request options.
  6293. //
  6294. // See DeleteNetworkAclEntry for details on how to use this API operation.
  6295. //
  6296. // The context must be non-nil and will be used for request cancellation. If
  6297. // the context is nil a panic will occur. In the future the SDK may create
  6298. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6299. // for more information on using Contexts.
  6300. func (c *EC2) DeleteNetworkAclEntryWithContext(ctx aws.Context, input *DeleteNetworkAclEntryInput, opts ...request.Option) (*DeleteNetworkAclEntryOutput, error) {
  6301. req, out := c.DeleteNetworkAclEntryRequest(input)
  6302. req.SetContext(ctx)
  6303. req.ApplyOptions(opts...)
  6304. return out, req.Send()
  6305. }
  6306. const opDeleteNetworkInterface = "DeleteNetworkInterface"
  6307. // DeleteNetworkInterfaceRequest generates a "aws/request.Request" representing the
  6308. // client's request for the DeleteNetworkInterface operation. The "output" return
  6309. // value will be populated with the request's response once the request completes
  6310. // successfuly.
  6311. //
  6312. // Use "Send" method on the returned Request to send the API call to the service.
  6313. // the "output" return value is not valid until after Send returns without error.
  6314. //
  6315. // See DeleteNetworkInterface for more information on using the DeleteNetworkInterface
  6316. // API call, and error handling.
  6317. //
  6318. // This method is useful when you want to inject custom logic or configuration
  6319. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6320. //
  6321. //
  6322. // // Example sending a request using the DeleteNetworkInterfaceRequest method.
  6323. // req, resp := client.DeleteNetworkInterfaceRequest(params)
  6324. //
  6325. // err := req.Send()
  6326. // if err == nil { // resp is now filled
  6327. // fmt.Println(resp)
  6328. // }
  6329. //
  6330. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkInterface
  6331. func (c *EC2) DeleteNetworkInterfaceRequest(input *DeleteNetworkInterfaceInput) (req *request.Request, output *DeleteNetworkInterfaceOutput) {
  6332. op := &request.Operation{
  6333. Name: opDeleteNetworkInterface,
  6334. HTTPMethod: "POST",
  6335. HTTPPath: "/",
  6336. }
  6337. if input == nil {
  6338. input = &DeleteNetworkInterfaceInput{}
  6339. }
  6340. output = &DeleteNetworkInterfaceOutput{}
  6341. req = c.newRequest(op, input, output)
  6342. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  6343. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  6344. return
  6345. }
  6346. // DeleteNetworkInterface API operation for Amazon Elastic Compute Cloud.
  6347. //
  6348. // Deletes the specified network interface. You must detach the network interface
  6349. // before you can delete it.
  6350. //
  6351. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6352. // with awserr.Error's Code and Message methods to get detailed information about
  6353. // the error.
  6354. //
  6355. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6356. // API operation DeleteNetworkInterface for usage and error information.
  6357. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkInterface
  6358. func (c *EC2) DeleteNetworkInterface(input *DeleteNetworkInterfaceInput) (*DeleteNetworkInterfaceOutput, error) {
  6359. req, out := c.DeleteNetworkInterfaceRequest(input)
  6360. return out, req.Send()
  6361. }
  6362. // DeleteNetworkInterfaceWithContext is the same as DeleteNetworkInterface with the addition of
  6363. // the ability to pass a context and additional request options.
  6364. //
  6365. // See DeleteNetworkInterface for details on how to use this API operation.
  6366. //
  6367. // The context must be non-nil and will be used for request cancellation. If
  6368. // the context is nil a panic will occur. In the future the SDK may create
  6369. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6370. // for more information on using Contexts.
  6371. func (c *EC2) DeleteNetworkInterfaceWithContext(ctx aws.Context, input *DeleteNetworkInterfaceInput, opts ...request.Option) (*DeleteNetworkInterfaceOutput, error) {
  6372. req, out := c.DeleteNetworkInterfaceRequest(input)
  6373. req.SetContext(ctx)
  6374. req.ApplyOptions(opts...)
  6375. return out, req.Send()
  6376. }
  6377. const opDeleteNetworkInterfacePermission = "DeleteNetworkInterfacePermission"
  6378. // DeleteNetworkInterfacePermissionRequest generates a "aws/request.Request" representing the
  6379. // client's request for the DeleteNetworkInterfacePermission operation. The "output" return
  6380. // value will be populated with the request's response once the request completes
  6381. // successfuly.
  6382. //
  6383. // Use "Send" method on the returned Request to send the API call to the service.
  6384. // the "output" return value is not valid until after Send returns without error.
  6385. //
  6386. // See DeleteNetworkInterfacePermission for more information on using the DeleteNetworkInterfacePermission
  6387. // API call, and error handling.
  6388. //
  6389. // This method is useful when you want to inject custom logic or configuration
  6390. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6391. //
  6392. //
  6393. // // Example sending a request using the DeleteNetworkInterfacePermissionRequest method.
  6394. // req, resp := client.DeleteNetworkInterfacePermissionRequest(params)
  6395. //
  6396. // err := req.Send()
  6397. // if err == nil { // resp is now filled
  6398. // fmt.Println(resp)
  6399. // }
  6400. //
  6401. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkInterfacePermission
  6402. func (c *EC2) DeleteNetworkInterfacePermissionRequest(input *DeleteNetworkInterfacePermissionInput) (req *request.Request, output *DeleteNetworkInterfacePermissionOutput) {
  6403. op := &request.Operation{
  6404. Name: opDeleteNetworkInterfacePermission,
  6405. HTTPMethod: "POST",
  6406. HTTPPath: "/",
  6407. }
  6408. if input == nil {
  6409. input = &DeleteNetworkInterfacePermissionInput{}
  6410. }
  6411. output = &DeleteNetworkInterfacePermissionOutput{}
  6412. req = c.newRequest(op, input, output)
  6413. return
  6414. }
  6415. // DeleteNetworkInterfacePermission API operation for Amazon Elastic Compute Cloud.
  6416. //
  6417. // Deletes a permission for a network interface. By default, you cannot delete
  6418. // the permission if the account for which you're removing the permission has
  6419. // attached the network interface to an instance. However, you can force delete
  6420. // the permission, regardless of any attachment.
  6421. //
  6422. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6423. // with awserr.Error's Code and Message methods to get detailed information about
  6424. // the error.
  6425. //
  6426. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6427. // API operation DeleteNetworkInterfacePermission for usage and error information.
  6428. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkInterfacePermission
  6429. func (c *EC2) DeleteNetworkInterfacePermission(input *DeleteNetworkInterfacePermissionInput) (*DeleteNetworkInterfacePermissionOutput, error) {
  6430. req, out := c.DeleteNetworkInterfacePermissionRequest(input)
  6431. return out, req.Send()
  6432. }
  6433. // DeleteNetworkInterfacePermissionWithContext is the same as DeleteNetworkInterfacePermission with the addition of
  6434. // the ability to pass a context and additional request options.
  6435. //
  6436. // See DeleteNetworkInterfacePermission for details on how to use this API operation.
  6437. //
  6438. // The context must be non-nil and will be used for request cancellation. If
  6439. // the context is nil a panic will occur. In the future the SDK may create
  6440. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6441. // for more information on using Contexts.
  6442. func (c *EC2) DeleteNetworkInterfacePermissionWithContext(ctx aws.Context, input *DeleteNetworkInterfacePermissionInput, opts ...request.Option) (*DeleteNetworkInterfacePermissionOutput, error) {
  6443. req, out := c.DeleteNetworkInterfacePermissionRequest(input)
  6444. req.SetContext(ctx)
  6445. req.ApplyOptions(opts...)
  6446. return out, req.Send()
  6447. }
  6448. const opDeletePlacementGroup = "DeletePlacementGroup"
  6449. // DeletePlacementGroupRequest generates a "aws/request.Request" representing the
  6450. // client's request for the DeletePlacementGroup operation. The "output" return
  6451. // value will be populated with the request's response once the request completes
  6452. // successfuly.
  6453. //
  6454. // Use "Send" method on the returned Request to send the API call to the service.
  6455. // the "output" return value is not valid until after Send returns without error.
  6456. //
  6457. // See DeletePlacementGroup for more information on using the DeletePlacementGroup
  6458. // API call, and error handling.
  6459. //
  6460. // This method is useful when you want to inject custom logic or configuration
  6461. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6462. //
  6463. //
  6464. // // Example sending a request using the DeletePlacementGroupRequest method.
  6465. // req, resp := client.DeletePlacementGroupRequest(params)
  6466. //
  6467. // err := req.Send()
  6468. // if err == nil { // resp is now filled
  6469. // fmt.Println(resp)
  6470. // }
  6471. //
  6472. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeletePlacementGroup
  6473. func (c *EC2) DeletePlacementGroupRequest(input *DeletePlacementGroupInput) (req *request.Request, output *DeletePlacementGroupOutput) {
  6474. op := &request.Operation{
  6475. Name: opDeletePlacementGroup,
  6476. HTTPMethod: "POST",
  6477. HTTPPath: "/",
  6478. }
  6479. if input == nil {
  6480. input = &DeletePlacementGroupInput{}
  6481. }
  6482. output = &DeletePlacementGroupOutput{}
  6483. req = c.newRequest(op, input, output)
  6484. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  6485. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  6486. return
  6487. }
  6488. // DeletePlacementGroup API operation for Amazon Elastic Compute Cloud.
  6489. //
  6490. // Deletes the specified placement group. You must terminate all instances in
  6491. // the placement group before you can delete the placement group. For more information,
  6492. // see Placement Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html)
  6493. // in the Amazon Elastic Compute Cloud User Guide.
  6494. //
  6495. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6496. // with awserr.Error's Code and Message methods to get detailed information about
  6497. // the error.
  6498. //
  6499. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6500. // API operation DeletePlacementGroup for usage and error information.
  6501. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeletePlacementGroup
  6502. func (c *EC2) DeletePlacementGroup(input *DeletePlacementGroupInput) (*DeletePlacementGroupOutput, error) {
  6503. req, out := c.DeletePlacementGroupRequest(input)
  6504. return out, req.Send()
  6505. }
  6506. // DeletePlacementGroupWithContext is the same as DeletePlacementGroup with the addition of
  6507. // the ability to pass a context and additional request options.
  6508. //
  6509. // See DeletePlacementGroup for details on how to use this API operation.
  6510. //
  6511. // The context must be non-nil and will be used for request cancellation. If
  6512. // the context is nil a panic will occur. In the future the SDK may create
  6513. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6514. // for more information on using Contexts.
  6515. func (c *EC2) DeletePlacementGroupWithContext(ctx aws.Context, input *DeletePlacementGroupInput, opts ...request.Option) (*DeletePlacementGroupOutput, error) {
  6516. req, out := c.DeletePlacementGroupRequest(input)
  6517. req.SetContext(ctx)
  6518. req.ApplyOptions(opts...)
  6519. return out, req.Send()
  6520. }
  6521. const opDeleteRoute = "DeleteRoute"
  6522. // DeleteRouteRequest generates a "aws/request.Request" representing the
  6523. // client's request for the DeleteRoute operation. The "output" return
  6524. // value will be populated with the request's response once the request completes
  6525. // successfuly.
  6526. //
  6527. // Use "Send" method on the returned Request to send the API call to the service.
  6528. // the "output" return value is not valid until after Send returns without error.
  6529. //
  6530. // See DeleteRoute for more information on using the DeleteRoute
  6531. // API call, and error handling.
  6532. //
  6533. // This method is useful when you want to inject custom logic or configuration
  6534. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6535. //
  6536. //
  6537. // // Example sending a request using the DeleteRouteRequest method.
  6538. // req, resp := client.DeleteRouteRequest(params)
  6539. //
  6540. // err := req.Send()
  6541. // if err == nil { // resp is now filled
  6542. // fmt.Println(resp)
  6543. // }
  6544. //
  6545. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteRoute
  6546. func (c *EC2) DeleteRouteRequest(input *DeleteRouteInput) (req *request.Request, output *DeleteRouteOutput) {
  6547. op := &request.Operation{
  6548. Name: opDeleteRoute,
  6549. HTTPMethod: "POST",
  6550. HTTPPath: "/",
  6551. }
  6552. if input == nil {
  6553. input = &DeleteRouteInput{}
  6554. }
  6555. output = &DeleteRouteOutput{}
  6556. req = c.newRequest(op, input, output)
  6557. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  6558. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  6559. return
  6560. }
  6561. // DeleteRoute API operation for Amazon Elastic Compute Cloud.
  6562. //
  6563. // Deletes the specified route from the specified route table.
  6564. //
  6565. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6566. // with awserr.Error's Code and Message methods to get detailed information about
  6567. // the error.
  6568. //
  6569. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6570. // API operation DeleteRoute for usage and error information.
  6571. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteRoute
  6572. func (c *EC2) DeleteRoute(input *DeleteRouteInput) (*DeleteRouteOutput, error) {
  6573. req, out := c.DeleteRouteRequest(input)
  6574. return out, req.Send()
  6575. }
  6576. // DeleteRouteWithContext is the same as DeleteRoute with the addition of
  6577. // the ability to pass a context and additional request options.
  6578. //
  6579. // See DeleteRoute for details on how to use this API operation.
  6580. //
  6581. // The context must be non-nil and will be used for request cancellation. If
  6582. // the context is nil a panic will occur. In the future the SDK may create
  6583. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6584. // for more information on using Contexts.
  6585. func (c *EC2) DeleteRouteWithContext(ctx aws.Context, input *DeleteRouteInput, opts ...request.Option) (*DeleteRouteOutput, error) {
  6586. req, out := c.DeleteRouteRequest(input)
  6587. req.SetContext(ctx)
  6588. req.ApplyOptions(opts...)
  6589. return out, req.Send()
  6590. }
  6591. const opDeleteRouteTable = "DeleteRouteTable"
  6592. // DeleteRouteTableRequest generates a "aws/request.Request" representing the
  6593. // client's request for the DeleteRouteTable operation. The "output" return
  6594. // value will be populated with the request's response once the request completes
  6595. // successfuly.
  6596. //
  6597. // Use "Send" method on the returned Request to send the API call to the service.
  6598. // the "output" return value is not valid until after Send returns without error.
  6599. //
  6600. // See DeleteRouteTable for more information on using the DeleteRouteTable
  6601. // API call, and error handling.
  6602. //
  6603. // This method is useful when you want to inject custom logic or configuration
  6604. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6605. //
  6606. //
  6607. // // Example sending a request using the DeleteRouteTableRequest method.
  6608. // req, resp := client.DeleteRouteTableRequest(params)
  6609. //
  6610. // err := req.Send()
  6611. // if err == nil { // resp is now filled
  6612. // fmt.Println(resp)
  6613. // }
  6614. //
  6615. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteRouteTable
  6616. func (c *EC2) DeleteRouteTableRequest(input *DeleteRouteTableInput) (req *request.Request, output *DeleteRouteTableOutput) {
  6617. op := &request.Operation{
  6618. Name: opDeleteRouteTable,
  6619. HTTPMethod: "POST",
  6620. HTTPPath: "/",
  6621. }
  6622. if input == nil {
  6623. input = &DeleteRouteTableInput{}
  6624. }
  6625. output = &DeleteRouteTableOutput{}
  6626. req = c.newRequest(op, input, output)
  6627. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  6628. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  6629. return
  6630. }
  6631. // DeleteRouteTable API operation for Amazon Elastic Compute Cloud.
  6632. //
  6633. // Deletes the specified route table. You must disassociate the route table
  6634. // from any subnets before you can delete it. You can't delete the main route
  6635. // table.
  6636. //
  6637. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6638. // with awserr.Error's Code and Message methods to get detailed information about
  6639. // the error.
  6640. //
  6641. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6642. // API operation DeleteRouteTable for usage and error information.
  6643. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteRouteTable
  6644. func (c *EC2) DeleteRouteTable(input *DeleteRouteTableInput) (*DeleteRouteTableOutput, error) {
  6645. req, out := c.DeleteRouteTableRequest(input)
  6646. return out, req.Send()
  6647. }
  6648. // DeleteRouteTableWithContext is the same as DeleteRouteTable with the addition of
  6649. // the ability to pass a context and additional request options.
  6650. //
  6651. // See DeleteRouteTable for details on how to use this API operation.
  6652. //
  6653. // The context must be non-nil and will be used for request cancellation. If
  6654. // the context is nil a panic will occur. In the future the SDK may create
  6655. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6656. // for more information on using Contexts.
  6657. func (c *EC2) DeleteRouteTableWithContext(ctx aws.Context, input *DeleteRouteTableInput, opts ...request.Option) (*DeleteRouteTableOutput, error) {
  6658. req, out := c.DeleteRouteTableRequest(input)
  6659. req.SetContext(ctx)
  6660. req.ApplyOptions(opts...)
  6661. return out, req.Send()
  6662. }
  6663. const opDeleteSecurityGroup = "DeleteSecurityGroup"
  6664. // DeleteSecurityGroupRequest generates a "aws/request.Request" representing the
  6665. // client's request for the DeleteSecurityGroup operation. The "output" return
  6666. // value will be populated with the request's response once the request completes
  6667. // successfuly.
  6668. //
  6669. // Use "Send" method on the returned Request to send the API call to the service.
  6670. // the "output" return value is not valid until after Send returns without error.
  6671. //
  6672. // See DeleteSecurityGroup for more information on using the DeleteSecurityGroup
  6673. // API call, and error handling.
  6674. //
  6675. // This method is useful when you want to inject custom logic or configuration
  6676. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6677. //
  6678. //
  6679. // // Example sending a request using the DeleteSecurityGroupRequest method.
  6680. // req, resp := client.DeleteSecurityGroupRequest(params)
  6681. //
  6682. // err := req.Send()
  6683. // if err == nil { // resp is now filled
  6684. // fmt.Println(resp)
  6685. // }
  6686. //
  6687. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSecurityGroup
  6688. func (c *EC2) DeleteSecurityGroupRequest(input *DeleteSecurityGroupInput) (req *request.Request, output *DeleteSecurityGroupOutput) {
  6689. op := &request.Operation{
  6690. Name: opDeleteSecurityGroup,
  6691. HTTPMethod: "POST",
  6692. HTTPPath: "/",
  6693. }
  6694. if input == nil {
  6695. input = &DeleteSecurityGroupInput{}
  6696. }
  6697. output = &DeleteSecurityGroupOutput{}
  6698. req = c.newRequest(op, input, output)
  6699. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  6700. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  6701. return
  6702. }
  6703. // DeleteSecurityGroup API operation for Amazon Elastic Compute Cloud.
  6704. //
  6705. // Deletes a security group.
  6706. //
  6707. // If you attempt to delete a security group that is associated with an instance,
  6708. // or is referenced by another security group, the operation fails with InvalidGroup.InUse
  6709. // in EC2-Classic or DependencyViolation in EC2-VPC.
  6710. //
  6711. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6712. // with awserr.Error's Code and Message methods to get detailed information about
  6713. // the error.
  6714. //
  6715. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6716. // API operation DeleteSecurityGroup for usage and error information.
  6717. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSecurityGroup
  6718. func (c *EC2) DeleteSecurityGroup(input *DeleteSecurityGroupInput) (*DeleteSecurityGroupOutput, error) {
  6719. req, out := c.DeleteSecurityGroupRequest(input)
  6720. return out, req.Send()
  6721. }
  6722. // DeleteSecurityGroupWithContext is the same as DeleteSecurityGroup with the addition of
  6723. // the ability to pass a context and additional request options.
  6724. //
  6725. // See DeleteSecurityGroup for details on how to use this API operation.
  6726. //
  6727. // The context must be non-nil and will be used for request cancellation. If
  6728. // the context is nil a panic will occur. In the future the SDK may create
  6729. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6730. // for more information on using Contexts.
  6731. func (c *EC2) DeleteSecurityGroupWithContext(ctx aws.Context, input *DeleteSecurityGroupInput, opts ...request.Option) (*DeleteSecurityGroupOutput, error) {
  6732. req, out := c.DeleteSecurityGroupRequest(input)
  6733. req.SetContext(ctx)
  6734. req.ApplyOptions(opts...)
  6735. return out, req.Send()
  6736. }
  6737. const opDeleteSnapshot = "DeleteSnapshot"
  6738. // DeleteSnapshotRequest generates a "aws/request.Request" representing the
  6739. // client's request for the DeleteSnapshot operation. The "output" return
  6740. // value will be populated with the request's response once the request completes
  6741. // successfuly.
  6742. //
  6743. // Use "Send" method on the returned Request to send the API call to the service.
  6744. // the "output" return value is not valid until after Send returns without error.
  6745. //
  6746. // See DeleteSnapshot for more information on using the DeleteSnapshot
  6747. // API call, and error handling.
  6748. //
  6749. // This method is useful when you want to inject custom logic or configuration
  6750. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6751. //
  6752. //
  6753. // // Example sending a request using the DeleteSnapshotRequest method.
  6754. // req, resp := client.DeleteSnapshotRequest(params)
  6755. //
  6756. // err := req.Send()
  6757. // if err == nil { // resp is now filled
  6758. // fmt.Println(resp)
  6759. // }
  6760. //
  6761. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSnapshot
  6762. func (c *EC2) DeleteSnapshotRequest(input *DeleteSnapshotInput) (req *request.Request, output *DeleteSnapshotOutput) {
  6763. op := &request.Operation{
  6764. Name: opDeleteSnapshot,
  6765. HTTPMethod: "POST",
  6766. HTTPPath: "/",
  6767. }
  6768. if input == nil {
  6769. input = &DeleteSnapshotInput{}
  6770. }
  6771. output = &DeleteSnapshotOutput{}
  6772. req = c.newRequest(op, input, output)
  6773. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  6774. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  6775. return
  6776. }
  6777. // DeleteSnapshot API operation for Amazon Elastic Compute Cloud.
  6778. //
  6779. // Deletes the specified snapshot.
  6780. //
  6781. // When you make periodic snapshots of a volume, the snapshots are incremental,
  6782. // and only the blocks on the device that have changed since your last snapshot
  6783. // are saved in the new snapshot. When you delete a snapshot, only the data
  6784. // not needed for any other snapshot is removed. So regardless of which prior
  6785. // snapshots have been deleted, all active snapshots will have access to all
  6786. // the information needed to restore the volume.
  6787. //
  6788. // You cannot delete a snapshot of the root device of an EBS volume used by
  6789. // a registered AMI. You must first de-register the AMI before you can delete
  6790. // the snapshot.
  6791. //
  6792. // For more information, see Deleting an Amazon EBS Snapshot (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-deleting-snapshot.html)
  6793. // in the Amazon Elastic Compute Cloud User Guide.
  6794. //
  6795. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6796. // with awserr.Error's Code and Message methods to get detailed information about
  6797. // the error.
  6798. //
  6799. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6800. // API operation DeleteSnapshot for usage and error information.
  6801. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSnapshot
  6802. func (c *EC2) DeleteSnapshot(input *DeleteSnapshotInput) (*DeleteSnapshotOutput, error) {
  6803. req, out := c.DeleteSnapshotRequest(input)
  6804. return out, req.Send()
  6805. }
  6806. // DeleteSnapshotWithContext is the same as DeleteSnapshot with the addition of
  6807. // the ability to pass a context and additional request options.
  6808. //
  6809. // See DeleteSnapshot for details on how to use this API operation.
  6810. //
  6811. // The context must be non-nil and will be used for request cancellation. If
  6812. // the context is nil a panic will occur. In the future the SDK may create
  6813. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6814. // for more information on using Contexts.
  6815. func (c *EC2) DeleteSnapshotWithContext(ctx aws.Context, input *DeleteSnapshotInput, opts ...request.Option) (*DeleteSnapshotOutput, error) {
  6816. req, out := c.DeleteSnapshotRequest(input)
  6817. req.SetContext(ctx)
  6818. req.ApplyOptions(opts...)
  6819. return out, req.Send()
  6820. }
  6821. const opDeleteSpotDatafeedSubscription = "DeleteSpotDatafeedSubscription"
  6822. // DeleteSpotDatafeedSubscriptionRequest generates a "aws/request.Request" representing the
  6823. // client's request for the DeleteSpotDatafeedSubscription operation. The "output" return
  6824. // value will be populated with the request's response once the request completes
  6825. // successfuly.
  6826. //
  6827. // Use "Send" method on the returned Request to send the API call to the service.
  6828. // the "output" return value is not valid until after Send returns without error.
  6829. //
  6830. // See DeleteSpotDatafeedSubscription for more information on using the DeleteSpotDatafeedSubscription
  6831. // API call, and error handling.
  6832. //
  6833. // This method is useful when you want to inject custom logic or configuration
  6834. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6835. //
  6836. //
  6837. // // Example sending a request using the DeleteSpotDatafeedSubscriptionRequest method.
  6838. // req, resp := client.DeleteSpotDatafeedSubscriptionRequest(params)
  6839. //
  6840. // err := req.Send()
  6841. // if err == nil { // resp is now filled
  6842. // fmt.Println(resp)
  6843. // }
  6844. //
  6845. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSpotDatafeedSubscription
  6846. func (c *EC2) DeleteSpotDatafeedSubscriptionRequest(input *DeleteSpotDatafeedSubscriptionInput) (req *request.Request, output *DeleteSpotDatafeedSubscriptionOutput) {
  6847. op := &request.Operation{
  6848. Name: opDeleteSpotDatafeedSubscription,
  6849. HTTPMethod: "POST",
  6850. HTTPPath: "/",
  6851. }
  6852. if input == nil {
  6853. input = &DeleteSpotDatafeedSubscriptionInput{}
  6854. }
  6855. output = &DeleteSpotDatafeedSubscriptionOutput{}
  6856. req = c.newRequest(op, input, output)
  6857. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  6858. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  6859. return
  6860. }
  6861. // DeleteSpotDatafeedSubscription API operation for Amazon Elastic Compute Cloud.
  6862. //
  6863. // Deletes the data feed for Spot Instances.
  6864. //
  6865. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6866. // with awserr.Error's Code and Message methods to get detailed information about
  6867. // the error.
  6868. //
  6869. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6870. // API operation DeleteSpotDatafeedSubscription for usage and error information.
  6871. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSpotDatafeedSubscription
  6872. func (c *EC2) DeleteSpotDatafeedSubscription(input *DeleteSpotDatafeedSubscriptionInput) (*DeleteSpotDatafeedSubscriptionOutput, error) {
  6873. req, out := c.DeleteSpotDatafeedSubscriptionRequest(input)
  6874. return out, req.Send()
  6875. }
  6876. // DeleteSpotDatafeedSubscriptionWithContext is the same as DeleteSpotDatafeedSubscription with the addition of
  6877. // the ability to pass a context and additional request options.
  6878. //
  6879. // See DeleteSpotDatafeedSubscription for details on how to use this API operation.
  6880. //
  6881. // The context must be non-nil and will be used for request cancellation. If
  6882. // the context is nil a panic will occur. In the future the SDK may create
  6883. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6884. // for more information on using Contexts.
  6885. func (c *EC2) DeleteSpotDatafeedSubscriptionWithContext(ctx aws.Context, input *DeleteSpotDatafeedSubscriptionInput, opts ...request.Option) (*DeleteSpotDatafeedSubscriptionOutput, error) {
  6886. req, out := c.DeleteSpotDatafeedSubscriptionRequest(input)
  6887. req.SetContext(ctx)
  6888. req.ApplyOptions(opts...)
  6889. return out, req.Send()
  6890. }
  6891. const opDeleteSubnet = "DeleteSubnet"
  6892. // DeleteSubnetRequest generates a "aws/request.Request" representing the
  6893. // client's request for the DeleteSubnet operation. The "output" return
  6894. // value will be populated with the request's response once the request completes
  6895. // successfuly.
  6896. //
  6897. // Use "Send" method on the returned Request to send the API call to the service.
  6898. // the "output" return value is not valid until after Send returns without error.
  6899. //
  6900. // See DeleteSubnet for more information on using the DeleteSubnet
  6901. // API call, and error handling.
  6902. //
  6903. // This method is useful when you want to inject custom logic or configuration
  6904. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6905. //
  6906. //
  6907. // // Example sending a request using the DeleteSubnetRequest method.
  6908. // req, resp := client.DeleteSubnetRequest(params)
  6909. //
  6910. // err := req.Send()
  6911. // if err == nil { // resp is now filled
  6912. // fmt.Println(resp)
  6913. // }
  6914. //
  6915. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSubnet
  6916. func (c *EC2) DeleteSubnetRequest(input *DeleteSubnetInput) (req *request.Request, output *DeleteSubnetOutput) {
  6917. op := &request.Operation{
  6918. Name: opDeleteSubnet,
  6919. HTTPMethod: "POST",
  6920. HTTPPath: "/",
  6921. }
  6922. if input == nil {
  6923. input = &DeleteSubnetInput{}
  6924. }
  6925. output = &DeleteSubnetOutput{}
  6926. req = c.newRequest(op, input, output)
  6927. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  6928. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  6929. return
  6930. }
  6931. // DeleteSubnet API operation for Amazon Elastic Compute Cloud.
  6932. //
  6933. // Deletes the specified subnet. You must terminate all running instances in
  6934. // the subnet before you can delete the subnet.
  6935. //
  6936. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6937. // with awserr.Error's Code and Message methods to get detailed information about
  6938. // the error.
  6939. //
  6940. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6941. // API operation DeleteSubnet for usage and error information.
  6942. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSubnet
  6943. func (c *EC2) DeleteSubnet(input *DeleteSubnetInput) (*DeleteSubnetOutput, error) {
  6944. req, out := c.DeleteSubnetRequest(input)
  6945. return out, req.Send()
  6946. }
  6947. // DeleteSubnetWithContext is the same as DeleteSubnet with the addition of
  6948. // the ability to pass a context and additional request options.
  6949. //
  6950. // See DeleteSubnet for details on how to use this API operation.
  6951. //
  6952. // The context must be non-nil and will be used for request cancellation. If
  6953. // the context is nil a panic will occur. In the future the SDK may create
  6954. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6955. // for more information on using Contexts.
  6956. func (c *EC2) DeleteSubnetWithContext(ctx aws.Context, input *DeleteSubnetInput, opts ...request.Option) (*DeleteSubnetOutput, error) {
  6957. req, out := c.DeleteSubnetRequest(input)
  6958. req.SetContext(ctx)
  6959. req.ApplyOptions(opts...)
  6960. return out, req.Send()
  6961. }
  6962. const opDeleteTags = "DeleteTags"
  6963. // DeleteTagsRequest generates a "aws/request.Request" representing the
  6964. // client's request for the DeleteTags operation. The "output" return
  6965. // value will be populated with the request's response once the request completes
  6966. // successfuly.
  6967. //
  6968. // Use "Send" method on the returned Request to send the API call to the service.
  6969. // the "output" return value is not valid until after Send returns without error.
  6970. //
  6971. // See DeleteTags for more information on using the DeleteTags
  6972. // API call, and error handling.
  6973. //
  6974. // This method is useful when you want to inject custom logic or configuration
  6975. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6976. //
  6977. //
  6978. // // Example sending a request using the DeleteTagsRequest method.
  6979. // req, resp := client.DeleteTagsRequest(params)
  6980. //
  6981. // err := req.Send()
  6982. // if err == nil { // resp is now filled
  6983. // fmt.Println(resp)
  6984. // }
  6985. //
  6986. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTags
  6987. func (c *EC2) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, output *DeleteTagsOutput) {
  6988. op := &request.Operation{
  6989. Name: opDeleteTags,
  6990. HTTPMethod: "POST",
  6991. HTTPPath: "/",
  6992. }
  6993. if input == nil {
  6994. input = &DeleteTagsInput{}
  6995. }
  6996. output = &DeleteTagsOutput{}
  6997. req = c.newRequest(op, input, output)
  6998. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  6999. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  7000. return
  7001. }
  7002. // DeleteTags API operation for Amazon Elastic Compute Cloud.
  7003. //
  7004. // Deletes the specified set of tags from the specified set of resources.
  7005. //
  7006. // To list the current tags, use DescribeTags. For more information about tags,
  7007. // see Tagging Your Resources (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html)
  7008. // in the Amazon Elastic Compute Cloud User Guide.
  7009. //
  7010. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7011. // with awserr.Error's Code and Message methods to get detailed information about
  7012. // the error.
  7013. //
  7014. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7015. // API operation DeleteTags for usage and error information.
  7016. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTags
  7017. func (c *EC2) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) {
  7018. req, out := c.DeleteTagsRequest(input)
  7019. return out, req.Send()
  7020. }
  7021. // DeleteTagsWithContext is the same as DeleteTags with the addition of
  7022. // the ability to pass a context and additional request options.
  7023. //
  7024. // See DeleteTags for details on how to use this API operation.
  7025. //
  7026. // The context must be non-nil and will be used for request cancellation. If
  7027. // the context is nil a panic will occur. In the future the SDK may create
  7028. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7029. // for more information on using Contexts.
  7030. func (c *EC2) DeleteTagsWithContext(ctx aws.Context, input *DeleteTagsInput, opts ...request.Option) (*DeleteTagsOutput, error) {
  7031. req, out := c.DeleteTagsRequest(input)
  7032. req.SetContext(ctx)
  7033. req.ApplyOptions(opts...)
  7034. return out, req.Send()
  7035. }
  7036. const opDeleteVolume = "DeleteVolume"
  7037. // DeleteVolumeRequest generates a "aws/request.Request" representing the
  7038. // client's request for the DeleteVolume operation. The "output" return
  7039. // value will be populated with the request's response once the request completes
  7040. // successfuly.
  7041. //
  7042. // Use "Send" method on the returned Request to send the API call to the service.
  7043. // the "output" return value is not valid until after Send returns without error.
  7044. //
  7045. // See DeleteVolume for more information on using the DeleteVolume
  7046. // API call, and error handling.
  7047. //
  7048. // This method is useful when you want to inject custom logic or configuration
  7049. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7050. //
  7051. //
  7052. // // Example sending a request using the DeleteVolumeRequest method.
  7053. // req, resp := client.DeleteVolumeRequest(params)
  7054. //
  7055. // err := req.Send()
  7056. // if err == nil { // resp is now filled
  7057. // fmt.Println(resp)
  7058. // }
  7059. //
  7060. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVolume
  7061. func (c *EC2) DeleteVolumeRequest(input *DeleteVolumeInput) (req *request.Request, output *DeleteVolumeOutput) {
  7062. op := &request.Operation{
  7063. Name: opDeleteVolume,
  7064. HTTPMethod: "POST",
  7065. HTTPPath: "/",
  7066. }
  7067. if input == nil {
  7068. input = &DeleteVolumeInput{}
  7069. }
  7070. output = &DeleteVolumeOutput{}
  7071. req = c.newRequest(op, input, output)
  7072. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  7073. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  7074. return
  7075. }
  7076. // DeleteVolume API operation for Amazon Elastic Compute Cloud.
  7077. //
  7078. // Deletes the specified EBS volume. The volume must be in the available state
  7079. // (not attached to an instance).
  7080. //
  7081. // The volume may remain in the deleting state for several minutes.
  7082. //
  7083. // For more information, see Deleting an Amazon EBS Volume (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-deleting-volume.html)
  7084. // in the Amazon Elastic Compute Cloud User Guide.
  7085. //
  7086. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7087. // with awserr.Error's Code and Message methods to get detailed information about
  7088. // the error.
  7089. //
  7090. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7091. // API operation DeleteVolume for usage and error information.
  7092. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVolume
  7093. func (c *EC2) DeleteVolume(input *DeleteVolumeInput) (*DeleteVolumeOutput, error) {
  7094. req, out := c.DeleteVolumeRequest(input)
  7095. return out, req.Send()
  7096. }
  7097. // DeleteVolumeWithContext is the same as DeleteVolume with the addition of
  7098. // the ability to pass a context and additional request options.
  7099. //
  7100. // See DeleteVolume for details on how to use this API operation.
  7101. //
  7102. // The context must be non-nil and will be used for request cancellation. If
  7103. // the context is nil a panic will occur. In the future the SDK may create
  7104. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7105. // for more information on using Contexts.
  7106. func (c *EC2) DeleteVolumeWithContext(ctx aws.Context, input *DeleteVolumeInput, opts ...request.Option) (*DeleteVolumeOutput, error) {
  7107. req, out := c.DeleteVolumeRequest(input)
  7108. req.SetContext(ctx)
  7109. req.ApplyOptions(opts...)
  7110. return out, req.Send()
  7111. }
  7112. const opDeleteVpc = "DeleteVpc"
  7113. // DeleteVpcRequest generates a "aws/request.Request" representing the
  7114. // client's request for the DeleteVpc operation. The "output" return
  7115. // value will be populated with the request's response once the request completes
  7116. // successfuly.
  7117. //
  7118. // Use "Send" method on the returned Request to send the API call to the service.
  7119. // the "output" return value is not valid until after Send returns without error.
  7120. //
  7121. // See DeleteVpc for more information on using the DeleteVpc
  7122. // API call, and error handling.
  7123. //
  7124. // This method is useful when you want to inject custom logic or configuration
  7125. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7126. //
  7127. //
  7128. // // Example sending a request using the DeleteVpcRequest method.
  7129. // req, resp := client.DeleteVpcRequest(params)
  7130. //
  7131. // err := req.Send()
  7132. // if err == nil { // resp is now filled
  7133. // fmt.Println(resp)
  7134. // }
  7135. //
  7136. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpc
  7137. func (c *EC2) DeleteVpcRequest(input *DeleteVpcInput) (req *request.Request, output *DeleteVpcOutput) {
  7138. op := &request.Operation{
  7139. Name: opDeleteVpc,
  7140. HTTPMethod: "POST",
  7141. HTTPPath: "/",
  7142. }
  7143. if input == nil {
  7144. input = &DeleteVpcInput{}
  7145. }
  7146. output = &DeleteVpcOutput{}
  7147. req = c.newRequest(op, input, output)
  7148. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  7149. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  7150. return
  7151. }
  7152. // DeleteVpc API operation for Amazon Elastic Compute Cloud.
  7153. //
  7154. // Deletes the specified VPC. You must detach or delete all gateways and resources
  7155. // that are associated with the VPC before you can delete it. For example, you
  7156. // must terminate all instances running in the VPC, delete all security groups
  7157. // associated with the VPC (except the default one), delete all route tables
  7158. // associated with the VPC (except the default one), and so on.
  7159. //
  7160. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7161. // with awserr.Error's Code and Message methods to get detailed information about
  7162. // the error.
  7163. //
  7164. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7165. // API operation DeleteVpc for usage and error information.
  7166. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpc
  7167. func (c *EC2) DeleteVpc(input *DeleteVpcInput) (*DeleteVpcOutput, error) {
  7168. req, out := c.DeleteVpcRequest(input)
  7169. return out, req.Send()
  7170. }
  7171. // DeleteVpcWithContext is the same as DeleteVpc with the addition of
  7172. // the ability to pass a context and additional request options.
  7173. //
  7174. // See DeleteVpc for details on how to use this API operation.
  7175. //
  7176. // The context must be non-nil and will be used for request cancellation. If
  7177. // the context is nil a panic will occur. In the future the SDK may create
  7178. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7179. // for more information on using Contexts.
  7180. func (c *EC2) DeleteVpcWithContext(ctx aws.Context, input *DeleteVpcInput, opts ...request.Option) (*DeleteVpcOutput, error) {
  7181. req, out := c.DeleteVpcRequest(input)
  7182. req.SetContext(ctx)
  7183. req.ApplyOptions(opts...)
  7184. return out, req.Send()
  7185. }
  7186. const opDeleteVpcEndpointConnectionNotifications = "DeleteVpcEndpointConnectionNotifications"
  7187. // DeleteVpcEndpointConnectionNotificationsRequest generates a "aws/request.Request" representing the
  7188. // client's request for the DeleteVpcEndpointConnectionNotifications operation. The "output" return
  7189. // value will be populated with the request's response once the request completes
  7190. // successfuly.
  7191. //
  7192. // Use "Send" method on the returned Request to send the API call to the service.
  7193. // the "output" return value is not valid until after Send returns without error.
  7194. //
  7195. // See DeleteVpcEndpointConnectionNotifications for more information on using the DeleteVpcEndpointConnectionNotifications
  7196. // API call, and error handling.
  7197. //
  7198. // This method is useful when you want to inject custom logic or configuration
  7199. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7200. //
  7201. //
  7202. // // Example sending a request using the DeleteVpcEndpointConnectionNotificationsRequest method.
  7203. // req, resp := client.DeleteVpcEndpointConnectionNotificationsRequest(params)
  7204. //
  7205. // err := req.Send()
  7206. // if err == nil { // resp is now filled
  7207. // fmt.Println(resp)
  7208. // }
  7209. //
  7210. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpointConnectionNotifications
  7211. func (c *EC2) DeleteVpcEndpointConnectionNotificationsRequest(input *DeleteVpcEndpointConnectionNotificationsInput) (req *request.Request, output *DeleteVpcEndpointConnectionNotificationsOutput) {
  7212. op := &request.Operation{
  7213. Name: opDeleteVpcEndpointConnectionNotifications,
  7214. HTTPMethod: "POST",
  7215. HTTPPath: "/",
  7216. }
  7217. if input == nil {
  7218. input = &DeleteVpcEndpointConnectionNotificationsInput{}
  7219. }
  7220. output = &DeleteVpcEndpointConnectionNotificationsOutput{}
  7221. req = c.newRequest(op, input, output)
  7222. return
  7223. }
  7224. // DeleteVpcEndpointConnectionNotifications API operation for Amazon Elastic Compute Cloud.
  7225. //
  7226. // Deletes one or more VPC endpoint connection notifications.
  7227. //
  7228. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7229. // with awserr.Error's Code and Message methods to get detailed information about
  7230. // the error.
  7231. //
  7232. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7233. // API operation DeleteVpcEndpointConnectionNotifications for usage and error information.
  7234. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpointConnectionNotifications
  7235. func (c *EC2) DeleteVpcEndpointConnectionNotifications(input *DeleteVpcEndpointConnectionNotificationsInput) (*DeleteVpcEndpointConnectionNotificationsOutput, error) {
  7236. req, out := c.DeleteVpcEndpointConnectionNotificationsRequest(input)
  7237. return out, req.Send()
  7238. }
  7239. // DeleteVpcEndpointConnectionNotificationsWithContext is the same as DeleteVpcEndpointConnectionNotifications with the addition of
  7240. // the ability to pass a context and additional request options.
  7241. //
  7242. // See DeleteVpcEndpointConnectionNotifications for details on how to use this API operation.
  7243. //
  7244. // The context must be non-nil and will be used for request cancellation. If
  7245. // the context is nil a panic will occur. In the future the SDK may create
  7246. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7247. // for more information on using Contexts.
  7248. func (c *EC2) DeleteVpcEndpointConnectionNotificationsWithContext(ctx aws.Context, input *DeleteVpcEndpointConnectionNotificationsInput, opts ...request.Option) (*DeleteVpcEndpointConnectionNotificationsOutput, error) {
  7249. req, out := c.DeleteVpcEndpointConnectionNotificationsRequest(input)
  7250. req.SetContext(ctx)
  7251. req.ApplyOptions(opts...)
  7252. return out, req.Send()
  7253. }
  7254. const opDeleteVpcEndpointServiceConfigurations = "DeleteVpcEndpointServiceConfigurations"
  7255. // DeleteVpcEndpointServiceConfigurationsRequest generates a "aws/request.Request" representing the
  7256. // client's request for the DeleteVpcEndpointServiceConfigurations operation. The "output" return
  7257. // value will be populated with the request's response once the request completes
  7258. // successfuly.
  7259. //
  7260. // Use "Send" method on the returned Request to send the API call to the service.
  7261. // the "output" return value is not valid until after Send returns without error.
  7262. //
  7263. // See DeleteVpcEndpointServiceConfigurations for more information on using the DeleteVpcEndpointServiceConfigurations
  7264. // API call, and error handling.
  7265. //
  7266. // This method is useful when you want to inject custom logic or configuration
  7267. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7268. //
  7269. //
  7270. // // Example sending a request using the DeleteVpcEndpointServiceConfigurationsRequest method.
  7271. // req, resp := client.DeleteVpcEndpointServiceConfigurationsRequest(params)
  7272. //
  7273. // err := req.Send()
  7274. // if err == nil { // resp is now filled
  7275. // fmt.Println(resp)
  7276. // }
  7277. //
  7278. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpointServiceConfigurations
  7279. func (c *EC2) DeleteVpcEndpointServiceConfigurationsRequest(input *DeleteVpcEndpointServiceConfigurationsInput) (req *request.Request, output *DeleteVpcEndpointServiceConfigurationsOutput) {
  7280. op := &request.Operation{
  7281. Name: opDeleteVpcEndpointServiceConfigurations,
  7282. HTTPMethod: "POST",
  7283. HTTPPath: "/",
  7284. }
  7285. if input == nil {
  7286. input = &DeleteVpcEndpointServiceConfigurationsInput{}
  7287. }
  7288. output = &DeleteVpcEndpointServiceConfigurationsOutput{}
  7289. req = c.newRequest(op, input, output)
  7290. return
  7291. }
  7292. // DeleteVpcEndpointServiceConfigurations API operation for Amazon Elastic Compute Cloud.
  7293. //
  7294. // Deletes one or more VPC endpoint service configurations in your account.
  7295. // Before you delete the endpoint service configuration, you must reject any
  7296. // Available or PendingAcceptance interface endpoint connections that are attached
  7297. // to the service.
  7298. //
  7299. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7300. // with awserr.Error's Code and Message methods to get detailed information about
  7301. // the error.
  7302. //
  7303. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7304. // API operation DeleteVpcEndpointServiceConfigurations for usage and error information.
  7305. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpointServiceConfigurations
  7306. func (c *EC2) DeleteVpcEndpointServiceConfigurations(input *DeleteVpcEndpointServiceConfigurationsInput) (*DeleteVpcEndpointServiceConfigurationsOutput, error) {
  7307. req, out := c.DeleteVpcEndpointServiceConfigurationsRequest(input)
  7308. return out, req.Send()
  7309. }
  7310. // DeleteVpcEndpointServiceConfigurationsWithContext is the same as DeleteVpcEndpointServiceConfigurations with the addition of
  7311. // the ability to pass a context and additional request options.
  7312. //
  7313. // See DeleteVpcEndpointServiceConfigurations for details on how to use this API operation.
  7314. //
  7315. // The context must be non-nil and will be used for request cancellation. If
  7316. // the context is nil a panic will occur. In the future the SDK may create
  7317. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7318. // for more information on using Contexts.
  7319. func (c *EC2) DeleteVpcEndpointServiceConfigurationsWithContext(ctx aws.Context, input *DeleteVpcEndpointServiceConfigurationsInput, opts ...request.Option) (*DeleteVpcEndpointServiceConfigurationsOutput, error) {
  7320. req, out := c.DeleteVpcEndpointServiceConfigurationsRequest(input)
  7321. req.SetContext(ctx)
  7322. req.ApplyOptions(opts...)
  7323. return out, req.Send()
  7324. }
  7325. const opDeleteVpcEndpoints = "DeleteVpcEndpoints"
  7326. // DeleteVpcEndpointsRequest generates a "aws/request.Request" representing the
  7327. // client's request for the DeleteVpcEndpoints operation. The "output" return
  7328. // value will be populated with the request's response once the request completes
  7329. // successfuly.
  7330. //
  7331. // Use "Send" method on the returned Request to send the API call to the service.
  7332. // the "output" return value is not valid until after Send returns without error.
  7333. //
  7334. // See DeleteVpcEndpoints for more information on using the DeleteVpcEndpoints
  7335. // API call, and error handling.
  7336. //
  7337. // This method is useful when you want to inject custom logic or configuration
  7338. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7339. //
  7340. //
  7341. // // Example sending a request using the DeleteVpcEndpointsRequest method.
  7342. // req, resp := client.DeleteVpcEndpointsRequest(params)
  7343. //
  7344. // err := req.Send()
  7345. // if err == nil { // resp is now filled
  7346. // fmt.Println(resp)
  7347. // }
  7348. //
  7349. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpoints
  7350. func (c *EC2) DeleteVpcEndpointsRequest(input *DeleteVpcEndpointsInput) (req *request.Request, output *DeleteVpcEndpointsOutput) {
  7351. op := &request.Operation{
  7352. Name: opDeleteVpcEndpoints,
  7353. HTTPMethod: "POST",
  7354. HTTPPath: "/",
  7355. }
  7356. if input == nil {
  7357. input = &DeleteVpcEndpointsInput{}
  7358. }
  7359. output = &DeleteVpcEndpointsOutput{}
  7360. req = c.newRequest(op, input, output)
  7361. return
  7362. }
  7363. // DeleteVpcEndpoints API operation for Amazon Elastic Compute Cloud.
  7364. //
  7365. // Deletes one or more specified VPC endpoints. Deleting a gateway endpoint
  7366. // also deletes the endpoint routes in the route tables that were associated
  7367. // with the endpoint. Deleting an interface endpoint deletes the endpoint network
  7368. // interfaces.
  7369. //
  7370. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7371. // with awserr.Error's Code and Message methods to get detailed information about
  7372. // the error.
  7373. //
  7374. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7375. // API operation DeleteVpcEndpoints for usage and error information.
  7376. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpoints
  7377. func (c *EC2) DeleteVpcEndpoints(input *DeleteVpcEndpointsInput) (*DeleteVpcEndpointsOutput, error) {
  7378. req, out := c.DeleteVpcEndpointsRequest(input)
  7379. return out, req.Send()
  7380. }
  7381. // DeleteVpcEndpointsWithContext is the same as DeleteVpcEndpoints with the addition of
  7382. // the ability to pass a context and additional request options.
  7383. //
  7384. // See DeleteVpcEndpoints for details on how to use this API operation.
  7385. //
  7386. // The context must be non-nil and will be used for request cancellation. If
  7387. // the context is nil a panic will occur. In the future the SDK may create
  7388. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7389. // for more information on using Contexts.
  7390. func (c *EC2) DeleteVpcEndpointsWithContext(ctx aws.Context, input *DeleteVpcEndpointsInput, opts ...request.Option) (*DeleteVpcEndpointsOutput, error) {
  7391. req, out := c.DeleteVpcEndpointsRequest(input)
  7392. req.SetContext(ctx)
  7393. req.ApplyOptions(opts...)
  7394. return out, req.Send()
  7395. }
  7396. const opDeleteVpcPeeringConnection = "DeleteVpcPeeringConnection"
  7397. // DeleteVpcPeeringConnectionRequest generates a "aws/request.Request" representing the
  7398. // client's request for the DeleteVpcPeeringConnection operation. The "output" return
  7399. // value will be populated with the request's response once the request completes
  7400. // successfuly.
  7401. //
  7402. // Use "Send" method on the returned Request to send the API call to the service.
  7403. // the "output" return value is not valid until after Send returns without error.
  7404. //
  7405. // See DeleteVpcPeeringConnection for more information on using the DeleteVpcPeeringConnection
  7406. // API call, and error handling.
  7407. //
  7408. // This method is useful when you want to inject custom logic or configuration
  7409. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7410. //
  7411. //
  7412. // // Example sending a request using the DeleteVpcPeeringConnectionRequest method.
  7413. // req, resp := client.DeleteVpcPeeringConnectionRequest(params)
  7414. //
  7415. // err := req.Send()
  7416. // if err == nil { // resp is now filled
  7417. // fmt.Println(resp)
  7418. // }
  7419. //
  7420. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcPeeringConnection
  7421. func (c *EC2) DeleteVpcPeeringConnectionRequest(input *DeleteVpcPeeringConnectionInput) (req *request.Request, output *DeleteVpcPeeringConnectionOutput) {
  7422. op := &request.Operation{
  7423. Name: opDeleteVpcPeeringConnection,
  7424. HTTPMethod: "POST",
  7425. HTTPPath: "/",
  7426. }
  7427. if input == nil {
  7428. input = &DeleteVpcPeeringConnectionInput{}
  7429. }
  7430. output = &DeleteVpcPeeringConnectionOutput{}
  7431. req = c.newRequest(op, input, output)
  7432. return
  7433. }
  7434. // DeleteVpcPeeringConnection API operation for Amazon Elastic Compute Cloud.
  7435. //
  7436. // Deletes a VPC peering connection. Either the owner of the requester VPC or
  7437. // the owner of the accepter VPC can delete the VPC peering connection if it's
  7438. // in the active state. The owner of the requester VPC can delete a VPC peering
  7439. // connection in the pending-acceptance state. You cannot delete a VPC peering
  7440. // connection that's in the failed state.
  7441. //
  7442. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7443. // with awserr.Error's Code and Message methods to get detailed information about
  7444. // the error.
  7445. //
  7446. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7447. // API operation DeleteVpcPeeringConnection for usage and error information.
  7448. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcPeeringConnection
  7449. func (c *EC2) DeleteVpcPeeringConnection(input *DeleteVpcPeeringConnectionInput) (*DeleteVpcPeeringConnectionOutput, error) {
  7450. req, out := c.DeleteVpcPeeringConnectionRequest(input)
  7451. return out, req.Send()
  7452. }
  7453. // DeleteVpcPeeringConnectionWithContext is the same as DeleteVpcPeeringConnection with the addition of
  7454. // the ability to pass a context and additional request options.
  7455. //
  7456. // See DeleteVpcPeeringConnection for details on how to use this API operation.
  7457. //
  7458. // The context must be non-nil and will be used for request cancellation. If
  7459. // the context is nil a panic will occur. In the future the SDK may create
  7460. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7461. // for more information on using Contexts.
  7462. func (c *EC2) DeleteVpcPeeringConnectionWithContext(ctx aws.Context, input *DeleteVpcPeeringConnectionInput, opts ...request.Option) (*DeleteVpcPeeringConnectionOutput, error) {
  7463. req, out := c.DeleteVpcPeeringConnectionRequest(input)
  7464. req.SetContext(ctx)
  7465. req.ApplyOptions(opts...)
  7466. return out, req.Send()
  7467. }
  7468. const opDeleteVpnConnection = "DeleteVpnConnection"
  7469. // DeleteVpnConnectionRequest generates a "aws/request.Request" representing the
  7470. // client's request for the DeleteVpnConnection operation. The "output" return
  7471. // value will be populated with the request's response once the request completes
  7472. // successfuly.
  7473. //
  7474. // Use "Send" method on the returned Request to send the API call to the service.
  7475. // the "output" return value is not valid until after Send returns without error.
  7476. //
  7477. // See DeleteVpnConnection for more information on using the DeleteVpnConnection
  7478. // API call, and error handling.
  7479. //
  7480. // This method is useful when you want to inject custom logic or configuration
  7481. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7482. //
  7483. //
  7484. // // Example sending a request using the DeleteVpnConnectionRequest method.
  7485. // req, resp := client.DeleteVpnConnectionRequest(params)
  7486. //
  7487. // err := req.Send()
  7488. // if err == nil { // resp is now filled
  7489. // fmt.Println(resp)
  7490. // }
  7491. //
  7492. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnConnection
  7493. func (c *EC2) DeleteVpnConnectionRequest(input *DeleteVpnConnectionInput) (req *request.Request, output *DeleteVpnConnectionOutput) {
  7494. op := &request.Operation{
  7495. Name: opDeleteVpnConnection,
  7496. HTTPMethod: "POST",
  7497. HTTPPath: "/",
  7498. }
  7499. if input == nil {
  7500. input = &DeleteVpnConnectionInput{}
  7501. }
  7502. output = &DeleteVpnConnectionOutput{}
  7503. req = c.newRequest(op, input, output)
  7504. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  7505. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  7506. return
  7507. }
  7508. // DeleteVpnConnection API operation for Amazon Elastic Compute Cloud.
  7509. //
  7510. // Deletes the specified VPN connection.
  7511. //
  7512. // If you're deleting the VPC and its associated components, we recommend that
  7513. // you detach the virtual private gateway from the VPC and delete the VPC before
  7514. // deleting the VPN connection. If you believe that the tunnel credentials for
  7515. // your VPN connection have been compromised, you can delete the VPN connection
  7516. // and create a new one that has new keys, without needing to delete the VPC
  7517. // or virtual private gateway. If you create a new VPN connection, you must
  7518. // reconfigure the customer gateway using the new configuration information
  7519. // returned with the new VPN connection ID.
  7520. //
  7521. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7522. // with awserr.Error's Code and Message methods to get detailed information about
  7523. // the error.
  7524. //
  7525. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7526. // API operation DeleteVpnConnection for usage and error information.
  7527. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnConnection
  7528. func (c *EC2) DeleteVpnConnection(input *DeleteVpnConnectionInput) (*DeleteVpnConnectionOutput, error) {
  7529. req, out := c.DeleteVpnConnectionRequest(input)
  7530. return out, req.Send()
  7531. }
  7532. // DeleteVpnConnectionWithContext is the same as DeleteVpnConnection with the addition of
  7533. // the ability to pass a context and additional request options.
  7534. //
  7535. // See DeleteVpnConnection for details on how to use this API operation.
  7536. //
  7537. // The context must be non-nil and will be used for request cancellation. If
  7538. // the context is nil a panic will occur. In the future the SDK may create
  7539. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7540. // for more information on using Contexts.
  7541. func (c *EC2) DeleteVpnConnectionWithContext(ctx aws.Context, input *DeleteVpnConnectionInput, opts ...request.Option) (*DeleteVpnConnectionOutput, error) {
  7542. req, out := c.DeleteVpnConnectionRequest(input)
  7543. req.SetContext(ctx)
  7544. req.ApplyOptions(opts...)
  7545. return out, req.Send()
  7546. }
  7547. const opDeleteVpnConnectionRoute = "DeleteVpnConnectionRoute"
  7548. // DeleteVpnConnectionRouteRequest generates a "aws/request.Request" representing the
  7549. // client's request for the DeleteVpnConnectionRoute operation. The "output" return
  7550. // value will be populated with the request's response once the request completes
  7551. // successfuly.
  7552. //
  7553. // Use "Send" method on the returned Request to send the API call to the service.
  7554. // the "output" return value is not valid until after Send returns without error.
  7555. //
  7556. // See DeleteVpnConnectionRoute for more information on using the DeleteVpnConnectionRoute
  7557. // API call, and error handling.
  7558. //
  7559. // This method is useful when you want to inject custom logic or configuration
  7560. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7561. //
  7562. //
  7563. // // Example sending a request using the DeleteVpnConnectionRouteRequest method.
  7564. // req, resp := client.DeleteVpnConnectionRouteRequest(params)
  7565. //
  7566. // err := req.Send()
  7567. // if err == nil { // resp is now filled
  7568. // fmt.Println(resp)
  7569. // }
  7570. //
  7571. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnConnectionRoute
  7572. func (c *EC2) DeleteVpnConnectionRouteRequest(input *DeleteVpnConnectionRouteInput) (req *request.Request, output *DeleteVpnConnectionRouteOutput) {
  7573. op := &request.Operation{
  7574. Name: opDeleteVpnConnectionRoute,
  7575. HTTPMethod: "POST",
  7576. HTTPPath: "/",
  7577. }
  7578. if input == nil {
  7579. input = &DeleteVpnConnectionRouteInput{}
  7580. }
  7581. output = &DeleteVpnConnectionRouteOutput{}
  7582. req = c.newRequest(op, input, output)
  7583. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  7584. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  7585. return
  7586. }
  7587. // DeleteVpnConnectionRoute API operation for Amazon Elastic Compute Cloud.
  7588. //
  7589. // Deletes the specified static route associated with a VPN connection between
  7590. // an existing virtual private gateway and a VPN customer gateway. The static
  7591. // route allows traffic to be routed from the virtual private gateway to the
  7592. // VPN customer gateway.
  7593. //
  7594. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7595. // with awserr.Error's Code and Message methods to get detailed information about
  7596. // the error.
  7597. //
  7598. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7599. // API operation DeleteVpnConnectionRoute for usage and error information.
  7600. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnConnectionRoute
  7601. func (c *EC2) DeleteVpnConnectionRoute(input *DeleteVpnConnectionRouteInput) (*DeleteVpnConnectionRouteOutput, error) {
  7602. req, out := c.DeleteVpnConnectionRouteRequest(input)
  7603. return out, req.Send()
  7604. }
  7605. // DeleteVpnConnectionRouteWithContext is the same as DeleteVpnConnectionRoute with the addition of
  7606. // the ability to pass a context and additional request options.
  7607. //
  7608. // See DeleteVpnConnectionRoute for details on how to use this API operation.
  7609. //
  7610. // The context must be non-nil and will be used for request cancellation. If
  7611. // the context is nil a panic will occur. In the future the SDK may create
  7612. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7613. // for more information on using Contexts.
  7614. func (c *EC2) DeleteVpnConnectionRouteWithContext(ctx aws.Context, input *DeleteVpnConnectionRouteInput, opts ...request.Option) (*DeleteVpnConnectionRouteOutput, error) {
  7615. req, out := c.DeleteVpnConnectionRouteRequest(input)
  7616. req.SetContext(ctx)
  7617. req.ApplyOptions(opts...)
  7618. return out, req.Send()
  7619. }
  7620. const opDeleteVpnGateway = "DeleteVpnGateway"
  7621. // DeleteVpnGatewayRequest generates a "aws/request.Request" representing the
  7622. // client's request for the DeleteVpnGateway operation. The "output" return
  7623. // value will be populated with the request's response once the request completes
  7624. // successfuly.
  7625. //
  7626. // Use "Send" method on the returned Request to send the API call to the service.
  7627. // the "output" return value is not valid until after Send returns without error.
  7628. //
  7629. // See DeleteVpnGateway for more information on using the DeleteVpnGateway
  7630. // API call, and error handling.
  7631. //
  7632. // This method is useful when you want to inject custom logic or configuration
  7633. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7634. //
  7635. //
  7636. // // Example sending a request using the DeleteVpnGatewayRequest method.
  7637. // req, resp := client.DeleteVpnGatewayRequest(params)
  7638. //
  7639. // err := req.Send()
  7640. // if err == nil { // resp is now filled
  7641. // fmt.Println(resp)
  7642. // }
  7643. //
  7644. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnGateway
  7645. func (c *EC2) DeleteVpnGatewayRequest(input *DeleteVpnGatewayInput) (req *request.Request, output *DeleteVpnGatewayOutput) {
  7646. op := &request.Operation{
  7647. Name: opDeleteVpnGateway,
  7648. HTTPMethod: "POST",
  7649. HTTPPath: "/",
  7650. }
  7651. if input == nil {
  7652. input = &DeleteVpnGatewayInput{}
  7653. }
  7654. output = &DeleteVpnGatewayOutput{}
  7655. req = c.newRequest(op, input, output)
  7656. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  7657. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  7658. return
  7659. }
  7660. // DeleteVpnGateway API operation for Amazon Elastic Compute Cloud.
  7661. //
  7662. // Deletes the specified virtual private gateway. We recommend that before you
  7663. // delete a virtual private gateway, you detach it from the VPC and delete the
  7664. // VPN connection. Note that you don't need to delete the virtual private gateway
  7665. // if you plan to delete and recreate the VPN connection between your VPC and
  7666. // your network.
  7667. //
  7668. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7669. // with awserr.Error's Code and Message methods to get detailed information about
  7670. // the error.
  7671. //
  7672. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7673. // API operation DeleteVpnGateway for usage and error information.
  7674. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnGateway
  7675. func (c *EC2) DeleteVpnGateway(input *DeleteVpnGatewayInput) (*DeleteVpnGatewayOutput, error) {
  7676. req, out := c.DeleteVpnGatewayRequest(input)
  7677. return out, req.Send()
  7678. }
  7679. // DeleteVpnGatewayWithContext is the same as DeleteVpnGateway with the addition of
  7680. // the ability to pass a context and additional request options.
  7681. //
  7682. // See DeleteVpnGateway for details on how to use this API operation.
  7683. //
  7684. // The context must be non-nil and will be used for request cancellation. If
  7685. // the context is nil a panic will occur. In the future the SDK may create
  7686. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7687. // for more information on using Contexts.
  7688. func (c *EC2) DeleteVpnGatewayWithContext(ctx aws.Context, input *DeleteVpnGatewayInput, opts ...request.Option) (*DeleteVpnGatewayOutput, error) {
  7689. req, out := c.DeleteVpnGatewayRequest(input)
  7690. req.SetContext(ctx)
  7691. req.ApplyOptions(opts...)
  7692. return out, req.Send()
  7693. }
  7694. const opDeregisterImage = "DeregisterImage"
  7695. // DeregisterImageRequest generates a "aws/request.Request" representing the
  7696. // client's request for the DeregisterImage operation. The "output" return
  7697. // value will be populated with the request's response once the request completes
  7698. // successfuly.
  7699. //
  7700. // Use "Send" method on the returned Request to send the API call to the service.
  7701. // the "output" return value is not valid until after Send returns without error.
  7702. //
  7703. // See DeregisterImage for more information on using the DeregisterImage
  7704. // API call, and error handling.
  7705. //
  7706. // This method is useful when you want to inject custom logic or configuration
  7707. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7708. //
  7709. //
  7710. // // Example sending a request using the DeregisterImageRequest method.
  7711. // req, resp := client.DeregisterImageRequest(params)
  7712. //
  7713. // err := req.Send()
  7714. // if err == nil { // resp is now filled
  7715. // fmt.Println(resp)
  7716. // }
  7717. //
  7718. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeregisterImage
  7719. func (c *EC2) DeregisterImageRequest(input *DeregisterImageInput) (req *request.Request, output *DeregisterImageOutput) {
  7720. op := &request.Operation{
  7721. Name: opDeregisterImage,
  7722. HTTPMethod: "POST",
  7723. HTTPPath: "/",
  7724. }
  7725. if input == nil {
  7726. input = &DeregisterImageInput{}
  7727. }
  7728. output = &DeregisterImageOutput{}
  7729. req = c.newRequest(op, input, output)
  7730. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  7731. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  7732. return
  7733. }
  7734. // DeregisterImage API operation for Amazon Elastic Compute Cloud.
  7735. //
  7736. // Deregisters the specified AMI. After you deregister an AMI, it can't be used
  7737. // to launch new instances; however, it doesn't affect any instances that you've
  7738. // already launched from the AMI. You'll continue to incur usage costs for those
  7739. // instances until you terminate them.
  7740. //
  7741. // When you deregister an Amazon EBS-backed AMI, it doesn't affect the snapshot
  7742. // that was created for the root volume of the instance during the AMI creation
  7743. // process. When you deregister an instance store-backed AMI, it doesn't affect
  7744. // the files that you uploaded to Amazon S3 when you created the AMI.
  7745. //
  7746. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7747. // with awserr.Error's Code and Message methods to get detailed information about
  7748. // the error.
  7749. //
  7750. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7751. // API operation DeregisterImage for usage and error information.
  7752. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeregisterImage
  7753. func (c *EC2) DeregisterImage(input *DeregisterImageInput) (*DeregisterImageOutput, error) {
  7754. req, out := c.DeregisterImageRequest(input)
  7755. return out, req.Send()
  7756. }
  7757. // DeregisterImageWithContext is the same as DeregisterImage with the addition of
  7758. // the ability to pass a context and additional request options.
  7759. //
  7760. // See DeregisterImage for details on how to use this API operation.
  7761. //
  7762. // The context must be non-nil and will be used for request cancellation. If
  7763. // the context is nil a panic will occur. In the future the SDK may create
  7764. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7765. // for more information on using Contexts.
  7766. func (c *EC2) DeregisterImageWithContext(ctx aws.Context, input *DeregisterImageInput, opts ...request.Option) (*DeregisterImageOutput, error) {
  7767. req, out := c.DeregisterImageRequest(input)
  7768. req.SetContext(ctx)
  7769. req.ApplyOptions(opts...)
  7770. return out, req.Send()
  7771. }
  7772. const opDescribeAccountAttributes = "DescribeAccountAttributes"
  7773. // DescribeAccountAttributesRequest generates a "aws/request.Request" representing the
  7774. // client's request for the DescribeAccountAttributes operation. The "output" return
  7775. // value will be populated with the request's response once the request completes
  7776. // successfuly.
  7777. //
  7778. // Use "Send" method on the returned Request to send the API call to the service.
  7779. // the "output" return value is not valid until after Send returns without error.
  7780. //
  7781. // See DescribeAccountAttributes for more information on using the DescribeAccountAttributes
  7782. // API call, and error handling.
  7783. //
  7784. // This method is useful when you want to inject custom logic or configuration
  7785. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7786. //
  7787. //
  7788. // // Example sending a request using the DescribeAccountAttributesRequest method.
  7789. // req, resp := client.DescribeAccountAttributesRequest(params)
  7790. //
  7791. // err := req.Send()
  7792. // if err == nil { // resp is now filled
  7793. // fmt.Println(resp)
  7794. // }
  7795. //
  7796. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAccountAttributes
  7797. func (c *EC2) DescribeAccountAttributesRequest(input *DescribeAccountAttributesInput) (req *request.Request, output *DescribeAccountAttributesOutput) {
  7798. op := &request.Operation{
  7799. Name: opDescribeAccountAttributes,
  7800. HTTPMethod: "POST",
  7801. HTTPPath: "/",
  7802. }
  7803. if input == nil {
  7804. input = &DescribeAccountAttributesInput{}
  7805. }
  7806. output = &DescribeAccountAttributesOutput{}
  7807. req = c.newRequest(op, input, output)
  7808. return
  7809. }
  7810. // DescribeAccountAttributes API operation for Amazon Elastic Compute Cloud.
  7811. //
  7812. // Describes attributes of your AWS account. The following are the supported
  7813. // account attributes:
  7814. //
  7815. // * supported-platforms: Indicates whether your account can launch instances
  7816. // into EC2-Classic and EC2-VPC, or only into EC2-VPC.
  7817. //
  7818. // * default-vpc: The ID of the default VPC for your account, or none.
  7819. //
  7820. // * max-instances: The maximum number of On-Demand Instances that you can
  7821. // run.
  7822. //
  7823. // * vpc-max-security-groups-per-interface: The maximum number of security
  7824. // groups that you can assign to a network interface.
  7825. //
  7826. // * max-elastic-ips: The maximum number of Elastic IP addresses that you
  7827. // can allocate for use with EC2-Classic.
  7828. //
  7829. // * vpc-max-elastic-ips: The maximum number of Elastic IP addresses that
  7830. // you can allocate for use with EC2-VPC.
  7831. //
  7832. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7833. // with awserr.Error's Code and Message methods to get detailed information about
  7834. // the error.
  7835. //
  7836. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7837. // API operation DescribeAccountAttributes for usage and error information.
  7838. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAccountAttributes
  7839. func (c *EC2) DescribeAccountAttributes(input *DescribeAccountAttributesInput) (*DescribeAccountAttributesOutput, error) {
  7840. req, out := c.DescribeAccountAttributesRequest(input)
  7841. return out, req.Send()
  7842. }
  7843. // DescribeAccountAttributesWithContext is the same as DescribeAccountAttributes with the addition of
  7844. // the ability to pass a context and additional request options.
  7845. //
  7846. // See DescribeAccountAttributes for details on how to use this API operation.
  7847. //
  7848. // The context must be non-nil and will be used for request cancellation. If
  7849. // the context is nil a panic will occur. In the future the SDK may create
  7850. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7851. // for more information on using Contexts.
  7852. func (c *EC2) DescribeAccountAttributesWithContext(ctx aws.Context, input *DescribeAccountAttributesInput, opts ...request.Option) (*DescribeAccountAttributesOutput, error) {
  7853. req, out := c.DescribeAccountAttributesRequest(input)
  7854. req.SetContext(ctx)
  7855. req.ApplyOptions(opts...)
  7856. return out, req.Send()
  7857. }
  7858. const opDescribeAddresses = "DescribeAddresses"
  7859. // DescribeAddressesRequest generates a "aws/request.Request" representing the
  7860. // client's request for the DescribeAddresses operation. The "output" return
  7861. // value will be populated with the request's response once the request completes
  7862. // successfuly.
  7863. //
  7864. // Use "Send" method on the returned Request to send the API call to the service.
  7865. // the "output" return value is not valid until after Send returns without error.
  7866. //
  7867. // See DescribeAddresses for more information on using the DescribeAddresses
  7868. // API call, and error handling.
  7869. //
  7870. // This method is useful when you want to inject custom logic or configuration
  7871. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7872. //
  7873. //
  7874. // // Example sending a request using the DescribeAddressesRequest method.
  7875. // req, resp := client.DescribeAddressesRequest(params)
  7876. //
  7877. // err := req.Send()
  7878. // if err == nil { // resp is now filled
  7879. // fmt.Println(resp)
  7880. // }
  7881. //
  7882. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAddresses
  7883. func (c *EC2) DescribeAddressesRequest(input *DescribeAddressesInput) (req *request.Request, output *DescribeAddressesOutput) {
  7884. op := &request.Operation{
  7885. Name: opDescribeAddresses,
  7886. HTTPMethod: "POST",
  7887. HTTPPath: "/",
  7888. }
  7889. if input == nil {
  7890. input = &DescribeAddressesInput{}
  7891. }
  7892. output = &DescribeAddressesOutput{}
  7893. req = c.newRequest(op, input, output)
  7894. return
  7895. }
  7896. // DescribeAddresses API operation for Amazon Elastic Compute Cloud.
  7897. //
  7898. // Describes one or more of your Elastic IP addresses.
  7899. //
  7900. // An Elastic IP address is for use in either the EC2-Classic platform or in
  7901. // a VPC. For more information, see Elastic IP Addresses (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html)
  7902. // in the Amazon Elastic Compute Cloud User Guide.
  7903. //
  7904. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7905. // with awserr.Error's Code and Message methods to get detailed information about
  7906. // the error.
  7907. //
  7908. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7909. // API operation DescribeAddresses for usage and error information.
  7910. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAddresses
  7911. func (c *EC2) DescribeAddresses(input *DescribeAddressesInput) (*DescribeAddressesOutput, error) {
  7912. req, out := c.DescribeAddressesRequest(input)
  7913. return out, req.Send()
  7914. }
  7915. // DescribeAddressesWithContext is the same as DescribeAddresses with the addition of
  7916. // the ability to pass a context and additional request options.
  7917. //
  7918. // See DescribeAddresses for details on how to use this API operation.
  7919. //
  7920. // The context must be non-nil and will be used for request cancellation. If
  7921. // the context is nil a panic will occur. In the future the SDK may create
  7922. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7923. // for more information on using Contexts.
  7924. func (c *EC2) DescribeAddressesWithContext(ctx aws.Context, input *DescribeAddressesInput, opts ...request.Option) (*DescribeAddressesOutput, error) {
  7925. req, out := c.DescribeAddressesRequest(input)
  7926. req.SetContext(ctx)
  7927. req.ApplyOptions(opts...)
  7928. return out, req.Send()
  7929. }
  7930. const opDescribeAggregateIdFormat = "DescribeAggregateIdFormat"
  7931. // DescribeAggregateIdFormatRequest generates a "aws/request.Request" representing the
  7932. // client's request for the DescribeAggregateIdFormat operation. The "output" return
  7933. // value will be populated with the request's response once the request completes
  7934. // successfuly.
  7935. //
  7936. // Use "Send" method on the returned Request to send the API call to the service.
  7937. // the "output" return value is not valid until after Send returns without error.
  7938. //
  7939. // See DescribeAggregateIdFormat for more information on using the DescribeAggregateIdFormat
  7940. // API call, and error handling.
  7941. //
  7942. // This method is useful when you want to inject custom logic or configuration
  7943. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7944. //
  7945. //
  7946. // // Example sending a request using the DescribeAggregateIdFormatRequest method.
  7947. // req, resp := client.DescribeAggregateIdFormatRequest(params)
  7948. //
  7949. // err := req.Send()
  7950. // if err == nil { // resp is now filled
  7951. // fmt.Println(resp)
  7952. // }
  7953. //
  7954. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAggregateIdFormat
  7955. func (c *EC2) DescribeAggregateIdFormatRequest(input *DescribeAggregateIdFormatInput) (req *request.Request, output *DescribeAggregateIdFormatOutput) {
  7956. op := &request.Operation{
  7957. Name: opDescribeAggregateIdFormat,
  7958. HTTPMethod: "POST",
  7959. HTTPPath: "/",
  7960. }
  7961. if input == nil {
  7962. input = &DescribeAggregateIdFormatInput{}
  7963. }
  7964. output = &DescribeAggregateIdFormatOutput{}
  7965. req = c.newRequest(op, input, output)
  7966. return
  7967. }
  7968. // DescribeAggregateIdFormat API operation for Amazon Elastic Compute Cloud.
  7969. //
  7970. // Describes the longer ID format settings for all resource types in a specific
  7971. // region. This request is useful for performing a quick audit to determine
  7972. // whether a specific region is fully opted in for longer IDs (17-character
  7973. // IDs).
  7974. //
  7975. // This request only returns information about resource types that support longer
  7976. // IDs.
  7977. //
  7978. // The following resource types support longer IDs: bundle | conversion-task
  7979. // | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association
  7980. // | export-task | flow-log | image | import-task | instance | internet-gateway
  7981. // | network-acl | network-acl-association | network-interface | network-interface-attachment
  7982. // | prefix-list | reservation | route-table | route-table-association | security-group
  7983. // | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association
  7984. // | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.
  7985. //
  7986. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7987. // with awserr.Error's Code and Message methods to get detailed information about
  7988. // the error.
  7989. //
  7990. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7991. // API operation DescribeAggregateIdFormat for usage and error information.
  7992. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAggregateIdFormat
  7993. func (c *EC2) DescribeAggregateIdFormat(input *DescribeAggregateIdFormatInput) (*DescribeAggregateIdFormatOutput, error) {
  7994. req, out := c.DescribeAggregateIdFormatRequest(input)
  7995. return out, req.Send()
  7996. }
  7997. // DescribeAggregateIdFormatWithContext is the same as DescribeAggregateIdFormat with the addition of
  7998. // the ability to pass a context and additional request options.
  7999. //
  8000. // See DescribeAggregateIdFormat for details on how to use this API operation.
  8001. //
  8002. // The context must be non-nil and will be used for request cancellation. If
  8003. // the context is nil a panic will occur. In the future the SDK may create
  8004. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8005. // for more information on using Contexts.
  8006. func (c *EC2) DescribeAggregateIdFormatWithContext(ctx aws.Context, input *DescribeAggregateIdFormatInput, opts ...request.Option) (*DescribeAggregateIdFormatOutput, error) {
  8007. req, out := c.DescribeAggregateIdFormatRequest(input)
  8008. req.SetContext(ctx)
  8009. req.ApplyOptions(opts...)
  8010. return out, req.Send()
  8011. }
  8012. const opDescribeAvailabilityZones = "DescribeAvailabilityZones"
  8013. // DescribeAvailabilityZonesRequest generates a "aws/request.Request" representing the
  8014. // client's request for the DescribeAvailabilityZones operation. The "output" return
  8015. // value will be populated with the request's response once the request completes
  8016. // successfuly.
  8017. //
  8018. // Use "Send" method on the returned Request to send the API call to the service.
  8019. // the "output" return value is not valid until after Send returns without error.
  8020. //
  8021. // See DescribeAvailabilityZones for more information on using the DescribeAvailabilityZones
  8022. // API call, and error handling.
  8023. //
  8024. // This method is useful when you want to inject custom logic or configuration
  8025. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8026. //
  8027. //
  8028. // // Example sending a request using the DescribeAvailabilityZonesRequest method.
  8029. // req, resp := client.DescribeAvailabilityZonesRequest(params)
  8030. //
  8031. // err := req.Send()
  8032. // if err == nil { // resp is now filled
  8033. // fmt.Println(resp)
  8034. // }
  8035. //
  8036. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAvailabilityZones
  8037. func (c *EC2) DescribeAvailabilityZonesRequest(input *DescribeAvailabilityZonesInput) (req *request.Request, output *DescribeAvailabilityZonesOutput) {
  8038. op := &request.Operation{
  8039. Name: opDescribeAvailabilityZones,
  8040. HTTPMethod: "POST",
  8041. HTTPPath: "/",
  8042. }
  8043. if input == nil {
  8044. input = &DescribeAvailabilityZonesInput{}
  8045. }
  8046. output = &DescribeAvailabilityZonesOutput{}
  8047. req = c.newRequest(op, input, output)
  8048. return
  8049. }
  8050. // DescribeAvailabilityZones API operation for Amazon Elastic Compute Cloud.
  8051. //
  8052. // Describes one or more of the Availability Zones that are available to you.
  8053. // The results include zones only for the region you're currently using. If
  8054. // there is an event impacting an Availability Zone, you can use this request
  8055. // to view the state and any provided message for that Availability Zone.
  8056. //
  8057. // For more information, see Regions and Availability Zones (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html)
  8058. // in the Amazon Elastic Compute Cloud User Guide.
  8059. //
  8060. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8061. // with awserr.Error's Code and Message methods to get detailed information about
  8062. // the error.
  8063. //
  8064. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8065. // API operation DescribeAvailabilityZones for usage and error information.
  8066. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAvailabilityZones
  8067. func (c *EC2) DescribeAvailabilityZones(input *DescribeAvailabilityZonesInput) (*DescribeAvailabilityZonesOutput, error) {
  8068. req, out := c.DescribeAvailabilityZonesRequest(input)
  8069. return out, req.Send()
  8070. }
  8071. // DescribeAvailabilityZonesWithContext is the same as DescribeAvailabilityZones with the addition of
  8072. // the ability to pass a context and additional request options.
  8073. //
  8074. // See DescribeAvailabilityZones for details on how to use this API operation.
  8075. //
  8076. // The context must be non-nil and will be used for request cancellation. If
  8077. // the context is nil a panic will occur. In the future the SDK may create
  8078. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8079. // for more information on using Contexts.
  8080. func (c *EC2) DescribeAvailabilityZonesWithContext(ctx aws.Context, input *DescribeAvailabilityZonesInput, opts ...request.Option) (*DescribeAvailabilityZonesOutput, error) {
  8081. req, out := c.DescribeAvailabilityZonesRequest(input)
  8082. req.SetContext(ctx)
  8083. req.ApplyOptions(opts...)
  8084. return out, req.Send()
  8085. }
  8086. const opDescribeBundleTasks = "DescribeBundleTasks"
  8087. // DescribeBundleTasksRequest generates a "aws/request.Request" representing the
  8088. // client's request for the DescribeBundleTasks operation. The "output" return
  8089. // value will be populated with the request's response once the request completes
  8090. // successfuly.
  8091. //
  8092. // Use "Send" method on the returned Request to send the API call to the service.
  8093. // the "output" return value is not valid until after Send returns without error.
  8094. //
  8095. // See DescribeBundleTasks for more information on using the DescribeBundleTasks
  8096. // API call, and error handling.
  8097. //
  8098. // This method is useful when you want to inject custom logic or configuration
  8099. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8100. //
  8101. //
  8102. // // Example sending a request using the DescribeBundleTasksRequest method.
  8103. // req, resp := client.DescribeBundleTasksRequest(params)
  8104. //
  8105. // err := req.Send()
  8106. // if err == nil { // resp is now filled
  8107. // fmt.Println(resp)
  8108. // }
  8109. //
  8110. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeBundleTasks
  8111. func (c *EC2) DescribeBundleTasksRequest(input *DescribeBundleTasksInput) (req *request.Request, output *DescribeBundleTasksOutput) {
  8112. op := &request.Operation{
  8113. Name: opDescribeBundleTasks,
  8114. HTTPMethod: "POST",
  8115. HTTPPath: "/",
  8116. }
  8117. if input == nil {
  8118. input = &DescribeBundleTasksInput{}
  8119. }
  8120. output = &DescribeBundleTasksOutput{}
  8121. req = c.newRequest(op, input, output)
  8122. return
  8123. }
  8124. // DescribeBundleTasks API operation for Amazon Elastic Compute Cloud.
  8125. //
  8126. // Describes one or more of your bundling tasks.
  8127. //
  8128. // Completed bundle tasks are listed for only a limited time. If your bundle
  8129. // task is no longer in the list, you can still register an AMI from it. Just
  8130. // use RegisterImage with the Amazon S3 bucket name and image manifest name
  8131. // you provided to the bundle task.
  8132. //
  8133. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8134. // with awserr.Error's Code and Message methods to get detailed information about
  8135. // the error.
  8136. //
  8137. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8138. // API operation DescribeBundleTasks for usage and error information.
  8139. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeBundleTasks
  8140. func (c *EC2) DescribeBundleTasks(input *DescribeBundleTasksInput) (*DescribeBundleTasksOutput, error) {
  8141. req, out := c.DescribeBundleTasksRequest(input)
  8142. return out, req.Send()
  8143. }
  8144. // DescribeBundleTasksWithContext is the same as DescribeBundleTasks with the addition of
  8145. // the ability to pass a context and additional request options.
  8146. //
  8147. // See DescribeBundleTasks for details on how to use this API operation.
  8148. //
  8149. // The context must be non-nil and will be used for request cancellation. If
  8150. // the context is nil a panic will occur. In the future the SDK may create
  8151. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8152. // for more information on using Contexts.
  8153. func (c *EC2) DescribeBundleTasksWithContext(ctx aws.Context, input *DescribeBundleTasksInput, opts ...request.Option) (*DescribeBundleTasksOutput, error) {
  8154. req, out := c.DescribeBundleTasksRequest(input)
  8155. req.SetContext(ctx)
  8156. req.ApplyOptions(opts...)
  8157. return out, req.Send()
  8158. }
  8159. const opDescribeClassicLinkInstances = "DescribeClassicLinkInstances"
  8160. // DescribeClassicLinkInstancesRequest generates a "aws/request.Request" representing the
  8161. // client's request for the DescribeClassicLinkInstances operation. The "output" return
  8162. // value will be populated with the request's response once the request completes
  8163. // successfuly.
  8164. //
  8165. // Use "Send" method on the returned Request to send the API call to the service.
  8166. // the "output" return value is not valid until after Send returns without error.
  8167. //
  8168. // See DescribeClassicLinkInstances for more information on using the DescribeClassicLinkInstances
  8169. // API call, and error handling.
  8170. //
  8171. // This method is useful when you want to inject custom logic or configuration
  8172. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8173. //
  8174. //
  8175. // // Example sending a request using the DescribeClassicLinkInstancesRequest method.
  8176. // req, resp := client.DescribeClassicLinkInstancesRequest(params)
  8177. //
  8178. // err := req.Send()
  8179. // if err == nil { // resp is now filled
  8180. // fmt.Println(resp)
  8181. // }
  8182. //
  8183. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeClassicLinkInstances
  8184. func (c *EC2) DescribeClassicLinkInstancesRequest(input *DescribeClassicLinkInstancesInput) (req *request.Request, output *DescribeClassicLinkInstancesOutput) {
  8185. op := &request.Operation{
  8186. Name: opDescribeClassicLinkInstances,
  8187. HTTPMethod: "POST",
  8188. HTTPPath: "/",
  8189. }
  8190. if input == nil {
  8191. input = &DescribeClassicLinkInstancesInput{}
  8192. }
  8193. output = &DescribeClassicLinkInstancesOutput{}
  8194. req = c.newRequest(op, input, output)
  8195. return
  8196. }
  8197. // DescribeClassicLinkInstances API operation for Amazon Elastic Compute Cloud.
  8198. //
  8199. // Describes one or more of your linked EC2-Classic instances. This request
  8200. // only returns information about EC2-Classic instances linked to a VPC through
  8201. // ClassicLink; you cannot use this request to return information about other
  8202. // instances.
  8203. //
  8204. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8205. // with awserr.Error's Code and Message methods to get detailed information about
  8206. // the error.
  8207. //
  8208. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8209. // API operation DescribeClassicLinkInstances for usage and error information.
  8210. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeClassicLinkInstances
  8211. func (c *EC2) DescribeClassicLinkInstances(input *DescribeClassicLinkInstancesInput) (*DescribeClassicLinkInstancesOutput, error) {
  8212. req, out := c.DescribeClassicLinkInstancesRequest(input)
  8213. return out, req.Send()
  8214. }
  8215. // DescribeClassicLinkInstancesWithContext is the same as DescribeClassicLinkInstances with the addition of
  8216. // the ability to pass a context and additional request options.
  8217. //
  8218. // See DescribeClassicLinkInstances for details on how to use this API operation.
  8219. //
  8220. // The context must be non-nil and will be used for request cancellation. If
  8221. // the context is nil a panic will occur. In the future the SDK may create
  8222. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8223. // for more information on using Contexts.
  8224. func (c *EC2) DescribeClassicLinkInstancesWithContext(ctx aws.Context, input *DescribeClassicLinkInstancesInput, opts ...request.Option) (*DescribeClassicLinkInstancesOutput, error) {
  8225. req, out := c.DescribeClassicLinkInstancesRequest(input)
  8226. req.SetContext(ctx)
  8227. req.ApplyOptions(opts...)
  8228. return out, req.Send()
  8229. }
  8230. const opDescribeConversionTasks = "DescribeConversionTasks"
  8231. // DescribeConversionTasksRequest generates a "aws/request.Request" representing the
  8232. // client's request for the DescribeConversionTasks operation. The "output" return
  8233. // value will be populated with the request's response once the request completes
  8234. // successfuly.
  8235. //
  8236. // Use "Send" method on the returned Request to send the API call to the service.
  8237. // the "output" return value is not valid until after Send returns without error.
  8238. //
  8239. // See DescribeConversionTasks for more information on using the DescribeConversionTasks
  8240. // API call, and error handling.
  8241. //
  8242. // This method is useful when you want to inject custom logic or configuration
  8243. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8244. //
  8245. //
  8246. // // Example sending a request using the DescribeConversionTasksRequest method.
  8247. // req, resp := client.DescribeConversionTasksRequest(params)
  8248. //
  8249. // err := req.Send()
  8250. // if err == nil { // resp is now filled
  8251. // fmt.Println(resp)
  8252. // }
  8253. //
  8254. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeConversionTasks
  8255. func (c *EC2) DescribeConversionTasksRequest(input *DescribeConversionTasksInput) (req *request.Request, output *DescribeConversionTasksOutput) {
  8256. op := &request.Operation{
  8257. Name: opDescribeConversionTasks,
  8258. HTTPMethod: "POST",
  8259. HTTPPath: "/",
  8260. }
  8261. if input == nil {
  8262. input = &DescribeConversionTasksInput{}
  8263. }
  8264. output = &DescribeConversionTasksOutput{}
  8265. req = c.newRequest(op, input, output)
  8266. return
  8267. }
  8268. // DescribeConversionTasks API operation for Amazon Elastic Compute Cloud.
  8269. //
  8270. // Describes one or more of your conversion tasks. For more information, see
  8271. // the VM Import/Export User Guide (http://docs.aws.amazon.com/vm-import/latest/userguide/).
  8272. //
  8273. // For information about the import manifest referenced by this API action,
  8274. // see VM Import Manifest (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html).
  8275. //
  8276. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8277. // with awserr.Error's Code and Message methods to get detailed information about
  8278. // the error.
  8279. //
  8280. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8281. // API operation DescribeConversionTasks for usage and error information.
  8282. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeConversionTasks
  8283. func (c *EC2) DescribeConversionTasks(input *DescribeConversionTasksInput) (*DescribeConversionTasksOutput, error) {
  8284. req, out := c.DescribeConversionTasksRequest(input)
  8285. return out, req.Send()
  8286. }
  8287. // DescribeConversionTasksWithContext is the same as DescribeConversionTasks with the addition of
  8288. // the ability to pass a context and additional request options.
  8289. //
  8290. // See DescribeConversionTasks for details on how to use this API operation.
  8291. //
  8292. // The context must be non-nil and will be used for request cancellation. If
  8293. // the context is nil a panic will occur. In the future the SDK may create
  8294. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8295. // for more information on using Contexts.
  8296. func (c *EC2) DescribeConversionTasksWithContext(ctx aws.Context, input *DescribeConversionTasksInput, opts ...request.Option) (*DescribeConversionTasksOutput, error) {
  8297. req, out := c.DescribeConversionTasksRequest(input)
  8298. req.SetContext(ctx)
  8299. req.ApplyOptions(opts...)
  8300. return out, req.Send()
  8301. }
  8302. const opDescribeCustomerGateways = "DescribeCustomerGateways"
  8303. // DescribeCustomerGatewaysRequest generates a "aws/request.Request" representing the
  8304. // client's request for the DescribeCustomerGateways operation. The "output" return
  8305. // value will be populated with the request's response once the request completes
  8306. // successfuly.
  8307. //
  8308. // Use "Send" method on the returned Request to send the API call to the service.
  8309. // the "output" return value is not valid until after Send returns without error.
  8310. //
  8311. // See DescribeCustomerGateways for more information on using the DescribeCustomerGateways
  8312. // API call, and error handling.
  8313. //
  8314. // This method is useful when you want to inject custom logic or configuration
  8315. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8316. //
  8317. //
  8318. // // Example sending a request using the DescribeCustomerGatewaysRequest method.
  8319. // req, resp := client.DescribeCustomerGatewaysRequest(params)
  8320. //
  8321. // err := req.Send()
  8322. // if err == nil { // resp is now filled
  8323. // fmt.Println(resp)
  8324. // }
  8325. //
  8326. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeCustomerGateways
  8327. func (c *EC2) DescribeCustomerGatewaysRequest(input *DescribeCustomerGatewaysInput) (req *request.Request, output *DescribeCustomerGatewaysOutput) {
  8328. op := &request.Operation{
  8329. Name: opDescribeCustomerGateways,
  8330. HTTPMethod: "POST",
  8331. HTTPPath: "/",
  8332. }
  8333. if input == nil {
  8334. input = &DescribeCustomerGatewaysInput{}
  8335. }
  8336. output = &DescribeCustomerGatewaysOutput{}
  8337. req = c.newRequest(op, input, output)
  8338. return
  8339. }
  8340. // DescribeCustomerGateways API operation for Amazon Elastic Compute Cloud.
  8341. //
  8342. // Describes one or more of your VPN customer gateways.
  8343. //
  8344. // For more information about VPN customer gateways, see AWS Managed VPN Connections
  8345. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html) in the
  8346. // Amazon Virtual Private Cloud User Guide.
  8347. //
  8348. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8349. // with awserr.Error's Code and Message methods to get detailed information about
  8350. // the error.
  8351. //
  8352. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8353. // API operation DescribeCustomerGateways for usage and error information.
  8354. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeCustomerGateways
  8355. func (c *EC2) DescribeCustomerGateways(input *DescribeCustomerGatewaysInput) (*DescribeCustomerGatewaysOutput, error) {
  8356. req, out := c.DescribeCustomerGatewaysRequest(input)
  8357. return out, req.Send()
  8358. }
  8359. // DescribeCustomerGatewaysWithContext is the same as DescribeCustomerGateways with the addition of
  8360. // the ability to pass a context and additional request options.
  8361. //
  8362. // See DescribeCustomerGateways for details on how to use this API operation.
  8363. //
  8364. // The context must be non-nil and will be used for request cancellation. If
  8365. // the context is nil a panic will occur. In the future the SDK may create
  8366. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8367. // for more information on using Contexts.
  8368. func (c *EC2) DescribeCustomerGatewaysWithContext(ctx aws.Context, input *DescribeCustomerGatewaysInput, opts ...request.Option) (*DescribeCustomerGatewaysOutput, error) {
  8369. req, out := c.DescribeCustomerGatewaysRequest(input)
  8370. req.SetContext(ctx)
  8371. req.ApplyOptions(opts...)
  8372. return out, req.Send()
  8373. }
  8374. const opDescribeDhcpOptions = "DescribeDhcpOptions"
  8375. // DescribeDhcpOptionsRequest generates a "aws/request.Request" representing the
  8376. // client's request for the DescribeDhcpOptions operation. The "output" return
  8377. // value will be populated with the request's response once the request completes
  8378. // successfuly.
  8379. //
  8380. // Use "Send" method on the returned Request to send the API call to the service.
  8381. // the "output" return value is not valid until after Send returns without error.
  8382. //
  8383. // See DescribeDhcpOptions for more information on using the DescribeDhcpOptions
  8384. // API call, and error handling.
  8385. //
  8386. // This method is useful when you want to inject custom logic or configuration
  8387. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8388. //
  8389. //
  8390. // // Example sending a request using the DescribeDhcpOptionsRequest method.
  8391. // req, resp := client.DescribeDhcpOptionsRequest(params)
  8392. //
  8393. // err := req.Send()
  8394. // if err == nil { // resp is now filled
  8395. // fmt.Println(resp)
  8396. // }
  8397. //
  8398. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeDhcpOptions
  8399. func (c *EC2) DescribeDhcpOptionsRequest(input *DescribeDhcpOptionsInput) (req *request.Request, output *DescribeDhcpOptionsOutput) {
  8400. op := &request.Operation{
  8401. Name: opDescribeDhcpOptions,
  8402. HTTPMethod: "POST",
  8403. HTTPPath: "/",
  8404. }
  8405. if input == nil {
  8406. input = &DescribeDhcpOptionsInput{}
  8407. }
  8408. output = &DescribeDhcpOptionsOutput{}
  8409. req = c.newRequest(op, input, output)
  8410. return
  8411. }
  8412. // DescribeDhcpOptions API operation for Amazon Elastic Compute Cloud.
  8413. //
  8414. // Describes one or more of your DHCP options sets.
  8415. //
  8416. // For more information about DHCP options sets, see DHCP Options Sets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_DHCP_Options.html)
  8417. // in the Amazon Virtual Private Cloud User Guide.
  8418. //
  8419. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8420. // with awserr.Error's Code and Message methods to get detailed information about
  8421. // the error.
  8422. //
  8423. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8424. // API operation DescribeDhcpOptions for usage and error information.
  8425. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeDhcpOptions
  8426. func (c *EC2) DescribeDhcpOptions(input *DescribeDhcpOptionsInput) (*DescribeDhcpOptionsOutput, error) {
  8427. req, out := c.DescribeDhcpOptionsRequest(input)
  8428. return out, req.Send()
  8429. }
  8430. // DescribeDhcpOptionsWithContext is the same as DescribeDhcpOptions with the addition of
  8431. // the ability to pass a context and additional request options.
  8432. //
  8433. // See DescribeDhcpOptions for details on how to use this API operation.
  8434. //
  8435. // The context must be non-nil and will be used for request cancellation. If
  8436. // the context is nil a panic will occur. In the future the SDK may create
  8437. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8438. // for more information on using Contexts.
  8439. func (c *EC2) DescribeDhcpOptionsWithContext(ctx aws.Context, input *DescribeDhcpOptionsInput, opts ...request.Option) (*DescribeDhcpOptionsOutput, error) {
  8440. req, out := c.DescribeDhcpOptionsRequest(input)
  8441. req.SetContext(ctx)
  8442. req.ApplyOptions(opts...)
  8443. return out, req.Send()
  8444. }
  8445. const opDescribeEgressOnlyInternetGateways = "DescribeEgressOnlyInternetGateways"
  8446. // DescribeEgressOnlyInternetGatewaysRequest generates a "aws/request.Request" representing the
  8447. // client's request for the DescribeEgressOnlyInternetGateways operation. The "output" return
  8448. // value will be populated with the request's response once the request completes
  8449. // successfuly.
  8450. //
  8451. // Use "Send" method on the returned Request to send the API call to the service.
  8452. // the "output" return value is not valid until after Send returns without error.
  8453. //
  8454. // See DescribeEgressOnlyInternetGateways for more information on using the DescribeEgressOnlyInternetGateways
  8455. // API call, and error handling.
  8456. //
  8457. // This method is useful when you want to inject custom logic or configuration
  8458. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8459. //
  8460. //
  8461. // // Example sending a request using the DescribeEgressOnlyInternetGatewaysRequest method.
  8462. // req, resp := client.DescribeEgressOnlyInternetGatewaysRequest(params)
  8463. //
  8464. // err := req.Send()
  8465. // if err == nil { // resp is now filled
  8466. // fmt.Println(resp)
  8467. // }
  8468. //
  8469. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeEgressOnlyInternetGateways
  8470. func (c *EC2) DescribeEgressOnlyInternetGatewaysRequest(input *DescribeEgressOnlyInternetGatewaysInput) (req *request.Request, output *DescribeEgressOnlyInternetGatewaysOutput) {
  8471. op := &request.Operation{
  8472. Name: opDescribeEgressOnlyInternetGateways,
  8473. HTTPMethod: "POST",
  8474. HTTPPath: "/",
  8475. }
  8476. if input == nil {
  8477. input = &DescribeEgressOnlyInternetGatewaysInput{}
  8478. }
  8479. output = &DescribeEgressOnlyInternetGatewaysOutput{}
  8480. req = c.newRequest(op, input, output)
  8481. return
  8482. }
  8483. // DescribeEgressOnlyInternetGateways API operation for Amazon Elastic Compute Cloud.
  8484. //
  8485. // Describes one or more of your egress-only Internet gateways.
  8486. //
  8487. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8488. // with awserr.Error's Code and Message methods to get detailed information about
  8489. // the error.
  8490. //
  8491. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8492. // API operation DescribeEgressOnlyInternetGateways for usage and error information.
  8493. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeEgressOnlyInternetGateways
  8494. func (c *EC2) DescribeEgressOnlyInternetGateways(input *DescribeEgressOnlyInternetGatewaysInput) (*DescribeEgressOnlyInternetGatewaysOutput, error) {
  8495. req, out := c.DescribeEgressOnlyInternetGatewaysRequest(input)
  8496. return out, req.Send()
  8497. }
  8498. // DescribeEgressOnlyInternetGatewaysWithContext is the same as DescribeEgressOnlyInternetGateways with the addition of
  8499. // the ability to pass a context and additional request options.
  8500. //
  8501. // See DescribeEgressOnlyInternetGateways for details on how to use this API operation.
  8502. //
  8503. // The context must be non-nil and will be used for request cancellation. If
  8504. // the context is nil a panic will occur. In the future the SDK may create
  8505. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8506. // for more information on using Contexts.
  8507. func (c *EC2) DescribeEgressOnlyInternetGatewaysWithContext(ctx aws.Context, input *DescribeEgressOnlyInternetGatewaysInput, opts ...request.Option) (*DescribeEgressOnlyInternetGatewaysOutput, error) {
  8508. req, out := c.DescribeEgressOnlyInternetGatewaysRequest(input)
  8509. req.SetContext(ctx)
  8510. req.ApplyOptions(opts...)
  8511. return out, req.Send()
  8512. }
  8513. const opDescribeElasticGpus = "DescribeElasticGpus"
  8514. // DescribeElasticGpusRequest generates a "aws/request.Request" representing the
  8515. // client's request for the DescribeElasticGpus operation. The "output" return
  8516. // value will be populated with the request's response once the request completes
  8517. // successfuly.
  8518. //
  8519. // Use "Send" method on the returned Request to send the API call to the service.
  8520. // the "output" return value is not valid until after Send returns without error.
  8521. //
  8522. // See DescribeElasticGpus for more information on using the DescribeElasticGpus
  8523. // API call, and error handling.
  8524. //
  8525. // This method is useful when you want to inject custom logic or configuration
  8526. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8527. //
  8528. //
  8529. // // Example sending a request using the DescribeElasticGpusRequest method.
  8530. // req, resp := client.DescribeElasticGpusRequest(params)
  8531. //
  8532. // err := req.Send()
  8533. // if err == nil { // resp is now filled
  8534. // fmt.Println(resp)
  8535. // }
  8536. //
  8537. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeElasticGpus
  8538. func (c *EC2) DescribeElasticGpusRequest(input *DescribeElasticGpusInput) (req *request.Request, output *DescribeElasticGpusOutput) {
  8539. op := &request.Operation{
  8540. Name: opDescribeElasticGpus,
  8541. HTTPMethod: "POST",
  8542. HTTPPath: "/",
  8543. }
  8544. if input == nil {
  8545. input = &DescribeElasticGpusInput{}
  8546. }
  8547. output = &DescribeElasticGpusOutput{}
  8548. req = c.newRequest(op, input, output)
  8549. return
  8550. }
  8551. // DescribeElasticGpus API operation for Amazon Elastic Compute Cloud.
  8552. //
  8553. // Describes the Elastic GPUs associated with your instances. For more information
  8554. // about Elastic GPUs, see Amazon EC2 Elastic GPUs (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/elastic-gpus.html).
  8555. //
  8556. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8557. // with awserr.Error's Code and Message methods to get detailed information about
  8558. // the error.
  8559. //
  8560. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8561. // API operation DescribeElasticGpus for usage and error information.
  8562. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeElasticGpus
  8563. func (c *EC2) DescribeElasticGpus(input *DescribeElasticGpusInput) (*DescribeElasticGpusOutput, error) {
  8564. req, out := c.DescribeElasticGpusRequest(input)
  8565. return out, req.Send()
  8566. }
  8567. // DescribeElasticGpusWithContext is the same as DescribeElasticGpus with the addition of
  8568. // the ability to pass a context and additional request options.
  8569. //
  8570. // See DescribeElasticGpus for details on how to use this API operation.
  8571. //
  8572. // The context must be non-nil and will be used for request cancellation. If
  8573. // the context is nil a panic will occur. In the future the SDK may create
  8574. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8575. // for more information on using Contexts.
  8576. func (c *EC2) DescribeElasticGpusWithContext(ctx aws.Context, input *DescribeElasticGpusInput, opts ...request.Option) (*DescribeElasticGpusOutput, error) {
  8577. req, out := c.DescribeElasticGpusRequest(input)
  8578. req.SetContext(ctx)
  8579. req.ApplyOptions(opts...)
  8580. return out, req.Send()
  8581. }
  8582. const opDescribeExportTasks = "DescribeExportTasks"
  8583. // DescribeExportTasksRequest generates a "aws/request.Request" representing the
  8584. // client's request for the DescribeExportTasks operation. The "output" return
  8585. // value will be populated with the request's response once the request completes
  8586. // successfuly.
  8587. //
  8588. // Use "Send" method on the returned Request to send the API call to the service.
  8589. // the "output" return value is not valid until after Send returns without error.
  8590. //
  8591. // See DescribeExportTasks for more information on using the DescribeExportTasks
  8592. // API call, and error handling.
  8593. //
  8594. // This method is useful when you want to inject custom logic or configuration
  8595. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8596. //
  8597. //
  8598. // // Example sending a request using the DescribeExportTasksRequest method.
  8599. // req, resp := client.DescribeExportTasksRequest(params)
  8600. //
  8601. // err := req.Send()
  8602. // if err == nil { // resp is now filled
  8603. // fmt.Println(resp)
  8604. // }
  8605. //
  8606. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeExportTasks
  8607. func (c *EC2) DescribeExportTasksRequest(input *DescribeExportTasksInput) (req *request.Request, output *DescribeExportTasksOutput) {
  8608. op := &request.Operation{
  8609. Name: opDescribeExportTasks,
  8610. HTTPMethod: "POST",
  8611. HTTPPath: "/",
  8612. }
  8613. if input == nil {
  8614. input = &DescribeExportTasksInput{}
  8615. }
  8616. output = &DescribeExportTasksOutput{}
  8617. req = c.newRequest(op, input, output)
  8618. return
  8619. }
  8620. // DescribeExportTasks API operation for Amazon Elastic Compute Cloud.
  8621. //
  8622. // Describes one or more of your export tasks.
  8623. //
  8624. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8625. // with awserr.Error's Code and Message methods to get detailed information about
  8626. // the error.
  8627. //
  8628. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8629. // API operation DescribeExportTasks for usage and error information.
  8630. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeExportTasks
  8631. func (c *EC2) DescribeExportTasks(input *DescribeExportTasksInput) (*DescribeExportTasksOutput, error) {
  8632. req, out := c.DescribeExportTasksRequest(input)
  8633. return out, req.Send()
  8634. }
  8635. // DescribeExportTasksWithContext is the same as DescribeExportTasks with the addition of
  8636. // the ability to pass a context and additional request options.
  8637. //
  8638. // See DescribeExportTasks for details on how to use this API operation.
  8639. //
  8640. // The context must be non-nil and will be used for request cancellation. If
  8641. // the context is nil a panic will occur. In the future the SDK may create
  8642. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8643. // for more information on using Contexts.
  8644. func (c *EC2) DescribeExportTasksWithContext(ctx aws.Context, input *DescribeExportTasksInput, opts ...request.Option) (*DescribeExportTasksOutput, error) {
  8645. req, out := c.DescribeExportTasksRequest(input)
  8646. req.SetContext(ctx)
  8647. req.ApplyOptions(opts...)
  8648. return out, req.Send()
  8649. }
  8650. const opDescribeFleetHistory = "DescribeFleetHistory"
  8651. // DescribeFleetHistoryRequest generates a "aws/request.Request" representing the
  8652. // client's request for the DescribeFleetHistory operation. The "output" return
  8653. // value will be populated with the request's response once the request completes
  8654. // successfuly.
  8655. //
  8656. // Use "Send" method on the returned Request to send the API call to the service.
  8657. // the "output" return value is not valid until after Send returns without error.
  8658. //
  8659. // See DescribeFleetHistory for more information on using the DescribeFleetHistory
  8660. // API call, and error handling.
  8661. //
  8662. // This method is useful when you want to inject custom logic or configuration
  8663. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8664. //
  8665. //
  8666. // // Example sending a request using the DescribeFleetHistoryRequest method.
  8667. // req, resp := client.DescribeFleetHistoryRequest(params)
  8668. //
  8669. // err := req.Send()
  8670. // if err == nil { // resp is now filled
  8671. // fmt.Println(resp)
  8672. // }
  8673. //
  8674. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFleetHistory
  8675. func (c *EC2) DescribeFleetHistoryRequest(input *DescribeFleetHistoryInput) (req *request.Request, output *DescribeFleetHistoryOutput) {
  8676. op := &request.Operation{
  8677. Name: opDescribeFleetHistory,
  8678. HTTPMethod: "POST",
  8679. HTTPPath: "/",
  8680. }
  8681. if input == nil {
  8682. input = &DescribeFleetHistoryInput{}
  8683. }
  8684. output = &DescribeFleetHistoryOutput{}
  8685. req = c.newRequest(op, input, output)
  8686. return
  8687. }
  8688. // DescribeFleetHistory API operation for Amazon Elastic Compute Cloud.
  8689. //
  8690. // Describes the events for the specified EC2 Fleet during the specified time.
  8691. //
  8692. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8693. // with awserr.Error's Code and Message methods to get detailed information about
  8694. // the error.
  8695. //
  8696. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8697. // API operation DescribeFleetHistory for usage and error information.
  8698. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFleetHistory
  8699. func (c *EC2) DescribeFleetHistory(input *DescribeFleetHistoryInput) (*DescribeFleetHistoryOutput, error) {
  8700. req, out := c.DescribeFleetHistoryRequest(input)
  8701. return out, req.Send()
  8702. }
  8703. // DescribeFleetHistoryWithContext is the same as DescribeFleetHistory with the addition of
  8704. // the ability to pass a context and additional request options.
  8705. //
  8706. // See DescribeFleetHistory for details on how to use this API operation.
  8707. //
  8708. // The context must be non-nil and will be used for request cancellation. If
  8709. // the context is nil a panic will occur. In the future the SDK may create
  8710. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8711. // for more information on using Contexts.
  8712. func (c *EC2) DescribeFleetHistoryWithContext(ctx aws.Context, input *DescribeFleetHistoryInput, opts ...request.Option) (*DescribeFleetHistoryOutput, error) {
  8713. req, out := c.DescribeFleetHistoryRequest(input)
  8714. req.SetContext(ctx)
  8715. req.ApplyOptions(opts...)
  8716. return out, req.Send()
  8717. }
  8718. const opDescribeFleetInstances = "DescribeFleetInstances"
  8719. // DescribeFleetInstancesRequest generates a "aws/request.Request" representing the
  8720. // client's request for the DescribeFleetInstances operation. The "output" return
  8721. // value will be populated with the request's response once the request completes
  8722. // successfuly.
  8723. //
  8724. // Use "Send" method on the returned Request to send the API call to the service.
  8725. // the "output" return value is not valid until after Send returns without error.
  8726. //
  8727. // See DescribeFleetInstances for more information on using the DescribeFleetInstances
  8728. // API call, and error handling.
  8729. //
  8730. // This method is useful when you want to inject custom logic or configuration
  8731. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8732. //
  8733. //
  8734. // // Example sending a request using the DescribeFleetInstancesRequest method.
  8735. // req, resp := client.DescribeFleetInstancesRequest(params)
  8736. //
  8737. // err := req.Send()
  8738. // if err == nil { // resp is now filled
  8739. // fmt.Println(resp)
  8740. // }
  8741. //
  8742. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFleetInstances
  8743. func (c *EC2) DescribeFleetInstancesRequest(input *DescribeFleetInstancesInput) (req *request.Request, output *DescribeFleetInstancesOutput) {
  8744. op := &request.Operation{
  8745. Name: opDescribeFleetInstances,
  8746. HTTPMethod: "POST",
  8747. HTTPPath: "/",
  8748. }
  8749. if input == nil {
  8750. input = &DescribeFleetInstancesInput{}
  8751. }
  8752. output = &DescribeFleetInstancesOutput{}
  8753. req = c.newRequest(op, input, output)
  8754. return
  8755. }
  8756. // DescribeFleetInstances API operation for Amazon Elastic Compute Cloud.
  8757. //
  8758. // Describes the running instances for the specified EC2 Fleet.
  8759. //
  8760. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8761. // with awserr.Error's Code and Message methods to get detailed information about
  8762. // the error.
  8763. //
  8764. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8765. // API operation DescribeFleetInstances for usage and error information.
  8766. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFleetInstances
  8767. func (c *EC2) DescribeFleetInstances(input *DescribeFleetInstancesInput) (*DescribeFleetInstancesOutput, error) {
  8768. req, out := c.DescribeFleetInstancesRequest(input)
  8769. return out, req.Send()
  8770. }
  8771. // DescribeFleetInstancesWithContext is the same as DescribeFleetInstances with the addition of
  8772. // the ability to pass a context and additional request options.
  8773. //
  8774. // See DescribeFleetInstances for details on how to use this API operation.
  8775. //
  8776. // The context must be non-nil and will be used for request cancellation. If
  8777. // the context is nil a panic will occur. In the future the SDK may create
  8778. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8779. // for more information on using Contexts.
  8780. func (c *EC2) DescribeFleetInstancesWithContext(ctx aws.Context, input *DescribeFleetInstancesInput, opts ...request.Option) (*DescribeFleetInstancesOutput, error) {
  8781. req, out := c.DescribeFleetInstancesRequest(input)
  8782. req.SetContext(ctx)
  8783. req.ApplyOptions(opts...)
  8784. return out, req.Send()
  8785. }
  8786. const opDescribeFleets = "DescribeFleets"
  8787. // DescribeFleetsRequest generates a "aws/request.Request" representing the
  8788. // client's request for the DescribeFleets operation. The "output" return
  8789. // value will be populated with the request's response once the request completes
  8790. // successfuly.
  8791. //
  8792. // Use "Send" method on the returned Request to send the API call to the service.
  8793. // the "output" return value is not valid until after Send returns without error.
  8794. //
  8795. // See DescribeFleets for more information on using the DescribeFleets
  8796. // API call, and error handling.
  8797. //
  8798. // This method is useful when you want to inject custom logic or configuration
  8799. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8800. //
  8801. //
  8802. // // Example sending a request using the DescribeFleetsRequest method.
  8803. // req, resp := client.DescribeFleetsRequest(params)
  8804. //
  8805. // err := req.Send()
  8806. // if err == nil { // resp is now filled
  8807. // fmt.Println(resp)
  8808. // }
  8809. //
  8810. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFleets
  8811. func (c *EC2) DescribeFleetsRequest(input *DescribeFleetsInput) (req *request.Request, output *DescribeFleetsOutput) {
  8812. op := &request.Operation{
  8813. Name: opDescribeFleets,
  8814. HTTPMethod: "POST",
  8815. HTTPPath: "/",
  8816. }
  8817. if input == nil {
  8818. input = &DescribeFleetsInput{}
  8819. }
  8820. output = &DescribeFleetsOutput{}
  8821. req = c.newRequest(op, input, output)
  8822. return
  8823. }
  8824. // DescribeFleets API operation for Amazon Elastic Compute Cloud.
  8825. //
  8826. // Describes the specified EC2 Fleet.
  8827. //
  8828. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8829. // with awserr.Error's Code and Message methods to get detailed information about
  8830. // the error.
  8831. //
  8832. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8833. // API operation DescribeFleets for usage and error information.
  8834. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFleets
  8835. func (c *EC2) DescribeFleets(input *DescribeFleetsInput) (*DescribeFleetsOutput, error) {
  8836. req, out := c.DescribeFleetsRequest(input)
  8837. return out, req.Send()
  8838. }
  8839. // DescribeFleetsWithContext is the same as DescribeFleets with the addition of
  8840. // the ability to pass a context and additional request options.
  8841. //
  8842. // See DescribeFleets for details on how to use this API operation.
  8843. //
  8844. // The context must be non-nil and will be used for request cancellation. If
  8845. // the context is nil a panic will occur. In the future the SDK may create
  8846. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8847. // for more information on using Contexts.
  8848. func (c *EC2) DescribeFleetsWithContext(ctx aws.Context, input *DescribeFleetsInput, opts ...request.Option) (*DescribeFleetsOutput, error) {
  8849. req, out := c.DescribeFleetsRequest(input)
  8850. req.SetContext(ctx)
  8851. req.ApplyOptions(opts...)
  8852. return out, req.Send()
  8853. }
  8854. const opDescribeFlowLogs = "DescribeFlowLogs"
  8855. // DescribeFlowLogsRequest generates a "aws/request.Request" representing the
  8856. // client's request for the DescribeFlowLogs operation. The "output" return
  8857. // value will be populated with the request's response once the request completes
  8858. // successfuly.
  8859. //
  8860. // Use "Send" method on the returned Request to send the API call to the service.
  8861. // the "output" return value is not valid until after Send returns without error.
  8862. //
  8863. // See DescribeFlowLogs for more information on using the DescribeFlowLogs
  8864. // API call, and error handling.
  8865. //
  8866. // This method is useful when you want to inject custom logic or configuration
  8867. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8868. //
  8869. //
  8870. // // Example sending a request using the DescribeFlowLogsRequest method.
  8871. // req, resp := client.DescribeFlowLogsRequest(params)
  8872. //
  8873. // err := req.Send()
  8874. // if err == nil { // resp is now filled
  8875. // fmt.Println(resp)
  8876. // }
  8877. //
  8878. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFlowLogs
  8879. func (c *EC2) DescribeFlowLogsRequest(input *DescribeFlowLogsInput) (req *request.Request, output *DescribeFlowLogsOutput) {
  8880. op := &request.Operation{
  8881. Name: opDescribeFlowLogs,
  8882. HTTPMethod: "POST",
  8883. HTTPPath: "/",
  8884. }
  8885. if input == nil {
  8886. input = &DescribeFlowLogsInput{}
  8887. }
  8888. output = &DescribeFlowLogsOutput{}
  8889. req = c.newRequest(op, input, output)
  8890. return
  8891. }
  8892. // DescribeFlowLogs API operation for Amazon Elastic Compute Cloud.
  8893. //
  8894. // Describes one or more flow logs. To view the information in your flow logs
  8895. // (the log streams for the network interfaces), you must use the CloudWatch
  8896. // Logs console or the CloudWatch Logs API.
  8897. //
  8898. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8899. // with awserr.Error's Code and Message methods to get detailed information about
  8900. // the error.
  8901. //
  8902. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8903. // API operation DescribeFlowLogs for usage and error information.
  8904. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFlowLogs
  8905. func (c *EC2) DescribeFlowLogs(input *DescribeFlowLogsInput) (*DescribeFlowLogsOutput, error) {
  8906. req, out := c.DescribeFlowLogsRequest(input)
  8907. return out, req.Send()
  8908. }
  8909. // DescribeFlowLogsWithContext is the same as DescribeFlowLogs with the addition of
  8910. // the ability to pass a context and additional request options.
  8911. //
  8912. // See DescribeFlowLogs for details on how to use this API operation.
  8913. //
  8914. // The context must be non-nil and will be used for request cancellation. If
  8915. // the context is nil a panic will occur. In the future the SDK may create
  8916. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8917. // for more information on using Contexts.
  8918. func (c *EC2) DescribeFlowLogsWithContext(ctx aws.Context, input *DescribeFlowLogsInput, opts ...request.Option) (*DescribeFlowLogsOutput, error) {
  8919. req, out := c.DescribeFlowLogsRequest(input)
  8920. req.SetContext(ctx)
  8921. req.ApplyOptions(opts...)
  8922. return out, req.Send()
  8923. }
  8924. const opDescribeFpgaImageAttribute = "DescribeFpgaImageAttribute"
  8925. // DescribeFpgaImageAttributeRequest generates a "aws/request.Request" representing the
  8926. // client's request for the DescribeFpgaImageAttribute operation. The "output" return
  8927. // value will be populated with the request's response once the request completes
  8928. // successfuly.
  8929. //
  8930. // Use "Send" method on the returned Request to send the API call to the service.
  8931. // the "output" return value is not valid until after Send returns without error.
  8932. //
  8933. // See DescribeFpgaImageAttribute for more information on using the DescribeFpgaImageAttribute
  8934. // API call, and error handling.
  8935. //
  8936. // This method is useful when you want to inject custom logic or configuration
  8937. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8938. //
  8939. //
  8940. // // Example sending a request using the DescribeFpgaImageAttributeRequest method.
  8941. // req, resp := client.DescribeFpgaImageAttributeRequest(params)
  8942. //
  8943. // err := req.Send()
  8944. // if err == nil { // resp is now filled
  8945. // fmt.Println(resp)
  8946. // }
  8947. //
  8948. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFpgaImageAttribute
  8949. func (c *EC2) DescribeFpgaImageAttributeRequest(input *DescribeFpgaImageAttributeInput) (req *request.Request, output *DescribeFpgaImageAttributeOutput) {
  8950. op := &request.Operation{
  8951. Name: opDescribeFpgaImageAttribute,
  8952. HTTPMethod: "POST",
  8953. HTTPPath: "/",
  8954. }
  8955. if input == nil {
  8956. input = &DescribeFpgaImageAttributeInput{}
  8957. }
  8958. output = &DescribeFpgaImageAttributeOutput{}
  8959. req = c.newRequest(op, input, output)
  8960. return
  8961. }
  8962. // DescribeFpgaImageAttribute API operation for Amazon Elastic Compute Cloud.
  8963. //
  8964. // Describes the specified attribute of the specified Amazon FPGA Image (AFI).
  8965. //
  8966. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8967. // with awserr.Error's Code and Message methods to get detailed information about
  8968. // the error.
  8969. //
  8970. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8971. // API operation DescribeFpgaImageAttribute for usage and error information.
  8972. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFpgaImageAttribute
  8973. func (c *EC2) DescribeFpgaImageAttribute(input *DescribeFpgaImageAttributeInput) (*DescribeFpgaImageAttributeOutput, error) {
  8974. req, out := c.DescribeFpgaImageAttributeRequest(input)
  8975. return out, req.Send()
  8976. }
  8977. // DescribeFpgaImageAttributeWithContext is the same as DescribeFpgaImageAttribute with the addition of
  8978. // the ability to pass a context and additional request options.
  8979. //
  8980. // See DescribeFpgaImageAttribute for details on how to use this API operation.
  8981. //
  8982. // The context must be non-nil and will be used for request cancellation. If
  8983. // the context is nil a panic will occur. In the future the SDK may create
  8984. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8985. // for more information on using Contexts.
  8986. func (c *EC2) DescribeFpgaImageAttributeWithContext(ctx aws.Context, input *DescribeFpgaImageAttributeInput, opts ...request.Option) (*DescribeFpgaImageAttributeOutput, error) {
  8987. req, out := c.DescribeFpgaImageAttributeRequest(input)
  8988. req.SetContext(ctx)
  8989. req.ApplyOptions(opts...)
  8990. return out, req.Send()
  8991. }
  8992. const opDescribeFpgaImages = "DescribeFpgaImages"
  8993. // DescribeFpgaImagesRequest generates a "aws/request.Request" representing the
  8994. // client's request for the DescribeFpgaImages operation. The "output" return
  8995. // value will be populated with the request's response once the request completes
  8996. // successfuly.
  8997. //
  8998. // Use "Send" method on the returned Request to send the API call to the service.
  8999. // the "output" return value is not valid until after Send returns without error.
  9000. //
  9001. // See DescribeFpgaImages for more information on using the DescribeFpgaImages
  9002. // API call, and error handling.
  9003. //
  9004. // This method is useful when you want to inject custom logic or configuration
  9005. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9006. //
  9007. //
  9008. // // Example sending a request using the DescribeFpgaImagesRequest method.
  9009. // req, resp := client.DescribeFpgaImagesRequest(params)
  9010. //
  9011. // err := req.Send()
  9012. // if err == nil { // resp is now filled
  9013. // fmt.Println(resp)
  9014. // }
  9015. //
  9016. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFpgaImages
  9017. func (c *EC2) DescribeFpgaImagesRequest(input *DescribeFpgaImagesInput) (req *request.Request, output *DescribeFpgaImagesOutput) {
  9018. op := &request.Operation{
  9019. Name: opDescribeFpgaImages,
  9020. HTTPMethod: "POST",
  9021. HTTPPath: "/",
  9022. }
  9023. if input == nil {
  9024. input = &DescribeFpgaImagesInput{}
  9025. }
  9026. output = &DescribeFpgaImagesOutput{}
  9027. req = c.newRequest(op, input, output)
  9028. return
  9029. }
  9030. // DescribeFpgaImages API operation for Amazon Elastic Compute Cloud.
  9031. //
  9032. // Describes one or more available Amazon FPGA Images (AFIs). These include
  9033. // public AFIs, private AFIs that you own, and AFIs owned by other AWS accounts
  9034. // for which you have load permissions.
  9035. //
  9036. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9037. // with awserr.Error's Code and Message methods to get detailed information about
  9038. // the error.
  9039. //
  9040. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9041. // API operation DescribeFpgaImages for usage and error information.
  9042. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFpgaImages
  9043. func (c *EC2) DescribeFpgaImages(input *DescribeFpgaImagesInput) (*DescribeFpgaImagesOutput, error) {
  9044. req, out := c.DescribeFpgaImagesRequest(input)
  9045. return out, req.Send()
  9046. }
  9047. // DescribeFpgaImagesWithContext is the same as DescribeFpgaImages with the addition of
  9048. // the ability to pass a context and additional request options.
  9049. //
  9050. // See DescribeFpgaImages for details on how to use this API operation.
  9051. //
  9052. // The context must be non-nil and will be used for request cancellation. If
  9053. // the context is nil a panic will occur. In the future the SDK may create
  9054. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9055. // for more information on using Contexts.
  9056. func (c *EC2) DescribeFpgaImagesWithContext(ctx aws.Context, input *DescribeFpgaImagesInput, opts ...request.Option) (*DescribeFpgaImagesOutput, error) {
  9057. req, out := c.DescribeFpgaImagesRequest(input)
  9058. req.SetContext(ctx)
  9059. req.ApplyOptions(opts...)
  9060. return out, req.Send()
  9061. }
  9062. const opDescribeHostReservationOfferings = "DescribeHostReservationOfferings"
  9063. // DescribeHostReservationOfferingsRequest generates a "aws/request.Request" representing the
  9064. // client's request for the DescribeHostReservationOfferings operation. The "output" return
  9065. // value will be populated with the request's response once the request completes
  9066. // successfuly.
  9067. //
  9068. // Use "Send" method on the returned Request to send the API call to the service.
  9069. // the "output" return value is not valid until after Send returns without error.
  9070. //
  9071. // See DescribeHostReservationOfferings for more information on using the DescribeHostReservationOfferings
  9072. // API call, and error handling.
  9073. //
  9074. // This method is useful when you want to inject custom logic or configuration
  9075. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9076. //
  9077. //
  9078. // // Example sending a request using the DescribeHostReservationOfferingsRequest method.
  9079. // req, resp := client.DescribeHostReservationOfferingsRequest(params)
  9080. //
  9081. // err := req.Send()
  9082. // if err == nil { // resp is now filled
  9083. // fmt.Println(resp)
  9084. // }
  9085. //
  9086. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHostReservationOfferings
  9087. func (c *EC2) DescribeHostReservationOfferingsRequest(input *DescribeHostReservationOfferingsInput) (req *request.Request, output *DescribeHostReservationOfferingsOutput) {
  9088. op := &request.Operation{
  9089. Name: opDescribeHostReservationOfferings,
  9090. HTTPMethod: "POST",
  9091. HTTPPath: "/",
  9092. }
  9093. if input == nil {
  9094. input = &DescribeHostReservationOfferingsInput{}
  9095. }
  9096. output = &DescribeHostReservationOfferingsOutput{}
  9097. req = c.newRequest(op, input, output)
  9098. return
  9099. }
  9100. // DescribeHostReservationOfferings API operation for Amazon Elastic Compute Cloud.
  9101. //
  9102. // Describes the Dedicated Host Reservations that are available to purchase.
  9103. //
  9104. // The results describe all the Dedicated Host Reservation offerings, including
  9105. // offerings that may not match the instance family and region of your Dedicated
  9106. // Hosts. When purchasing an offering, ensure that the the instance family and
  9107. // region of the offering matches that of the Dedicated Host/s it will be associated
  9108. // with. For an overview of supported instance types, see Dedicated Hosts Overview
  9109. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-overview.html)
  9110. // in the Amazon Elastic Compute Cloud User Guide.
  9111. //
  9112. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9113. // with awserr.Error's Code and Message methods to get detailed information about
  9114. // the error.
  9115. //
  9116. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9117. // API operation DescribeHostReservationOfferings for usage and error information.
  9118. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHostReservationOfferings
  9119. func (c *EC2) DescribeHostReservationOfferings(input *DescribeHostReservationOfferingsInput) (*DescribeHostReservationOfferingsOutput, error) {
  9120. req, out := c.DescribeHostReservationOfferingsRequest(input)
  9121. return out, req.Send()
  9122. }
  9123. // DescribeHostReservationOfferingsWithContext is the same as DescribeHostReservationOfferings with the addition of
  9124. // the ability to pass a context and additional request options.
  9125. //
  9126. // See DescribeHostReservationOfferings for details on how to use this API operation.
  9127. //
  9128. // The context must be non-nil and will be used for request cancellation. If
  9129. // the context is nil a panic will occur. In the future the SDK may create
  9130. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9131. // for more information on using Contexts.
  9132. func (c *EC2) DescribeHostReservationOfferingsWithContext(ctx aws.Context, input *DescribeHostReservationOfferingsInput, opts ...request.Option) (*DescribeHostReservationOfferingsOutput, error) {
  9133. req, out := c.DescribeHostReservationOfferingsRequest(input)
  9134. req.SetContext(ctx)
  9135. req.ApplyOptions(opts...)
  9136. return out, req.Send()
  9137. }
  9138. const opDescribeHostReservations = "DescribeHostReservations"
  9139. // DescribeHostReservationsRequest generates a "aws/request.Request" representing the
  9140. // client's request for the DescribeHostReservations operation. The "output" return
  9141. // value will be populated with the request's response once the request completes
  9142. // successfuly.
  9143. //
  9144. // Use "Send" method on the returned Request to send the API call to the service.
  9145. // the "output" return value is not valid until after Send returns without error.
  9146. //
  9147. // See DescribeHostReservations for more information on using the DescribeHostReservations
  9148. // API call, and error handling.
  9149. //
  9150. // This method is useful when you want to inject custom logic or configuration
  9151. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9152. //
  9153. //
  9154. // // Example sending a request using the DescribeHostReservationsRequest method.
  9155. // req, resp := client.DescribeHostReservationsRequest(params)
  9156. //
  9157. // err := req.Send()
  9158. // if err == nil { // resp is now filled
  9159. // fmt.Println(resp)
  9160. // }
  9161. //
  9162. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHostReservations
  9163. func (c *EC2) DescribeHostReservationsRequest(input *DescribeHostReservationsInput) (req *request.Request, output *DescribeHostReservationsOutput) {
  9164. op := &request.Operation{
  9165. Name: opDescribeHostReservations,
  9166. HTTPMethod: "POST",
  9167. HTTPPath: "/",
  9168. }
  9169. if input == nil {
  9170. input = &DescribeHostReservationsInput{}
  9171. }
  9172. output = &DescribeHostReservationsOutput{}
  9173. req = c.newRequest(op, input, output)
  9174. return
  9175. }
  9176. // DescribeHostReservations API operation for Amazon Elastic Compute Cloud.
  9177. //
  9178. // Describes Dedicated Host Reservations which are associated with Dedicated
  9179. // Hosts in your account.
  9180. //
  9181. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9182. // with awserr.Error's Code and Message methods to get detailed information about
  9183. // the error.
  9184. //
  9185. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9186. // API operation DescribeHostReservations for usage and error information.
  9187. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHostReservations
  9188. func (c *EC2) DescribeHostReservations(input *DescribeHostReservationsInput) (*DescribeHostReservationsOutput, error) {
  9189. req, out := c.DescribeHostReservationsRequest(input)
  9190. return out, req.Send()
  9191. }
  9192. // DescribeHostReservationsWithContext is the same as DescribeHostReservations with the addition of
  9193. // the ability to pass a context and additional request options.
  9194. //
  9195. // See DescribeHostReservations for details on how to use this API operation.
  9196. //
  9197. // The context must be non-nil and will be used for request cancellation. If
  9198. // the context is nil a panic will occur. In the future the SDK may create
  9199. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9200. // for more information on using Contexts.
  9201. func (c *EC2) DescribeHostReservationsWithContext(ctx aws.Context, input *DescribeHostReservationsInput, opts ...request.Option) (*DescribeHostReservationsOutput, error) {
  9202. req, out := c.DescribeHostReservationsRequest(input)
  9203. req.SetContext(ctx)
  9204. req.ApplyOptions(opts...)
  9205. return out, req.Send()
  9206. }
  9207. const opDescribeHosts = "DescribeHosts"
  9208. // DescribeHostsRequest generates a "aws/request.Request" representing the
  9209. // client's request for the DescribeHosts operation. The "output" return
  9210. // value will be populated with the request's response once the request completes
  9211. // successfuly.
  9212. //
  9213. // Use "Send" method on the returned Request to send the API call to the service.
  9214. // the "output" return value is not valid until after Send returns without error.
  9215. //
  9216. // See DescribeHosts for more information on using the DescribeHosts
  9217. // API call, and error handling.
  9218. //
  9219. // This method is useful when you want to inject custom logic or configuration
  9220. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9221. //
  9222. //
  9223. // // Example sending a request using the DescribeHostsRequest method.
  9224. // req, resp := client.DescribeHostsRequest(params)
  9225. //
  9226. // err := req.Send()
  9227. // if err == nil { // resp is now filled
  9228. // fmt.Println(resp)
  9229. // }
  9230. //
  9231. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHosts
  9232. func (c *EC2) DescribeHostsRequest(input *DescribeHostsInput) (req *request.Request, output *DescribeHostsOutput) {
  9233. op := &request.Operation{
  9234. Name: opDescribeHosts,
  9235. HTTPMethod: "POST",
  9236. HTTPPath: "/",
  9237. }
  9238. if input == nil {
  9239. input = &DescribeHostsInput{}
  9240. }
  9241. output = &DescribeHostsOutput{}
  9242. req = c.newRequest(op, input, output)
  9243. return
  9244. }
  9245. // DescribeHosts API operation for Amazon Elastic Compute Cloud.
  9246. //
  9247. // Describes one or more of your Dedicated Hosts.
  9248. //
  9249. // The results describe only the Dedicated Hosts in the region you're currently
  9250. // using. All listed instances consume capacity on your Dedicated Host. Dedicated
  9251. // Hosts that have recently been released will be listed with the state released.
  9252. //
  9253. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9254. // with awserr.Error's Code and Message methods to get detailed information about
  9255. // the error.
  9256. //
  9257. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9258. // API operation DescribeHosts for usage and error information.
  9259. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHosts
  9260. func (c *EC2) DescribeHosts(input *DescribeHostsInput) (*DescribeHostsOutput, error) {
  9261. req, out := c.DescribeHostsRequest(input)
  9262. return out, req.Send()
  9263. }
  9264. // DescribeHostsWithContext is the same as DescribeHosts with the addition of
  9265. // the ability to pass a context and additional request options.
  9266. //
  9267. // See DescribeHosts for details on how to use this API operation.
  9268. //
  9269. // The context must be non-nil and will be used for request cancellation. If
  9270. // the context is nil a panic will occur. In the future the SDK may create
  9271. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9272. // for more information on using Contexts.
  9273. func (c *EC2) DescribeHostsWithContext(ctx aws.Context, input *DescribeHostsInput, opts ...request.Option) (*DescribeHostsOutput, error) {
  9274. req, out := c.DescribeHostsRequest(input)
  9275. req.SetContext(ctx)
  9276. req.ApplyOptions(opts...)
  9277. return out, req.Send()
  9278. }
  9279. const opDescribeIamInstanceProfileAssociations = "DescribeIamInstanceProfileAssociations"
  9280. // DescribeIamInstanceProfileAssociationsRequest generates a "aws/request.Request" representing the
  9281. // client's request for the DescribeIamInstanceProfileAssociations operation. The "output" return
  9282. // value will be populated with the request's response once the request completes
  9283. // successfuly.
  9284. //
  9285. // Use "Send" method on the returned Request to send the API call to the service.
  9286. // the "output" return value is not valid until after Send returns without error.
  9287. //
  9288. // See DescribeIamInstanceProfileAssociations for more information on using the DescribeIamInstanceProfileAssociations
  9289. // API call, and error handling.
  9290. //
  9291. // This method is useful when you want to inject custom logic or configuration
  9292. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9293. //
  9294. //
  9295. // // Example sending a request using the DescribeIamInstanceProfileAssociationsRequest method.
  9296. // req, resp := client.DescribeIamInstanceProfileAssociationsRequest(params)
  9297. //
  9298. // err := req.Send()
  9299. // if err == nil { // resp is now filled
  9300. // fmt.Println(resp)
  9301. // }
  9302. //
  9303. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIamInstanceProfileAssociations
  9304. func (c *EC2) DescribeIamInstanceProfileAssociationsRequest(input *DescribeIamInstanceProfileAssociationsInput) (req *request.Request, output *DescribeIamInstanceProfileAssociationsOutput) {
  9305. op := &request.Operation{
  9306. Name: opDescribeIamInstanceProfileAssociations,
  9307. HTTPMethod: "POST",
  9308. HTTPPath: "/",
  9309. }
  9310. if input == nil {
  9311. input = &DescribeIamInstanceProfileAssociationsInput{}
  9312. }
  9313. output = &DescribeIamInstanceProfileAssociationsOutput{}
  9314. req = c.newRequest(op, input, output)
  9315. return
  9316. }
  9317. // DescribeIamInstanceProfileAssociations API operation for Amazon Elastic Compute Cloud.
  9318. //
  9319. // Describes your IAM instance profile associations.
  9320. //
  9321. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9322. // with awserr.Error's Code and Message methods to get detailed information about
  9323. // the error.
  9324. //
  9325. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9326. // API operation DescribeIamInstanceProfileAssociations for usage and error information.
  9327. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIamInstanceProfileAssociations
  9328. func (c *EC2) DescribeIamInstanceProfileAssociations(input *DescribeIamInstanceProfileAssociationsInput) (*DescribeIamInstanceProfileAssociationsOutput, error) {
  9329. req, out := c.DescribeIamInstanceProfileAssociationsRequest(input)
  9330. return out, req.Send()
  9331. }
  9332. // DescribeIamInstanceProfileAssociationsWithContext is the same as DescribeIamInstanceProfileAssociations with the addition of
  9333. // the ability to pass a context and additional request options.
  9334. //
  9335. // See DescribeIamInstanceProfileAssociations for details on how to use this API operation.
  9336. //
  9337. // The context must be non-nil and will be used for request cancellation. If
  9338. // the context is nil a panic will occur. In the future the SDK may create
  9339. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9340. // for more information on using Contexts.
  9341. func (c *EC2) DescribeIamInstanceProfileAssociationsWithContext(ctx aws.Context, input *DescribeIamInstanceProfileAssociationsInput, opts ...request.Option) (*DescribeIamInstanceProfileAssociationsOutput, error) {
  9342. req, out := c.DescribeIamInstanceProfileAssociationsRequest(input)
  9343. req.SetContext(ctx)
  9344. req.ApplyOptions(opts...)
  9345. return out, req.Send()
  9346. }
  9347. const opDescribeIdFormat = "DescribeIdFormat"
  9348. // DescribeIdFormatRequest generates a "aws/request.Request" representing the
  9349. // client's request for the DescribeIdFormat operation. The "output" return
  9350. // value will be populated with the request's response once the request completes
  9351. // successfuly.
  9352. //
  9353. // Use "Send" method on the returned Request to send the API call to the service.
  9354. // the "output" return value is not valid until after Send returns without error.
  9355. //
  9356. // See DescribeIdFormat for more information on using the DescribeIdFormat
  9357. // API call, and error handling.
  9358. //
  9359. // This method is useful when you want to inject custom logic or configuration
  9360. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9361. //
  9362. //
  9363. // // Example sending a request using the DescribeIdFormatRequest method.
  9364. // req, resp := client.DescribeIdFormatRequest(params)
  9365. //
  9366. // err := req.Send()
  9367. // if err == nil { // resp is now filled
  9368. // fmt.Println(resp)
  9369. // }
  9370. //
  9371. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIdFormat
  9372. func (c *EC2) DescribeIdFormatRequest(input *DescribeIdFormatInput) (req *request.Request, output *DescribeIdFormatOutput) {
  9373. op := &request.Operation{
  9374. Name: opDescribeIdFormat,
  9375. HTTPMethod: "POST",
  9376. HTTPPath: "/",
  9377. }
  9378. if input == nil {
  9379. input = &DescribeIdFormatInput{}
  9380. }
  9381. output = &DescribeIdFormatOutput{}
  9382. req = c.newRequest(op, input, output)
  9383. return
  9384. }
  9385. // DescribeIdFormat API operation for Amazon Elastic Compute Cloud.
  9386. //
  9387. // Describes the ID format settings for your resources on a per-region basis,
  9388. // for example, to view which resource types are enabled for longer IDs. This
  9389. // request only returns information about resource types whose ID formats can
  9390. // be modified; it does not return information about other resource types.
  9391. //
  9392. // The following resource types support longer IDs: bundle | conversion-task
  9393. // | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association
  9394. // | export-task | flow-log | image | import-task | instance | internet-gateway
  9395. // | network-acl | network-acl-association | network-interface | network-interface-attachment
  9396. // | prefix-list | reservation | route-table | route-table-association | security-group
  9397. // | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association
  9398. // | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.
  9399. //
  9400. // These settings apply to the IAM user who makes the request; they do not apply
  9401. // to the entire AWS account. By default, an IAM user defaults to the same settings
  9402. // as the root user, unless they explicitly override the settings by running
  9403. // the ModifyIdFormat command. Resources created with longer IDs are visible
  9404. // to all IAM users, regardless of these settings and provided that they have
  9405. // permission to use the relevant Describe command for the resource type.
  9406. //
  9407. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9408. // with awserr.Error's Code and Message methods to get detailed information about
  9409. // the error.
  9410. //
  9411. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9412. // API operation DescribeIdFormat for usage and error information.
  9413. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIdFormat
  9414. func (c *EC2) DescribeIdFormat(input *DescribeIdFormatInput) (*DescribeIdFormatOutput, error) {
  9415. req, out := c.DescribeIdFormatRequest(input)
  9416. return out, req.Send()
  9417. }
  9418. // DescribeIdFormatWithContext is the same as DescribeIdFormat with the addition of
  9419. // the ability to pass a context and additional request options.
  9420. //
  9421. // See DescribeIdFormat for details on how to use this API operation.
  9422. //
  9423. // The context must be non-nil and will be used for request cancellation. If
  9424. // the context is nil a panic will occur. In the future the SDK may create
  9425. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9426. // for more information on using Contexts.
  9427. func (c *EC2) DescribeIdFormatWithContext(ctx aws.Context, input *DescribeIdFormatInput, opts ...request.Option) (*DescribeIdFormatOutput, error) {
  9428. req, out := c.DescribeIdFormatRequest(input)
  9429. req.SetContext(ctx)
  9430. req.ApplyOptions(opts...)
  9431. return out, req.Send()
  9432. }
  9433. const opDescribeIdentityIdFormat = "DescribeIdentityIdFormat"
  9434. // DescribeIdentityIdFormatRequest generates a "aws/request.Request" representing the
  9435. // client's request for the DescribeIdentityIdFormat operation. The "output" return
  9436. // value will be populated with the request's response once the request completes
  9437. // successfuly.
  9438. //
  9439. // Use "Send" method on the returned Request to send the API call to the service.
  9440. // the "output" return value is not valid until after Send returns without error.
  9441. //
  9442. // See DescribeIdentityIdFormat for more information on using the DescribeIdentityIdFormat
  9443. // API call, and error handling.
  9444. //
  9445. // This method is useful when you want to inject custom logic or configuration
  9446. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9447. //
  9448. //
  9449. // // Example sending a request using the DescribeIdentityIdFormatRequest method.
  9450. // req, resp := client.DescribeIdentityIdFormatRequest(params)
  9451. //
  9452. // err := req.Send()
  9453. // if err == nil { // resp is now filled
  9454. // fmt.Println(resp)
  9455. // }
  9456. //
  9457. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIdentityIdFormat
  9458. func (c *EC2) DescribeIdentityIdFormatRequest(input *DescribeIdentityIdFormatInput) (req *request.Request, output *DescribeIdentityIdFormatOutput) {
  9459. op := &request.Operation{
  9460. Name: opDescribeIdentityIdFormat,
  9461. HTTPMethod: "POST",
  9462. HTTPPath: "/",
  9463. }
  9464. if input == nil {
  9465. input = &DescribeIdentityIdFormatInput{}
  9466. }
  9467. output = &DescribeIdentityIdFormatOutput{}
  9468. req = c.newRequest(op, input, output)
  9469. return
  9470. }
  9471. // DescribeIdentityIdFormat API operation for Amazon Elastic Compute Cloud.
  9472. //
  9473. // Describes the ID format settings for resources for the specified IAM user,
  9474. // IAM role, or root user. For example, you can view the resource types that
  9475. // are enabled for longer IDs. This request only returns information about resource
  9476. // types whose ID formats can be modified; it does not return information about
  9477. // other resource types. For more information, see Resource IDs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/resource-ids.html)
  9478. // in the Amazon Elastic Compute Cloud User Guide.
  9479. //
  9480. // The following resource types support longer IDs: bundle | conversion-task
  9481. // | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association
  9482. // | export-task | flow-log | image | import-task | instance | internet-gateway
  9483. // | network-acl | network-acl-association | network-interface | network-interface-attachment
  9484. // | prefix-list | reservation | route-table | route-table-association | security-group
  9485. // | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association
  9486. // | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.
  9487. //
  9488. // These settings apply to the principal specified in the request. They do not
  9489. // apply to the principal that makes the request.
  9490. //
  9491. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9492. // with awserr.Error's Code and Message methods to get detailed information about
  9493. // the error.
  9494. //
  9495. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9496. // API operation DescribeIdentityIdFormat for usage and error information.
  9497. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIdentityIdFormat
  9498. func (c *EC2) DescribeIdentityIdFormat(input *DescribeIdentityIdFormatInput) (*DescribeIdentityIdFormatOutput, error) {
  9499. req, out := c.DescribeIdentityIdFormatRequest(input)
  9500. return out, req.Send()
  9501. }
  9502. // DescribeIdentityIdFormatWithContext is the same as DescribeIdentityIdFormat with the addition of
  9503. // the ability to pass a context and additional request options.
  9504. //
  9505. // See DescribeIdentityIdFormat for details on how to use this API operation.
  9506. //
  9507. // The context must be non-nil and will be used for request cancellation. If
  9508. // the context is nil a panic will occur. In the future the SDK may create
  9509. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9510. // for more information on using Contexts.
  9511. func (c *EC2) DescribeIdentityIdFormatWithContext(ctx aws.Context, input *DescribeIdentityIdFormatInput, opts ...request.Option) (*DescribeIdentityIdFormatOutput, error) {
  9512. req, out := c.DescribeIdentityIdFormatRequest(input)
  9513. req.SetContext(ctx)
  9514. req.ApplyOptions(opts...)
  9515. return out, req.Send()
  9516. }
  9517. const opDescribeImageAttribute = "DescribeImageAttribute"
  9518. // DescribeImageAttributeRequest generates a "aws/request.Request" representing the
  9519. // client's request for the DescribeImageAttribute operation. The "output" return
  9520. // value will be populated with the request's response once the request completes
  9521. // successfuly.
  9522. //
  9523. // Use "Send" method on the returned Request to send the API call to the service.
  9524. // the "output" return value is not valid until after Send returns without error.
  9525. //
  9526. // See DescribeImageAttribute for more information on using the DescribeImageAttribute
  9527. // API call, and error handling.
  9528. //
  9529. // This method is useful when you want to inject custom logic or configuration
  9530. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9531. //
  9532. //
  9533. // // Example sending a request using the DescribeImageAttributeRequest method.
  9534. // req, resp := client.DescribeImageAttributeRequest(params)
  9535. //
  9536. // err := req.Send()
  9537. // if err == nil { // resp is now filled
  9538. // fmt.Println(resp)
  9539. // }
  9540. //
  9541. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImageAttribute
  9542. func (c *EC2) DescribeImageAttributeRequest(input *DescribeImageAttributeInput) (req *request.Request, output *DescribeImageAttributeOutput) {
  9543. op := &request.Operation{
  9544. Name: opDescribeImageAttribute,
  9545. HTTPMethod: "POST",
  9546. HTTPPath: "/",
  9547. }
  9548. if input == nil {
  9549. input = &DescribeImageAttributeInput{}
  9550. }
  9551. output = &DescribeImageAttributeOutput{}
  9552. req = c.newRequest(op, input, output)
  9553. return
  9554. }
  9555. // DescribeImageAttribute API operation for Amazon Elastic Compute Cloud.
  9556. //
  9557. // Describes the specified attribute of the specified AMI. You can specify only
  9558. // one attribute at a time.
  9559. //
  9560. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9561. // with awserr.Error's Code and Message methods to get detailed information about
  9562. // the error.
  9563. //
  9564. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9565. // API operation DescribeImageAttribute for usage and error information.
  9566. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImageAttribute
  9567. func (c *EC2) DescribeImageAttribute(input *DescribeImageAttributeInput) (*DescribeImageAttributeOutput, error) {
  9568. req, out := c.DescribeImageAttributeRequest(input)
  9569. return out, req.Send()
  9570. }
  9571. // DescribeImageAttributeWithContext is the same as DescribeImageAttribute with the addition of
  9572. // the ability to pass a context and additional request options.
  9573. //
  9574. // See DescribeImageAttribute for details on how to use this API operation.
  9575. //
  9576. // The context must be non-nil and will be used for request cancellation. If
  9577. // the context is nil a panic will occur. In the future the SDK may create
  9578. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9579. // for more information on using Contexts.
  9580. func (c *EC2) DescribeImageAttributeWithContext(ctx aws.Context, input *DescribeImageAttributeInput, opts ...request.Option) (*DescribeImageAttributeOutput, error) {
  9581. req, out := c.DescribeImageAttributeRequest(input)
  9582. req.SetContext(ctx)
  9583. req.ApplyOptions(opts...)
  9584. return out, req.Send()
  9585. }
  9586. const opDescribeImages = "DescribeImages"
  9587. // DescribeImagesRequest generates a "aws/request.Request" representing the
  9588. // client's request for the DescribeImages operation. The "output" return
  9589. // value will be populated with the request's response once the request completes
  9590. // successfuly.
  9591. //
  9592. // Use "Send" method on the returned Request to send the API call to the service.
  9593. // the "output" return value is not valid until after Send returns without error.
  9594. //
  9595. // See DescribeImages for more information on using the DescribeImages
  9596. // API call, and error handling.
  9597. //
  9598. // This method is useful when you want to inject custom logic or configuration
  9599. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9600. //
  9601. //
  9602. // // Example sending a request using the DescribeImagesRequest method.
  9603. // req, resp := client.DescribeImagesRequest(params)
  9604. //
  9605. // err := req.Send()
  9606. // if err == nil { // resp is now filled
  9607. // fmt.Println(resp)
  9608. // }
  9609. //
  9610. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImages
  9611. func (c *EC2) DescribeImagesRequest(input *DescribeImagesInput) (req *request.Request, output *DescribeImagesOutput) {
  9612. op := &request.Operation{
  9613. Name: opDescribeImages,
  9614. HTTPMethod: "POST",
  9615. HTTPPath: "/",
  9616. }
  9617. if input == nil {
  9618. input = &DescribeImagesInput{}
  9619. }
  9620. output = &DescribeImagesOutput{}
  9621. req = c.newRequest(op, input, output)
  9622. return
  9623. }
  9624. // DescribeImages API operation for Amazon Elastic Compute Cloud.
  9625. //
  9626. // Describes one or more of the images (AMIs, AKIs, and ARIs) available to you.
  9627. // Images available to you include public images, private images that you own,
  9628. // and private images owned by other AWS accounts but for which you have explicit
  9629. // launch permissions.
  9630. //
  9631. // Deregistered images are included in the returned results for an unspecified
  9632. // interval after deregistration.
  9633. //
  9634. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9635. // with awserr.Error's Code and Message methods to get detailed information about
  9636. // the error.
  9637. //
  9638. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9639. // API operation DescribeImages for usage and error information.
  9640. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImages
  9641. func (c *EC2) DescribeImages(input *DescribeImagesInput) (*DescribeImagesOutput, error) {
  9642. req, out := c.DescribeImagesRequest(input)
  9643. return out, req.Send()
  9644. }
  9645. // DescribeImagesWithContext is the same as DescribeImages with the addition of
  9646. // the ability to pass a context and additional request options.
  9647. //
  9648. // See DescribeImages for details on how to use this API operation.
  9649. //
  9650. // The context must be non-nil and will be used for request cancellation. If
  9651. // the context is nil a panic will occur. In the future the SDK may create
  9652. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9653. // for more information on using Contexts.
  9654. func (c *EC2) DescribeImagesWithContext(ctx aws.Context, input *DescribeImagesInput, opts ...request.Option) (*DescribeImagesOutput, error) {
  9655. req, out := c.DescribeImagesRequest(input)
  9656. req.SetContext(ctx)
  9657. req.ApplyOptions(opts...)
  9658. return out, req.Send()
  9659. }
  9660. const opDescribeImportImageTasks = "DescribeImportImageTasks"
  9661. // DescribeImportImageTasksRequest generates a "aws/request.Request" representing the
  9662. // client's request for the DescribeImportImageTasks operation. The "output" return
  9663. // value will be populated with the request's response once the request completes
  9664. // successfuly.
  9665. //
  9666. // Use "Send" method on the returned Request to send the API call to the service.
  9667. // the "output" return value is not valid until after Send returns without error.
  9668. //
  9669. // See DescribeImportImageTasks for more information on using the DescribeImportImageTasks
  9670. // API call, and error handling.
  9671. //
  9672. // This method is useful when you want to inject custom logic or configuration
  9673. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9674. //
  9675. //
  9676. // // Example sending a request using the DescribeImportImageTasksRequest method.
  9677. // req, resp := client.DescribeImportImageTasksRequest(params)
  9678. //
  9679. // err := req.Send()
  9680. // if err == nil { // resp is now filled
  9681. // fmt.Println(resp)
  9682. // }
  9683. //
  9684. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImportImageTasks
  9685. func (c *EC2) DescribeImportImageTasksRequest(input *DescribeImportImageTasksInput) (req *request.Request, output *DescribeImportImageTasksOutput) {
  9686. op := &request.Operation{
  9687. Name: opDescribeImportImageTasks,
  9688. HTTPMethod: "POST",
  9689. HTTPPath: "/",
  9690. }
  9691. if input == nil {
  9692. input = &DescribeImportImageTasksInput{}
  9693. }
  9694. output = &DescribeImportImageTasksOutput{}
  9695. req = c.newRequest(op, input, output)
  9696. return
  9697. }
  9698. // DescribeImportImageTasks API operation for Amazon Elastic Compute Cloud.
  9699. //
  9700. // Displays details about an import virtual machine or import snapshot tasks
  9701. // that are already created.
  9702. //
  9703. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9704. // with awserr.Error's Code and Message methods to get detailed information about
  9705. // the error.
  9706. //
  9707. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9708. // API operation DescribeImportImageTasks for usage and error information.
  9709. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImportImageTasks
  9710. func (c *EC2) DescribeImportImageTasks(input *DescribeImportImageTasksInput) (*DescribeImportImageTasksOutput, error) {
  9711. req, out := c.DescribeImportImageTasksRequest(input)
  9712. return out, req.Send()
  9713. }
  9714. // DescribeImportImageTasksWithContext is the same as DescribeImportImageTasks with the addition of
  9715. // the ability to pass a context and additional request options.
  9716. //
  9717. // See DescribeImportImageTasks for details on how to use this API operation.
  9718. //
  9719. // The context must be non-nil and will be used for request cancellation. If
  9720. // the context is nil a panic will occur. In the future the SDK may create
  9721. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9722. // for more information on using Contexts.
  9723. func (c *EC2) DescribeImportImageTasksWithContext(ctx aws.Context, input *DescribeImportImageTasksInput, opts ...request.Option) (*DescribeImportImageTasksOutput, error) {
  9724. req, out := c.DescribeImportImageTasksRequest(input)
  9725. req.SetContext(ctx)
  9726. req.ApplyOptions(opts...)
  9727. return out, req.Send()
  9728. }
  9729. const opDescribeImportSnapshotTasks = "DescribeImportSnapshotTasks"
  9730. // DescribeImportSnapshotTasksRequest generates a "aws/request.Request" representing the
  9731. // client's request for the DescribeImportSnapshotTasks operation. The "output" return
  9732. // value will be populated with the request's response once the request completes
  9733. // successfuly.
  9734. //
  9735. // Use "Send" method on the returned Request to send the API call to the service.
  9736. // the "output" return value is not valid until after Send returns without error.
  9737. //
  9738. // See DescribeImportSnapshotTasks for more information on using the DescribeImportSnapshotTasks
  9739. // API call, and error handling.
  9740. //
  9741. // This method is useful when you want to inject custom logic or configuration
  9742. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9743. //
  9744. //
  9745. // // Example sending a request using the DescribeImportSnapshotTasksRequest method.
  9746. // req, resp := client.DescribeImportSnapshotTasksRequest(params)
  9747. //
  9748. // err := req.Send()
  9749. // if err == nil { // resp is now filled
  9750. // fmt.Println(resp)
  9751. // }
  9752. //
  9753. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImportSnapshotTasks
  9754. func (c *EC2) DescribeImportSnapshotTasksRequest(input *DescribeImportSnapshotTasksInput) (req *request.Request, output *DescribeImportSnapshotTasksOutput) {
  9755. op := &request.Operation{
  9756. Name: opDescribeImportSnapshotTasks,
  9757. HTTPMethod: "POST",
  9758. HTTPPath: "/",
  9759. }
  9760. if input == nil {
  9761. input = &DescribeImportSnapshotTasksInput{}
  9762. }
  9763. output = &DescribeImportSnapshotTasksOutput{}
  9764. req = c.newRequest(op, input, output)
  9765. return
  9766. }
  9767. // DescribeImportSnapshotTasks API operation for Amazon Elastic Compute Cloud.
  9768. //
  9769. // Describes your import snapshot tasks.
  9770. //
  9771. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9772. // with awserr.Error's Code and Message methods to get detailed information about
  9773. // the error.
  9774. //
  9775. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9776. // API operation DescribeImportSnapshotTasks for usage and error information.
  9777. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImportSnapshotTasks
  9778. func (c *EC2) DescribeImportSnapshotTasks(input *DescribeImportSnapshotTasksInput) (*DescribeImportSnapshotTasksOutput, error) {
  9779. req, out := c.DescribeImportSnapshotTasksRequest(input)
  9780. return out, req.Send()
  9781. }
  9782. // DescribeImportSnapshotTasksWithContext is the same as DescribeImportSnapshotTasks with the addition of
  9783. // the ability to pass a context and additional request options.
  9784. //
  9785. // See DescribeImportSnapshotTasks for details on how to use this API operation.
  9786. //
  9787. // The context must be non-nil and will be used for request cancellation. If
  9788. // the context is nil a panic will occur. In the future the SDK may create
  9789. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9790. // for more information on using Contexts.
  9791. func (c *EC2) DescribeImportSnapshotTasksWithContext(ctx aws.Context, input *DescribeImportSnapshotTasksInput, opts ...request.Option) (*DescribeImportSnapshotTasksOutput, error) {
  9792. req, out := c.DescribeImportSnapshotTasksRequest(input)
  9793. req.SetContext(ctx)
  9794. req.ApplyOptions(opts...)
  9795. return out, req.Send()
  9796. }
  9797. const opDescribeInstanceAttribute = "DescribeInstanceAttribute"
  9798. // DescribeInstanceAttributeRequest generates a "aws/request.Request" representing the
  9799. // client's request for the DescribeInstanceAttribute operation. The "output" return
  9800. // value will be populated with the request's response once the request completes
  9801. // successfuly.
  9802. //
  9803. // Use "Send" method on the returned Request to send the API call to the service.
  9804. // the "output" return value is not valid until after Send returns without error.
  9805. //
  9806. // See DescribeInstanceAttribute for more information on using the DescribeInstanceAttribute
  9807. // API call, and error handling.
  9808. //
  9809. // This method is useful when you want to inject custom logic or configuration
  9810. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9811. //
  9812. //
  9813. // // Example sending a request using the DescribeInstanceAttributeRequest method.
  9814. // req, resp := client.DescribeInstanceAttributeRequest(params)
  9815. //
  9816. // err := req.Send()
  9817. // if err == nil { // resp is now filled
  9818. // fmt.Println(resp)
  9819. // }
  9820. //
  9821. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceAttribute
  9822. func (c *EC2) DescribeInstanceAttributeRequest(input *DescribeInstanceAttributeInput) (req *request.Request, output *DescribeInstanceAttributeOutput) {
  9823. op := &request.Operation{
  9824. Name: opDescribeInstanceAttribute,
  9825. HTTPMethod: "POST",
  9826. HTTPPath: "/",
  9827. }
  9828. if input == nil {
  9829. input = &DescribeInstanceAttributeInput{}
  9830. }
  9831. output = &DescribeInstanceAttributeOutput{}
  9832. req = c.newRequest(op, input, output)
  9833. return
  9834. }
  9835. // DescribeInstanceAttribute API operation for Amazon Elastic Compute Cloud.
  9836. //
  9837. // Describes the specified attribute of the specified instance. You can specify
  9838. // only one attribute at a time. Valid attribute values are: instanceType |
  9839. // kernel | ramdisk | userData | disableApiTermination | instanceInitiatedShutdownBehavior
  9840. // | rootDeviceName | blockDeviceMapping | productCodes | sourceDestCheck |
  9841. // groupSet | ebsOptimized | sriovNetSupport
  9842. //
  9843. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9844. // with awserr.Error's Code and Message methods to get detailed information about
  9845. // the error.
  9846. //
  9847. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9848. // API operation DescribeInstanceAttribute for usage and error information.
  9849. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceAttribute
  9850. func (c *EC2) DescribeInstanceAttribute(input *DescribeInstanceAttributeInput) (*DescribeInstanceAttributeOutput, error) {
  9851. req, out := c.DescribeInstanceAttributeRequest(input)
  9852. return out, req.Send()
  9853. }
  9854. // DescribeInstanceAttributeWithContext is the same as DescribeInstanceAttribute with the addition of
  9855. // the ability to pass a context and additional request options.
  9856. //
  9857. // See DescribeInstanceAttribute for details on how to use this API operation.
  9858. //
  9859. // The context must be non-nil and will be used for request cancellation. If
  9860. // the context is nil a panic will occur. In the future the SDK may create
  9861. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9862. // for more information on using Contexts.
  9863. func (c *EC2) DescribeInstanceAttributeWithContext(ctx aws.Context, input *DescribeInstanceAttributeInput, opts ...request.Option) (*DescribeInstanceAttributeOutput, error) {
  9864. req, out := c.DescribeInstanceAttributeRequest(input)
  9865. req.SetContext(ctx)
  9866. req.ApplyOptions(opts...)
  9867. return out, req.Send()
  9868. }
  9869. const opDescribeInstanceCreditSpecifications = "DescribeInstanceCreditSpecifications"
  9870. // DescribeInstanceCreditSpecificationsRequest generates a "aws/request.Request" representing the
  9871. // client's request for the DescribeInstanceCreditSpecifications operation. The "output" return
  9872. // value will be populated with the request's response once the request completes
  9873. // successfuly.
  9874. //
  9875. // Use "Send" method on the returned Request to send the API call to the service.
  9876. // the "output" return value is not valid until after Send returns without error.
  9877. //
  9878. // See DescribeInstanceCreditSpecifications for more information on using the DescribeInstanceCreditSpecifications
  9879. // API call, and error handling.
  9880. //
  9881. // This method is useful when you want to inject custom logic or configuration
  9882. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9883. //
  9884. //
  9885. // // Example sending a request using the DescribeInstanceCreditSpecificationsRequest method.
  9886. // req, resp := client.DescribeInstanceCreditSpecificationsRequest(params)
  9887. //
  9888. // err := req.Send()
  9889. // if err == nil { // resp is now filled
  9890. // fmt.Println(resp)
  9891. // }
  9892. //
  9893. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceCreditSpecifications
  9894. func (c *EC2) DescribeInstanceCreditSpecificationsRequest(input *DescribeInstanceCreditSpecificationsInput) (req *request.Request, output *DescribeInstanceCreditSpecificationsOutput) {
  9895. op := &request.Operation{
  9896. Name: opDescribeInstanceCreditSpecifications,
  9897. HTTPMethod: "POST",
  9898. HTTPPath: "/",
  9899. }
  9900. if input == nil {
  9901. input = &DescribeInstanceCreditSpecificationsInput{}
  9902. }
  9903. output = &DescribeInstanceCreditSpecificationsOutput{}
  9904. req = c.newRequest(op, input, output)
  9905. return
  9906. }
  9907. // DescribeInstanceCreditSpecifications API operation for Amazon Elastic Compute Cloud.
  9908. //
  9909. // Describes the credit option for CPU usage of one or more of your T2 instances.
  9910. // The credit options are standard and unlimited.
  9911. //
  9912. // If you do not specify an instance ID, Amazon EC2 returns only the T2 instances
  9913. // with the unlimited credit option. If you specify one or more instance IDs,
  9914. // Amazon EC2 returns the credit option (standard or unlimited) of those instances.
  9915. // If you specify an instance ID that is not valid, such as an instance that
  9916. // is not a T2 instance, an error is returned.
  9917. //
  9918. // Recently terminated instances might appear in the returned results. This
  9919. // interval is usually less than one hour.
  9920. //
  9921. // If an Availability Zone is experiencing a service disruption and you specify
  9922. // instance IDs in the affected zone, or do not specify any instance IDs at
  9923. // all, the call fails. If you specify only instance IDs in an unaffected zone,
  9924. // the call works normally.
  9925. //
  9926. // For more information, see T2 Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/t2-instances.html)
  9927. // in the Amazon Elastic Compute Cloud User Guide.
  9928. //
  9929. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9930. // with awserr.Error's Code and Message methods to get detailed information about
  9931. // the error.
  9932. //
  9933. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9934. // API operation DescribeInstanceCreditSpecifications for usage and error information.
  9935. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceCreditSpecifications
  9936. func (c *EC2) DescribeInstanceCreditSpecifications(input *DescribeInstanceCreditSpecificationsInput) (*DescribeInstanceCreditSpecificationsOutput, error) {
  9937. req, out := c.DescribeInstanceCreditSpecificationsRequest(input)
  9938. return out, req.Send()
  9939. }
  9940. // DescribeInstanceCreditSpecificationsWithContext is the same as DescribeInstanceCreditSpecifications with the addition of
  9941. // the ability to pass a context and additional request options.
  9942. //
  9943. // See DescribeInstanceCreditSpecifications for details on how to use this API operation.
  9944. //
  9945. // The context must be non-nil and will be used for request cancellation. If
  9946. // the context is nil a panic will occur. In the future the SDK may create
  9947. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9948. // for more information on using Contexts.
  9949. func (c *EC2) DescribeInstanceCreditSpecificationsWithContext(ctx aws.Context, input *DescribeInstanceCreditSpecificationsInput, opts ...request.Option) (*DescribeInstanceCreditSpecificationsOutput, error) {
  9950. req, out := c.DescribeInstanceCreditSpecificationsRequest(input)
  9951. req.SetContext(ctx)
  9952. req.ApplyOptions(opts...)
  9953. return out, req.Send()
  9954. }
  9955. const opDescribeInstanceStatus = "DescribeInstanceStatus"
  9956. // DescribeInstanceStatusRequest generates a "aws/request.Request" representing the
  9957. // client's request for the DescribeInstanceStatus operation. The "output" return
  9958. // value will be populated with the request's response once the request completes
  9959. // successfuly.
  9960. //
  9961. // Use "Send" method on the returned Request to send the API call to the service.
  9962. // the "output" return value is not valid until after Send returns without error.
  9963. //
  9964. // See DescribeInstanceStatus for more information on using the DescribeInstanceStatus
  9965. // API call, and error handling.
  9966. //
  9967. // This method is useful when you want to inject custom logic or configuration
  9968. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9969. //
  9970. //
  9971. // // Example sending a request using the DescribeInstanceStatusRequest method.
  9972. // req, resp := client.DescribeInstanceStatusRequest(params)
  9973. //
  9974. // err := req.Send()
  9975. // if err == nil { // resp is now filled
  9976. // fmt.Println(resp)
  9977. // }
  9978. //
  9979. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceStatus
  9980. func (c *EC2) DescribeInstanceStatusRequest(input *DescribeInstanceStatusInput) (req *request.Request, output *DescribeInstanceStatusOutput) {
  9981. op := &request.Operation{
  9982. Name: opDescribeInstanceStatus,
  9983. HTTPMethod: "POST",
  9984. HTTPPath: "/",
  9985. Paginator: &request.Paginator{
  9986. InputTokens: []string{"NextToken"},
  9987. OutputTokens: []string{"NextToken"},
  9988. LimitToken: "MaxResults",
  9989. TruncationToken: "",
  9990. },
  9991. }
  9992. if input == nil {
  9993. input = &DescribeInstanceStatusInput{}
  9994. }
  9995. output = &DescribeInstanceStatusOutput{}
  9996. req = c.newRequest(op, input, output)
  9997. return
  9998. }
  9999. // DescribeInstanceStatus API operation for Amazon Elastic Compute Cloud.
  10000. //
  10001. // Describes the status of one or more instances. By default, only running instances
  10002. // are described, unless you specifically indicate to return the status of all
  10003. // instances.
  10004. //
  10005. // Instance status includes the following components:
  10006. //
  10007. // * Status checks - Amazon EC2 performs status checks on running EC2 instances
  10008. // to identify hardware and software issues. For more information, see Status
  10009. // Checks for Your Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-system-instance-status-check.html)
  10010. // and Troubleshooting Instances with Failed Status Checks (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstances.html)
  10011. // in the Amazon Elastic Compute Cloud User Guide.
  10012. //
  10013. // * Scheduled events - Amazon EC2 can schedule events (such as reboot, stop,
  10014. // or terminate) for your instances related to hardware issues, software
  10015. // updates, or system maintenance. For more information, see Scheduled Events
  10016. // for Your Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-instances-status-check_sched.html)
  10017. // in the Amazon Elastic Compute Cloud User Guide.
  10018. //
  10019. // * Instance state - You can manage your instances from the moment you launch
  10020. // them through their termination. For more information, see Instance Lifecycle
  10021. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html)
  10022. // in the Amazon Elastic Compute Cloud User Guide.
  10023. //
  10024. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10025. // with awserr.Error's Code and Message methods to get detailed information about
  10026. // the error.
  10027. //
  10028. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10029. // API operation DescribeInstanceStatus for usage and error information.
  10030. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceStatus
  10031. func (c *EC2) DescribeInstanceStatus(input *DescribeInstanceStatusInput) (*DescribeInstanceStatusOutput, error) {
  10032. req, out := c.DescribeInstanceStatusRequest(input)
  10033. return out, req.Send()
  10034. }
  10035. // DescribeInstanceStatusWithContext is the same as DescribeInstanceStatus with the addition of
  10036. // the ability to pass a context and additional request options.
  10037. //
  10038. // See DescribeInstanceStatus for details on how to use this API operation.
  10039. //
  10040. // The context must be non-nil and will be used for request cancellation. If
  10041. // the context is nil a panic will occur. In the future the SDK may create
  10042. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10043. // for more information on using Contexts.
  10044. func (c *EC2) DescribeInstanceStatusWithContext(ctx aws.Context, input *DescribeInstanceStatusInput, opts ...request.Option) (*DescribeInstanceStatusOutput, error) {
  10045. req, out := c.DescribeInstanceStatusRequest(input)
  10046. req.SetContext(ctx)
  10047. req.ApplyOptions(opts...)
  10048. return out, req.Send()
  10049. }
  10050. // DescribeInstanceStatusPages iterates over the pages of a DescribeInstanceStatus operation,
  10051. // calling the "fn" function with the response data for each page. To stop
  10052. // iterating, return false from the fn function.
  10053. //
  10054. // See DescribeInstanceStatus method for more information on how to use this operation.
  10055. //
  10056. // Note: This operation can generate multiple requests to a service.
  10057. //
  10058. // // Example iterating over at most 3 pages of a DescribeInstanceStatus operation.
  10059. // pageNum := 0
  10060. // err := client.DescribeInstanceStatusPages(params,
  10061. // func(page *DescribeInstanceStatusOutput, lastPage bool) bool {
  10062. // pageNum++
  10063. // fmt.Println(page)
  10064. // return pageNum <= 3
  10065. // })
  10066. //
  10067. func (c *EC2) DescribeInstanceStatusPages(input *DescribeInstanceStatusInput, fn func(*DescribeInstanceStatusOutput, bool) bool) error {
  10068. return c.DescribeInstanceStatusPagesWithContext(aws.BackgroundContext(), input, fn)
  10069. }
  10070. // DescribeInstanceStatusPagesWithContext same as DescribeInstanceStatusPages except
  10071. // it takes a Context and allows setting request options on the pages.
  10072. //
  10073. // The context must be non-nil and will be used for request cancellation. If
  10074. // the context is nil a panic will occur. In the future the SDK may create
  10075. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10076. // for more information on using Contexts.
  10077. func (c *EC2) DescribeInstanceStatusPagesWithContext(ctx aws.Context, input *DescribeInstanceStatusInput, fn func(*DescribeInstanceStatusOutput, bool) bool, opts ...request.Option) error {
  10078. p := request.Pagination{
  10079. NewRequest: func() (*request.Request, error) {
  10080. var inCpy *DescribeInstanceStatusInput
  10081. if input != nil {
  10082. tmp := *input
  10083. inCpy = &tmp
  10084. }
  10085. req, _ := c.DescribeInstanceStatusRequest(inCpy)
  10086. req.SetContext(ctx)
  10087. req.ApplyOptions(opts...)
  10088. return req, nil
  10089. },
  10090. }
  10091. cont := true
  10092. for p.Next() && cont {
  10093. cont = fn(p.Page().(*DescribeInstanceStatusOutput), !p.HasNextPage())
  10094. }
  10095. return p.Err()
  10096. }
  10097. const opDescribeInstances = "DescribeInstances"
  10098. // DescribeInstancesRequest generates a "aws/request.Request" representing the
  10099. // client's request for the DescribeInstances operation. The "output" return
  10100. // value will be populated with the request's response once the request completes
  10101. // successfuly.
  10102. //
  10103. // Use "Send" method on the returned Request to send the API call to the service.
  10104. // the "output" return value is not valid until after Send returns without error.
  10105. //
  10106. // See DescribeInstances for more information on using the DescribeInstances
  10107. // API call, and error handling.
  10108. //
  10109. // This method is useful when you want to inject custom logic or configuration
  10110. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10111. //
  10112. //
  10113. // // Example sending a request using the DescribeInstancesRequest method.
  10114. // req, resp := client.DescribeInstancesRequest(params)
  10115. //
  10116. // err := req.Send()
  10117. // if err == nil { // resp is now filled
  10118. // fmt.Println(resp)
  10119. // }
  10120. //
  10121. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstances
  10122. func (c *EC2) DescribeInstancesRequest(input *DescribeInstancesInput) (req *request.Request, output *DescribeInstancesOutput) {
  10123. op := &request.Operation{
  10124. Name: opDescribeInstances,
  10125. HTTPMethod: "POST",
  10126. HTTPPath: "/",
  10127. Paginator: &request.Paginator{
  10128. InputTokens: []string{"NextToken"},
  10129. OutputTokens: []string{"NextToken"},
  10130. LimitToken: "MaxResults",
  10131. TruncationToken: "",
  10132. },
  10133. }
  10134. if input == nil {
  10135. input = &DescribeInstancesInput{}
  10136. }
  10137. output = &DescribeInstancesOutput{}
  10138. req = c.newRequest(op, input, output)
  10139. return
  10140. }
  10141. // DescribeInstances API operation for Amazon Elastic Compute Cloud.
  10142. //
  10143. // Describes one or more of your instances.
  10144. //
  10145. // If you specify one or more instance IDs, Amazon EC2 returns information for
  10146. // those instances. If you do not specify instance IDs, Amazon EC2 returns information
  10147. // for all relevant instances. If you specify an instance ID that is not valid,
  10148. // an error is returned. If you specify an instance that you do not own, it
  10149. // is not included in the returned results.
  10150. //
  10151. // Recently terminated instances might appear in the returned results. This
  10152. // interval is usually less than one hour.
  10153. //
  10154. // If you describe instances in the rare case where an Availability Zone is
  10155. // experiencing a service disruption and you specify instance IDs that are in
  10156. // the affected zone, or do not specify any instance IDs at all, the call fails.
  10157. // If you describe instances and specify only instance IDs that are in an unaffected
  10158. // zone, the call works normally.
  10159. //
  10160. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10161. // with awserr.Error's Code and Message methods to get detailed information about
  10162. // the error.
  10163. //
  10164. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10165. // API operation DescribeInstances for usage and error information.
  10166. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstances
  10167. func (c *EC2) DescribeInstances(input *DescribeInstancesInput) (*DescribeInstancesOutput, error) {
  10168. req, out := c.DescribeInstancesRequest(input)
  10169. return out, req.Send()
  10170. }
  10171. // DescribeInstancesWithContext is the same as DescribeInstances with the addition of
  10172. // the ability to pass a context and additional request options.
  10173. //
  10174. // See DescribeInstances for details on how to use this API operation.
  10175. //
  10176. // The context must be non-nil and will be used for request cancellation. If
  10177. // the context is nil a panic will occur. In the future the SDK may create
  10178. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10179. // for more information on using Contexts.
  10180. func (c *EC2) DescribeInstancesWithContext(ctx aws.Context, input *DescribeInstancesInput, opts ...request.Option) (*DescribeInstancesOutput, error) {
  10181. req, out := c.DescribeInstancesRequest(input)
  10182. req.SetContext(ctx)
  10183. req.ApplyOptions(opts...)
  10184. return out, req.Send()
  10185. }
  10186. // DescribeInstancesPages iterates over the pages of a DescribeInstances operation,
  10187. // calling the "fn" function with the response data for each page. To stop
  10188. // iterating, return false from the fn function.
  10189. //
  10190. // See DescribeInstances method for more information on how to use this operation.
  10191. //
  10192. // Note: This operation can generate multiple requests to a service.
  10193. //
  10194. // // Example iterating over at most 3 pages of a DescribeInstances operation.
  10195. // pageNum := 0
  10196. // err := client.DescribeInstancesPages(params,
  10197. // func(page *DescribeInstancesOutput, lastPage bool) bool {
  10198. // pageNum++
  10199. // fmt.Println(page)
  10200. // return pageNum <= 3
  10201. // })
  10202. //
  10203. func (c *EC2) DescribeInstancesPages(input *DescribeInstancesInput, fn func(*DescribeInstancesOutput, bool) bool) error {
  10204. return c.DescribeInstancesPagesWithContext(aws.BackgroundContext(), input, fn)
  10205. }
  10206. // DescribeInstancesPagesWithContext same as DescribeInstancesPages except
  10207. // it takes a Context and allows setting request options on the pages.
  10208. //
  10209. // The context must be non-nil and will be used for request cancellation. If
  10210. // the context is nil a panic will occur. In the future the SDK may create
  10211. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10212. // for more information on using Contexts.
  10213. func (c *EC2) DescribeInstancesPagesWithContext(ctx aws.Context, input *DescribeInstancesInput, fn func(*DescribeInstancesOutput, bool) bool, opts ...request.Option) error {
  10214. p := request.Pagination{
  10215. NewRequest: func() (*request.Request, error) {
  10216. var inCpy *DescribeInstancesInput
  10217. if input != nil {
  10218. tmp := *input
  10219. inCpy = &tmp
  10220. }
  10221. req, _ := c.DescribeInstancesRequest(inCpy)
  10222. req.SetContext(ctx)
  10223. req.ApplyOptions(opts...)
  10224. return req, nil
  10225. },
  10226. }
  10227. cont := true
  10228. for p.Next() && cont {
  10229. cont = fn(p.Page().(*DescribeInstancesOutput), !p.HasNextPage())
  10230. }
  10231. return p.Err()
  10232. }
  10233. const opDescribeInternetGateways = "DescribeInternetGateways"
  10234. // DescribeInternetGatewaysRequest generates a "aws/request.Request" representing the
  10235. // client's request for the DescribeInternetGateways operation. The "output" return
  10236. // value will be populated with the request's response once the request completes
  10237. // successfuly.
  10238. //
  10239. // Use "Send" method on the returned Request to send the API call to the service.
  10240. // the "output" return value is not valid until after Send returns without error.
  10241. //
  10242. // See DescribeInternetGateways for more information on using the DescribeInternetGateways
  10243. // API call, and error handling.
  10244. //
  10245. // This method is useful when you want to inject custom logic or configuration
  10246. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10247. //
  10248. //
  10249. // // Example sending a request using the DescribeInternetGatewaysRequest method.
  10250. // req, resp := client.DescribeInternetGatewaysRequest(params)
  10251. //
  10252. // err := req.Send()
  10253. // if err == nil { // resp is now filled
  10254. // fmt.Println(resp)
  10255. // }
  10256. //
  10257. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInternetGateways
  10258. func (c *EC2) DescribeInternetGatewaysRequest(input *DescribeInternetGatewaysInput) (req *request.Request, output *DescribeInternetGatewaysOutput) {
  10259. op := &request.Operation{
  10260. Name: opDescribeInternetGateways,
  10261. HTTPMethod: "POST",
  10262. HTTPPath: "/",
  10263. }
  10264. if input == nil {
  10265. input = &DescribeInternetGatewaysInput{}
  10266. }
  10267. output = &DescribeInternetGatewaysOutput{}
  10268. req = c.newRequest(op, input, output)
  10269. return
  10270. }
  10271. // DescribeInternetGateways API operation for Amazon Elastic Compute Cloud.
  10272. //
  10273. // Describes one or more of your Internet gateways.
  10274. //
  10275. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10276. // with awserr.Error's Code and Message methods to get detailed information about
  10277. // the error.
  10278. //
  10279. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10280. // API operation DescribeInternetGateways for usage and error information.
  10281. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInternetGateways
  10282. func (c *EC2) DescribeInternetGateways(input *DescribeInternetGatewaysInput) (*DescribeInternetGatewaysOutput, error) {
  10283. req, out := c.DescribeInternetGatewaysRequest(input)
  10284. return out, req.Send()
  10285. }
  10286. // DescribeInternetGatewaysWithContext is the same as DescribeInternetGateways with the addition of
  10287. // the ability to pass a context and additional request options.
  10288. //
  10289. // See DescribeInternetGateways for details on how to use this API operation.
  10290. //
  10291. // The context must be non-nil and will be used for request cancellation. If
  10292. // the context is nil a panic will occur. In the future the SDK may create
  10293. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10294. // for more information on using Contexts.
  10295. func (c *EC2) DescribeInternetGatewaysWithContext(ctx aws.Context, input *DescribeInternetGatewaysInput, opts ...request.Option) (*DescribeInternetGatewaysOutput, error) {
  10296. req, out := c.DescribeInternetGatewaysRequest(input)
  10297. req.SetContext(ctx)
  10298. req.ApplyOptions(opts...)
  10299. return out, req.Send()
  10300. }
  10301. const opDescribeKeyPairs = "DescribeKeyPairs"
  10302. // DescribeKeyPairsRequest generates a "aws/request.Request" representing the
  10303. // client's request for the DescribeKeyPairs operation. The "output" return
  10304. // value will be populated with the request's response once the request completes
  10305. // successfuly.
  10306. //
  10307. // Use "Send" method on the returned Request to send the API call to the service.
  10308. // the "output" return value is not valid until after Send returns without error.
  10309. //
  10310. // See DescribeKeyPairs for more information on using the DescribeKeyPairs
  10311. // API call, and error handling.
  10312. //
  10313. // This method is useful when you want to inject custom logic or configuration
  10314. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10315. //
  10316. //
  10317. // // Example sending a request using the DescribeKeyPairsRequest method.
  10318. // req, resp := client.DescribeKeyPairsRequest(params)
  10319. //
  10320. // err := req.Send()
  10321. // if err == nil { // resp is now filled
  10322. // fmt.Println(resp)
  10323. // }
  10324. //
  10325. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeKeyPairs
  10326. func (c *EC2) DescribeKeyPairsRequest(input *DescribeKeyPairsInput) (req *request.Request, output *DescribeKeyPairsOutput) {
  10327. op := &request.Operation{
  10328. Name: opDescribeKeyPairs,
  10329. HTTPMethod: "POST",
  10330. HTTPPath: "/",
  10331. }
  10332. if input == nil {
  10333. input = &DescribeKeyPairsInput{}
  10334. }
  10335. output = &DescribeKeyPairsOutput{}
  10336. req = c.newRequest(op, input, output)
  10337. return
  10338. }
  10339. // DescribeKeyPairs API operation for Amazon Elastic Compute Cloud.
  10340. //
  10341. // Describes one or more of your key pairs.
  10342. //
  10343. // For more information about key pairs, see Key Pairs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html)
  10344. // in the Amazon Elastic Compute Cloud User Guide.
  10345. //
  10346. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10347. // with awserr.Error's Code and Message methods to get detailed information about
  10348. // the error.
  10349. //
  10350. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10351. // API operation DescribeKeyPairs for usage and error information.
  10352. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeKeyPairs
  10353. func (c *EC2) DescribeKeyPairs(input *DescribeKeyPairsInput) (*DescribeKeyPairsOutput, error) {
  10354. req, out := c.DescribeKeyPairsRequest(input)
  10355. return out, req.Send()
  10356. }
  10357. // DescribeKeyPairsWithContext is the same as DescribeKeyPairs with the addition of
  10358. // the ability to pass a context and additional request options.
  10359. //
  10360. // See DescribeKeyPairs for details on how to use this API operation.
  10361. //
  10362. // The context must be non-nil and will be used for request cancellation. If
  10363. // the context is nil a panic will occur. In the future the SDK may create
  10364. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10365. // for more information on using Contexts.
  10366. func (c *EC2) DescribeKeyPairsWithContext(ctx aws.Context, input *DescribeKeyPairsInput, opts ...request.Option) (*DescribeKeyPairsOutput, error) {
  10367. req, out := c.DescribeKeyPairsRequest(input)
  10368. req.SetContext(ctx)
  10369. req.ApplyOptions(opts...)
  10370. return out, req.Send()
  10371. }
  10372. const opDescribeLaunchTemplateVersions = "DescribeLaunchTemplateVersions"
  10373. // DescribeLaunchTemplateVersionsRequest generates a "aws/request.Request" representing the
  10374. // client's request for the DescribeLaunchTemplateVersions operation. The "output" return
  10375. // value will be populated with the request's response once the request completes
  10376. // successfuly.
  10377. //
  10378. // Use "Send" method on the returned Request to send the API call to the service.
  10379. // the "output" return value is not valid until after Send returns without error.
  10380. //
  10381. // See DescribeLaunchTemplateVersions for more information on using the DescribeLaunchTemplateVersions
  10382. // API call, and error handling.
  10383. //
  10384. // This method is useful when you want to inject custom logic or configuration
  10385. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10386. //
  10387. //
  10388. // // Example sending a request using the DescribeLaunchTemplateVersionsRequest method.
  10389. // req, resp := client.DescribeLaunchTemplateVersionsRequest(params)
  10390. //
  10391. // err := req.Send()
  10392. // if err == nil { // resp is now filled
  10393. // fmt.Println(resp)
  10394. // }
  10395. //
  10396. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeLaunchTemplateVersions
  10397. func (c *EC2) DescribeLaunchTemplateVersionsRequest(input *DescribeLaunchTemplateVersionsInput) (req *request.Request, output *DescribeLaunchTemplateVersionsOutput) {
  10398. op := &request.Operation{
  10399. Name: opDescribeLaunchTemplateVersions,
  10400. HTTPMethod: "POST",
  10401. HTTPPath: "/",
  10402. }
  10403. if input == nil {
  10404. input = &DescribeLaunchTemplateVersionsInput{}
  10405. }
  10406. output = &DescribeLaunchTemplateVersionsOutput{}
  10407. req = c.newRequest(op, input, output)
  10408. return
  10409. }
  10410. // DescribeLaunchTemplateVersions API operation for Amazon Elastic Compute Cloud.
  10411. //
  10412. // Describes one or more versions of a specified launch template. You can describe
  10413. // all versions, individual versions, or a range of versions.
  10414. //
  10415. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10416. // with awserr.Error's Code and Message methods to get detailed information about
  10417. // the error.
  10418. //
  10419. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10420. // API operation DescribeLaunchTemplateVersions for usage and error information.
  10421. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeLaunchTemplateVersions
  10422. func (c *EC2) DescribeLaunchTemplateVersions(input *DescribeLaunchTemplateVersionsInput) (*DescribeLaunchTemplateVersionsOutput, error) {
  10423. req, out := c.DescribeLaunchTemplateVersionsRequest(input)
  10424. return out, req.Send()
  10425. }
  10426. // DescribeLaunchTemplateVersionsWithContext is the same as DescribeLaunchTemplateVersions with the addition of
  10427. // the ability to pass a context and additional request options.
  10428. //
  10429. // See DescribeLaunchTemplateVersions for details on how to use this API operation.
  10430. //
  10431. // The context must be non-nil and will be used for request cancellation. If
  10432. // the context is nil a panic will occur. In the future the SDK may create
  10433. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10434. // for more information on using Contexts.
  10435. func (c *EC2) DescribeLaunchTemplateVersionsWithContext(ctx aws.Context, input *DescribeLaunchTemplateVersionsInput, opts ...request.Option) (*DescribeLaunchTemplateVersionsOutput, error) {
  10436. req, out := c.DescribeLaunchTemplateVersionsRequest(input)
  10437. req.SetContext(ctx)
  10438. req.ApplyOptions(opts...)
  10439. return out, req.Send()
  10440. }
  10441. const opDescribeLaunchTemplates = "DescribeLaunchTemplates"
  10442. // DescribeLaunchTemplatesRequest generates a "aws/request.Request" representing the
  10443. // client's request for the DescribeLaunchTemplates operation. The "output" return
  10444. // value will be populated with the request's response once the request completes
  10445. // successfuly.
  10446. //
  10447. // Use "Send" method on the returned Request to send the API call to the service.
  10448. // the "output" return value is not valid until after Send returns without error.
  10449. //
  10450. // See DescribeLaunchTemplates for more information on using the DescribeLaunchTemplates
  10451. // API call, and error handling.
  10452. //
  10453. // This method is useful when you want to inject custom logic or configuration
  10454. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10455. //
  10456. //
  10457. // // Example sending a request using the DescribeLaunchTemplatesRequest method.
  10458. // req, resp := client.DescribeLaunchTemplatesRequest(params)
  10459. //
  10460. // err := req.Send()
  10461. // if err == nil { // resp is now filled
  10462. // fmt.Println(resp)
  10463. // }
  10464. //
  10465. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeLaunchTemplates
  10466. func (c *EC2) DescribeLaunchTemplatesRequest(input *DescribeLaunchTemplatesInput) (req *request.Request, output *DescribeLaunchTemplatesOutput) {
  10467. op := &request.Operation{
  10468. Name: opDescribeLaunchTemplates,
  10469. HTTPMethod: "POST",
  10470. HTTPPath: "/",
  10471. }
  10472. if input == nil {
  10473. input = &DescribeLaunchTemplatesInput{}
  10474. }
  10475. output = &DescribeLaunchTemplatesOutput{}
  10476. req = c.newRequest(op, input, output)
  10477. return
  10478. }
  10479. // DescribeLaunchTemplates API operation for Amazon Elastic Compute Cloud.
  10480. //
  10481. // Describes one or more launch templates.
  10482. //
  10483. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10484. // with awserr.Error's Code and Message methods to get detailed information about
  10485. // the error.
  10486. //
  10487. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10488. // API operation DescribeLaunchTemplates for usage and error information.
  10489. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeLaunchTemplates
  10490. func (c *EC2) DescribeLaunchTemplates(input *DescribeLaunchTemplatesInput) (*DescribeLaunchTemplatesOutput, error) {
  10491. req, out := c.DescribeLaunchTemplatesRequest(input)
  10492. return out, req.Send()
  10493. }
  10494. // DescribeLaunchTemplatesWithContext is the same as DescribeLaunchTemplates with the addition of
  10495. // the ability to pass a context and additional request options.
  10496. //
  10497. // See DescribeLaunchTemplates for details on how to use this API operation.
  10498. //
  10499. // The context must be non-nil and will be used for request cancellation. If
  10500. // the context is nil a panic will occur. In the future the SDK may create
  10501. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10502. // for more information on using Contexts.
  10503. func (c *EC2) DescribeLaunchTemplatesWithContext(ctx aws.Context, input *DescribeLaunchTemplatesInput, opts ...request.Option) (*DescribeLaunchTemplatesOutput, error) {
  10504. req, out := c.DescribeLaunchTemplatesRequest(input)
  10505. req.SetContext(ctx)
  10506. req.ApplyOptions(opts...)
  10507. return out, req.Send()
  10508. }
  10509. const opDescribeMovingAddresses = "DescribeMovingAddresses"
  10510. // DescribeMovingAddressesRequest generates a "aws/request.Request" representing the
  10511. // client's request for the DescribeMovingAddresses operation. The "output" return
  10512. // value will be populated with the request's response once the request completes
  10513. // successfuly.
  10514. //
  10515. // Use "Send" method on the returned Request to send the API call to the service.
  10516. // the "output" return value is not valid until after Send returns without error.
  10517. //
  10518. // See DescribeMovingAddresses for more information on using the DescribeMovingAddresses
  10519. // API call, and error handling.
  10520. //
  10521. // This method is useful when you want to inject custom logic or configuration
  10522. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10523. //
  10524. //
  10525. // // Example sending a request using the DescribeMovingAddressesRequest method.
  10526. // req, resp := client.DescribeMovingAddressesRequest(params)
  10527. //
  10528. // err := req.Send()
  10529. // if err == nil { // resp is now filled
  10530. // fmt.Println(resp)
  10531. // }
  10532. //
  10533. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeMovingAddresses
  10534. func (c *EC2) DescribeMovingAddressesRequest(input *DescribeMovingAddressesInput) (req *request.Request, output *DescribeMovingAddressesOutput) {
  10535. op := &request.Operation{
  10536. Name: opDescribeMovingAddresses,
  10537. HTTPMethod: "POST",
  10538. HTTPPath: "/",
  10539. }
  10540. if input == nil {
  10541. input = &DescribeMovingAddressesInput{}
  10542. }
  10543. output = &DescribeMovingAddressesOutput{}
  10544. req = c.newRequest(op, input, output)
  10545. return
  10546. }
  10547. // DescribeMovingAddresses API operation for Amazon Elastic Compute Cloud.
  10548. //
  10549. // Describes your Elastic IP addresses that are being moved to the EC2-VPC platform,
  10550. // or that are being restored to the EC2-Classic platform. This request does
  10551. // not return information about any other Elastic IP addresses in your account.
  10552. //
  10553. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10554. // with awserr.Error's Code and Message methods to get detailed information about
  10555. // the error.
  10556. //
  10557. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10558. // API operation DescribeMovingAddresses for usage and error information.
  10559. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeMovingAddresses
  10560. func (c *EC2) DescribeMovingAddresses(input *DescribeMovingAddressesInput) (*DescribeMovingAddressesOutput, error) {
  10561. req, out := c.DescribeMovingAddressesRequest(input)
  10562. return out, req.Send()
  10563. }
  10564. // DescribeMovingAddressesWithContext is the same as DescribeMovingAddresses with the addition of
  10565. // the ability to pass a context and additional request options.
  10566. //
  10567. // See DescribeMovingAddresses for details on how to use this API operation.
  10568. //
  10569. // The context must be non-nil and will be used for request cancellation. If
  10570. // the context is nil a panic will occur. In the future the SDK may create
  10571. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10572. // for more information on using Contexts.
  10573. func (c *EC2) DescribeMovingAddressesWithContext(ctx aws.Context, input *DescribeMovingAddressesInput, opts ...request.Option) (*DescribeMovingAddressesOutput, error) {
  10574. req, out := c.DescribeMovingAddressesRequest(input)
  10575. req.SetContext(ctx)
  10576. req.ApplyOptions(opts...)
  10577. return out, req.Send()
  10578. }
  10579. const opDescribeNatGateways = "DescribeNatGateways"
  10580. // DescribeNatGatewaysRequest generates a "aws/request.Request" representing the
  10581. // client's request for the DescribeNatGateways operation. The "output" return
  10582. // value will be populated with the request's response once the request completes
  10583. // successfuly.
  10584. //
  10585. // Use "Send" method on the returned Request to send the API call to the service.
  10586. // the "output" return value is not valid until after Send returns without error.
  10587. //
  10588. // See DescribeNatGateways for more information on using the DescribeNatGateways
  10589. // API call, and error handling.
  10590. //
  10591. // This method is useful when you want to inject custom logic or configuration
  10592. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10593. //
  10594. //
  10595. // // Example sending a request using the DescribeNatGatewaysRequest method.
  10596. // req, resp := client.DescribeNatGatewaysRequest(params)
  10597. //
  10598. // err := req.Send()
  10599. // if err == nil { // resp is now filled
  10600. // fmt.Println(resp)
  10601. // }
  10602. //
  10603. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNatGateways
  10604. func (c *EC2) DescribeNatGatewaysRequest(input *DescribeNatGatewaysInput) (req *request.Request, output *DescribeNatGatewaysOutput) {
  10605. op := &request.Operation{
  10606. Name: opDescribeNatGateways,
  10607. HTTPMethod: "POST",
  10608. HTTPPath: "/",
  10609. Paginator: &request.Paginator{
  10610. InputTokens: []string{"NextToken"},
  10611. OutputTokens: []string{"NextToken"},
  10612. LimitToken: "MaxResults",
  10613. TruncationToken: "",
  10614. },
  10615. }
  10616. if input == nil {
  10617. input = &DescribeNatGatewaysInput{}
  10618. }
  10619. output = &DescribeNatGatewaysOutput{}
  10620. req = c.newRequest(op, input, output)
  10621. return
  10622. }
  10623. // DescribeNatGateways API operation for Amazon Elastic Compute Cloud.
  10624. //
  10625. // Describes one or more of the your NAT gateways.
  10626. //
  10627. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10628. // with awserr.Error's Code and Message methods to get detailed information about
  10629. // the error.
  10630. //
  10631. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10632. // API operation DescribeNatGateways for usage and error information.
  10633. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNatGateways
  10634. func (c *EC2) DescribeNatGateways(input *DescribeNatGatewaysInput) (*DescribeNatGatewaysOutput, error) {
  10635. req, out := c.DescribeNatGatewaysRequest(input)
  10636. return out, req.Send()
  10637. }
  10638. // DescribeNatGatewaysWithContext is the same as DescribeNatGateways with the addition of
  10639. // the ability to pass a context and additional request options.
  10640. //
  10641. // See DescribeNatGateways for details on how to use this API operation.
  10642. //
  10643. // The context must be non-nil and will be used for request cancellation. If
  10644. // the context is nil a panic will occur. In the future the SDK may create
  10645. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10646. // for more information on using Contexts.
  10647. func (c *EC2) DescribeNatGatewaysWithContext(ctx aws.Context, input *DescribeNatGatewaysInput, opts ...request.Option) (*DescribeNatGatewaysOutput, error) {
  10648. req, out := c.DescribeNatGatewaysRequest(input)
  10649. req.SetContext(ctx)
  10650. req.ApplyOptions(opts...)
  10651. return out, req.Send()
  10652. }
  10653. // DescribeNatGatewaysPages iterates over the pages of a DescribeNatGateways operation,
  10654. // calling the "fn" function with the response data for each page. To stop
  10655. // iterating, return false from the fn function.
  10656. //
  10657. // See DescribeNatGateways method for more information on how to use this operation.
  10658. //
  10659. // Note: This operation can generate multiple requests to a service.
  10660. //
  10661. // // Example iterating over at most 3 pages of a DescribeNatGateways operation.
  10662. // pageNum := 0
  10663. // err := client.DescribeNatGatewaysPages(params,
  10664. // func(page *DescribeNatGatewaysOutput, lastPage bool) bool {
  10665. // pageNum++
  10666. // fmt.Println(page)
  10667. // return pageNum <= 3
  10668. // })
  10669. //
  10670. func (c *EC2) DescribeNatGatewaysPages(input *DescribeNatGatewaysInput, fn func(*DescribeNatGatewaysOutput, bool) bool) error {
  10671. return c.DescribeNatGatewaysPagesWithContext(aws.BackgroundContext(), input, fn)
  10672. }
  10673. // DescribeNatGatewaysPagesWithContext same as DescribeNatGatewaysPages except
  10674. // it takes a Context and allows setting request options on the pages.
  10675. //
  10676. // The context must be non-nil and will be used for request cancellation. If
  10677. // the context is nil a panic will occur. In the future the SDK may create
  10678. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10679. // for more information on using Contexts.
  10680. func (c *EC2) DescribeNatGatewaysPagesWithContext(ctx aws.Context, input *DescribeNatGatewaysInput, fn func(*DescribeNatGatewaysOutput, bool) bool, opts ...request.Option) error {
  10681. p := request.Pagination{
  10682. NewRequest: func() (*request.Request, error) {
  10683. var inCpy *DescribeNatGatewaysInput
  10684. if input != nil {
  10685. tmp := *input
  10686. inCpy = &tmp
  10687. }
  10688. req, _ := c.DescribeNatGatewaysRequest(inCpy)
  10689. req.SetContext(ctx)
  10690. req.ApplyOptions(opts...)
  10691. return req, nil
  10692. },
  10693. }
  10694. cont := true
  10695. for p.Next() && cont {
  10696. cont = fn(p.Page().(*DescribeNatGatewaysOutput), !p.HasNextPage())
  10697. }
  10698. return p.Err()
  10699. }
  10700. const opDescribeNetworkAcls = "DescribeNetworkAcls"
  10701. // DescribeNetworkAclsRequest generates a "aws/request.Request" representing the
  10702. // client's request for the DescribeNetworkAcls operation. The "output" return
  10703. // value will be populated with the request's response once the request completes
  10704. // successfuly.
  10705. //
  10706. // Use "Send" method on the returned Request to send the API call to the service.
  10707. // the "output" return value is not valid until after Send returns without error.
  10708. //
  10709. // See DescribeNetworkAcls for more information on using the DescribeNetworkAcls
  10710. // API call, and error handling.
  10711. //
  10712. // This method is useful when you want to inject custom logic or configuration
  10713. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10714. //
  10715. //
  10716. // // Example sending a request using the DescribeNetworkAclsRequest method.
  10717. // req, resp := client.DescribeNetworkAclsRequest(params)
  10718. //
  10719. // err := req.Send()
  10720. // if err == nil { // resp is now filled
  10721. // fmt.Println(resp)
  10722. // }
  10723. //
  10724. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkAcls
  10725. func (c *EC2) DescribeNetworkAclsRequest(input *DescribeNetworkAclsInput) (req *request.Request, output *DescribeNetworkAclsOutput) {
  10726. op := &request.Operation{
  10727. Name: opDescribeNetworkAcls,
  10728. HTTPMethod: "POST",
  10729. HTTPPath: "/",
  10730. }
  10731. if input == nil {
  10732. input = &DescribeNetworkAclsInput{}
  10733. }
  10734. output = &DescribeNetworkAclsOutput{}
  10735. req = c.newRequest(op, input, output)
  10736. return
  10737. }
  10738. // DescribeNetworkAcls API operation for Amazon Elastic Compute Cloud.
  10739. //
  10740. // Describes one or more of your network ACLs.
  10741. //
  10742. // For more information about network ACLs, see Network ACLs (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_ACLs.html)
  10743. // in the Amazon Virtual Private Cloud User Guide.
  10744. //
  10745. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10746. // with awserr.Error's Code and Message methods to get detailed information about
  10747. // the error.
  10748. //
  10749. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10750. // API operation DescribeNetworkAcls for usage and error information.
  10751. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkAcls
  10752. func (c *EC2) DescribeNetworkAcls(input *DescribeNetworkAclsInput) (*DescribeNetworkAclsOutput, error) {
  10753. req, out := c.DescribeNetworkAclsRequest(input)
  10754. return out, req.Send()
  10755. }
  10756. // DescribeNetworkAclsWithContext is the same as DescribeNetworkAcls with the addition of
  10757. // the ability to pass a context and additional request options.
  10758. //
  10759. // See DescribeNetworkAcls for details on how to use this API operation.
  10760. //
  10761. // The context must be non-nil and will be used for request cancellation. If
  10762. // the context is nil a panic will occur. In the future the SDK may create
  10763. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10764. // for more information on using Contexts.
  10765. func (c *EC2) DescribeNetworkAclsWithContext(ctx aws.Context, input *DescribeNetworkAclsInput, opts ...request.Option) (*DescribeNetworkAclsOutput, error) {
  10766. req, out := c.DescribeNetworkAclsRequest(input)
  10767. req.SetContext(ctx)
  10768. req.ApplyOptions(opts...)
  10769. return out, req.Send()
  10770. }
  10771. const opDescribeNetworkInterfaceAttribute = "DescribeNetworkInterfaceAttribute"
  10772. // DescribeNetworkInterfaceAttributeRequest generates a "aws/request.Request" representing the
  10773. // client's request for the DescribeNetworkInterfaceAttribute operation. The "output" return
  10774. // value will be populated with the request's response once the request completes
  10775. // successfuly.
  10776. //
  10777. // Use "Send" method on the returned Request to send the API call to the service.
  10778. // the "output" return value is not valid until after Send returns without error.
  10779. //
  10780. // See DescribeNetworkInterfaceAttribute for more information on using the DescribeNetworkInterfaceAttribute
  10781. // API call, and error handling.
  10782. //
  10783. // This method is useful when you want to inject custom logic or configuration
  10784. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10785. //
  10786. //
  10787. // // Example sending a request using the DescribeNetworkInterfaceAttributeRequest method.
  10788. // req, resp := client.DescribeNetworkInterfaceAttributeRequest(params)
  10789. //
  10790. // err := req.Send()
  10791. // if err == nil { // resp is now filled
  10792. // fmt.Println(resp)
  10793. // }
  10794. //
  10795. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfaceAttribute
  10796. func (c *EC2) DescribeNetworkInterfaceAttributeRequest(input *DescribeNetworkInterfaceAttributeInput) (req *request.Request, output *DescribeNetworkInterfaceAttributeOutput) {
  10797. op := &request.Operation{
  10798. Name: opDescribeNetworkInterfaceAttribute,
  10799. HTTPMethod: "POST",
  10800. HTTPPath: "/",
  10801. }
  10802. if input == nil {
  10803. input = &DescribeNetworkInterfaceAttributeInput{}
  10804. }
  10805. output = &DescribeNetworkInterfaceAttributeOutput{}
  10806. req = c.newRequest(op, input, output)
  10807. return
  10808. }
  10809. // DescribeNetworkInterfaceAttribute API operation for Amazon Elastic Compute Cloud.
  10810. //
  10811. // Describes a network interface attribute. You can specify only one attribute
  10812. // at a time.
  10813. //
  10814. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10815. // with awserr.Error's Code and Message methods to get detailed information about
  10816. // the error.
  10817. //
  10818. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10819. // API operation DescribeNetworkInterfaceAttribute for usage and error information.
  10820. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfaceAttribute
  10821. func (c *EC2) DescribeNetworkInterfaceAttribute(input *DescribeNetworkInterfaceAttributeInput) (*DescribeNetworkInterfaceAttributeOutput, error) {
  10822. req, out := c.DescribeNetworkInterfaceAttributeRequest(input)
  10823. return out, req.Send()
  10824. }
  10825. // DescribeNetworkInterfaceAttributeWithContext is the same as DescribeNetworkInterfaceAttribute with the addition of
  10826. // the ability to pass a context and additional request options.
  10827. //
  10828. // See DescribeNetworkInterfaceAttribute for details on how to use this API operation.
  10829. //
  10830. // The context must be non-nil and will be used for request cancellation. If
  10831. // the context is nil a panic will occur. In the future the SDK may create
  10832. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10833. // for more information on using Contexts.
  10834. func (c *EC2) DescribeNetworkInterfaceAttributeWithContext(ctx aws.Context, input *DescribeNetworkInterfaceAttributeInput, opts ...request.Option) (*DescribeNetworkInterfaceAttributeOutput, error) {
  10835. req, out := c.DescribeNetworkInterfaceAttributeRequest(input)
  10836. req.SetContext(ctx)
  10837. req.ApplyOptions(opts...)
  10838. return out, req.Send()
  10839. }
  10840. const opDescribeNetworkInterfacePermissions = "DescribeNetworkInterfacePermissions"
  10841. // DescribeNetworkInterfacePermissionsRequest generates a "aws/request.Request" representing the
  10842. // client's request for the DescribeNetworkInterfacePermissions operation. The "output" return
  10843. // value will be populated with the request's response once the request completes
  10844. // successfuly.
  10845. //
  10846. // Use "Send" method on the returned Request to send the API call to the service.
  10847. // the "output" return value is not valid until after Send returns without error.
  10848. //
  10849. // See DescribeNetworkInterfacePermissions for more information on using the DescribeNetworkInterfacePermissions
  10850. // API call, and error handling.
  10851. //
  10852. // This method is useful when you want to inject custom logic or configuration
  10853. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10854. //
  10855. //
  10856. // // Example sending a request using the DescribeNetworkInterfacePermissionsRequest method.
  10857. // req, resp := client.DescribeNetworkInterfacePermissionsRequest(params)
  10858. //
  10859. // err := req.Send()
  10860. // if err == nil { // resp is now filled
  10861. // fmt.Println(resp)
  10862. // }
  10863. //
  10864. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfacePermissions
  10865. func (c *EC2) DescribeNetworkInterfacePermissionsRequest(input *DescribeNetworkInterfacePermissionsInput) (req *request.Request, output *DescribeNetworkInterfacePermissionsOutput) {
  10866. op := &request.Operation{
  10867. Name: opDescribeNetworkInterfacePermissions,
  10868. HTTPMethod: "POST",
  10869. HTTPPath: "/",
  10870. }
  10871. if input == nil {
  10872. input = &DescribeNetworkInterfacePermissionsInput{}
  10873. }
  10874. output = &DescribeNetworkInterfacePermissionsOutput{}
  10875. req = c.newRequest(op, input, output)
  10876. return
  10877. }
  10878. // DescribeNetworkInterfacePermissions API operation for Amazon Elastic Compute Cloud.
  10879. //
  10880. // Describes the permissions for your network interfaces.
  10881. //
  10882. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10883. // with awserr.Error's Code and Message methods to get detailed information about
  10884. // the error.
  10885. //
  10886. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10887. // API operation DescribeNetworkInterfacePermissions for usage and error information.
  10888. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfacePermissions
  10889. func (c *EC2) DescribeNetworkInterfacePermissions(input *DescribeNetworkInterfacePermissionsInput) (*DescribeNetworkInterfacePermissionsOutput, error) {
  10890. req, out := c.DescribeNetworkInterfacePermissionsRequest(input)
  10891. return out, req.Send()
  10892. }
  10893. // DescribeNetworkInterfacePermissionsWithContext is the same as DescribeNetworkInterfacePermissions with the addition of
  10894. // the ability to pass a context and additional request options.
  10895. //
  10896. // See DescribeNetworkInterfacePermissions for details on how to use this API operation.
  10897. //
  10898. // The context must be non-nil and will be used for request cancellation. If
  10899. // the context is nil a panic will occur. In the future the SDK may create
  10900. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10901. // for more information on using Contexts.
  10902. func (c *EC2) DescribeNetworkInterfacePermissionsWithContext(ctx aws.Context, input *DescribeNetworkInterfacePermissionsInput, opts ...request.Option) (*DescribeNetworkInterfacePermissionsOutput, error) {
  10903. req, out := c.DescribeNetworkInterfacePermissionsRequest(input)
  10904. req.SetContext(ctx)
  10905. req.ApplyOptions(opts...)
  10906. return out, req.Send()
  10907. }
  10908. const opDescribeNetworkInterfaces = "DescribeNetworkInterfaces"
  10909. // DescribeNetworkInterfacesRequest generates a "aws/request.Request" representing the
  10910. // client's request for the DescribeNetworkInterfaces operation. The "output" return
  10911. // value will be populated with the request's response once the request completes
  10912. // successfuly.
  10913. //
  10914. // Use "Send" method on the returned Request to send the API call to the service.
  10915. // the "output" return value is not valid until after Send returns without error.
  10916. //
  10917. // See DescribeNetworkInterfaces for more information on using the DescribeNetworkInterfaces
  10918. // API call, and error handling.
  10919. //
  10920. // This method is useful when you want to inject custom logic or configuration
  10921. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10922. //
  10923. //
  10924. // // Example sending a request using the DescribeNetworkInterfacesRequest method.
  10925. // req, resp := client.DescribeNetworkInterfacesRequest(params)
  10926. //
  10927. // err := req.Send()
  10928. // if err == nil { // resp is now filled
  10929. // fmt.Println(resp)
  10930. // }
  10931. //
  10932. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfaces
  10933. func (c *EC2) DescribeNetworkInterfacesRequest(input *DescribeNetworkInterfacesInput) (req *request.Request, output *DescribeNetworkInterfacesOutput) {
  10934. op := &request.Operation{
  10935. Name: opDescribeNetworkInterfaces,
  10936. HTTPMethod: "POST",
  10937. HTTPPath: "/",
  10938. }
  10939. if input == nil {
  10940. input = &DescribeNetworkInterfacesInput{}
  10941. }
  10942. output = &DescribeNetworkInterfacesOutput{}
  10943. req = c.newRequest(op, input, output)
  10944. return
  10945. }
  10946. // DescribeNetworkInterfaces API operation for Amazon Elastic Compute Cloud.
  10947. //
  10948. // Describes one or more of your network interfaces.
  10949. //
  10950. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10951. // with awserr.Error's Code and Message methods to get detailed information about
  10952. // the error.
  10953. //
  10954. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10955. // API operation DescribeNetworkInterfaces for usage and error information.
  10956. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfaces
  10957. func (c *EC2) DescribeNetworkInterfaces(input *DescribeNetworkInterfacesInput) (*DescribeNetworkInterfacesOutput, error) {
  10958. req, out := c.DescribeNetworkInterfacesRequest(input)
  10959. return out, req.Send()
  10960. }
  10961. // DescribeNetworkInterfacesWithContext is the same as DescribeNetworkInterfaces with the addition of
  10962. // the ability to pass a context and additional request options.
  10963. //
  10964. // See DescribeNetworkInterfaces for details on how to use this API operation.
  10965. //
  10966. // The context must be non-nil and will be used for request cancellation. If
  10967. // the context is nil a panic will occur. In the future the SDK may create
  10968. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10969. // for more information on using Contexts.
  10970. func (c *EC2) DescribeNetworkInterfacesWithContext(ctx aws.Context, input *DescribeNetworkInterfacesInput, opts ...request.Option) (*DescribeNetworkInterfacesOutput, error) {
  10971. req, out := c.DescribeNetworkInterfacesRequest(input)
  10972. req.SetContext(ctx)
  10973. req.ApplyOptions(opts...)
  10974. return out, req.Send()
  10975. }
  10976. const opDescribePlacementGroups = "DescribePlacementGroups"
  10977. // DescribePlacementGroupsRequest generates a "aws/request.Request" representing the
  10978. // client's request for the DescribePlacementGroups operation. The "output" return
  10979. // value will be populated with the request's response once the request completes
  10980. // successfuly.
  10981. //
  10982. // Use "Send" method on the returned Request to send the API call to the service.
  10983. // the "output" return value is not valid until after Send returns without error.
  10984. //
  10985. // See DescribePlacementGroups for more information on using the DescribePlacementGroups
  10986. // API call, and error handling.
  10987. //
  10988. // This method is useful when you want to inject custom logic or configuration
  10989. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10990. //
  10991. //
  10992. // // Example sending a request using the DescribePlacementGroupsRequest method.
  10993. // req, resp := client.DescribePlacementGroupsRequest(params)
  10994. //
  10995. // err := req.Send()
  10996. // if err == nil { // resp is now filled
  10997. // fmt.Println(resp)
  10998. // }
  10999. //
  11000. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePlacementGroups
  11001. func (c *EC2) DescribePlacementGroupsRequest(input *DescribePlacementGroupsInput) (req *request.Request, output *DescribePlacementGroupsOutput) {
  11002. op := &request.Operation{
  11003. Name: opDescribePlacementGroups,
  11004. HTTPMethod: "POST",
  11005. HTTPPath: "/",
  11006. }
  11007. if input == nil {
  11008. input = &DescribePlacementGroupsInput{}
  11009. }
  11010. output = &DescribePlacementGroupsOutput{}
  11011. req = c.newRequest(op, input, output)
  11012. return
  11013. }
  11014. // DescribePlacementGroups API operation for Amazon Elastic Compute Cloud.
  11015. //
  11016. // Describes one or more of your placement groups. For more information, see
  11017. // Placement Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html)
  11018. // in the Amazon Elastic Compute Cloud User Guide.
  11019. //
  11020. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11021. // with awserr.Error's Code and Message methods to get detailed information about
  11022. // the error.
  11023. //
  11024. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11025. // API operation DescribePlacementGroups for usage and error information.
  11026. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePlacementGroups
  11027. func (c *EC2) DescribePlacementGroups(input *DescribePlacementGroupsInput) (*DescribePlacementGroupsOutput, error) {
  11028. req, out := c.DescribePlacementGroupsRequest(input)
  11029. return out, req.Send()
  11030. }
  11031. // DescribePlacementGroupsWithContext is the same as DescribePlacementGroups with the addition of
  11032. // the ability to pass a context and additional request options.
  11033. //
  11034. // See DescribePlacementGroups for details on how to use this API operation.
  11035. //
  11036. // The context must be non-nil and will be used for request cancellation. If
  11037. // the context is nil a panic will occur. In the future the SDK may create
  11038. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11039. // for more information on using Contexts.
  11040. func (c *EC2) DescribePlacementGroupsWithContext(ctx aws.Context, input *DescribePlacementGroupsInput, opts ...request.Option) (*DescribePlacementGroupsOutput, error) {
  11041. req, out := c.DescribePlacementGroupsRequest(input)
  11042. req.SetContext(ctx)
  11043. req.ApplyOptions(opts...)
  11044. return out, req.Send()
  11045. }
  11046. const opDescribePrefixLists = "DescribePrefixLists"
  11047. // DescribePrefixListsRequest generates a "aws/request.Request" representing the
  11048. // client's request for the DescribePrefixLists operation. The "output" return
  11049. // value will be populated with the request's response once the request completes
  11050. // successfuly.
  11051. //
  11052. // Use "Send" method on the returned Request to send the API call to the service.
  11053. // the "output" return value is not valid until after Send returns without error.
  11054. //
  11055. // See DescribePrefixLists for more information on using the DescribePrefixLists
  11056. // API call, and error handling.
  11057. //
  11058. // This method is useful when you want to inject custom logic or configuration
  11059. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  11060. //
  11061. //
  11062. // // Example sending a request using the DescribePrefixListsRequest method.
  11063. // req, resp := client.DescribePrefixListsRequest(params)
  11064. //
  11065. // err := req.Send()
  11066. // if err == nil { // resp is now filled
  11067. // fmt.Println(resp)
  11068. // }
  11069. //
  11070. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePrefixLists
  11071. func (c *EC2) DescribePrefixListsRequest(input *DescribePrefixListsInput) (req *request.Request, output *DescribePrefixListsOutput) {
  11072. op := &request.Operation{
  11073. Name: opDescribePrefixLists,
  11074. HTTPMethod: "POST",
  11075. HTTPPath: "/",
  11076. }
  11077. if input == nil {
  11078. input = &DescribePrefixListsInput{}
  11079. }
  11080. output = &DescribePrefixListsOutput{}
  11081. req = c.newRequest(op, input, output)
  11082. return
  11083. }
  11084. // DescribePrefixLists API operation for Amazon Elastic Compute Cloud.
  11085. //
  11086. // Describes available AWS services in a prefix list format, which includes
  11087. // the prefix list name and prefix list ID of the service and the IP address
  11088. // range for the service. A prefix list ID is required for creating an outbound
  11089. // security group rule that allows traffic from a VPC to access an AWS service
  11090. // through a gateway VPC endpoint.
  11091. //
  11092. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11093. // with awserr.Error's Code and Message methods to get detailed information about
  11094. // the error.
  11095. //
  11096. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11097. // API operation DescribePrefixLists for usage and error information.
  11098. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePrefixLists
  11099. func (c *EC2) DescribePrefixLists(input *DescribePrefixListsInput) (*DescribePrefixListsOutput, error) {
  11100. req, out := c.DescribePrefixListsRequest(input)
  11101. return out, req.Send()
  11102. }
  11103. // DescribePrefixListsWithContext is the same as DescribePrefixLists with the addition of
  11104. // the ability to pass a context and additional request options.
  11105. //
  11106. // See DescribePrefixLists for details on how to use this API operation.
  11107. //
  11108. // The context must be non-nil and will be used for request cancellation. If
  11109. // the context is nil a panic will occur. In the future the SDK may create
  11110. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11111. // for more information on using Contexts.
  11112. func (c *EC2) DescribePrefixListsWithContext(ctx aws.Context, input *DescribePrefixListsInput, opts ...request.Option) (*DescribePrefixListsOutput, error) {
  11113. req, out := c.DescribePrefixListsRequest(input)
  11114. req.SetContext(ctx)
  11115. req.ApplyOptions(opts...)
  11116. return out, req.Send()
  11117. }
  11118. const opDescribePrincipalIdFormat = "DescribePrincipalIdFormat"
  11119. // DescribePrincipalIdFormatRequest generates a "aws/request.Request" representing the
  11120. // client's request for the DescribePrincipalIdFormat operation. The "output" return
  11121. // value will be populated with the request's response once the request completes
  11122. // successfuly.
  11123. //
  11124. // Use "Send" method on the returned Request to send the API call to the service.
  11125. // the "output" return value is not valid until after Send returns without error.
  11126. //
  11127. // See DescribePrincipalIdFormat for more information on using the DescribePrincipalIdFormat
  11128. // API call, and error handling.
  11129. //
  11130. // This method is useful when you want to inject custom logic or configuration
  11131. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  11132. //
  11133. //
  11134. // // Example sending a request using the DescribePrincipalIdFormatRequest method.
  11135. // req, resp := client.DescribePrincipalIdFormatRequest(params)
  11136. //
  11137. // err := req.Send()
  11138. // if err == nil { // resp is now filled
  11139. // fmt.Println(resp)
  11140. // }
  11141. //
  11142. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePrincipalIdFormat
  11143. func (c *EC2) DescribePrincipalIdFormatRequest(input *DescribePrincipalIdFormatInput) (req *request.Request, output *DescribePrincipalIdFormatOutput) {
  11144. op := &request.Operation{
  11145. Name: opDescribePrincipalIdFormat,
  11146. HTTPMethod: "POST",
  11147. HTTPPath: "/",
  11148. }
  11149. if input == nil {
  11150. input = &DescribePrincipalIdFormatInput{}
  11151. }
  11152. output = &DescribePrincipalIdFormatOutput{}
  11153. req = c.newRequest(op, input, output)
  11154. return
  11155. }
  11156. // DescribePrincipalIdFormat API operation for Amazon Elastic Compute Cloud.
  11157. //
  11158. // Describes the ID format settings for the root user and all IAM roles and
  11159. // IAM users that have explicitly specified a longer ID (17-character ID) preference.
  11160. //
  11161. // By default, all IAM roles and IAM users default to the same ID settings as
  11162. // the root user, unless they explicitly override the settings. This request
  11163. // is useful for identifying those IAM users and IAM roles that have overridden
  11164. // the default ID settings.
  11165. //
  11166. // The following resource types support longer IDs: bundle | conversion-task
  11167. // | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association
  11168. // | export-task | flow-log | image | import-task | instance | internet-gateway
  11169. // | network-acl | network-acl-association | network-interface | network-interface-attachment
  11170. // | prefix-list | reservation | route-table | route-table-association | security-group
  11171. // | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association
  11172. // | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.
  11173. //
  11174. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11175. // with awserr.Error's Code and Message methods to get detailed information about
  11176. // the error.
  11177. //
  11178. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11179. // API operation DescribePrincipalIdFormat for usage and error information.
  11180. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePrincipalIdFormat
  11181. func (c *EC2) DescribePrincipalIdFormat(input *DescribePrincipalIdFormatInput) (*DescribePrincipalIdFormatOutput, error) {
  11182. req, out := c.DescribePrincipalIdFormatRequest(input)
  11183. return out, req.Send()
  11184. }
  11185. // DescribePrincipalIdFormatWithContext is the same as DescribePrincipalIdFormat with the addition of
  11186. // the ability to pass a context and additional request options.
  11187. //
  11188. // See DescribePrincipalIdFormat for details on how to use this API operation.
  11189. //
  11190. // The context must be non-nil and will be used for request cancellation. If
  11191. // the context is nil a panic will occur. In the future the SDK may create
  11192. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11193. // for more information on using Contexts.
  11194. func (c *EC2) DescribePrincipalIdFormatWithContext(ctx aws.Context, input *DescribePrincipalIdFormatInput, opts ...request.Option) (*DescribePrincipalIdFormatOutput, error) {
  11195. req, out := c.DescribePrincipalIdFormatRequest(input)
  11196. req.SetContext(ctx)
  11197. req.ApplyOptions(opts...)
  11198. return out, req.Send()
  11199. }
  11200. const opDescribeRegions = "DescribeRegions"
  11201. // DescribeRegionsRequest generates a "aws/request.Request" representing the
  11202. // client's request for the DescribeRegions operation. The "output" return
  11203. // value will be populated with the request's response once the request completes
  11204. // successfuly.
  11205. //
  11206. // Use "Send" method on the returned Request to send the API call to the service.
  11207. // the "output" return value is not valid until after Send returns without error.
  11208. //
  11209. // See DescribeRegions for more information on using the DescribeRegions
  11210. // API call, and error handling.
  11211. //
  11212. // This method is useful when you want to inject custom logic or configuration
  11213. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  11214. //
  11215. //
  11216. // // Example sending a request using the DescribeRegionsRequest method.
  11217. // req, resp := client.DescribeRegionsRequest(params)
  11218. //
  11219. // err := req.Send()
  11220. // if err == nil { // resp is now filled
  11221. // fmt.Println(resp)
  11222. // }
  11223. //
  11224. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeRegions
  11225. func (c *EC2) DescribeRegionsRequest(input *DescribeRegionsInput) (req *request.Request, output *DescribeRegionsOutput) {
  11226. op := &request.Operation{
  11227. Name: opDescribeRegions,
  11228. HTTPMethod: "POST",
  11229. HTTPPath: "/",
  11230. }
  11231. if input == nil {
  11232. input = &DescribeRegionsInput{}
  11233. }
  11234. output = &DescribeRegionsOutput{}
  11235. req = c.newRequest(op, input, output)
  11236. return
  11237. }
  11238. // DescribeRegions API operation for Amazon Elastic Compute Cloud.
  11239. //
  11240. // Describes one or more regions that are currently available to you.
  11241. //
  11242. // For a list of the regions supported by Amazon EC2, see Regions and Endpoints
  11243. // (http://docs.aws.amazon.com/general/latest/gr/rande.html#ec2_region).
  11244. //
  11245. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11246. // with awserr.Error's Code and Message methods to get detailed information about
  11247. // the error.
  11248. //
  11249. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11250. // API operation DescribeRegions for usage and error information.
  11251. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeRegions
  11252. func (c *EC2) DescribeRegions(input *DescribeRegionsInput) (*DescribeRegionsOutput, error) {
  11253. req, out := c.DescribeRegionsRequest(input)
  11254. return out, req.Send()
  11255. }
  11256. // DescribeRegionsWithContext is the same as DescribeRegions with the addition of
  11257. // the ability to pass a context and additional request options.
  11258. //
  11259. // See DescribeRegions for details on how to use this API operation.
  11260. //
  11261. // The context must be non-nil and will be used for request cancellation. If
  11262. // the context is nil a panic will occur. In the future the SDK may create
  11263. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11264. // for more information on using Contexts.
  11265. func (c *EC2) DescribeRegionsWithContext(ctx aws.Context, input *DescribeRegionsInput, opts ...request.Option) (*DescribeRegionsOutput, error) {
  11266. req, out := c.DescribeRegionsRequest(input)
  11267. req.SetContext(ctx)
  11268. req.ApplyOptions(opts...)
  11269. return out, req.Send()
  11270. }
  11271. const opDescribeReservedInstances = "DescribeReservedInstances"
  11272. // DescribeReservedInstancesRequest generates a "aws/request.Request" representing the
  11273. // client's request for the DescribeReservedInstances operation. The "output" return
  11274. // value will be populated with the request's response once the request completes
  11275. // successfuly.
  11276. //
  11277. // Use "Send" method on the returned Request to send the API call to the service.
  11278. // the "output" return value is not valid until after Send returns without error.
  11279. //
  11280. // See DescribeReservedInstances for more information on using the DescribeReservedInstances
  11281. // API call, and error handling.
  11282. //
  11283. // This method is useful when you want to inject custom logic or configuration
  11284. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  11285. //
  11286. //
  11287. // // Example sending a request using the DescribeReservedInstancesRequest method.
  11288. // req, resp := client.DescribeReservedInstancesRequest(params)
  11289. //
  11290. // err := req.Send()
  11291. // if err == nil { // resp is now filled
  11292. // fmt.Println(resp)
  11293. // }
  11294. //
  11295. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstances
  11296. func (c *EC2) DescribeReservedInstancesRequest(input *DescribeReservedInstancesInput) (req *request.Request, output *DescribeReservedInstancesOutput) {
  11297. op := &request.Operation{
  11298. Name: opDescribeReservedInstances,
  11299. HTTPMethod: "POST",
  11300. HTTPPath: "/",
  11301. }
  11302. if input == nil {
  11303. input = &DescribeReservedInstancesInput{}
  11304. }
  11305. output = &DescribeReservedInstancesOutput{}
  11306. req = c.newRequest(op, input, output)
  11307. return
  11308. }
  11309. // DescribeReservedInstances API operation for Amazon Elastic Compute Cloud.
  11310. //
  11311. // Describes one or more of the Reserved Instances that you purchased.
  11312. //
  11313. // For more information about Reserved Instances, see Reserved Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts-on-demand-reserved-instances.html)
  11314. // in the Amazon Elastic Compute Cloud User Guide.
  11315. //
  11316. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11317. // with awserr.Error's Code and Message methods to get detailed information about
  11318. // the error.
  11319. //
  11320. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11321. // API operation DescribeReservedInstances for usage and error information.
  11322. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstances
  11323. func (c *EC2) DescribeReservedInstances(input *DescribeReservedInstancesInput) (*DescribeReservedInstancesOutput, error) {
  11324. req, out := c.DescribeReservedInstancesRequest(input)
  11325. return out, req.Send()
  11326. }
  11327. // DescribeReservedInstancesWithContext is the same as DescribeReservedInstances with the addition of
  11328. // the ability to pass a context and additional request options.
  11329. //
  11330. // See DescribeReservedInstances for details on how to use this API operation.
  11331. //
  11332. // The context must be non-nil and will be used for request cancellation. If
  11333. // the context is nil a panic will occur. In the future the SDK may create
  11334. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11335. // for more information on using Contexts.
  11336. func (c *EC2) DescribeReservedInstancesWithContext(ctx aws.Context, input *DescribeReservedInstancesInput, opts ...request.Option) (*DescribeReservedInstancesOutput, error) {
  11337. req, out := c.DescribeReservedInstancesRequest(input)
  11338. req.SetContext(ctx)
  11339. req.ApplyOptions(opts...)
  11340. return out, req.Send()
  11341. }
  11342. const opDescribeReservedInstancesListings = "DescribeReservedInstancesListings"
  11343. // DescribeReservedInstancesListingsRequest generates a "aws/request.Request" representing the
  11344. // client's request for the DescribeReservedInstancesListings operation. The "output" return
  11345. // value will be populated with the request's response once the request completes
  11346. // successfuly.
  11347. //
  11348. // Use "Send" method on the returned Request to send the API call to the service.
  11349. // the "output" return value is not valid until after Send returns without error.
  11350. //
  11351. // See DescribeReservedInstancesListings for more information on using the DescribeReservedInstancesListings
  11352. // API call, and error handling.
  11353. //
  11354. // This method is useful when you want to inject custom logic or configuration
  11355. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  11356. //
  11357. //
  11358. // // Example sending a request using the DescribeReservedInstancesListingsRequest method.
  11359. // req, resp := client.DescribeReservedInstancesListingsRequest(params)
  11360. //
  11361. // err := req.Send()
  11362. // if err == nil { // resp is now filled
  11363. // fmt.Println(resp)
  11364. // }
  11365. //
  11366. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesListings
  11367. func (c *EC2) DescribeReservedInstancesListingsRequest(input *DescribeReservedInstancesListingsInput) (req *request.Request, output *DescribeReservedInstancesListingsOutput) {
  11368. op := &request.Operation{
  11369. Name: opDescribeReservedInstancesListings,
  11370. HTTPMethod: "POST",
  11371. HTTPPath: "/",
  11372. }
  11373. if input == nil {
  11374. input = &DescribeReservedInstancesListingsInput{}
  11375. }
  11376. output = &DescribeReservedInstancesListingsOutput{}
  11377. req = c.newRequest(op, input, output)
  11378. return
  11379. }
  11380. // DescribeReservedInstancesListings API operation for Amazon Elastic Compute Cloud.
  11381. //
  11382. // Describes your account's Reserved Instance listings in the Reserved Instance
  11383. // Marketplace.
  11384. //
  11385. // The Reserved Instance Marketplace matches sellers who want to resell Reserved
  11386. // Instance capacity that they no longer need with buyers who want to purchase
  11387. // additional capacity. Reserved Instances bought and sold through the Reserved
  11388. // Instance Marketplace work like any other Reserved Instances.
  11389. //
  11390. // As a seller, you choose to list some or all of your Reserved Instances, and
  11391. // you specify the upfront price to receive for them. Your Reserved Instances
  11392. // are then listed in the Reserved Instance Marketplace and are available for
  11393. // purchase.
  11394. //
  11395. // As a buyer, you specify the configuration of the Reserved Instance to purchase,
  11396. // and the Marketplace matches what you're searching for with what's available.
  11397. // The Marketplace first sells the lowest priced Reserved Instances to you,
  11398. // and continues to sell available Reserved Instance listings to you until your
  11399. // demand is met. You are charged based on the total price of all of the listings
  11400. // that you purchase.
  11401. //
  11402. // For more information, see Reserved Instance Marketplace (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html)
  11403. // in the Amazon Elastic Compute Cloud User Guide.
  11404. //
  11405. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11406. // with awserr.Error's Code and Message methods to get detailed information about
  11407. // the error.
  11408. //
  11409. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11410. // API operation DescribeReservedInstancesListings for usage and error information.
  11411. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesListings
  11412. func (c *EC2) DescribeReservedInstancesListings(input *DescribeReservedInstancesListingsInput) (*DescribeReservedInstancesListingsOutput, error) {
  11413. req, out := c.DescribeReservedInstancesListingsRequest(input)
  11414. return out, req.Send()
  11415. }
  11416. // DescribeReservedInstancesListingsWithContext is the same as DescribeReservedInstancesListings with the addition of
  11417. // the ability to pass a context and additional request options.
  11418. //
  11419. // See DescribeReservedInstancesListings for details on how to use this API operation.
  11420. //
  11421. // The context must be non-nil and will be used for request cancellation. If
  11422. // the context is nil a panic will occur. In the future the SDK may create
  11423. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11424. // for more information on using Contexts.
  11425. func (c *EC2) DescribeReservedInstancesListingsWithContext(ctx aws.Context, input *DescribeReservedInstancesListingsInput, opts ...request.Option) (*DescribeReservedInstancesListingsOutput, error) {
  11426. req, out := c.DescribeReservedInstancesListingsRequest(input)
  11427. req.SetContext(ctx)
  11428. req.ApplyOptions(opts...)
  11429. return out, req.Send()
  11430. }
  11431. const opDescribeReservedInstancesModifications = "DescribeReservedInstancesModifications"
  11432. // DescribeReservedInstancesModificationsRequest generates a "aws/request.Request" representing the
  11433. // client's request for the DescribeReservedInstancesModifications operation. The "output" return
  11434. // value will be populated with the request's response once the request completes
  11435. // successfuly.
  11436. //
  11437. // Use "Send" method on the returned Request to send the API call to the service.
  11438. // the "output" return value is not valid until after Send returns without error.
  11439. //
  11440. // See DescribeReservedInstancesModifications for more information on using the DescribeReservedInstancesModifications
  11441. // API call, and error handling.
  11442. //
  11443. // This method is useful when you want to inject custom logic or configuration
  11444. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  11445. //
  11446. //
  11447. // // Example sending a request using the DescribeReservedInstancesModificationsRequest method.
  11448. // req, resp := client.DescribeReservedInstancesModificationsRequest(params)
  11449. //
  11450. // err := req.Send()
  11451. // if err == nil { // resp is now filled
  11452. // fmt.Println(resp)
  11453. // }
  11454. //
  11455. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesModifications
  11456. func (c *EC2) DescribeReservedInstancesModificationsRequest(input *DescribeReservedInstancesModificationsInput) (req *request.Request, output *DescribeReservedInstancesModificationsOutput) {
  11457. op := &request.Operation{
  11458. Name: opDescribeReservedInstancesModifications,
  11459. HTTPMethod: "POST",
  11460. HTTPPath: "/",
  11461. Paginator: &request.Paginator{
  11462. InputTokens: []string{"NextToken"},
  11463. OutputTokens: []string{"NextToken"},
  11464. LimitToken: "",
  11465. TruncationToken: "",
  11466. },
  11467. }
  11468. if input == nil {
  11469. input = &DescribeReservedInstancesModificationsInput{}
  11470. }
  11471. output = &DescribeReservedInstancesModificationsOutput{}
  11472. req = c.newRequest(op, input, output)
  11473. return
  11474. }
  11475. // DescribeReservedInstancesModifications API operation for Amazon Elastic Compute Cloud.
  11476. //
  11477. // Describes the modifications made to your Reserved Instances. If no parameter
  11478. // is specified, information about all your Reserved Instances modification
  11479. // requests is returned. If a modification ID is specified, only information
  11480. // about the specific modification is returned.
  11481. //
  11482. // For more information, see Modifying Reserved Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-modifying.html)
  11483. // in the Amazon Elastic Compute Cloud User Guide.
  11484. //
  11485. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11486. // with awserr.Error's Code and Message methods to get detailed information about
  11487. // the error.
  11488. //
  11489. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11490. // API operation DescribeReservedInstancesModifications for usage and error information.
  11491. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesModifications
  11492. func (c *EC2) DescribeReservedInstancesModifications(input *DescribeReservedInstancesModificationsInput) (*DescribeReservedInstancesModificationsOutput, error) {
  11493. req, out := c.DescribeReservedInstancesModificationsRequest(input)
  11494. return out, req.Send()
  11495. }
  11496. // DescribeReservedInstancesModificationsWithContext is the same as DescribeReservedInstancesModifications with the addition of
  11497. // the ability to pass a context and additional request options.
  11498. //
  11499. // See DescribeReservedInstancesModifications for details on how to use this API operation.
  11500. //
  11501. // The context must be non-nil and will be used for request cancellation. If
  11502. // the context is nil a panic will occur. In the future the SDK may create
  11503. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11504. // for more information on using Contexts.
  11505. func (c *EC2) DescribeReservedInstancesModificationsWithContext(ctx aws.Context, input *DescribeReservedInstancesModificationsInput, opts ...request.Option) (*DescribeReservedInstancesModificationsOutput, error) {
  11506. req, out := c.DescribeReservedInstancesModificationsRequest(input)
  11507. req.SetContext(ctx)
  11508. req.ApplyOptions(opts...)
  11509. return out, req.Send()
  11510. }
  11511. // DescribeReservedInstancesModificationsPages iterates over the pages of a DescribeReservedInstancesModifications operation,
  11512. // calling the "fn" function with the response data for each page. To stop
  11513. // iterating, return false from the fn function.
  11514. //
  11515. // See DescribeReservedInstancesModifications method for more information on how to use this operation.
  11516. //
  11517. // Note: This operation can generate multiple requests to a service.
  11518. //
  11519. // // Example iterating over at most 3 pages of a DescribeReservedInstancesModifications operation.
  11520. // pageNum := 0
  11521. // err := client.DescribeReservedInstancesModificationsPages(params,
  11522. // func(page *DescribeReservedInstancesModificationsOutput, lastPage bool) bool {
  11523. // pageNum++
  11524. // fmt.Println(page)
  11525. // return pageNum <= 3
  11526. // })
  11527. //
  11528. func (c *EC2) DescribeReservedInstancesModificationsPages(input *DescribeReservedInstancesModificationsInput, fn func(*DescribeReservedInstancesModificationsOutput, bool) bool) error {
  11529. return c.DescribeReservedInstancesModificationsPagesWithContext(aws.BackgroundContext(), input, fn)
  11530. }
  11531. // DescribeReservedInstancesModificationsPagesWithContext same as DescribeReservedInstancesModificationsPages except
  11532. // it takes a Context and allows setting request options on the pages.
  11533. //
  11534. // The context must be non-nil and will be used for request cancellation. If
  11535. // the context is nil a panic will occur. In the future the SDK may create
  11536. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11537. // for more information on using Contexts.
  11538. func (c *EC2) DescribeReservedInstancesModificationsPagesWithContext(ctx aws.Context, input *DescribeReservedInstancesModificationsInput, fn func(*DescribeReservedInstancesModificationsOutput, bool) bool, opts ...request.Option) error {
  11539. p := request.Pagination{
  11540. NewRequest: func() (*request.Request, error) {
  11541. var inCpy *DescribeReservedInstancesModificationsInput
  11542. if input != nil {
  11543. tmp := *input
  11544. inCpy = &tmp
  11545. }
  11546. req, _ := c.DescribeReservedInstancesModificationsRequest(inCpy)
  11547. req.SetContext(ctx)
  11548. req.ApplyOptions(opts...)
  11549. return req, nil
  11550. },
  11551. }
  11552. cont := true
  11553. for p.Next() && cont {
  11554. cont = fn(p.Page().(*DescribeReservedInstancesModificationsOutput), !p.HasNextPage())
  11555. }
  11556. return p.Err()
  11557. }
  11558. const opDescribeReservedInstancesOfferings = "DescribeReservedInstancesOfferings"
  11559. // DescribeReservedInstancesOfferingsRequest generates a "aws/request.Request" representing the
  11560. // client's request for the DescribeReservedInstancesOfferings operation. The "output" return
  11561. // value will be populated with the request's response once the request completes
  11562. // successfuly.
  11563. //
  11564. // Use "Send" method on the returned Request to send the API call to the service.
  11565. // the "output" return value is not valid until after Send returns without error.
  11566. //
  11567. // See DescribeReservedInstancesOfferings for more information on using the DescribeReservedInstancesOfferings
  11568. // API call, and error handling.
  11569. //
  11570. // This method is useful when you want to inject custom logic or configuration
  11571. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  11572. //
  11573. //
  11574. // // Example sending a request using the DescribeReservedInstancesOfferingsRequest method.
  11575. // req, resp := client.DescribeReservedInstancesOfferingsRequest(params)
  11576. //
  11577. // err := req.Send()
  11578. // if err == nil { // resp is now filled
  11579. // fmt.Println(resp)
  11580. // }
  11581. //
  11582. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesOfferings
  11583. func (c *EC2) DescribeReservedInstancesOfferingsRequest(input *DescribeReservedInstancesOfferingsInput) (req *request.Request, output *DescribeReservedInstancesOfferingsOutput) {
  11584. op := &request.Operation{
  11585. Name: opDescribeReservedInstancesOfferings,
  11586. HTTPMethod: "POST",
  11587. HTTPPath: "/",
  11588. Paginator: &request.Paginator{
  11589. InputTokens: []string{"NextToken"},
  11590. OutputTokens: []string{"NextToken"},
  11591. LimitToken: "MaxResults",
  11592. TruncationToken: "",
  11593. },
  11594. }
  11595. if input == nil {
  11596. input = &DescribeReservedInstancesOfferingsInput{}
  11597. }
  11598. output = &DescribeReservedInstancesOfferingsOutput{}
  11599. req = c.newRequest(op, input, output)
  11600. return
  11601. }
  11602. // DescribeReservedInstancesOfferings API operation for Amazon Elastic Compute Cloud.
  11603. //
  11604. // Describes Reserved Instance offerings that are available for purchase. With
  11605. // Reserved Instances, you purchase the right to launch instances for a period
  11606. // of time. During that time period, you do not receive insufficient capacity
  11607. // errors, and you pay a lower usage rate than the rate charged for On-Demand
  11608. // instances for the actual time used.
  11609. //
  11610. // If you have listed your own Reserved Instances for sale in the Reserved Instance
  11611. // Marketplace, they will be excluded from these results. This is to ensure
  11612. // that you do not purchase your own Reserved Instances.
  11613. //
  11614. // For more information, see Reserved Instance Marketplace (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html)
  11615. // in the Amazon Elastic Compute Cloud User Guide.
  11616. //
  11617. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11618. // with awserr.Error's Code and Message methods to get detailed information about
  11619. // the error.
  11620. //
  11621. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11622. // API operation DescribeReservedInstancesOfferings for usage and error information.
  11623. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesOfferings
  11624. func (c *EC2) DescribeReservedInstancesOfferings(input *DescribeReservedInstancesOfferingsInput) (*DescribeReservedInstancesOfferingsOutput, error) {
  11625. req, out := c.DescribeReservedInstancesOfferingsRequest(input)
  11626. return out, req.Send()
  11627. }
  11628. // DescribeReservedInstancesOfferingsWithContext is the same as DescribeReservedInstancesOfferings with the addition of
  11629. // the ability to pass a context and additional request options.
  11630. //
  11631. // See DescribeReservedInstancesOfferings for details on how to use this API operation.
  11632. //
  11633. // The context must be non-nil and will be used for request cancellation. If
  11634. // the context is nil a panic will occur. In the future the SDK may create
  11635. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11636. // for more information on using Contexts.
  11637. func (c *EC2) DescribeReservedInstancesOfferingsWithContext(ctx aws.Context, input *DescribeReservedInstancesOfferingsInput, opts ...request.Option) (*DescribeReservedInstancesOfferingsOutput, error) {
  11638. req, out := c.DescribeReservedInstancesOfferingsRequest(input)
  11639. req.SetContext(ctx)
  11640. req.ApplyOptions(opts...)
  11641. return out, req.Send()
  11642. }
  11643. // DescribeReservedInstancesOfferingsPages iterates over the pages of a DescribeReservedInstancesOfferings operation,
  11644. // calling the "fn" function with the response data for each page. To stop
  11645. // iterating, return false from the fn function.
  11646. //
  11647. // See DescribeReservedInstancesOfferings method for more information on how to use this operation.
  11648. //
  11649. // Note: This operation can generate multiple requests to a service.
  11650. //
  11651. // // Example iterating over at most 3 pages of a DescribeReservedInstancesOfferings operation.
  11652. // pageNum := 0
  11653. // err := client.DescribeReservedInstancesOfferingsPages(params,
  11654. // func(page *DescribeReservedInstancesOfferingsOutput, lastPage bool) bool {
  11655. // pageNum++
  11656. // fmt.Println(page)
  11657. // return pageNum <= 3
  11658. // })
  11659. //
  11660. func (c *EC2) DescribeReservedInstancesOfferingsPages(input *DescribeReservedInstancesOfferingsInput, fn func(*DescribeReservedInstancesOfferingsOutput, bool) bool) error {
  11661. return c.DescribeReservedInstancesOfferingsPagesWithContext(aws.BackgroundContext(), input, fn)
  11662. }
  11663. // DescribeReservedInstancesOfferingsPagesWithContext same as DescribeReservedInstancesOfferingsPages except
  11664. // it takes a Context and allows setting request options on the pages.
  11665. //
  11666. // The context must be non-nil and will be used for request cancellation. If
  11667. // the context is nil a panic will occur. In the future the SDK may create
  11668. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11669. // for more information on using Contexts.
  11670. func (c *EC2) DescribeReservedInstancesOfferingsPagesWithContext(ctx aws.Context, input *DescribeReservedInstancesOfferingsInput, fn func(*DescribeReservedInstancesOfferingsOutput, bool) bool, opts ...request.Option) error {
  11671. p := request.Pagination{
  11672. NewRequest: func() (*request.Request, error) {
  11673. var inCpy *DescribeReservedInstancesOfferingsInput
  11674. if input != nil {
  11675. tmp := *input
  11676. inCpy = &tmp
  11677. }
  11678. req, _ := c.DescribeReservedInstancesOfferingsRequest(inCpy)
  11679. req.SetContext(ctx)
  11680. req.ApplyOptions(opts...)
  11681. return req, nil
  11682. },
  11683. }
  11684. cont := true
  11685. for p.Next() && cont {
  11686. cont = fn(p.Page().(*DescribeReservedInstancesOfferingsOutput), !p.HasNextPage())
  11687. }
  11688. return p.Err()
  11689. }
  11690. const opDescribeRouteTables = "DescribeRouteTables"
  11691. // DescribeRouteTablesRequest generates a "aws/request.Request" representing the
  11692. // client's request for the DescribeRouteTables operation. The "output" return
  11693. // value will be populated with the request's response once the request completes
  11694. // successfuly.
  11695. //
  11696. // Use "Send" method on the returned Request to send the API call to the service.
  11697. // the "output" return value is not valid until after Send returns without error.
  11698. //
  11699. // See DescribeRouteTables for more information on using the DescribeRouteTables
  11700. // API call, and error handling.
  11701. //
  11702. // This method is useful when you want to inject custom logic or configuration
  11703. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  11704. //
  11705. //
  11706. // // Example sending a request using the DescribeRouteTablesRequest method.
  11707. // req, resp := client.DescribeRouteTablesRequest(params)
  11708. //
  11709. // err := req.Send()
  11710. // if err == nil { // resp is now filled
  11711. // fmt.Println(resp)
  11712. // }
  11713. //
  11714. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeRouteTables
  11715. func (c *EC2) DescribeRouteTablesRequest(input *DescribeRouteTablesInput) (req *request.Request, output *DescribeRouteTablesOutput) {
  11716. op := &request.Operation{
  11717. Name: opDescribeRouteTables,
  11718. HTTPMethod: "POST",
  11719. HTTPPath: "/",
  11720. }
  11721. if input == nil {
  11722. input = &DescribeRouteTablesInput{}
  11723. }
  11724. output = &DescribeRouteTablesOutput{}
  11725. req = c.newRequest(op, input, output)
  11726. return
  11727. }
  11728. // DescribeRouteTables API operation for Amazon Elastic Compute Cloud.
  11729. //
  11730. // Describes one or more of your route tables.
  11731. //
  11732. // Each subnet in your VPC must be associated with a route table. If a subnet
  11733. // is not explicitly associated with any route table, it is implicitly associated
  11734. // with the main route table. This command does not return the subnet ID for
  11735. // implicit associations.
  11736. //
  11737. // For more information about route tables, see Route Tables (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html)
  11738. // in the Amazon Virtual Private Cloud User Guide.
  11739. //
  11740. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11741. // with awserr.Error's Code and Message methods to get detailed information about
  11742. // the error.
  11743. //
  11744. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11745. // API operation DescribeRouteTables for usage and error information.
  11746. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeRouteTables
  11747. func (c *EC2) DescribeRouteTables(input *DescribeRouteTablesInput) (*DescribeRouteTablesOutput, error) {
  11748. req, out := c.DescribeRouteTablesRequest(input)
  11749. return out, req.Send()
  11750. }
  11751. // DescribeRouteTablesWithContext is the same as DescribeRouteTables with the addition of
  11752. // the ability to pass a context and additional request options.
  11753. //
  11754. // See DescribeRouteTables for details on how to use this API operation.
  11755. //
  11756. // The context must be non-nil and will be used for request cancellation. If
  11757. // the context is nil a panic will occur. In the future the SDK may create
  11758. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11759. // for more information on using Contexts.
  11760. func (c *EC2) DescribeRouteTablesWithContext(ctx aws.Context, input *DescribeRouteTablesInput, opts ...request.Option) (*DescribeRouteTablesOutput, error) {
  11761. req, out := c.DescribeRouteTablesRequest(input)
  11762. req.SetContext(ctx)
  11763. req.ApplyOptions(opts...)
  11764. return out, req.Send()
  11765. }
  11766. const opDescribeScheduledInstanceAvailability = "DescribeScheduledInstanceAvailability"
  11767. // DescribeScheduledInstanceAvailabilityRequest generates a "aws/request.Request" representing the
  11768. // client's request for the DescribeScheduledInstanceAvailability operation. The "output" return
  11769. // value will be populated with the request's response once the request completes
  11770. // successfuly.
  11771. //
  11772. // Use "Send" method on the returned Request to send the API call to the service.
  11773. // the "output" return value is not valid until after Send returns without error.
  11774. //
  11775. // See DescribeScheduledInstanceAvailability for more information on using the DescribeScheduledInstanceAvailability
  11776. // API call, and error handling.
  11777. //
  11778. // This method is useful when you want to inject custom logic or configuration
  11779. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  11780. //
  11781. //
  11782. // // Example sending a request using the DescribeScheduledInstanceAvailabilityRequest method.
  11783. // req, resp := client.DescribeScheduledInstanceAvailabilityRequest(params)
  11784. //
  11785. // err := req.Send()
  11786. // if err == nil { // resp is now filled
  11787. // fmt.Println(resp)
  11788. // }
  11789. //
  11790. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeScheduledInstanceAvailability
  11791. func (c *EC2) DescribeScheduledInstanceAvailabilityRequest(input *DescribeScheduledInstanceAvailabilityInput) (req *request.Request, output *DescribeScheduledInstanceAvailabilityOutput) {
  11792. op := &request.Operation{
  11793. Name: opDescribeScheduledInstanceAvailability,
  11794. HTTPMethod: "POST",
  11795. HTTPPath: "/",
  11796. }
  11797. if input == nil {
  11798. input = &DescribeScheduledInstanceAvailabilityInput{}
  11799. }
  11800. output = &DescribeScheduledInstanceAvailabilityOutput{}
  11801. req = c.newRequest(op, input, output)
  11802. return
  11803. }
  11804. // DescribeScheduledInstanceAvailability API operation for Amazon Elastic Compute Cloud.
  11805. //
  11806. // Finds available schedules that meet the specified criteria.
  11807. //
  11808. // You can search for an available schedule no more than 3 months in advance.
  11809. // You must meet the minimum required duration of 1,200 hours per year. For
  11810. // example, the minimum daily schedule is 4 hours, the minimum weekly schedule
  11811. // is 24 hours, and the minimum monthly schedule is 100 hours.
  11812. //
  11813. // After you find a schedule that meets your needs, call PurchaseScheduledInstances
  11814. // to purchase Scheduled Instances with that schedule.
  11815. //
  11816. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11817. // with awserr.Error's Code and Message methods to get detailed information about
  11818. // the error.
  11819. //
  11820. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11821. // API operation DescribeScheduledInstanceAvailability for usage and error information.
  11822. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeScheduledInstanceAvailability
  11823. func (c *EC2) DescribeScheduledInstanceAvailability(input *DescribeScheduledInstanceAvailabilityInput) (*DescribeScheduledInstanceAvailabilityOutput, error) {
  11824. req, out := c.DescribeScheduledInstanceAvailabilityRequest(input)
  11825. return out, req.Send()
  11826. }
  11827. // DescribeScheduledInstanceAvailabilityWithContext is the same as DescribeScheduledInstanceAvailability with the addition of
  11828. // the ability to pass a context and additional request options.
  11829. //
  11830. // See DescribeScheduledInstanceAvailability for details on how to use this API operation.
  11831. //
  11832. // The context must be non-nil and will be used for request cancellation. If
  11833. // the context is nil a panic will occur. In the future the SDK may create
  11834. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11835. // for more information on using Contexts.
  11836. func (c *EC2) DescribeScheduledInstanceAvailabilityWithContext(ctx aws.Context, input *DescribeScheduledInstanceAvailabilityInput, opts ...request.Option) (*DescribeScheduledInstanceAvailabilityOutput, error) {
  11837. req, out := c.DescribeScheduledInstanceAvailabilityRequest(input)
  11838. req.SetContext(ctx)
  11839. req.ApplyOptions(opts...)
  11840. return out, req.Send()
  11841. }
  11842. const opDescribeScheduledInstances = "DescribeScheduledInstances"
  11843. // DescribeScheduledInstancesRequest generates a "aws/request.Request" representing the
  11844. // client's request for the DescribeScheduledInstances operation. The "output" return
  11845. // value will be populated with the request's response once the request completes
  11846. // successfuly.
  11847. //
  11848. // Use "Send" method on the returned Request to send the API call to the service.
  11849. // the "output" return value is not valid until after Send returns without error.
  11850. //
  11851. // See DescribeScheduledInstances for more information on using the DescribeScheduledInstances
  11852. // API call, and error handling.
  11853. //
  11854. // This method is useful when you want to inject custom logic or configuration
  11855. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  11856. //
  11857. //
  11858. // // Example sending a request using the DescribeScheduledInstancesRequest method.
  11859. // req, resp := client.DescribeScheduledInstancesRequest(params)
  11860. //
  11861. // err := req.Send()
  11862. // if err == nil { // resp is now filled
  11863. // fmt.Println(resp)
  11864. // }
  11865. //
  11866. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeScheduledInstances
  11867. func (c *EC2) DescribeScheduledInstancesRequest(input *DescribeScheduledInstancesInput) (req *request.Request, output *DescribeScheduledInstancesOutput) {
  11868. op := &request.Operation{
  11869. Name: opDescribeScheduledInstances,
  11870. HTTPMethod: "POST",
  11871. HTTPPath: "/",
  11872. }
  11873. if input == nil {
  11874. input = &DescribeScheduledInstancesInput{}
  11875. }
  11876. output = &DescribeScheduledInstancesOutput{}
  11877. req = c.newRequest(op, input, output)
  11878. return
  11879. }
  11880. // DescribeScheduledInstances API operation for Amazon Elastic Compute Cloud.
  11881. //
  11882. // Describes one or more of your Scheduled Instances.
  11883. //
  11884. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11885. // with awserr.Error's Code and Message methods to get detailed information about
  11886. // the error.
  11887. //
  11888. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11889. // API operation DescribeScheduledInstances for usage and error information.
  11890. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeScheduledInstances
  11891. func (c *EC2) DescribeScheduledInstances(input *DescribeScheduledInstancesInput) (*DescribeScheduledInstancesOutput, error) {
  11892. req, out := c.DescribeScheduledInstancesRequest(input)
  11893. return out, req.Send()
  11894. }
  11895. // DescribeScheduledInstancesWithContext is the same as DescribeScheduledInstances with the addition of
  11896. // the ability to pass a context and additional request options.
  11897. //
  11898. // See DescribeScheduledInstances for details on how to use this API operation.
  11899. //
  11900. // The context must be non-nil and will be used for request cancellation. If
  11901. // the context is nil a panic will occur. In the future the SDK may create
  11902. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11903. // for more information on using Contexts.
  11904. func (c *EC2) DescribeScheduledInstancesWithContext(ctx aws.Context, input *DescribeScheduledInstancesInput, opts ...request.Option) (*DescribeScheduledInstancesOutput, error) {
  11905. req, out := c.DescribeScheduledInstancesRequest(input)
  11906. req.SetContext(ctx)
  11907. req.ApplyOptions(opts...)
  11908. return out, req.Send()
  11909. }
  11910. const opDescribeSecurityGroupReferences = "DescribeSecurityGroupReferences"
  11911. // DescribeSecurityGroupReferencesRequest generates a "aws/request.Request" representing the
  11912. // client's request for the DescribeSecurityGroupReferences operation. The "output" return
  11913. // value will be populated with the request's response once the request completes
  11914. // successfuly.
  11915. //
  11916. // Use "Send" method on the returned Request to send the API call to the service.
  11917. // the "output" return value is not valid until after Send returns without error.
  11918. //
  11919. // See DescribeSecurityGroupReferences for more information on using the DescribeSecurityGroupReferences
  11920. // API call, and error handling.
  11921. //
  11922. // This method is useful when you want to inject custom logic or configuration
  11923. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  11924. //
  11925. //
  11926. // // Example sending a request using the DescribeSecurityGroupReferencesRequest method.
  11927. // req, resp := client.DescribeSecurityGroupReferencesRequest(params)
  11928. //
  11929. // err := req.Send()
  11930. // if err == nil { // resp is now filled
  11931. // fmt.Println(resp)
  11932. // }
  11933. //
  11934. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSecurityGroupReferences
  11935. func (c *EC2) DescribeSecurityGroupReferencesRequest(input *DescribeSecurityGroupReferencesInput) (req *request.Request, output *DescribeSecurityGroupReferencesOutput) {
  11936. op := &request.Operation{
  11937. Name: opDescribeSecurityGroupReferences,
  11938. HTTPMethod: "POST",
  11939. HTTPPath: "/",
  11940. }
  11941. if input == nil {
  11942. input = &DescribeSecurityGroupReferencesInput{}
  11943. }
  11944. output = &DescribeSecurityGroupReferencesOutput{}
  11945. req = c.newRequest(op, input, output)
  11946. return
  11947. }
  11948. // DescribeSecurityGroupReferences API operation for Amazon Elastic Compute Cloud.
  11949. //
  11950. // [EC2-VPC only] Describes the VPCs on the other side of a VPC peering connection
  11951. // that are referencing the security groups you've specified in this request.
  11952. //
  11953. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11954. // with awserr.Error's Code and Message methods to get detailed information about
  11955. // the error.
  11956. //
  11957. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11958. // API operation DescribeSecurityGroupReferences for usage and error information.
  11959. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSecurityGroupReferences
  11960. func (c *EC2) DescribeSecurityGroupReferences(input *DescribeSecurityGroupReferencesInput) (*DescribeSecurityGroupReferencesOutput, error) {
  11961. req, out := c.DescribeSecurityGroupReferencesRequest(input)
  11962. return out, req.Send()
  11963. }
  11964. // DescribeSecurityGroupReferencesWithContext is the same as DescribeSecurityGroupReferences with the addition of
  11965. // the ability to pass a context and additional request options.
  11966. //
  11967. // See DescribeSecurityGroupReferences for details on how to use this API operation.
  11968. //
  11969. // The context must be non-nil and will be used for request cancellation. If
  11970. // the context is nil a panic will occur. In the future the SDK may create
  11971. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11972. // for more information on using Contexts.
  11973. func (c *EC2) DescribeSecurityGroupReferencesWithContext(ctx aws.Context, input *DescribeSecurityGroupReferencesInput, opts ...request.Option) (*DescribeSecurityGroupReferencesOutput, error) {
  11974. req, out := c.DescribeSecurityGroupReferencesRequest(input)
  11975. req.SetContext(ctx)
  11976. req.ApplyOptions(opts...)
  11977. return out, req.Send()
  11978. }
  11979. const opDescribeSecurityGroups = "DescribeSecurityGroups"
  11980. // DescribeSecurityGroupsRequest generates a "aws/request.Request" representing the
  11981. // client's request for the DescribeSecurityGroups operation. The "output" return
  11982. // value will be populated with the request's response once the request completes
  11983. // successfuly.
  11984. //
  11985. // Use "Send" method on the returned Request to send the API call to the service.
  11986. // the "output" return value is not valid until after Send returns without error.
  11987. //
  11988. // See DescribeSecurityGroups for more information on using the DescribeSecurityGroups
  11989. // API call, and error handling.
  11990. //
  11991. // This method is useful when you want to inject custom logic or configuration
  11992. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  11993. //
  11994. //
  11995. // // Example sending a request using the DescribeSecurityGroupsRequest method.
  11996. // req, resp := client.DescribeSecurityGroupsRequest(params)
  11997. //
  11998. // err := req.Send()
  11999. // if err == nil { // resp is now filled
  12000. // fmt.Println(resp)
  12001. // }
  12002. //
  12003. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSecurityGroups
  12004. func (c *EC2) DescribeSecurityGroupsRequest(input *DescribeSecurityGroupsInput) (req *request.Request, output *DescribeSecurityGroupsOutput) {
  12005. op := &request.Operation{
  12006. Name: opDescribeSecurityGroups,
  12007. HTTPMethod: "POST",
  12008. HTTPPath: "/",
  12009. }
  12010. if input == nil {
  12011. input = &DescribeSecurityGroupsInput{}
  12012. }
  12013. output = &DescribeSecurityGroupsOutput{}
  12014. req = c.newRequest(op, input, output)
  12015. return
  12016. }
  12017. // DescribeSecurityGroups API operation for Amazon Elastic Compute Cloud.
  12018. //
  12019. // Describes one or more of your security groups.
  12020. //
  12021. // A security group is for use with instances either in the EC2-Classic platform
  12022. // or in a specific VPC. For more information, see Amazon EC2 Security Groups
  12023. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html)
  12024. // in the Amazon Elastic Compute Cloud User Guide and Security Groups for Your
  12025. // VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html)
  12026. // in the Amazon Virtual Private Cloud User Guide.
  12027. //
  12028. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12029. // with awserr.Error's Code and Message methods to get detailed information about
  12030. // the error.
  12031. //
  12032. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12033. // API operation DescribeSecurityGroups for usage and error information.
  12034. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSecurityGroups
  12035. func (c *EC2) DescribeSecurityGroups(input *DescribeSecurityGroupsInput) (*DescribeSecurityGroupsOutput, error) {
  12036. req, out := c.DescribeSecurityGroupsRequest(input)
  12037. return out, req.Send()
  12038. }
  12039. // DescribeSecurityGroupsWithContext is the same as DescribeSecurityGroups with the addition of
  12040. // the ability to pass a context and additional request options.
  12041. //
  12042. // See DescribeSecurityGroups for details on how to use this API operation.
  12043. //
  12044. // The context must be non-nil and will be used for request cancellation. If
  12045. // the context is nil a panic will occur. In the future the SDK may create
  12046. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12047. // for more information on using Contexts.
  12048. func (c *EC2) DescribeSecurityGroupsWithContext(ctx aws.Context, input *DescribeSecurityGroupsInput, opts ...request.Option) (*DescribeSecurityGroupsOutput, error) {
  12049. req, out := c.DescribeSecurityGroupsRequest(input)
  12050. req.SetContext(ctx)
  12051. req.ApplyOptions(opts...)
  12052. return out, req.Send()
  12053. }
  12054. const opDescribeSnapshotAttribute = "DescribeSnapshotAttribute"
  12055. // DescribeSnapshotAttributeRequest generates a "aws/request.Request" representing the
  12056. // client's request for the DescribeSnapshotAttribute operation. The "output" return
  12057. // value will be populated with the request's response once the request completes
  12058. // successfuly.
  12059. //
  12060. // Use "Send" method on the returned Request to send the API call to the service.
  12061. // the "output" return value is not valid until after Send returns without error.
  12062. //
  12063. // See DescribeSnapshotAttribute for more information on using the DescribeSnapshotAttribute
  12064. // API call, and error handling.
  12065. //
  12066. // This method is useful when you want to inject custom logic or configuration
  12067. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  12068. //
  12069. //
  12070. // // Example sending a request using the DescribeSnapshotAttributeRequest method.
  12071. // req, resp := client.DescribeSnapshotAttributeRequest(params)
  12072. //
  12073. // err := req.Send()
  12074. // if err == nil { // resp is now filled
  12075. // fmt.Println(resp)
  12076. // }
  12077. //
  12078. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSnapshotAttribute
  12079. func (c *EC2) DescribeSnapshotAttributeRequest(input *DescribeSnapshotAttributeInput) (req *request.Request, output *DescribeSnapshotAttributeOutput) {
  12080. op := &request.Operation{
  12081. Name: opDescribeSnapshotAttribute,
  12082. HTTPMethod: "POST",
  12083. HTTPPath: "/",
  12084. }
  12085. if input == nil {
  12086. input = &DescribeSnapshotAttributeInput{}
  12087. }
  12088. output = &DescribeSnapshotAttributeOutput{}
  12089. req = c.newRequest(op, input, output)
  12090. return
  12091. }
  12092. // DescribeSnapshotAttribute API operation for Amazon Elastic Compute Cloud.
  12093. //
  12094. // Describes the specified attribute of the specified snapshot. You can specify
  12095. // only one attribute at a time.
  12096. //
  12097. // For more information about EBS snapshots, see Amazon EBS Snapshots (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSSnapshots.html)
  12098. // in the Amazon Elastic Compute Cloud User Guide.
  12099. //
  12100. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12101. // with awserr.Error's Code and Message methods to get detailed information about
  12102. // the error.
  12103. //
  12104. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12105. // API operation DescribeSnapshotAttribute for usage and error information.
  12106. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSnapshotAttribute
  12107. func (c *EC2) DescribeSnapshotAttribute(input *DescribeSnapshotAttributeInput) (*DescribeSnapshotAttributeOutput, error) {
  12108. req, out := c.DescribeSnapshotAttributeRequest(input)
  12109. return out, req.Send()
  12110. }
  12111. // DescribeSnapshotAttributeWithContext is the same as DescribeSnapshotAttribute with the addition of
  12112. // the ability to pass a context and additional request options.
  12113. //
  12114. // See DescribeSnapshotAttribute for details on how to use this API operation.
  12115. //
  12116. // The context must be non-nil and will be used for request cancellation. If
  12117. // the context is nil a panic will occur. In the future the SDK may create
  12118. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12119. // for more information on using Contexts.
  12120. func (c *EC2) DescribeSnapshotAttributeWithContext(ctx aws.Context, input *DescribeSnapshotAttributeInput, opts ...request.Option) (*DescribeSnapshotAttributeOutput, error) {
  12121. req, out := c.DescribeSnapshotAttributeRequest(input)
  12122. req.SetContext(ctx)
  12123. req.ApplyOptions(opts...)
  12124. return out, req.Send()
  12125. }
  12126. const opDescribeSnapshots = "DescribeSnapshots"
  12127. // DescribeSnapshotsRequest generates a "aws/request.Request" representing the
  12128. // client's request for the DescribeSnapshots operation. The "output" return
  12129. // value will be populated with the request's response once the request completes
  12130. // successfuly.
  12131. //
  12132. // Use "Send" method on the returned Request to send the API call to the service.
  12133. // the "output" return value is not valid until after Send returns without error.
  12134. //
  12135. // See DescribeSnapshots for more information on using the DescribeSnapshots
  12136. // API call, and error handling.
  12137. //
  12138. // This method is useful when you want to inject custom logic or configuration
  12139. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  12140. //
  12141. //
  12142. // // Example sending a request using the DescribeSnapshotsRequest method.
  12143. // req, resp := client.DescribeSnapshotsRequest(params)
  12144. //
  12145. // err := req.Send()
  12146. // if err == nil { // resp is now filled
  12147. // fmt.Println(resp)
  12148. // }
  12149. //
  12150. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSnapshots
  12151. func (c *EC2) DescribeSnapshotsRequest(input *DescribeSnapshotsInput) (req *request.Request, output *DescribeSnapshotsOutput) {
  12152. op := &request.Operation{
  12153. Name: opDescribeSnapshots,
  12154. HTTPMethod: "POST",
  12155. HTTPPath: "/",
  12156. Paginator: &request.Paginator{
  12157. InputTokens: []string{"NextToken"},
  12158. OutputTokens: []string{"NextToken"},
  12159. LimitToken: "MaxResults",
  12160. TruncationToken: "",
  12161. },
  12162. }
  12163. if input == nil {
  12164. input = &DescribeSnapshotsInput{}
  12165. }
  12166. output = &DescribeSnapshotsOutput{}
  12167. req = c.newRequest(op, input, output)
  12168. return
  12169. }
  12170. // DescribeSnapshots API operation for Amazon Elastic Compute Cloud.
  12171. //
  12172. // Describes one or more of the EBS snapshots available to you. Available snapshots
  12173. // include public snapshots available for any AWS account to launch, private
  12174. // snapshots that you own, and private snapshots owned by another AWS account
  12175. // but for which you've been given explicit create volume permissions.
  12176. //
  12177. // The create volume permissions fall into the following categories:
  12178. //
  12179. // * public: The owner of the snapshot granted create volume permissions
  12180. // for the snapshot to the all group. All AWS accounts have create volume
  12181. // permissions for these snapshots.
  12182. //
  12183. // * explicit: The owner of the snapshot granted create volume permissions
  12184. // to a specific AWS account.
  12185. //
  12186. // * implicit: An AWS account has implicit create volume permissions for
  12187. // all snapshots it owns.
  12188. //
  12189. // The list of snapshots returned can be modified by specifying snapshot IDs,
  12190. // snapshot owners, or AWS accounts with create volume permissions. If no options
  12191. // are specified, Amazon EC2 returns all snapshots for which you have create
  12192. // volume permissions.
  12193. //
  12194. // If you specify one or more snapshot IDs, only snapshots that have the specified
  12195. // IDs are returned. If you specify an invalid snapshot ID, an error is returned.
  12196. // If you specify a snapshot ID for which you do not have access, it is not
  12197. // included in the returned results.
  12198. //
  12199. // If you specify one or more snapshot owners using the OwnerIds option, only
  12200. // snapshots from the specified owners and for which you have access are returned.
  12201. // The results can include the AWS account IDs of the specified owners, amazon
  12202. // for snapshots owned by Amazon, or self for snapshots that you own.
  12203. //
  12204. // If you specify a list of restorable users, only snapshots with create snapshot
  12205. // permissions for those users are returned. You can specify AWS account IDs
  12206. // (if you own the snapshots), self for snapshots for which you own or have
  12207. // explicit permissions, or all for public snapshots.
  12208. //
  12209. // If you are describing a long list of snapshots, you can paginate the output
  12210. // to make the list more manageable. The MaxResults parameter sets the maximum
  12211. // number of results returned in a single page. If the list of results exceeds
  12212. // your MaxResults value, then that number of results is returned along with
  12213. // a NextToken value that can be passed to a subsequent DescribeSnapshots request
  12214. // to retrieve the remaining results.
  12215. //
  12216. // For more information about EBS snapshots, see Amazon EBS Snapshots (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSSnapshots.html)
  12217. // in the Amazon Elastic Compute Cloud User Guide.
  12218. //
  12219. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12220. // with awserr.Error's Code and Message methods to get detailed information about
  12221. // the error.
  12222. //
  12223. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12224. // API operation DescribeSnapshots for usage and error information.
  12225. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSnapshots
  12226. func (c *EC2) DescribeSnapshots(input *DescribeSnapshotsInput) (*DescribeSnapshotsOutput, error) {
  12227. req, out := c.DescribeSnapshotsRequest(input)
  12228. return out, req.Send()
  12229. }
  12230. // DescribeSnapshotsWithContext is the same as DescribeSnapshots with the addition of
  12231. // the ability to pass a context and additional request options.
  12232. //
  12233. // See DescribeSnapshots for details on how to use this API operation.
  12234. //
  12235. // The context must be non-nil and will be used for request cancellation. If
  12236. // the context is nil a panic will occur. In the future the SDK may create
  12237. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12238. // for more information on using Contexts.
  12239. func (c *EC2) DescribeSnapshotsWithContext(ctx aws.Context, input *DescribeSnapshotsInput, opts ...request.Option) (*DescribeSnapshotsOutput, error) {
  12240. req, out := c.DescribeSnapshotsRequest(input)
  12241. req.SetContext(ctx)
  12242. req.ApplyOptions(opts...)
  12243. return out, req.Send()
  12244. }
  12245. // DescribeSnapshotsPages iterates over the pages of a DescribeSnapshots operation,
  12246. // calling the "fn" function with the response data for each page. To stop
  12247. // iterating, return false from the fn function.
  12248. //
  12249. // See DescribeSnapshots method for more information on how to use this operation.
  12250. //
  12251. // Note: This operation can generate multiple requests to a service.
  12252. //
  12253. // // Example iterating over at most 3 pages of a DescribeSnapshots operation.
  12254. // pageNum := 0
  12255. // err := client.DescribeSnapshotsPages(params,
  12256. // func(page *DescribeSnapshotsOutput, lastPage bool) bool {
  12257. // pageNum++
  12258. // fmt.Println(page)
  12259. // return pageNum <= 3
  12260. // })
  12261. //
  12262. func (c *EC2) DescribeSnapshotsPages(input *DescribeSnapshotsInput, fn func(*DescribeSnapshotsOutput, bool) bool) error {
  12263. return c.DescribeSnapshotsPagesWithContext(aws.BackgroundContext(), input, fn)
  12264. }
  12265. // DescribeSnapshotsPagesWithContext same as DescribeSnapshotsPages except
  12266. // it takes a Context and allows setting request options on the pages.
  12267. //
  12268. // The context must be non-nil and will be used for request cancellation. If
  12269. // the context is nil a panic will occur. In the future the SDK may create
  12270. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12271. // for more information on using Contexts.
  12272. func (c *EC2) DescribeSnapshotsPagesWithContext(ctx aws.Context, input *DescribeSnapshotsInput, fn func(*DescribeSnapshotsOutput, bool) bool, opts ...request.Option) error {
  12273. p := request.Pagination{
  12274. NewRequest: func() (*request.Request, error) {
  12275. var inCpy *DescribeSnapshotsInput
  12276. if input != nil {
  12277. tmp := *input
  12278. inCpy = &tmp
  12279. }
  12280. req, _ := c.DescribeSnapshotsRequest(inCpy)
  12281. req.SetContext(ctx)
  12282. req.ApplyOptions(opts...)
  12283. return req, nil
  12284. },
  12285. }
  12286. cont := true
  12287. for p.Next() && cont {
  12288. cont = fn(p.Page().(*DescribeSnapshotsOutput), !p.HasNextPage())
  12289. }
  12290. return p.Err()
  12291. }
  12292. const opDescribeSpotDatafeedSubscription = "DescribeSpotDatafeedSubscription"
  12293. // DescribeSpotDatafeedSubscriptionRequest generates a "aws/request.Request" representing the
  12294. // client's request for the DescribeSpotDatafeedSubscription operation. The "output" return
  12295. // value will be populated with the request's response once the request completes
  12296. // successfuly.
  12297. //
  12298. // Use "Send" method on the returned Request to send the API call to the service.
  12299. // the "output" return value is not valid until after Send returns without error.
  12300. //
  12301. // See DescribeSpotDatafeedSubscription for more information on using the DescribeSpotDatafeedSubscription
  12302. // API call, and error handling.
  12303. //
  12304. // This method is useful when you want to inject custom logic or configuration
  12305. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  12306. //
  12307. //
  12308. // // Example sending a request using the DescribeSpotDatafeedSubscriptionRequest method.
  12309. // req, resp := client.DescribeSpotDatafeedSubscriptionRequest(params)
  12310. //
  12311. // err := req.Send()
  12312. // if err == nil { // resp is now filled
  12313. // fmt.Println(resp)
  12314. // }
  12315. //
  12316. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotDatafeedSubscription
  12317. func (c *EC2) DescribeSpotDatafeedSubscriptionRequest(input *DescribeSpotDatafeedSubscriptionInput) (req *request.Request, output *DescribeSpotDatafeedSubscriptionOutput) {
  12318. op := &request.Operation{
  12319. Name: opDescribeSpotDatafeedSubscription,
  12320. HTTPMethod: "POST",
  12321. HTTPPath: "/",
  12322. }
  12323. if input == nil {
  12324. input = &DescribeSpotDatafeedSubscriptionInput{}
  12325. }
  12326. output = &DescribeSpotDatafeedSubscriptionOutput{}
  12327. req = c.newRequest(op, input, output)
  12328. return
  12329. }
  12330. // DescribeSpotDatafeedSubscription API operation for Amazon Elastic Compute Cloud.
  12331. //
  12332. // Describes the data feed for Spot Instances. For more information, see Spot
  12333. // Instance Data Feed (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-data-feeds.html)
  12334. // in the Amazon EC2 User Guide for Linux Instances.
  12335. //
  12336. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12337. // with awserr.Error's Code and Message methods to get detailed information about
  12338. // the error.
  12339. //
  12340. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12341. // API operation DescribeSpotDatafeedSubscription for usage and error information.
  12342. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotDatafeedSubscription
  12343. func (c *EC2) DescribeSpotDatafeedSubscription(input *DescribeSpotDatafeedSubscriptionInput) (*DescribeSpotDatafeedSubscriptionOutput, error) {
  12344. req, out := c.DescribeSpotDatafeedSubscriptionRequest(input)
  12345. return out, req.Send()
  12346. }
  12347. // DescribeSpotDatafeedSubscriptionWithContext is the same as DescribeSpotDatafeedSubscription with the addition of
  12348. // the ability to pass a context and additional request options.
  12349. //
  12350. // See DescribeSpotDatafeedSubscription for details on how to use this API operation.
  12351. //
  12352. // The context must be non-nil and will be used for request cancellation. If
  12353. // the context is nil a panic will occur. In the future the SDK may create
  12354. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12355. // for more information on using Contexts.
  12356. func (c *EC2) DescribeSpotDatafeedSubscriptionWithContext(ctx aws.Context, input *DescribeSpotDatafeedSubscriptionInput, opts ...request.Option) (*DescribeSpotDatafeedSubscriptionOutput, error) {
  12357. req, out := c.DescribeSpotDatafeedSubscriptionRequest(input)
  12358. req.SetContext(ctx)
  12359. req.ApplyOptions(opts...)
  12360. return out, req.Send()
  12361. }
  12362. const opDescribeSpotFleetInstances = "DescribeSpotFleetInstances"
  12363. // DescribeSpotFleetInstancesRequest generates a "aws/request.Request" representing the
  12364. // client's request for the DescribeSpotFleetInstances operation. The "output" return
  12365. // value will be populated with the request's response once the request completes
  12366. // successfuly.
  12367. //
  12368. // Use "Send" method on the returned Request to send the API call to the service.
  12369. // the "output" return value is not valid until after Send returns without error.
  12370. //
  12371. // See DescribeSpotFleetInstances for more information on using the DescribeSpotFleetInstances
  12372. // API call, and error handling.
  12373. //
  12374. // This method is useful when you want to inject custom logic or configuration
  12375. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  12376. //
  12377. //
  12378. // // Example sending a request using the DescribeSpotFleetInstancesRequest method.
  12379. // req, resp := client.DescribeSpotFleetInstancesRequest(params)
  12380. //
  12381. // err := req.Send()
  12382. // if err == nil { // resp is now filled
  12383. // fmt.Println(resp)
  12384. // }
  12385. //
  12386. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetInstances
  12387. func (c *EC2) DescribeSpotFleetInstancesRequest(input *DescribeSpotFleetInstancesInput) (req *request.Request, output *DescribeSpotFleetInstancesOutput) {
  12388. op := &request.Operation{
  12389. Name: opDescribeSpotFleetInstances,
  12390. HTTPMethod: "POST",
  12391. HTTPPath: "/",
  12392. }
  12393. if input == nil {
  12394. input = &DescribeSpotFleetInstancesInput{}
  12395. }
  12396. output = &DescribeSpotFleetInstancesOutput{}
  12397. req = c.newRequest(op, input, output)
  12398. return
  12399. }
  12400. // DescribeSpotFleetInstances API operation for Amazon Elastic Compute Cloud.
  12401. //
  12402. // Describes the running instances for the specified Spot Fleet.
  12403. //
  12404. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12405. // with awserr.Error's Code and Message methods to get detailed information about
  12406. // the error.
  12407. //
  12408. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12409. // API operation DescribeSpotFleetInstances for usage and error information.
  12410. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetInstances
  12411. func (c *EC2) DescribeSpotFleetInstances(input *DescribeSpotFleetInstancesInput) (*DescribeSpotFleetInstancesOutput, error) {
  12412. req, out := c.DescribeSpotFleetInstancesRequest(input)
  12413. return out, req.Send()
  12414. }
  12415. // DescribeSpotFleetInstancesWithContext is the same as DescribeSpotFleetInstances with the addition of
  12416. // the ability to pass a context and additional request options.
  12417. //
  12418. // See DescribeSpotFleetInstances for details on how to use this API operation.
  12419. //
  12420. // The context must be non-nil and will be used for request cancellation. If
  12421. // the context is nil a panic will occur. In the future the SDK may create
  12422. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12423. // for more information on using Contexts.
  12424. func (c *EC2) DescribeSpotFleetInstancesWithContext(ctx aws.Context, input *DescribeSpotFleetInstancesInput, opts ...request.Option) (*DescribeSpotFleetInstancesOutput, error) {
  12425. req, out := c.DescribeSpotFleetInstancesRequest(input)
  12426. req.SetContext(ctx)
  12427. req.ApplyOptions(opts...)
  12428. return out, req.Send()
  12429. }
  12430. const opDescribeSpotFleetRequestHistory = "DescribeSpotFleetRequestHistory"
  12431. // DescribeSpotFleetRequestHistoryRequest generates a "aws/request.Request" representing the
  12432. // client's request for the DescribeSpotFleetRequestHistory operation. The "output" return
  12433. // value will be populated with the request's response once the request completes
  12434. // successfuly.
  12435. //
  12436. // Use "Send" method on the returned Request to send the API call to the service.
  12437. // the "output" return value is not valid until after Send returns without error.
  12438. //
  12439. // See DescribeSpotFleetRequestHistory for more information on using the DescribeSpotFleetRequestHistory
  12440. // API call, and error handling.
  12441. //
  12442. // This method is useful when you want to inject custom logic or configuration
  12443. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  12444. //
  12445. //
  12446. // // Example sending a request using the DescribeSpotFleetRequestHistoryRequest method.
  12447. // req, resp := client.DescribeSpotFleetRequestHistoryRequest(params)
  12448. //
  12449. // err := req.Send()
  12450. // if err == nil { // resp is now filled
  12451. // fmt.Println(resp)
  12452. // }
  12453. //
  12454. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetRequestHistory
  12455. func (c *EC2) DescribeSpotFleetRequestHistoryRequest(input *DescribeSpotFleetRequestHistoryInput) (req *request.Request, output *DescribeSpotFleetRequestHistoryOutput) {
  12456. op := &request.Operation{
  12457. Name: opDescribeSpotFleetRequestHistory,
  12458. HTTPMethod: "POST",
  12459. HTTPPath: "/",
  12460. }
  12461. if input == nil {
  12462. input = &DescribeSpotFleetRequestHistoryInput{}
  12463. }
  12464. output = &DescribeSpotFleetRequestHistoryOutput{}
  12465. req = c.newRequest(op, input, output)
  12466. return
  12467. }
  12468. // DescribeSpotFleetRequestHistory API operation for Amazon Elastic Compute Cloud.
  12469. //
  12470. // Describes the events for the specified Spot Fleet request during the specified
  12471. // time.
  12472. //
  12473. // Spot Fleet events are delayed by up to 30 seconds before they can be described.
  12474. // This ensures that you can query by the last evaluated time and not miss a
  12475. // recorded event.
  12476. //
  12477. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12478. // with awserr.Error's Code and Message methods to get detailed information about
  12479. // the error.
  12480. //
  12481. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12482. // API operation DescribeSpotFleetRequestHistory for usage and error information.
  12483. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetRequestHistory
  12484. func (c *EC2) DescribeSpotFleetRequestHistory(input *DescribeSpotFleetRequestHistoryInput) (*DescribeSpotFleetRequestHistoryOutput, error) {
  12485. req, out := c.DescribeSpotFleetRequestHistoryRequest(input)
  12486. return out, req.Send()
  12487. }
  12488. // DescribeSpotFleetRequestHistoryWithContext is the same as DescribeSpotFleetRequestHistory with the addition of
  12489. // the ability to pass a context and additional request options.
  12490. //
  12491. // See DescribeSpotFleetRequestHistory for details on how to use this API operation.
  12492. //
  12493. // The context must be non-nil and will be used for request cancellation. If
  12494. // the context is nil a panic will occur. In the future the SDK may create
  12495. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12496. // for more information on using Contexts.
  12497. func (c *EC2) DescribeSpotFleetRequestHistoryWithContext(ctx aws.Context, input *DescribeSpotFleetRequestHistoryInput, opts ...request.Option) (*DescribeSpotFleetRequestHistoryOutput, error) {
  12498. req, out := c.DescribeSpotFleetRequestHistoryRequest(input)
  12499. req.SetContext(ctx)
  12500. req.ApplyOptions(opts...)
  12501. return out, req.Send()
  12502. }
  12503. const opDescribeSpotFleetRequests = "DescribeSpotFleetRequests"
  12504. // DescribeSpotFleetRequestsRequest generates a "aws/request.Request" representing the
  12505. // client's request for the DescribeSpotFleetRequests operation. The "output" return
  12506. // value will be populated with the request's response once the request completes
  12507. // successfuly.
  12508. //
  12509. // Use "Send" method on the returned Request to send the API call to the service.
  12510. // the "output" return value is not valid until after Send returns without error.
  12511. //
  12512. // See DescribeSpotFleetRequests for more information on using the DescribeSpotFleetRequests
  12513. // API call, and error handling.
  12514. //
  12515. // This method is useful when you want to inject custom logic or configuration
  12516. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  12517. //
  12518. //
  12519. // // Example sending a request using the DescribeSpotFleetRequestsRequest method.
  12520. // req, resp := client.DescribeSpotFleetRequestsRequest(params)
  12521. //
  12522. // err := req.Send()
  12523. // if err == nil { // resp is now filled
  12524. // fmt.Println(resp)
  12525. // }
  12526. //
  12527. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetRequests
  12528. func (c *EC2) DescribeSpotFleetRequestsRequest(input *DescribeSpotFleetRequestsInput) (req *request.Request, output *DescribeSpotFleetRequestsOutput) {
  12529. op := &request.Operation{
  12530. Name: opDescribeSpotFleetRequests,
  12531. HTTPMethod: "POST",
  12532. HTTPPath: "/",
  12533. Paginator: &request.Paginator{
  12534. InputTokens: []string{"NextToken"},
  12535. OutputTokens: []string{"NextToken"},
  12536. LimitToken: "MaxResults",
  12537. TruncationToken: "",
  12538. },
  12539. }
  12540. if input == nil {
  12541. input = &DescribeSpotFleetRequestsInput{}
  12542. }
  12543. output = &DescribeSpotFleetRequestsOutput{}
  12544. req = c.newRequest(op, input, output)
  12545. return
  12546. }
  12547. // DescribeSpotFleetRequests API operation for Amazon Elastic Compute Cloud.
  12548. //
  12549. // Describes your Spot Fleet requests.
  12550. //
  12551. // Spot Fleet requests are deleted 48 hours after they are canceled and their
  12552. // instances are terminated.
  12553. //
  12554. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12555. // with awserr.Error's Code and Message methods to get detailed information about
  12556. // the error.
  12557. //
  12558. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12559. // API operation DescribeSpotFleetRequests for usage and error information.
  12560. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetRequests
  12561. func (c *EC2) DescribeSpotFleetRequests(input *DescribeSpotFleetRequestsInput) (*DescribeSpotFleetRequestsOutput, error) {
  12562. req, out := c.DescribeSpotFleetRequestsRequest(input)
  12563. return out, req.Send()
  12564. }
  12565. // DescribeSpotFleetRequestsWithContext is the same as DescribeSpotFleetRequests with the addition of
  12566. // the ability to pass a context and additional request options.
  12567. //
  12568. // See DescribeSpotFleetRequests for details on how to use this API operation.
  12569. //
  12570. // The context must be non-nil and will be used for request cancellation. If
  12571. // the context is nil a panic will occur. In the future the SDK may create
  12572. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12573. // for more information on using Contexts.
  12574. func (c *EC2) DescribeSpotFleetRequestsWithContext(ctx aws.Context, input *DescribeSpotFleetRequestsInput, opts ...request.Option) (*DescribeSpotFleetRequestsOutput, error) {
  12575. req, out := c.DescribeSpotFleetRequestsRequest(input)
  12576. req.SetContext(ctx)
  12577. req.ApplyOptions(opts...)
  12578. return out, req.Send()
  12579. }
  12580. // DescribeSpotFleetRequestsPages iterates over the pages of a DescribeSpotFleetRequests operation,
  12581. // calling the "fn" function with the response data for each page. To stop
  12582. // iterating, return false from the fn function.
  12583. //
  12584. // See DescribeSpotFleetRequests method for more information on how to use this operation.
  12585. //
  12586. // Note: This operation can generate multiple requests to a service.
  12587. //
  12588. // // Example iterating over at most 3 pages of a DescribeSpotFleetRequests operation.
  12589. // pageNum := 0
  12590. // err := client.DescribeSpotFleetRequestsPages(params,
  12591. // func(page *DescribeSpotFleetRequestsOutput, lastPage bool) bool {
  12592. // pageNum++
  12593. // fmt.Println(page)
  12594. // return pageNum <= 3
  12595. // })
  12596. //
  12597. func (c *EC2) DescribeSpotFleetRequestsPages(input *DescribeSpotFleetRequestsInput, fn func(*DescribeSpotFleetRequestsOutput, bool) bool) error {
  12598. return c.DescribeSpotFleetRequestsPagesWithContext(aws.BackgroundContext(), input, fn)
  12599. }
  12600. // DescribeSpotFleetRequestsPagesWithContext same as DescribeSpotFleetRequestsPages except
  12601. // it takes a Context and allows setting request options on the pages.
  12602. //
  12603. // The context must be non-nil and will be used for request cancellation. If
  12604. // the context is nil a panic will occur. In the future the SDK may create
  12605. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12606. // for more information on using Contexts.
  12607. func (c *EC2) DescribeSpotFleetRequestsPagesWithContext(ctx aws.Context, input *DescribeSpotFleetRequestsInput, fn func(*DescribeSpotFleetRequestsOutput, bool) bool, opts ...request.Option) error {
  12608. p := request.Pagination{
  12609. NewRequest: func() (*request.Request, error) {
  12610. var inCpy *DescribeSpotFleetRequestsInput
  12611. if input != nil {
  12612. tmp := *input
  12613. inCpy = &tmp
  12614. }
  12615. req, _ := c.DescribeSpotFleetRequestsRequest(inCpy)
  12616. req.SetContext(ctx)
  12617. req.ApplyOptions(opts...)
  12618. return req, nil
  12619. },
  12620. }
  12621. cont := true
  12622. for p.Next() && cont {
  12623. cont = fn(p.Page().(*DescribeSpotFleetRequestsOutput), !p.HasNextPage())
  12624. }
  12625. return p.Err()
  12626. }
  12627. const opDescribeSpotInstanceRequests = "DescribeSpotInstanceRequests"
  12628. // DescribeSpotInstanceRequestsRequest generates a "aws/request.Request" representing the
  12629. // client's request for the DescribeSpotInstanceRequests operation. The "output" return
  12630. // value will be populated with the request's response once the request completes
  12631. // successfuly.
  12632. //
  12633. // Use "Send" method on the returned Request to send the API call to the service.
  12634. // the "output" return value is not valid until after Send returns without error.
  12635. //
  12636. // See DescribeSpotInstanceRequests for more information on using the DescribeSpotInstanceRequests
  12637. // API call, and error handling.
  12638. //
  12639. // This method is useful when you want to inject custom logic or configuration
  12640. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  12641. //
  12642. //
  12643. // // Example sending a request using the DescribeSpotInstanceRequestsRequest method.
  12644. // req, resp := client.DescribeSpotInstanceRequestsRequest(params)
  12645. //
  12646. // err := req.Send()
  12647. // if err == nil { // resp is now filled
  12648. // fmt.Println(resp)
  12649. // }
  12650. //
  12651. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotInstanceRequests
  12652. func (c *EC2) DescribeSpotInstanceRequestsRequest(input *DescribeSpotInstanceRequestsInput) (req *request.Request, output *DescribeSpotInstanceRequestsOutput) {
  12653. op := &request.Operation{
  12654. Name: opDescribeSpotInstanceRequests,
  12655. HTTPMethod: "POST",
  12656. HTTPPath: "/",
  12657. }
  12658. if input == nil {
  12659. input = &DescribeSpotInstanceRequestsInput{}
  12660. }
  12661. output = &DescribeSpotInstanceRequestsOutput{}
  12662. req = c.newRequest(op, input, output)
  12663. return
  12664. }
  12665. // DescribeSpotInstanceRequests API operation for Amazon Elastic Compute Cloud.
  12666. //
  12667. // Describes the specified Spot Instance requests.
  12668. //
  12669. // You can use DescribeSpotInstanceRequests to find a running Spot Instance
  12670. // by examining the response. If the status of the Spot Instance is fulfilled,
  12671. // the instance ID appears in the response and contains the identifier of the
  12672. // instance. Alternatively, you can use DescribeInstances with a filter to look
  12673. // for instances where the instance lifecycle is spot.
  12674. //
  12675. // Spot Instance requests are deleted four hours after they are canceled and
  12676. // their instances are terminated.
  12677. //
  12678. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12679. // with awserr.Error's Code and Message methods to get detailed information about
  12680. // the error.
  12681. //
  12682. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12683. // API operation DescribeSpotInstanceRequests for usage and error information.
  12684. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotInstanceRequests
  12685. func (c *EC2) DescribeSpotInstanceRequests(input *DescribeSpotInstanceRequestsInput) (*DescribeSpotInstanceRequestsOutput, error) {
  12686. req, out := c.DescribeSpotInstanceRequestsRequest(input)
  12687. return out, req.Send()
  12688. }
  12689. // DescribeSpotInstanceRequestsWithContext is the same as DescribeSpotInstanceRequests with the addition of
  12690. // the ability to pass a context and additional request options.
  12691. //
  12692. // See DescribeSpotInstanceRequests for details on how to use this API operation.
  12693. //
  12694. // The context must be non-nil and will be used for request cancellation. If
  12695. // the context is nil a panic will occur. In the future the SDK may create
  12696. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12697. // for more information on using Contexts.
  12698. func (c *EC2) DescribeSpotInstanceRequestsWithContext(ctx aws.Context, input *DescribeSpotInstanceRequestsInput, opts ...request.Option) (*DescribeSpotInstanceRequestsOutput, error) {
  12699. req, out := c.DescribeSpotInstanceRequestsRequest(input)
  12700. req.SetContext(ctx)
  12701. req.ApplyOptions(opts...)
  12702. return out, req.Send()
  12703. }
  12704. const opDescribeSpotPriceHistory = "DescribeSpotPriceHistory"
  12705. // DescribeSpotPriceHistoryRequest generates a "aws/request.Request" representing the
  12706. // client's request for the DescribeSpotPriceHistory operation. The "output" return
  12707. // value will be populated with the request's response once the request completes
  12708. // successfuly.
  12709. //
  12710. // Use "Send" method on the returned Request to send the API call to the service.
  12711. // the "output" return value is not valid until after Send returns without error.
  12712. //
  12713. // See DescribeSpotPriceHistory for more information on using the DescribeSpotPriceHistory
  12714. // API call, and error handling.
  12715. //
  12716. // This method is useful when you want to inject custom logic or configuration
  12717. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  12718. //
  12719. //
  12720. // // Example sending a request using the DescribeSpotPriceHistoryRequest method.
  12721. // req, resp := client.DescribeSpotPriceHistoryRequest(params)
  12722. //
  12723. // err := req.Send()
  12724. // if err == nil { // resp is now filled
  12725. // fmt.Println(resp)
  12726. // }
  12727. //
  12728. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotPriceHistory
  12729. func (c *EC2) DescribeSpotPriceHistoryRequest(input *DescribeSpotPriceHistoryInput) (req *request.Request, output *DescribeSpotPriceHistoryOutput) {
  12730. op := &request.Operation{
  12731. Name: opDescribeSpotPriceHistory,
  12732. HTTPMethod: "POST",
  12733. HTTPPath: "/",
  12734. Paginator: &request.Paginator{
  12735. InputTokens: []string{"NextToken"},
  12736. OutputTokens: []string{"NextToken"},
  12737. LimitToken: "MaxResults",
  12738. TruncationToken: "",
  12739. },
  12740. }
  12741. if input == nil {
  12742. input = &DescribeSpotPriceHistoryInput{}
  12743. }
  12744. output = &DescribeSpotPriceHistoryOutput{}
  12745. req = c.newRequest(op, input, output)
  12746. return
  12747. }
  12748. // DescribeSpotPriceHistory API operation for Amazon Elastic Compute Cloud.
  12749. //
  12750. // Describes the Spot price history. For more information, see Spot Instance
  12751. // Pricing History (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-spot-instances-history.html)
  12752. // in the Amazon EC2 User Guide for Linux Instances.
  12753. //
  12754. // When you specify a start and end time, this operation returns the prices
  12755. // of the instance types within the time range that you specified and the time
  12756. // when the price changed. The price is valid within the time period that you
  12757. // specified; the response merely indicates the last time that the price changed.
  12758. //
  12759. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12760. // with awserr.Error's Code and Message methods to get detailed information about
  12761. // the error.
  12762. //
  12763. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12764. // API operation DescribeSpotPriceHistory for usage and error information.
  12765. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotPriceHistory
  12766. func (c *EC2) DescribeSpotPriceHistory(input *DescribeSpotPriceHistoryInput) (*DescribeSpotPriceHistoryOutput, error) {
  12767. req, out := c.DescribeSpotPriceHistoryRequest(input)
  12768. return out, req.Send()
  12769. }
  12770. // DescribeSpotPriceHistoryWithContext is the same as DescribeSpotPriceHistory with the addition of
  12771. // the ability to pass a context and additional request options.
  12772. //
  12773. // See DescribeSpotPriceHistory for details on how to use this API operation.
  12774. //
  12775. // The context must be non-nil and will be used for request cancellation. If
  12776. // the context is nil a panic will occur. In the future the SDK may create
  12777. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12778. // for more information on using Contexts.
  12779. func (c *EC2) DescribeSpotPriceHistoryWithContext(ctx aws.Context, input *DescribeSpotPriceHistoryInput, opts ...request.Option) (*DescribeSpotPriceHistoryOutput, error) {
  12780. req, out := c.DescribeSpotPriceHistoryRequest(input)
  12781. req.SetContext(ctx)
  12782. req.ApplyOptions(opts...)
  12783. return out, req.Send()
  12784. }
  12785. // DescribeSpotPriceHistoryPages iterates over the pages of a DescribeSpotPriceHistory operation,
  12786. // calling the "fn" function with the response data for each page. To stop
  12787. // iterating, return false from the fn function.
  12788. //
  12789. // See DescribeSpotPriceHistory method for more information on how to use this operation.
  12790. //
  12791. // Note: This operation can generate multiple requests to a service.
  12792. //
  12793. // // Example iterating over at most 3 pages of a DescribeSpotPriceHistory operation.
  12794. // pageNum := 0
  12795. // err := client.DescribeSpotPriceHistoryPages(params,
  12796. // func(page *DescribeSpotPriceHistoryOutput, lastPage bool) bool {
  12797. // pageNum++
  12798. // fmt.Println(page)
  12799. // return pageNum <= 3
  12800. // })
  12801. //
  12802. func (c *EC2) DescribeSpotPriceHistoryPages(input *DescribeSpotPriceHistoryInput, fn func(*DescribeSpotPriceHistoryOutput, bool) bool) error {
  12803. return c.DescribeSpotPriceHistoryPagesWithContext(aws.BackgroundContext(), input, fn)
  12804. }
  12805. // DescribeSpotPriceHistoryPagesWithContext same as DescribeSpotPriceHistoryPages except
  12806. // it takes a Context and allows setting request options on the pages.
  12807. //
  12808. // The context must be non-nil and will be used for request cancellation. If
  12809. // the context is nil a panic will occur. In the future the SDK may create
  12810. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12811. // for more information on using Contexts.
  12812. func (c *EC2) DescribeSpotPriceHistoryPagesWithContext(ctx aws.Context, input *DescribeSpotPriceHistoryInput, fn func(*DescribeSpotPriceHistoryOutput, bool) bool, opts ...request.Option) error {
  12813. p := request.Pagination{
  12814. NewRequest: func() (*request.Request, error) {
  12815. var inCpy *DescribeSpotPriceHistoryInput
  12816. if input != nil {
  12817. tmp := *input
  12818. inCpy = &tmp
  12819. }
  12820. req, _ := c.DescribeSpotPriceHistoryRequest(inCpy)
  12821. req.SetContext(ctx)
  12822. req.ApplyOptions(opts...)
  12823. return req, nil
  12824. },
  12825. }
  12826. cont := true
  12827. for p.Next() && cont {
  12828. cont = fn(p.Page().(*DescribeSpotPriceHistoryOutput), !p.HasNextPage())
  12829. }
  12830. return p.Err()
  12831. }
  12832. const opDescribeStaleSecurityGroups = "DescribeStaleSecurityGroups"
  12833. // DescribeStaleSecurityGroupsRequest generates a "aws/request.Request" representing the
  12834. // client's request for the DescribeStaleSecurityGroups operation. The "output" return
  12835. // value will be populated with the request's response once the request completes
  12836. // successfuly.
  12837. //
  12838. // Use "Send" method on the returned Request to send the API call to the service.
  12839. // the "output" return value is not valid until after Send returns without error.
  12840. //
  12841. // See DescribeStaleSecurityGroups for more information on using the DescribeStaleSecurityGroups
  12842. // API call, and error handling.
  12843. //
  12844. // This method is useful when you want to inject custom logic or configuration
  12845. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  12846. //
  12847. //
  12848. // // Example sending a request using the DescribeStaleSecurityGroupsRequest method.
  12849. // req, resp := client.DescribeStaleSecurityGroupsRequest(params)
  12850. //
  12851. // err := req.Send()
  12852. // if err == nil { // resp is now filled
  12853. // fmt.Println(resp)
  12854. // }
  12855. //
  12856. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeStaleSecurityGroups
  12857. func (c *EC2) DescribeStaleSecurityGroupsRequest(input *DescribeStaleSecurityGroupsInput) (req *request.Request, output *DescribeStaleSecurityGroupsOutput) {
  12858. op := &request.Operation{
  12859. Name: opDescribeStaleSecurityGroups,
  12860. HTTPMethod: "POST",
  12861. HTTPPath: "/",
  12862. }
  12863. if input == nil {
  12864. input = &DescribeStaleSecurityGroupsInput{}
  12865. }
  12866. output = &DescribeStaleSecurityGroupsOutput{}
  12867. req = c.newRequest(op, input, output)
  12868. return
  12869. }
  12870. // DescribeStaleSecurityGroups API operation for Amazon Elastic Compute Cloud.
  12871. //
  12872. // [EC2-VPC only] Describes the stale security group rules for security groups
  12873. // in a specified VPC. Rules are stale when they reference a deleted security
  12874. // group in a peer VPC, or a security group in a peer VPC for which the VPC
  12875. // peering connection has been deleted.
  12876. //
  12877. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12878. // with awserr.Error's Code and Message methods to get detailed information about
  12879. // the error.
  12880. //
  12881. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12882. // API operation DescribeStaleSecurityGroups for usage and error information.
  12883. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeStaleSecurityGroups
  12884. func (c *EC2) DescribeStaleSecurityGroups(input *DescribeStaleSecurityGroupsInput) (*DescribeStaleSecurityGroupsOutput, error) {
  12885. req, out := c.DescribeStaleSecurityGroupsRequest(input)
  12886. return out, req.Send()
  12887. }
  12888. // DescribeStaleSecurityGroupsWithContext is the same as DescribeStaleSecurityGroups with the addition of
  12889. // the ability to pass a context and additional request options.
  12890. //
  12891. // See DescribeStaleSecurityGroups for details on how to use this API operation.
  12892. //
  12893. // The context must be non-nil and will be used for request cancellation. If
  12894. // the context is nil a panic will occur. In the future the SDK may create
  12895. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12896. // for more information on using Contexts.
  12897. func (c *EC2) DescribeStaleSecurityGroupsWithContext(ctx aws.Context, input *DescribeStaleSecurityGroupsInput, opts ...request.Option) (*DescribeStaleSecurityGroupsOutput, error) {
  12898. req, out := c.DescribeStaleSecurityGroupsRequest(input)
  12899. req.SetContext(ctx)
  12900. req.ApplyOptions(opts...)
  12901. return out, req.Send()
  12902. }
  12903. const opDescribeSubnets = "DescribeSubnets"
  12904. // DescribeSubnetsRequest generates a "aws/request.Request" representing the
  12905. // client's request for the DescribeSubnets operation. The "output" return
  12906. // value will be populated with the request's response once the request completes
  12907. // successfuly.
  12908. //
  12909. // Use "Send" method on the returned Request to send the API call to the service.
  12910. // the "output" return value is not valid until after Send returns without error.
  12911. //
  12912. // See DescribeSubnets for more information on using the DescribeSubnets
  12913. // API call, and error handling.
  12914. //
  12915. // This method is useful when you want to inject custom logic or configuration
  12916. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  12917. //
  12918. //
  12919. // // Example sending a request using the DescribeSubnetsRequest method.
  12920. // req, resp := client.DescribeSubnetsRequest(params)
  12921. //
  12922. // err := req.Send()
  12923. // if err == nil { // resp is now filled
  12924. // fmt.Println(resp)
  12925. // }
  12926. //
  12927. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSubnets
  12928. func (c *EC2) DescribeSubnetsRequest(input *DescribeSubnetsInput) (req *request.Request, output *DescribeSubnetsOutput) {
  12929. op := &request.Operation{
  12930. Name: opDescribeSubnets,
  12931. HTTPMethod: "POST",
  12932. HTTPPath: "/",
  12933. }
  12934. if input == nil {
  12935. input = &DescribeSubnetsInput{}
  12936. }
  12937. output = &DescribeSubnetsOutput{}
  12938. req = c.newRequest(op, input, output)
  12939. return
  12940. }
  12941. // DescribeSubnets API operation for Amazon Elastic Compute Cloud.
  12942. //
  12943. // Describes one or more of your subnets.
  12944. //
  12945. // For more information about subnets, see Your VPC and Subnets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Subnets.html)
  12946. // in the Amazon Virtual Private Cloud User Guide.
  12947. //
  12948. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12949. // with awserr.Error's Code and Message methods to get detailed information about
  12950. // the error.
  12951. //
  12952. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12953. // API operation DescribeSubnets for usage and error information.
  12954. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSubnets
  12955. func (c *EC2) DescribeSubnets(input *DescribeSubnetsInput) (*DescribeSubnetsOutput, error) {
  12956. req, out := c.DescribeSubnetsRequest(input)
  12957. return out, req.Send()
  12958. }
  12959. // DescribeSubnetsWithContext is the same as DescribeSubnets with the addition of
  12960. // the ability to pass a context and additional request options.
  12961. //
  12962. // See DescribeSubnets for details on how to use this API operation.
  12963. //
  12964. // The context must be non-nil and will be used for request cancellation. If
  12965. // the context is nil a panic will occur. In the future the SDK may create
  12966. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12967. // for more information on using Contexts.
  12968. func (c *EC2) DescribeSubnetsWithContext(ctx aws.Context, input *DescribeSubnetsInput, opts ...request.Option) (*DescribeSubnetsOutput, error) {
  12969. req, out := c.DescribeSubnetsRequest(input)
  12970. req.SetContext(ctx)
  12971. req.ApplyOptions(opts...)
  12972. return out, req.Send()
  12973. }
  12974. const opDescribeTags = "DescribeTags"
  12975. // DescribeTagsRequest generates a "aws/request.Request" representing the
  12976. // client's request for the DescribeTags operation. The "output" return
  12977. // value will be populated with the request's response once the request completes
  12978. // successfuly.
  12979. //
  12980. // Use "Send" method on the returned Request to send the API call to the service.
  12981. // the "output" return value is not valid until after Send returns without error.
  12982. //
  12983. // See DescribeTags for more information on using the DescribeTags
  12984. // API call, and error handling.
  12985. //
  12986. // This method is useful when you want to inject custom logic or configuration
  12987. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  12988. //
  12989. //
  12990. // // Example sending a request using the DescribeTagsRequest method.
  12991. // req, resp := client.DescribeTagsRequest(params)
  12992. //
  12993. // err := req.Send()
  12994. // if err == nil { // resp is now filled
  12995. // fmt.Println(resp)
  12996. // }
  12997. //
  12998. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTags
  12999. func (c *EC2) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Request, output *DescribeTagsOutput) {
  13000. op := &request.Operation{
  13001. Name: opDescribeTags,
  13002. HTTPMethod: "POST",
  13003. HTTPPath: "/",
  13004. Paginator: &request.Paginator{
  13005. InputTokens: []string{"NextToken"},
  13006. OutputTokens: []string{"NextToken"},
  13007. LimitToken: "MaxResults",
  13008. TruncationToken: "",
  13009. },
  13010. }
  13011. if input == nil {
  13012. input = &DescribeTagsInput{}
  13013. }
  13014. output = &DescribeTagsOutput{}
  13015. req = c.newRequest(op, input, output)
  13016. return
  13017. }
  13018. // DescribeTags API operation for Amazon Elastic Compute Cloud.
  13019. //
  13020. // Describes one or more of the tags for your EC2 resources.
  13021. //
  13022. // For more information about tags, see Tagging Your Resources (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html)
  13023. // in the Amazon Elastic Compute Cloud User Guide.
  13024. //
  13025. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13026. // with awserr.Error's Code and Message methods to get detailed information about
  13027. // the error.
  13028. //
  13029. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13030. // API operation DescribeTags for usage and error information.
  13031. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTags
  13032. func (c *EC2) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) {
  13033. req, out := c.DescribeTagsRequest(input)
  13034. return out, req.Send()
  13035. }
  13036. // DescribeTagsWithContext is the same as DescribeTags with the addition of
  13037. // the ability to pass a context and additional request options.
  13038. //
  13039. // See DescribeTags for details on how to use this API operation.
  13040. //
  13041. // The context must be non-nil and will be used for request cancellation. If
  13042. // the context is nil a panic will occur. In the future the SDK may create
  13043. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13044. // for more information on using Contexts.
  13045. func (c *EC2) DescribeTagsWithContext(ctx aws.Context, input *DescribeTagsInput, opts ...request.Option) (*DescribeTagsOutput, error) {
  13046. req, out := c.DescribeTagsRequest(input)
  13047. req.SetContext(ctx)
  13048. req.ApplyOptions(opts...)
  13049. return out, req.Send()
  13050. }
  13051. // DescribeTagsPages iterates over the pages of a DescribeTags operation,
  13052. // calling the "fn" function with the response data for each page. To stop
  13053. // iterating, return false from the fn function.
  13054. //
  13055. // See DescribeTags method for more information on how to use this operation.
  13056. //
  13057. // Note: This operation can generate multiple requests to a service.
  13058. //
  13059. // // Example iterating over at most 3 pages of a DescribeTags operation.
  13060. // pageNum := 0
  13061. // err := client.DescribeTagsPages(params,
  13062. // func(page *DescribeTagsOutput, lastPage bool) bool {
  13063. // pageNum++
  13064. // fmt.Println(page)
  13065. // return pageNum <= 3
  13066. // })
  13067. //
  13068. func (c *EC2) DescribeTagsPages(input *DescribeTagsInput, fn func(*DescribeTagsOutput, bool) bool) error {
  13069. return c.DescribeTagsPagesWithContext(aws.BackgroundContext(), input, fn)
  13070. }
  13071. // DescribeTagsPagesWithContext same as DescribeTagsPages except
  13072. // it takes a Context and allows setting request options on the pages.
  13073. //
  13074. // The context must be non-nil and will be used for request cancellation. If
  13075. // the context is nil a panic will occur. In the future the SDK may create
  13076. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13077. // for more information on using Contexts.
  13078. func (c *EC2) DescribeTagsPagesWithContext(ctx aws.Context, input *DescribeTagsInput, fn func(*DescribeTagsOutput, bool) bool, opts ...request.Option) error {
  13079. p := request.Pagination{
  13080. NewRequest: func() (*request.Request, error) {
  13081. var inCpy *DescribeTagsInput
  13082. if input != nil {
  13083. tmp := *input
  13084. inCpy = &tmp
  13085. }
  13086. req, _ := c.DescribeTagsRequest(inCpy)
  13087. req.SetContext(ctx)
  13088. req.ApplyOptions(opts...)
  13089. return req, nil
  13090. },
  13091. }
  13092. cont := true
  13093. for p.Next() && cont {
  13094. cont = fn(p.Page().(*DescribeTagsOutput), !p.HasNextPage())
  13095. }
  13096. return p.Err()
  13097. }
  13098. const opDescribeVolumeAttribute = "DescribeVolumeAttribute"
  13099. // DescribeVolumeAttributeRequest generates a "aws/request.Request" representing the
  13100. // client's request for the DescribeVolumeAttribute operation. The "output" return
  13101. // value will be populated with the request's response once the request completes
  13102. // successfuly.
  13103. //
  13104. // Use "Send" method on the returned Request to send the API call to the service.
  13105. // the "output" return value is not valid until after Send returns without error.
  13106. //
  13107. // See DescribeVolumeAttribute for more information on using the DescribeVolumeAttribute
  13108. // API call, and error handling.
  13109. //
  13110. // This method is useful when you want to inject custom logic or configuration
  13111. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  13112. //
  13113. //
  13114. // // Example sending a request using the DescribeVolumeAttributeRequest method.
  13115. // req, resp := client.DescribeVolumeAttributeRequest(params)
  13116. //
  13117. // err := req.Send()
  13118. // if err == nil { // resp is now filled
  13119. // fmt.Println(resp)
  13120. // }
  13121. //
  13122. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumeAttribute
  13123. func (c *EC2) DescribeVolumeAttributeRequest(input *DescribeVolumeAttributeInput) (req *request.Request, output *DescribeVolumeAttributeOutput) {
  13124. op := &request.Operation{
  13125. Name: opDescribeVolumeAttribute,
  13126. HTTPMethod: "POST",
  13127. HTTPPath: "/",
  13128. }
  13129. if input == nil {
  13130. input = &DescribeVolumeAttributeInput{}
  13131. }
  13132. output = &DescribeVolumeAttributeOutput{}
  13133. req = c.newRequest(op, input, output)
  13134. return
  13135. }
  13136. // DescribeVolumeAttribute API operation for Amazon Elastic Compute Cloud.
  13137. //
  13138. // Describes the specified attribute of the specified volume. You can specify
  13139. // only one attribute at a time.
  13140. //
  13141. // For more information about EBS volumes, see Amazon EBS Volumes (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumes.html)
  13142. // in the Amazon Elastic Compute Cloud User Guide.
  13143. //
  13144. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13145. // with awserr.Error's Code and Message methods to get detailed information about
  13146. // the error.
  13147. //
  13148. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13149. // API operation DescribeVolumeAttribute for usage and error information.
  13150. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumeAttribute
  13151. func (c *EC2) DescribeVolumeAttribute(input *DescribeVolumeAttributeInput) (*DescribeVolumeAttributeOutput, error) {
  13152. req, out := c.DescribeVolumeAttributeRequest(input)
  13153. return out, req.Send()
  13154. }
  13155. // DescribeVolumeAttributeWithContext is the same as DescribeVolumeAttribute with the addition of
  13156. // the ability to pass a context and additional request options.
  13157. //
  13158. // See DescribeVolumeAttribute for details on how to use this API operation.
  13159. //
  13160. // The context must be non-nil and will be used for request cancellation. If
  13161. // the context is nil a panic will occur. In the future the SDK may create
  13162. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13163. // for more information on using Contexts.
  13164. func (c *EC2) DescribeVolumeAttributeWithContext(ctx aws.Context, input *DescribeVolumeAttributeInput, opts ...request.Option) (*DescribeVolumeAttributeOutput, error) {
  13165. req, out := c.DescribeVolumeAttributeRequest(input)
  13166. req.SetContext(ctx)
  13167. req.ApplyOptions(opts...)
  13168. return out, req.Send()
  13169. }
  13170. const opDescribeVolumeStatus = "DescribeVolumeStatus"
  13171. // DescribeVolumeStatusRequest generates a "aws/request.Request" representing the
  13172. // client's request for the DescribeVolumeStatus operation. The "output" return
  13173. // value will be populated with the request's response once the request completes
  13174. // successfuly.
  13175. //
  13176. // Use "Send" method on the returned Request to send the API call to the service.
  13177. // the "output" return value is not valid until after Send returns without error.
  13178. //
  13179. // See DescribeVolumeStatus for more information on using the DescribeVolumeStatus
  13180. // API call, and error handling.
  13181. //
  13182. // This method is useful when you want to inject custom logic or configuration
  13183. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  13184. //
  13185. //
  13186. // // Example sending a request using the DescribeVolumeStatusRequest method.
  13187. // req, resp := client.DescribeVolumeStatusRequest(params)
  13188. //
  13189. // err := req.Send()
  13190. // if err == nil { // resp is now filled
  13191. // fmt.Println(resp)
  13192. // }
  13193. //
  13194. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumeStatus
  13195. func (c *EC2) DescribeVolumeStatusRequest(input *DescribeVolumeStatusInput) (req *request.Request, output *DescribeVolumeStatusOutput) {
  13196. op := &request.Operation{
  13197. Name: opDescribeVolumeStatus,
  13198. HTTPMethod: "POST",
  13199. HTTPPath: "/",
  13200. Paginator: &request.Paginator{
  13201. InputTokens: []string{"NextToken"},
  13202. OutputTokens: []string{"NextToken"},
  13203. LimitToken: "MaxResults",
  13204. TruncationToken: "",
  13205. },
  13206. }
  13207. if input == nil {
  13208. input = &DescribeVolumeStatusInput{}
  13209. }
  13210. output = &DescribeVolumeStatusOutput{}
  13211. req = c.newRequest(op, input, output)
  13212. return
  13213. }
  13214. // DescribeVolumeStatus API operation for Amazon Elastic Compute Cloud.
  13215. //
  13216. // Describes the status of the specified volumes. Volume status provides the
  13217. // result of the checks performed on your volumes to determine events that can
  13218. // impair the performance of your volumes. The performance of a volume can be
  13219. // affected if an issue occurs on the volume's underlying host. If the volume's
  13220. // underlying host experiences a power outage or system issue, after the system
  13221. // is restored, there could be data inconsistencies on the volume. Volume events
  13222. // notify you if this occurs. Volume actions notify you if any action needs
  13223. // to be taken in response to the event.
  13224. //
  13225. // The DescribeVolumeStatus operation provides the following information about
  13226. // the specified volumes:
  13227. //
  13228. // Status: Reflects the current status of the volume. The possible values are
  13229. // ok, impaired , warning, or insufficient-data. If all checks pass, the overall
  13230. // status of the volume is ok. If the check fails, the overall status is impaired.
  13231. // If the status is insufficient-data, then the checks may still be taking place
  13232. // on your volume at the time. We recommend that you retry the request. For
  13233. // more information on volume status, see Monitoring the Status of Your Volumes
  13234. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-volume-status.html).
  13235. //
  13236. // Events: Reflect the cause of a volume status and may require you to take
  13237. // action. For example, if your volume returns an impaired status, then the
  13238. // volume event might be potential-data-inconsistency. This means that your
  13239. // volume has been affected by an issue with the underlying host, has all I/O
  13240. // operations disabled, and may have inconsistent data.
  13241. //
  13242. // Actions: Reflect the actions you may have to take in response to an event.
  13243. // For example, if the status of the volume is impaired and the volume event
  13244. // shows potential-data-inconsistency, then the action shows enable-volume-io.
  13245. // This means that you may want to enable the I/O operations for the volume
  13246. // by calling the EnableVolumeIO action and then check the volume for data consistency.
  13247. //
  13248. // Volume status is based on the volume status checks, and does not reflect
  13249. // the volume state. Therefore, volume status does not indicate volumes in the
  13250. // error state (for example, when a volume is incapable of accepting I/O.)
  13251. //
  13252. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13253. // with awserr.Error's Code and Message methods to get detailed information about
  13254. // the error.
  13255. //
  13256. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13257. // API operation DescribeVolumeStatus for usage and error information.
  13258. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumeStatus
  13259. func (c *EC2) DescribeVolumeStatus(input *DescribeVolumeStatusInput) (*DescribeVolumeStatusOutput, error) {
  13260. req, out := c.DescribeVolumeStatusRequest(input)
  13261. return out, req.Send()
  13262. }
  13263. // DescribeVolumeStatusWithContext is the same as DescribeVolumeStatus with the addition of
  13264. // the ability to pass a context and additional request options.
  13265. //
  13266. // See DescribeVolumeStatus for details on how to use this API operation.
  13267. //
  13268. // The context must be non-nil and will be used for request cancellation. If
  13269. // the context is nil a panic will occur. In the future the SDK may create
  13270. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13271. // for more information on using Contexts.
  13272. func (c *EC2) DescribeVolumeStatusWithContext(ctx aws.Context, input *DescribeVolumeStatusInput, opts ...request.Option) (*DescribeVolumeStatusOutput, error) {
  13273. req, out := c.DescribeVolumeStatusRequest(input)
  13274. req.SetContext(ctx)
  13275. req.ApplyOptions(opts...)
  13276. return out, req.Send()
  13277. }
  13278. // DescribeVolumeStatusPages iterates over the pages of a DescribeVolumeStatus operation,
  13279. // calling the "fn" function with the response data for each page. To stop
  13280. // iterating, return false from the fn function.
  13281. //
  13282. // See DescribeVolumeStatus method for more information on how to use this operation.
  13283. //
  13284. // Note: This operation can generate multiple requests to a service.
  13285. //
  13286. // // Example iterating over at most 3 pages of a DescribeVolumeStatus operation.
  13287. // pageNum := 0
  13288. // err := client.DescribeVolumeStatusPages(params,
  13289. // func(page *DescribeVolumeStatusOutput, lastPage bool) bool {
  13290. // pageNum++
  13291. // fmt.Println(page)
  13292. // return pageNum <= 3
  13293. // })
  13294. //
  13295. func (c *EC2) DescribeVolumeStatusPages(input *DescribeVolumeStatusInput, fn func(*DescribeVolumeStatusOutput, bool) bool) error {
  13296. return c.DescribeVolumeStatusPagesWithContext(aws.BackgroundContext(), input, fn)
  13297. }
  13298. // DescribeVolumeStatusPagesWithContext same as DescribeVolumeStatusPages except
  13299. // it takes a Context and allows setting request options on the pages.
  13300. //
  13301. // The context must be non-nil and will be used for request cancellation. If
  13302. // the context is nil a panic will occur. In the future the SDK may create
  13303. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13304. // for more information on using Contexts.
  13305. func (c *EC2) DescribeVolumeStatusPagesWithContext(ctx aws.Context, input *DescribeVolumeStatusInput, fn func(*DescribeVolumeStatusOutput, bool) bool, opts ...request.Option) error {
  13306. p := request.Pagination{
  13307. NewRequest: func() (*request.Request, error) {
  13308. var inCpy *DescribeVolumeStatusInput
  13309. if input != nil {
  13310. tmp := *input
  13311. inCpy = &tmp
  13312. }
  13313. req, _ := c.DescribeVolumeStatusRequest(inCpy)
  13314. req.SetContext(ctx)
  13315. req.ApplyOptions(opts...)
  13316. return req, nil
  13317. },
  13318. }
  13319. cont := true
  13320. for p.Next() && cont {
  13321. cont = fn(p.Page().(*DescribeVolumeStatusOutput), !p.HasNextPage())
  13322. }
  13323. return p.Err()
  13324. }
  13325. const opDescribeVolumes = "DescribeVolumes"
  13326. // DescribeVolumesRequest generates a "aws/request.Request" representing the
  13327. // client's request for the DescribeVolumes operation. The "output" return
  13328. // value will be populated with the request's response once the request completes
  13329. // successfuly.
  13330. //
  13331. // Use "Send" method on the returned Request to send the API call to the service.
  13332. // the "output" return value is not valid until after Send returns without error.
  13333. //
  13334. // See DescribeVolumes for more information on using the DescribeVolumes
  13335. // API call, and error handling.
  13336. //
  13337. // This method is useful when you want to inject custom logic or configuration
  13338. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  13339. //
  13340. //
  13341. // // Example sending a request using the DescribeVolumesRequest method.
  13342. // req, resp := client.DescribeVolumesRequest(params)
  13343. //
  13344. // err := req.Send()
  13345. // if err == nil { // resp is now filled
  13346. // fmt.Println(resp)
  13347. // }
  13348. //
  13349. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumes
  13350. func (c *EC2) DescribeVolumesRequest(input *DescribeVolumesInput) (req *request.Request, output *DescribeVolumesOutput) {
  13351. op := &request.Operation{
  13352. Name: opDescribeVolumes,
  13353. HTTPMethod: "POST",
  13354. HTTPPath: "/",
  13355. Paginator: &request.Paginator{
  13356. InputTokens: []string{"NextToken"},
  13357. OutputTokens: []string{"NextToken"},
  13358. LimitToken: "MaxResults",
  13359. TruncationToken: "",
  13360. },
  13361. }
  13362. if input == nil {
  13363. input = &DescribeVolumesInput{}
  13364. }
  13365. output = &DescribeVolumesOutput{}
  13366. req = c.newRequest(op, input, output)
  13367. return
  13368. }
  13369. // DescribeVolumes API operation for Amazon Elastic Compute Cloud.
  13370. //
  13371. // Describes the specified EBS volumes.
  13372. //
  13373. // If you are describing a long list of volumes, you can paginate the output
  13374. // to make the list more manageable. The MaxResults parameter sets the maximum
  13375. // number of results returned in a single page. If the list of results exceeds
  13376. // your MaxResults value, then that number of results is returned along with
  13377. // a NextToken value that can be passed to a subsequent DescribeVolumes request
  13378. // to retrieve the remaining results.
  13379. //
  13380. // For more information about EBS volumes, see Amazon EBS Volumes (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumes.html)
  13381. // in the Amazon Elastic Compute Cloud User Guide.
  13382. //
  13383. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13384. // with awserr.Error's Code and Message methods to get detailed information about
  13385. // the error.
  13386. //
  13387. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13388. // API operation DescribeVolumes for usage and error information.
  13389. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumes
  13390. func (c *EC2) DescribeVolumes(input *DescribeVolumesInput) (*DescribeVolumesOutput, error) {
  13391. req, out := c.DescribeVolumesRequest(input)
  13392. return out, req.Send()
  13393. }
  13394. // DescribeVolumesWithContext is the same as DescribeVolumes with the addition of
  13395. // the ability to pass a context and additional request options.
  13396. //
  13397. // See DescribeVolumes for details on how to use this API operation.
  13398. //
  13399. // The context must be non-nil and will be used for request cancellation. If
  13400. // the context is nil a panic will occur. In the future the SDK may create
  13401. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13402. // for more information on using Contexts.
  13403. func (c *EC2) DescribeVolumesWithContext(ctx aws.Context, input *DescribeVolumesInput, opts ...request.Option) (*DescribeVolumesOutput, error) {
  13404. req, out := c.DescribeVolumesRequest(input)
  13405. req.SetContext(ctx)
  13406. req.ApplyOptions(opts...)
  13407. return out, req.Send()
  13408. }
  13409. // DescribeVolumesPages iterates over the pages of a DescribeVolumes operation,
  13410. // calling the "fn" function with the response data for each page. To stop
  13411. // iterating, return false from the fn function.
  13412. //
  13413. // See DescribeVolumes method for more information on how to use this operation.
  13414. //
  13415. // Note: This operation can generate multiple requests to a service.
  13416. //
  13417. // // Example iterating over at most 3 pages of a DescribeVolumes operation.
  13418. // pageNum := 0
  13419. // err := client.DescribeVolumesPages(params,
  13420. // func(page *DescribeVolumesOutput, lastPage bool) bool {
  13421. // pageNum++
  13422. // fmt.Println(page)
  13423. // return pageNum <= 3
  13424. // })
  13425. //
  13426. func (c *EC2) DescribeVolumesPages(input *DescribeVolumesInput, fn func(*DescribeVolumesOutput, bool) bool) error {
  13427. return c.DescribeVolumesPagesWithContext(aws.BackgroundContext(), input, fn)
  13428. }
  13429. // DescribeVolumesPagesWithContext same as DescribeVolumesPages except
  13430. // it takes a Context and allows setting request options on the pages.
  13431. //
  13432. // The context must be non-nil and will be used for request cancellation. If
  13433. // the context is nil a panic will occur. In the future the SDK may create
  13434. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13435. // for more information on using Contexts.
  13436. func (c *EC2) DescribeVolumesPagesWithContext(ctx aws.Context, input *DescribeVolumesInput, fn func(*DescribeVolumesOutput, bool) bool, opts ...request.Option) error {
  13437. p := request.Pagination{
  13438. NewRequest: func() (*request.Request, error) {
  13439. var inCpy *DescribeVolumesInput
  13440. if input != nil {
  13441. tmp := *input
  13442. inCpy = &tmp
  13443. }
  13444. req, _ := c.DescribeVolumesRequest(inCpy)
  13445. req.SetContext(ctx)
  13446. req.ApplyOptions(opts...)
  13447. return req, nil
  13448. },
  13449. }
  13450. cont := true
  13451. for p.Next() && cont {
  13452. cont = fn(p.Page().(*DescribeVolumesOutput), !p.HasNextPage())
  13453. }
  13454. return p.Err()
  13455. }
  13456. const opDescribeVolumesModifications = "DescribeVolumesModifications"
  13457. // DescribeVolumesModificationsRequest generates a "aws/request.Request" representing the
  13458. // client's request for the DescribeVolumesModifications operation. The "output" return
  13459. // value will be populated with the request's response once the request completes
  13460. // successfuly.
  13461. //
  13462. // Use "Send" method on the returned Request to send the API call to the service.
  13463. // the "output" return value is not valid until after Send returns without error.
  13464. //
  13465. // See DescribeVolumesModifications for more information on using the DescribeVolumesModifications
  13466. // API call, and error handling.
  13467. //
  13468. // This method is useful when you want to inject custom logic or configuration
  13469. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  13470. //
  13471. //
  13472. // // Example sending a request using the DescribeVolumesModificationsRequest method.
  13473. // req, resp := client.DescribeVolumesModificationsRequest(params)
  13474. //
  13475. // err := req.Send()
  13476. // if err == nil { // resp is now filled
  13477. // fmt.Println(resp)
  13478. // }
  13479. //
  13480. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumesModifications
  13481. func (c *EC2) DescribeVolumesModificationsRequest(input *DescribeVolumesModificationsInput) (req *request.Request, output *DescribeVolumesModificationsOutput) {
  13482. op := &request.Operation{
  13483. Name: opDescribeVolumesModifications,
  13484. HTTPMethod: "POST",
  13485. HTTPPath: "/",
  13486. }
  13487. if input == nil {
  13488. input = &DescribeVolumesModificationsInput{}
  13489. }
  13490. output = &DescribeVolumesModificationsOutput{}
  13491. req = c.newRequest(op, input, output)
  13492. return
  13493. }
  13494. // DescribeVolumesModifications API operation for Amazon Elastic Compute Cloud.
  13495. //
  13496. // Reports the current modification status of EBS volumes.
  13497. //
  13498. // Current-generation EBS volumes support modification of attributes including
  13499. // type, size, and (for io1 volumes) IOPS provisioning while either attached
  13500. // to or detached from an instance. Following an action from the API or the
  13501. // console to modify a volume, the status of the modification may be modifying,
  13502. // optimizing, completed, or failed. If a volume has never been modified, then
  13503. // certain elements of the returned VolumeModification objects are null.
  13504. //
  13505. // You can also use CloudWatch Events to check the status of a modification
  13506. // to an EBS volume. For information about CloudWatch Events, see the Amazon
  13507. // CloudWatch Events User Guide (http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/).
  13508. // For more information, see Monitoring Volume Modifications" (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html#monitoring_mods).
  13509. //
  13510. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13511. // with awserr.Error's Code and Message methods to get detailed information about
  13512. // the error.
  13513. //
  13514. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13515. // API operation DescribeVolumesModifications for usage and error information.
  13516. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumesModifications
  13517. func (c *EC2) DescribeVolumesModifications(input *DescribeVolumesModificationsInput) (*DescribeVolumesModificationsOutput, error) {
  13518. req, out := c.DescribeVolumesModificationsRequest(input)
  13519. return out, req.Send()
  13520. }
  13521. // DescribeVolumesModificationsWithContext is the same as DescribeVolumesModifications with the addition of
  13522. // the ability to pass a context and additional request options.
  13523. //
  13524. // See DescribeVolumesModifications for details on how to use this API operation.
  13525. //
  13526. // The context must be non-nil and will be used for request cancellation. If
  13527. // the context is nil a panic will occur. In the future the SDK may create
  13528. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13529. // for more information on using Contexts.
  13530. func (c *EC2) DescribeVolumesModificationsWithContext(ctx aws.Context, input *DescribeVolumesModificationsInput, opts ...request.Option) (*DescribeVolumesModificationsOutput, error) {
  13531. req, out := c.DescribeVolumesModificationsRequest(input)
  13532. req.SetContext(ctx)
  13533. req.ApplyOptions(opts...)
  13534. return out, req.Send()
  13535. }
  13536. const opDescribeVpcAttribute = "DescribeVpcAttribute"
  13537. // DescribeVpcAttributeRequest generates a "aws/request.Request" representing the
  13538. // client's request for the DescribeVpcAttribute operation. The "output" return
  13539. // value will be populated with the request's response once the request completes
  13540. // successfuly.
  13541. //
  13542. // Use "Send" method on the returned Request to send the API call to the service.
  13543. // the "output" return value is not valid until after Send returns without error.
  13544. //
  13545. // See DescribeVpcAttribute for more information on using the DescribeVpcAttribute
  13546. // API call, and error handling.
  13547. //
  13548. // This method is useful when you want to inject custom logic or configuration
  13549. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  13550. //
  13551. //
  13552. // // Example sending a request using the DescribeVpcAttributeRequest method.
  13553. // req, resp := client.DescribeVpcAttributeRequest(params)
  13554. //
  13555. // err := req.Send()
  13556. // if err == nil { // resp is now filled
  13557. // fmt.Println(resp)
  13558. // }
  13559. //
  13560. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcAttribute
  13561. func (c *EC2) DescribeVpcAttributeRequest(input *DescribeVpcAttributeInput) (req *request.Request, output *DescribeVpcAttributeOutput) {
  13562. op := &request.Operation{
  13563. Name: opDescribeVpcAttribute,
  13564. HTTPMethod: "POST",
  13565. HTTPPath: "/",
  13566. }
  13567. if input == nil {
  13568. input = &DescribeVpcAttributeInput{}
  13569. }
  13570. output = &DescribeVpcAttributeOutput{}
  13571. req = c.newRequest(op, input, output)
  13572. return
  13573. }
  13574. // DescribeVpcAttribute API operation for Amazon Elastic Compute Cloud.
  13575. //
  13576. // Describes the specified attribute of the specified VPC. You can specify only
  13577. // one attribute at a time.
  13578. //
  13579. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13580. // with awserr.Error's Code and Message methods to get detailed information about
  13581. // the error.
  13582. //
  13583. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13584. // API operation DescribeVpcAttribute for usage and error information.
  13585. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcAttribute
  13586. func (c *EC2) DescribeVpcAttribute(input *DescribeVpcAttributeInput) (*DescribeVpcAttributeOutput, error) {
  13587. req, out := c.DescribeVpcAttributeRequest(input)
  13588. return out, req.Send()
  13589. }
  13590. // DescribeVpcAttributeWithContext is the same as DescribeVpcAttribute with the addition of
  13591. // the ability to pass a context and additional request options.
  13592. //
  13593. // See DescribeVpcAttribute for details on how to use this API operation.
  13594. //
  13595. // The context must be non-nil and will be used for request cancellation. If
  13596. // the context is nil a panic will occur. In the future the SDK may create
  13597. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13598. // for more information on using Contexts.
  13599. func (c *EC2) DescribeVpcAttributeWithContext(ctx aws.Context, input *DescribeVpcAttributeInput, opts ...request.Option) (*DescribeVpcAttributeOutput, error) {
  13600. req, out := c.DescribeVpcAttributeRequest(input)
  13601. req.SetContext(ctx)
  13602. req.ApplyOptions(opts...)
  13603. return out, req.Send()
  13604. }
  13605. const opDescribeVpcClassicLink = "DescribeVpcClassicLink"
  13606. // DescribeVpcClassicLinkRequest generates a "aws/request.Request" representing the
  13607. // client's request for the DescribeVpcClassicLink operation. The "output" return
  13608. // value will be populated with the request's response once the request completes
  13609. // successfuly.
  13610. //
  13611. // Use "Send" method on the returned Request to send the API call to the service.
  13612. // the "output" return value is not valid until after Send returns without error.
  13613. //
  13614. // See DescribeVpcClassicLink for more information on using the DescribeVpcClassicLink
  13615. // API call, and error handling.
  13616. //
  13617. // This method is useful when you want to inject custom logic or configuration
  13618. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  13619. //
  13620. //
  13621. // // Example sending a request using the DescribeVpcClassicLinkRequest method.
  13622. // req, resp := client.DescribeVpcClassicLinkRequest(params)
  13623. //
  13624. // err := req.Send()
  13625. // if err == nil { // resp is now filled
  13626. // fmt.Println(resp)
  13627. // }
  13628. //
  13629. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcClassicLink
  13630. func (c *EC2) DescribeVpcClassicLinkRequest(input *DescribeVpcClassicLinkInput) (req *request.Request, output *DescribeVpcClassicLinkOutput) {
  13631. op := &request.Operation{
  13632. Name: opDescribeVpcClassicLink,
  13633. HTTPMethod: "POST",
  13634. HTTPPath: "/",
  13635. }
  13636. if input == nil {
  13637. input = &DescribeVpcClassicLinkInput{}
  13638. }
  13639. output = &DescribeVpcClassicLinkOutput{}
  13640. req = c.newRequest(op, input, output)
  13641. return
  13642. }
  13643. // DescribeVpcClassicLink API operation for Amazon Elastic Compute Cloud.
  13644. //
  13645. // Describes the ClassicLink status of one or more VPCs.
  13646. //
  13647. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13648. // with awserr.Error's Code and Message methods to get detailed information about
  13649. // the error.
  13650. //
  13651. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13652. // API operation DescribeVpcClassicLink for usage and error information.
  13653. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcClassicLink
  13654. func (c *EC2) DescribeVpcClassicLink(input *DescribeVpcClassicLinkInput) (*DescribeVpcClassicLinkOutput, error) {
  13655. req, out := c.DescribeVpcClassicLinkRequest(input)
  13656. return out, req.Send()
  13657. }
  13658. // DescribeVpcClassicLinkWithContext is the same as DescribeVpcClassicLink with the addition of
  13659. // the ability to pass a context and additional request options.
  13660. //
  13661. // See DescribeVpcClassicLink for details on how to use this API operation.
  13662. //
  13663. // The context must be non-nil and will be used for request cancellation. If
  13664. // the context is nil a panic will occur. In the future the SDK may create
  13665. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13666. // for more information on using Contexts.
  13667. func (c *EC2) DescribeVpcClassicLinkWithContext(ctx aws.Context, input *DescribeVpcClassicLinkInput, opts ...request.Option) (*DescribeVpcClassicLinkOutput, error) {
  13668. req, out := c.DescribeVpcClassicLinkRequest(input)
  13669. req.SetContext(ctx)
  13670. req.ApplyOptions(opts...)
  13671. return out, req.Send()
  13672. }
  13673. const opDescribeVpcClassicLinkDnsSupport = "DescribeVpcClassicLinkDnsSupport"
  13674. // DescribeVpcClassicLinkDnsSupportRequest generates a "aws/request.Request" representing the
  13675. // client's request for the DescribeVpcClassicLinkDnsSupport operation. The "output" return
  13676. // value will be populated with the request's response once the request completes
  13677. // successfuly.
  13678. //
  13679. // Use "Send" method on the returned Request to send the API call to the service.
  13680. // the "output" return value is not valid until after Send returns without error.
  13681. //
  13682. // See DescribeVpcClassicLinkDnsSupport for more information on using the DescribeVpcClassicLinkDnsSupport
  13683. // API call, and error handling.
  13684. //
  13685. // This method is useful when you want to inject custom logic or configuration
  13686. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  13687. //
  13688. //
  13689. // // Example sending a request using the DescribeVpcClassicLinkDnsSupportRequest method.
  13690. // req, resp := client.DescribeVpcClassicLinkDnsSupportRequest(params)
  13691. //
  13692. // err := req.Send()
  13693. // if err == nil { // resp is now filled
  13694. // fmt.Println(resp)
  13695. // }
  13696. //
  13697. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcClassicLinkDnsSupport
  13698. func (c *EC2) DescribeVpcClassicLinkDnsSupportRequest(input *DescribeVpcClassicLinkDnsSupportInput) (req *request.Request, output *DescribeVpcClassicLinkDnsSupportOutput) {
  13699. op := &request.Operation{
  13700. Name: opDescribeVpcClassicLinkDnsSupport,
  13701. HTTPMethod: "POST",
  13702. HTTPPath: "/",
  13703. }
  13704. if input == nil {
  13705. input = &DescribeVpcClassicLinkDnsSupportInput{}
  13706. }
  13707. output = &DescribeVpcClassicLinkDnsSupportOutput{}
  13708. req = c.newRequest(op, input, output)
  13709. return
  13710. }
  13711. // DescribeVpcClassicLinkDnsSupport API operation for Amazon Elastic Compute Cloud.
  13712. //
  13713. // Describes the ClassicLink DNS support status of one or more VPCs. If enabled,
  13714. // the DNS hostname of a linked EC2-Classic instance resolves to its private
  13715. // IP address when addressed from an instance in the VPC to which it's linked.
  13716. // Similarly, the DNS hostname of an instance in a VPC resolves to its private
  13717. // IP address when addressed from a linked EC2-Classic instance. For more information,
  13718. // see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html)
  13719. // in the Amazon Elastic Compute Cloud User Guide.
  13720. //
  13721. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13722. // with awserr.Error's Code and Message methods to get detailed information about
  13723. // the error.
  13724. //
  13725. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13726. // API operation DescribeVpcClassicLinkDnsSupport for usage and error information.
  13727. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcClassicLinkDnsSupport
  13728. func (c *EC2) DescribeVpcClassicLinkDnsSupport(input *DescribeVpcClassicLinkDnsSupportInput) (*DescribeVpcClassicLinkDnsSupportOutput, error) {
  13729. req, out := c.DescribeVpcClassicLinkDnsSupportRequest(input)
  13730. return out, req.Send()
  13731. }
  13732. // DescribeVpcClassicLinkDnsSupportWithContext is the same as DescribeVpcClassicLinkDnsSupport with the addition of
  13733. // the ability to pass a context and additional request options.
  13734. //
  13735. // See DescribeVpcClassicLinkDnsSupport for details on how to use this API operation.
  13736. //
  13737. // The context must be non-nil and will be used for request cancellation. If
  13738. // the context is nil a panic will occur. In the future the SDK may create
  13739. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13740. // for more information on using Contexts.
  13741. func (c *EC2) DescribeVpcClassicLinkDnsSupportWithContext(ctx aws.Context, input *DescribeVpcClassicLinkDnsSupportInput, opts ...request.Option) (*DescribeVpcClassicLinkDnsSupportOutput, error) {
  13742. req, out := c.DescribeVpcClassicLinkDnsSupportRequest(input)
  13743. req.SetContext(ctx)
  13744. req.ApplyOptions(opts...)
  13745. return out, req.Send()
  13746. }
  13747. const opDescribeVpcEndpointConnectionNotifications = "DescribeVpcEndpointConnectionNotifications"
  13748. // DescribeVpcEndpointConnectionNotificationsRequest generates a "aws/request.Request" representing the
  13749. // client's request for the DescribeVpcEndpointConnectionNotifications operation. The "output" return
  13750. // value will be populated with the request's response once the request completes
  13751. // successfuly.
  13752. //
  13753. // Use "Send" method on the returned Request to send the API call to the service.
  13754. // the "output" return value is not valid until after Send returns without error.
  13755. //
  13756. // See DescribeVpcEndpointConnectionNotifications for more information on using the DescribeVpcEndpointConnectionNotifications
  13757. // API call, and error handling.
  13758. //
  13759. // This method is useful when you want to inject custom logic or configuration
  13760. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  13761. //
  13762. //
  13763. // // Example sending a request using the DescribeVpcEndpointConnectionNotificationsRequest method.
  13764. // req, resp := client.DescribeVpcEndpointConnectionNotificationsRequest(params)
  13765. //
  13766. // err := req.Send()
  13767. // if err == nil { // resp is now filled
  13768. // fmt.Println(resp)
  13769. // }
  13770. //
  13771. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointConnectionNotifications
  13772. func (c *EC2) DescribeVpcEndpointConnectionNotificationsRequest(input *DescribeVpcEndpointConnectionNotificationsInput) (req *request.Request, output *DescribeVpcEndpointConnectionNotificationsOutput) {
  13773. op := &request.Operation{
  13774. Name: opDescribeVpcEndpointConnectionNotifications,
  13775. HTTPMethod: "POST",
  13776. HTTPPath: "/",
  13777. }
  13778. if input == nil {
  13779. input = &DescribeVpcEndpointConnectionNotificationsInput{}
  13780. }
  13781. output = &DescribeVpcEndpointConnectionNotificationsOutput{}
  13782. req = c.newRequest(op, input, output)
  13783. return
  13784. }
  13785. // DescribeVpcEndpointConnectionNotifications API operation for Amazon Elastic Compute Cloud.
  13786. //
  13787. // Describes the connection notifications for VPC endpoints and VPC endpoint
  13788. // services.
  13789. //
  13790. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13791. // with awserr.Error's Code and Message methods to get detailed information about
  13792. // the error.
  13793. //
  13794. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13795. // API operation DescribeVpcEndpointConnectionNotifications for usage and error information.
  13796. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointConnectionNotifications
  13797. func (c *EC2) DescribeVpcEndpointConnectionNotifications(input *DescribeVpcEndpointConnectionNotificationsInput) (*DescribeVpcEndpointConnectionNotificationsOutput, error) {
  13798. req, out := c.DescribeVpcEndpointConnectionNotificationsRequest(input)
  13799. return out, req.Send()
  13800. }
  13801. // DescribeVpcEndpointConnectionNotificationsWithContext is the same as DescribeVpcEndpointConnectionNotifications with the addition of
  13802. // the ability to pass a context and additional request options.
  13803. //
  13804. // See DescribeVpcEndpointConnectionNotifications for details on how to use this API operation.
  13805. //
  13806. // The context must be non-nil and will be used for request cancellation. If
  13807. // the context is nil a panic will occur. In the future the SDK may create
  13808. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13809. // for more information on using Contexts.
  13810. func (c *EC2) DescribeVpcEndpointConnectionNotificationsWithContext(ctx aws.Context, input *DescribeVpcEndpointConnectionNotificationsInput, opts ...request.Option) (*DescribeVpcEndpointConnectionNotificationsOutput, error) {
  13811. req, out := c.DescribeVpcEndpointConnectionNotificationsRequest(input)
  13812. req.SetContext(ctx)
  13813. req.ApplyOptions(opts...)
  13814. return out, req.Send()
  13815. }
  13816. const opDescribeVpcEndpointConnections = "DescribeVpcEndpointConnections"
  13817. // DescribeVpcEndpointConnectionsRequest generates a "aws/request.Request" representing the
  13818. // client's request for the DescribeVpcEndpointConnections operation. The "output" return
  13819. // value will be populated with the request's response once the request completes
  13820. // successfuly.
  13821. //
  13822. // Use "Send" method on the returned Request to send the API call to the service.
  13823. // the "output" return value is not valid until after Send returns without error.
  13824. //
  13825. // See DescribeVpcEndpointConnections for more information on using the DescribeVpcEndpointConnections
  13826. // API call, and error handling.
  13827. //
  13828. // This method is useful when you want to inject custom logic or configuration
  13829. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  13830. //
  13831. //
  13832. // // Example sending a request using the DescribeVpcEndpointConnectionsRequest method.
  13833. // req, resp := client.DescribeVpcEndpointConnectionsRequest(params)
  13834. //
  13835. // err := req.Send()
  13836. // if err == nil { // resp is now filled
  13837. // fmt.Println(resp)
  13838. // }
  13839. //
  13840. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointConnections
  13841. func (c *EC2) DescribeVpcEndpointConnectionsRequest(input *DescribeVpcEndpointConnectionsInput) (req *request.Request, output *DescribeVpcEndpointConnectionsOutput) {
  13842. op := &request.Operation{
  13843. Name: opDescribeVpcEndpointConnections,
  13844. HTTPMethod: "POST",
  13845. HTTPPath: "/",
  13846. }
  13847. if input == nil {
  13848. input = &DescribeVpcEndpointConnectionsInput{}
  13849. }
  13850. output = &DescribeVpcEndpointConnectionsOutput{}
  13851. req = c.newRequest(op, input, output)
  13852. return
  13853. }
  13854. // DescribeVpcEndpointConnections API operation for Amazon Elastic Compute Cloud.
  13855. //
  13856. // Describes the VPC endpoint connections to your VPC endpoint services, including
  13857. // any endpoints that are pending your acceptance.
  13858. //
  13859. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13860. // with awserr.Error's Code and Message methods to get detailed information about
  13861. // the error.
  13862. //
  13863. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13864. // API operation DescribeVpcEndpointConnections for usage and error information.
  13865. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointConnections
  13866. func (c *EC2) DescribeVpcEndpointConnections(input *DescribeVpcEndpointConnectionsInput) (*DescribeVpcEndpointConnectionsOutput, error) {
  13867. req, out := c.DescribeVpcEndpointConnectionsRequest(input)
  13868. return out, req.Send()
  13869. }
  13870. // DescribeVpcEndpointConnectionsWithContext is the same as DescribeVpcEndpointConnections with the addition of
  13871. // the ability to pass a context and additional request options.
  13872. //
  13873. // See DescribeVpcEndpointConnections for details on how to use this API operation.
  13874. //
  13875. // The context must be non-nil and will be used for request cancellation. If
  13876. // the context is nil a panic will occur. In the future the SDK may create
  13877. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13878. // for more information on using Contexts.
  13879. func (c *EC2) DescribeVpcEndpointConnectionsWithContext(ctx aws.Context, input *DescribeVpcEndpointConnectionsInput, opts ...request.Option) (*DescribeVpcEndpointConnectionsOutput, error) {
  13880. req, out := c.DescribeVpcEndpointConnectionsRequest(input)
  13881. req.SetContext(ctx)
  13882. req.ApplyOptions(opts...)
  13883. return out, req.Send()
  13884. }
  13885. const opDescribeVpcEndpointServiceConfigurations = "DescribeVpcEndpointServiceConfigurations"
  13886. // DescribeVpcEndpointServiceConfigurationsRequest generates a "aws/request.Request" representing the
  13887. // client's request for the DescribeVpcEndpointServiceConfigurations operation. The "output" return
  13888. // value will be populated with the request's response once the request completes
  13889. // successfuly.
  13890. //
  13891. // Use "Send" method on the returned Request to send the API call to the service.
  13892. // the "output" return value is not valid until after Send returns without error.
  13893. //
  13894. // See DescribeVpcEndpointServiceConfigurations for more information on using the DescribeVpcEndpointServiceConfigurations
  13895. // API call, and error handling.
  13896. //
  13897. // This method is useful when you want to inject custom logic or configuration
  13898. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  13899. //
  13900. //
  13901. // // Example sending a request using the DescribeVpcEndpointServiceConfigurationsRequest method.
  13902. // req, resp := client.DescribeVpcEndpointServiceConfigurationsRequest(params)
  13903. //
  13904. // err := req.Send()
  13905. // if err == nil { // resp is now filled
  13906. // fmt.Println(resp)
  13907. // }
  13908. //
  13909. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServiceConfigurations
  13910. func (c *EC2) DescribeVpcEndpointServiceConfigurationsRequest(input *DescribeVpcEndpointServiceConfigurationsInput) (req *request.Request, output *DescribeVpcEndpointServiceConfigurationsOutput) {
  13911. op := &request.Operation{
  13912. Name: opDescribeVpcEndpointServiceConfigurations,
  13913. HTTPMethod: "POST",
  13914. HTTPPath: "/",
  13915. }
  13916. if input == nil {
  13917. input = &DescribeVpcEndpointServiceConfigurationsInput{}
  13918. }
  13919. output = &DescribeVpcEndpointServiceConfigurationsOutput{}
  13920. req = c.newRequest(op, input, output)
  13921. return
  13922. }
  13923. // DescribeVpcEndpointServiceConfigurations API operation for Amazon Elastic Compute Cloud.
  13924. //
  13925. // Describes the VPC endpoint service configurations in your account (your services).
  13926. //
  13927. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13928. // with awserr.Error's Code and Message methods to get detailed information about
  13929. // the error.
  13930. //
  13931. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13932. // API operation DescribeVpcEndpointServiceConfigurations for usage and error information.
  13933. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServiceConfigurations
  13934. func (c *EC2) DescribeVpcEndpointServiceConfigurations(input *DescribeVpcEndpointServiceConfigurationsInput) (*DescribeVpcEndpointServiceConfigurationsOutput, error) {
  13935. req, out := c.DescribeVpcEndpointServiceConfigurationsRequest(input)
  13936. return out, req.Send()
  13937. }
  13938. // DescribeVpcEndpointServiceConfigurationsWithContext is the same as DescribeVpcEndpointServiceConfigurations with the addition of
  13939. // the ability to pass a context and additional request options.
  13940. //
  13941. // See DescribeVpcEndpointServiceConfigurations for details on how to use this API operation.
  13942. //
  13943. // The context must be non-nil and will be used for request cancellation. If
  13944. // the context is nil a panic will occur. In the future the SDK may create
  13945. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13946. // for more information on using Contexts.
  13947. func (c *EC2) DescribeVpcEndpointServiceConfigurationsWithContext(ctx aws.Context, input *DescribeVpcEndpointServiceConfigurationsInput, opts ...request.Option) (*DescribeVpcEndpointServiceConfigurationsOutput, error) {
  13948. req, out := c.DescribeVpcEndpointServiceConfigurationsRequest(input)
  13949. req.SetContext(ctx)
  13950. req.ApplyOptions(opts...)
  13951. return out, req.Send()
  13952. }
  13953. const opDescribeVpcEndpointServicePermissions = "DescribeVpcEndpointServicePermissions"
  13954. // DescribeVpcEndpointServicePermissionsRequest generates a "aws/request.Request" representing the
  13955. // client's request for the DescribeVpcEndpointServicePermissions operation. The "output" return
  13956. // value will be populated with the request's response once the request completes
  13957. // successfuly.
  13958. //
  13959. // Use "Send" method on the returned Request to send the API call to the service.
  13960. // the "output" return value is not valid until after Send returns without error.
  13961. //
  13962. // See DescribeVpcEndpointServicePermissions for more information on using the DescribeVpcEndpointServicePermissions
  13963. // API call, and error handling.
  13964. //
  13965. // This method is useful when you want to inject custom logic or configuration
  13966. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  13967. //
  13968. //
  13969. // // Example sending a request using the DescribeVpcEndpointServicePermissionsRequest method.
  13970. // req, resp := client.DescribeVpcEndpointServicePermissionsRequest(params)
  13971. //
  13972. // err := req.Send()
  13973. // if err == nil { // resp is now filled
  13974. // fmt.Println(resp)
  13975. // }
  13976. //
  13977. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServicePermissions
  13978. func (c *EC2) DescribeVpcEndpointServicePermissionsRequest(input *DescribeVpcEndpointServicePermissionsInput) (req *request.Request, output *DescribeVpcEndpointServicePermissionsOutput) {
  13979. op := &request.Operation{
  13980. Name: opDescribeVpcEndpointServicePermissions,
  13981. HTTPMethod: "POST",
  13982. HTTPPath: "/",
  13983. }
  13984. if input == nil {
  13985. input = &DescribeVpcEndpointServicePermissionsInput{}
  13986. }
  13987. output = &DescribeVpcEndpointServicePermissionsOutput{}
  13988. req = c.newRequest(op, input, output)
  13989. return
  13990. }
  13991. // DescribeVpcEndpointServicePermissions API operation for Amazon Elastic Compute Cloud.
  13992. //
  13993. // Describes the principals (service consumers) that are permitted to discover
  13994. // your VPC endpoint service.
  13995. //
  13996. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13997. // with awserr.Error's Code and Message methods to get detailed information about
  13998. // the error.
  13999. //
  14000. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14001. // API operation DescribeVpcEndpointServicePermissions for usage and error information.
  14002. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServicePermissions
  14003. func (c *EC2) DescribeVpcEndpointServicePermissions(input *DescribeVpcEndpointServicePermissionsInput) (*DescribeVpcEndpointServicePermissionsOutput, error) {
  14004. req, out := c.DescribeVpcEndpointServicePermissionsRequest(input)
  14005. return out, req.Send()
  14006. }
  14007. // DescribeVpcEndpointServicePermissionsWithContext is the same as DescribeVpcEndpointServicePermissions with the addition of
  14008. // the ability to pass a context and additional request options.
  14009. //
  14010. // See DescribeVpcEndpointServicePermissions for details on how to use this API operation.
  14011. //
  14012. // The context must be non-nil and will be used for request cancellation. If
  14013. // the context is nil a panic will occur. In the future the SDK may create
  14014. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14015. // for more information on using Contexts.
  14016. func (c *EC2) DescribeVpcEndpointServicePermissionsWithContext(ctx aws.Context, input *DescribeVpcEndpointServicePermissionsInput, opts ...request.Option) (*DescribeVpcEndpointServicePermissionsOutput, error) {
  14017. req, out := c.DescribeVpcEndpointServicePermissionsRequest(input)
  14018. req.SetContext(ctx)
  14019. req.ApplyOptions(opts...)
  14020. return out, req.Send()
  14021. }
  14022. const opDescribeVpcEndpointServices = "DescribeVpcEndpointServices"
  14023. // DescribeVpcEndpointServicesRequest generates a "aws/request.Request" representing the
  14024. // client's request for the DescribeVpcEndpointServices operation. The "output" return
  14025. // value will be populated with the request's response once the request completes
  14026. // successfuly.
  14027. //
  14028. // Use "Send" method on the returned Request to send the API call to the service.
  14029. // the "output" return value is not valid until after Send returns without error.
  14030. //
  14031. // See DescribeVpcEndpointServices for more information on using the DescribeVpcEndpointServices
  14032. // API call, and error handling.
  14033. //
  14034. // This method is useful when you want to inject custom logic or configuration
  14035. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  14036. //
  14037. //
  14038. // // Example sending a request using the DescribeVpcEndpointServicesRequest method.
  14039. // req, resp := client.DescribeVpcEndpointServicesRequest(params)
  14040. //
  14041. // err := req.Send()
  14042. // if err == nil { // resp is now filled
  14043. // fmt.Println(resp)
  14044. // }
  14045. //
  14046. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServices
  14047. func (c *EC2) DescribeVpcEndpointServicesRequest(input *DescribeVpcEndpointServicesInput) (req *request.Request, output *DescribeVpcEndpointServicesOutput) {
  14048. op := &request.Operation{
  14049. Name: opDescribeVpcEndpointServices,
  14050. HTTPMethod: "POST",
  14051. HTTPPath: "/",
  14052. }
  14053. if input == nil {
  14054. input = &DescribeVpcEndpointServicesInput{}
  14055. }
  14056. output = &DescribeVpcEndpointServicesOutput{}
  14057. req = c.newRequest(op, input, output)
  14058. return
  14059. }
  14060. // DescribeVpcEndpointServices API operation for Amazon Elastic Compute Cloud.
  14061. //
  14062. // Describes available services to which you can create a VPC endpoint.
  14063. //
  14064. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14065. // with awserr.Error's Code and Message methods to get detailed information about
  14066. // the error.
  14067. //
  14068. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14069. // API operation DescribeVpcEndpointServices for usage and error information.
  14070. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServices
  14071. func (c *EC2) DescribeVpcEndpointServices(input *DescribeVpcEndpointServicesInput) (*DescribeVpcEndpointServicesOutput, error) {
  14072. req, out := c.DescribeVpcEndpointServicesRequest(input)
  14073. return out, req.Send()
  14074. }
  14075. // DescribeVpcEndpointServicesWithContext is the same as DescribeVpcEndpointServices with the addition of
  14076. // the ability to pass a context and additional request options.
  14077. //
  14078. // See DescribeVpcEndpointServices for details on how to use this API operation.
  14079. //
  14080. // The context must be non-nil and will be used for request cancellation. If
  14081. // the context is nil a panic will occur. In the future the SDK may create
  14082. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14083. // for more information on using Contexts.
  14084. func (c *EC2) DescribeVpcEndpointServicesWithContext(ctx aws.Context, input *DescribeVpcEndpointServicesInput, opts ...request.Option) (*DescribeVpcEndpointServicesOutput, error) {
  14085. req, out := c.DescribeVpcEndpointServicesRequest(input)
  14086. req.SetContext(ctx)
  14087. req.ApplyOptions(opts...)
  14088. return out, req.Send()
  14089. }
  14090. const opDescribeVpcEndpoints = "DescribeVpcEndpoints"
  14091. // DescribeVpcEndpointsRequest generates a "aws/request.Request" representing the
  14092. // client's request for the DescribeVpcEndpoints operation. The "output" return
  14093. // value will be populated with the request's response once the request completes
  14094. // successfuly.
  14095. //
  14096. // Use "Send" method on the returned Request to send the API call to the service.
  14097. // the "output" return value is not valid until after Send returns without error.
  14098. //
  14099. // See DescribeVpcEndpoints for more information on using the DescribeVpcEndpoints
  14100. // API call, and error handling.
  14101. //
  14102. // This method is useful when you want to inject custom logic or configuration
  14103. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  14104. //
  14105. //
  14106. // // Example sending a request using the DescribeVpcEndpointsRequest method.
  14107. // req, resp := client.DescribeVpcEndpointsRequest(params)
  14108. //
  14109. // err := req.Send()
  14110. // if err == nil { // resp is now filled
  14111. // fmt.Println(resp)
  14112. // }
  14113. //
  14114. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpoints
  14115. func (c *EC2) DescribeVpcEndpointsRequest(input *DescribeVpcEndpointsInput) (req *request.Request, output *DescribeVpcEndpointsOutput) {
  14116. op := &request.Operation{
  14117. Name: opDescribeVpcEndpoints,
  14118. HTTPMethod: "POST",
  14119. HTTPPath: "/",
  14120. }
  14121. if input == nil {
  14122. input = &DescribeVpcEndpointsInput{}
  14123. }
  14124. output = &DescribeVpcEndpointsOutput{}
  14125. req = c.newRequest(op, input, output)
  14126. return
  14127. }
  14128. // DescribeVpcEndpoints API operation for Amazon Elastic Compute Cloud.
  14129. //
  14130. // Describes one or more of your VPC endpoints.
  14131. //
  14132. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14133. // with awserr.Error's Code and Message methods to get detailed information about
  14134. // the error.
  14135. //
  14136. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14137. // API operation DescribeVpcEndpoints for usage and error information.
  14138. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpoints
  14139. func (c *EC2) DescribeVpcEndpoints(input *DescribeVpcEndpointsInput) (*DescribeVpcEndpointsOutput, error) {
  14140. req, out := c.DescribeVpcEndpointsRequest(input)
  14141. return out, req.Send()
  14142. }
  14143. // DescribeVpcEndpointsWithContext is the same as DescribeVpcEndpoints with the addition of
  14144. // the ability to pass a context and additional request options.
  14145. //
  14146. // See DescribeVpcEndpoints for details on how to use this API operation.
  14147. //
  14148. // The context must be non-nil and will be used for request cancellation. If
  14149. // the context is nil a panic will occur. In the future the SDK may create
  14150. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14151. // for more information on using Contexts.
  14152. func (c *EC2) DescribeVpcEndpointsWithContext(ctx aws.Context, input *DescribeVpcEndpointsInput, opts ...request.Option) (*DescribeVpcEndpointsOutput, error) {
  14153. req, out := c.DescribeVpcEndpointsRequest(input)
  14154. req.SetContext(ctx)
  14155. req.ApplyOptions(opts...)
  14156. return out, req.Send()
  14157. }
  14158. const opDescribeVpcPeeringConnections = "DescribeVpcPeeringConnections"
  14159. // DescribeVpcPeeringConnectionsRequest generates a "aws/request.Request" representing the
  14160. // client's request for the DescribeVpcPeeringConnections operation. The "output" return
  14161. // value will be populated with the request's response once the request completes
  14162. // successfuly.
  14163. //
  14164. // Use "Send" method on the returned Request to send the API call to the service.
  14165. // the "output" return value is not valid until after Send returns without error.
  14166. //
  14167. // See DescribeVpcPeeringConnections for more information on using the DescribeVpcPeeringConnections
  14168. // API call, and error handling.
  14169. //
  14170. // This method is useful when you want to inject custom logic or configuration
  14171. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  14172. //
  14173. //
  14174. // // Example sending a request using the DescribeVpcPeeringConnectionsRequest method.
  14175. // req, resp := client.DescribeVpcPeeringConnectionsRequest(params)
  14176. //
  14177. // err := req.Send()
  14178. // if err == nil { // resp is now filled
  14179. // fmt.Println(resp)
  14180. // }
  14181. //
  14182. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcPeeringConnections
  14183. func (c *EC2) DescribeVpcPeeringConnectionsRequest(input *DescribeVpcPeeringConnectionsInput) (req *request.Request, output *DescribeVpcPeeringConnectionsOutput) {
  14184. op := &request.Operation{
  14185. Name: opDescribeVpcPeeringConnections,
  14186. HTTPMethod: "POST",
  14187. HTTPPath: "/",
  14188. }
  14189. if input == nil {
  14190. input = &DescribeVpcPeeringConnectionsInput{}
  14191. }
  14192. output = &DescribeVpcPeeringConnectionsOutput{}
  14193. req = c.newRequest(op, input, output)
  14194. return
  14195. }
  14196. // DescribeVpcPeeringConnections API operation for Amazon Elastic Compute Cloud.
  14197. //
  14198. // Describes one or more of your VPC peering connections.
  14199. //
  14200. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14201. // with awserr.Error's Code and Message methods to get detailed information about
  14202. // the error.
  14203. //
  14204. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14205. // API operation DescribeVpcPeeringConnections for usage and error information.
  14206. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcPeeringConnections
  14207. func (c *EC2) DescribeVpcPeeringConnections(input *DescribeVpcPeeringConnectionsInput) (*DescribeVpcPeeringConnectionsOutput, error) {
  14208. req, out := c.DescribeVpcPeeringConnectionsRequest(input)
  14209. return out, req.Send()
  14210. }
  14211. // DescribeVpcPeeringConnectionsWithContext is the same as DescribeVpcPeeringConnections with the addition of
  14212. // the ability to pass a context and additional request options.
  14213. //
  14214. // See DescribeVpcPeeringConnections for details on how to use this API operation.
  14215. //
  14216. // The context must be non-nil and will be used for request cancellation. If
  14217. // the context is nil a panic will occur. In the future the SDK may create
  14218. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14219. // for more information on using Contexts.
  14220. func (c *EC2) DescribeVpcPeeringConnectionsWithContext(ctx aws.Context, input *DescribeVpcPeeringConnectionsInput, opts ...request.Option) (*DescribeVpcPeeringConnectionsOutput, error) {
  14221. req, out := c.DescribeVpcPeeringConnectionsRequest(input)
  14222. req.SetContext(ctx)
  14223. req.ApplyOptions(opts...)
  14224. return out, req.Send()
  14225. }
  14226. const opDescribeVpcs = "DescribeVpcs"
  14227. // DescribeVpcsRequest generates a "aws/request.Request" representing the
  14228. // client's request for the DescribeVpcs operation. The "output" return
  14229. // value will be populated with the request's response once the request completes
  14230. // successfuly.
  14231. //
  14232. // Use "Send" method on the returned Request to send the API call to the service.
  14233. // the "output" return value is not valid until after Send returns without error.
  14234. //
  14235. // See DescribeVpcs for more information on using the DescribeVpcs
  14236. // API call, and error handling.
  14237. //
  14238. // This method is useful when you want to inject custom logic or configuration
  14239. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  14240. //
  14241. //
  14242. // // Example sending a request using the DescribeVpcsRequest method.
  14243. // req, resp := client.DescribeVpcsRequest(params)
  14244. //
  14245. // err := req.Send()
  14246. // if err == nil { // resp is now filled
  14247. // fmt.Println(resp)
  14248. // }
  14249. //
  14250. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcs
  14251. func (c *EC2) DescribeVpcsRequest(input *DescribeVpcsInput) (req *request.Request, output *DescribeVpcsOutput) {
  14252. op := &request.Operation{
  14253. Name: opDescribeVpcs,
  14254. HTTPMethod: "POST",
  14255. HTTPPath: "/",
  14256. }
  14257. if input == nil {
  14258. input = &DescribeVpcsInput{}
  14259. }
  14260. output = &DescribeVpcsOutput{}
  14261. req = c.newRequest(op, input, output)
  14262. return
  14263. }
  14264. // DescribeVpcs API operation for Amazon Elastic Compute Cloud.
  14265. //
  14266. // Describes one or more of your VPCs.
  14267. //
  14268. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14269. // with awserr.Error's Code and Message methods to get detailed information about
  14270. // the error.
  14271. //
  14272. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14273. // API operation DescribeVpcs for usage and error information.
  14274. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcs
  14275. func (c *EC2) DescribeVpcs(input *DescribeVpcsInput) (*DescribeVpcsOutput, error) {
  14276. req, out := c.DescribeVpcsRequest(input)
  14277. return out, req.Send()
  14278. }
  14279. // DescribeVpcsWithContext is the same as DescribeVpcs with the addition of
  14280. // the ability to pass a context and additional request options.
  14281. //
  14282. // See DescribeVpcs for details on how to use this API operation.
  14283. //
  14284. // The context must be non-nil and will be used for request cancellation. If
  14285. // the context is nil a panic will occur. In the future the SDK may create
  14286. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14287. // for more information on using Contexts.
  14288. func (c *EC2) DescribeVpcsWithContext(ctx aws.Context, input *DescribeVpcsInput, opts ...request.Option) (*DescribeVpcsOutput, error) {
  14289. req, out := c.DescribeVpcsRequest(input)
  14290. req.SetContext(ctx)
  14291. req.ApplyOptions(opts...)
  14292. return out, req.Send()
  14293. }
  14294. const opDescribeVpnConnections = "DescribeVpnConnections"
  14295. // DescribeVpnConnectionsRequest generates a "aws/request.Request" representing the
  14296. // client's request for the DescribeVpnConnections operation. The "output" return
  14297. // value will be populated with the request's response once the request completes
  14298. // successfuly.
  14299. //
  14300. // Use "Send" method on the returned Request to send the API call to the service.
  14301. // the "output" return value is not valid until after Send returns without error.
  14302. //
  14303. // See DescribeVpnConnections for more information on using the DescribeVpnConnections
  14304. // API call, and error handling.
  14305. //
  14306. // This method is useful when you want to inject custom logic or configuration
  14307. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  14308. //
  14309. //
  14310. // // Example sending a request using the DescribeVpnConnectionsRequest method.
  14311. // req, resp := client.DescribeVpnConnectionsRequest(params)
  14312. //
  14313. // err := req.Send()
  14314. // if err == nil { // resp is now filled
  14315. // fmt.Println(resp)
  14316. // }
  14317. //
  14318. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpnConnections
  14319. func (c *EC2) DescribeVpnConnectionsRequest(input *DescribeVpnConnectionsInput) (req *request.Request, output *DescribeVpnConnectionsOutput) {
  14320. op := &request.Operation{
  14321. Name: opDescribeVpnConnections,
  14322. HTTPMethod: "POST",
  14323. HTTPPath: "/",
  14324. }
  14325. if input == nil {
  14326. input = &DescribeVpnConnectionsInput{}
  14327. }
  14328. output = &DescribeVpnConnectionsOutput{}
  14329. req = c.newRequest(op, input, output)
  14330. return
  14331. }
  14332. // DescribeVpnConnections API operation for Amazon Elastic Compute Cloud.
  14333. //
  14334. // Describes one or more of your VPN connections.
  14335. //
  14336. // For more information about VPN connections, see AWS Managed VPN Connections
  14337. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html) in the
  14338. // Amazon Virtual Private Cloud User Guide.
  14339. //
  14340. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14341. // with awserr.Error's Code and Message methods to get detailed information about
  14342. // the error.
  14343. //
  14344. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14345. // API operation DescribeVpnConnections for usage and error information.
  14346. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpnConnections
  14347. func (c *EC2) DescribeVpnConnections(input *DescribeVpnConnectionsInput) (*DescribeVpnConnectionsOutput, error) {
  14348. req, out := c.DescribeVpnConnectionsRequest(input)
  14349. return out, req.Send()
  14350. }
  14351. // DescribeVpnConnectionsWithContext is the same as DescribeVpnConnections with the addition of
  14352. // the ability to pass a context and additional request options.
  14353. //
  14354. // See DescribeVpnConnections for details on how to use this API operation.
  14355. //
  14356. // The context must be non-nil and will be used for request cancellation. If
  14357. // the context is nil a panic will occur. In the future the SDK may create
  14358. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14359. // for more information on using Contexts.
  14360. func (c *EC2) DescribeVpnConnectionsWithContext(ctx aws.Context, input *DescribeVpnConnectionsInput, opts ...request.Option) (*DescribeVpnConnectionsOutput, error) {
  14361. req, out := c.DescribeVpnConnectionsRequest(input)
  14362. req.SetContext(ctx)
  14363. req.ApplyOptions(opts...)
  14364. return out, req.Send()
  14365. }
  14366. const opDescribeVpnGateways = "DescribeVpnGateways"
  14367. // DescribeVpnGatewaysRequest generates a "aws/request.Request" representing the
  14368. // client's request for the DescribeVpnGateways operation. The "output" return
  14369. // value will be populated with the request's response once the request completes
  14370. // successfuly.
  14371. //
  14372. // Use "Send" method on the returned Request to send the API call to the service.
  14373. // the "output" return value is not valid until after Send returns without error.
  14374. //
  14375. // See DescribeVpnGateways for more information on using the DescribeVpnGateways
  14376. // API call, and error handling.
  14377. //
  14378. // This method is useful when you want to inject custom logic or configuration
  14379. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  14380. //
  14381. //
  14382. // // Example sending a request using the DescribeVpnGatewaysRequest method.
  14383. // req, resp := client.DescribeVpnGatewaysRequest(params)
  14384. //
  14385. // err := req.Send()
  14386. // if err == nil { // resp is now filled
  14387. // fmt.Println(resp)
  14388. // }
  14389. //
  14390. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpnGateways
  14391. func (c *EC2) DescribeVpnGatewaysRequest(input *DescribeVpnGatewaysInput) (req *request.Request, output *DescribeVpnGatewaysOutput) {
  14392. op := &request.Operation{
  14393. Name: opDescribeVpnGateways,
  14394. HTTPMethod: "POST",
  14395. HTTPPath: "/",
  14396. }
  14397. if input == nil {
  14398. input = &DescribeVpnGatewaysInput{}
  14399. }
  14400. output = &DescribeVpnGatewaysOutput{}
  14401. req = c.newRequest(op, input, output)
  14402. return
  14403. }
  14404. // DescribeVpnGateways API operation for Amazon Elastic Compute Cloud.
  14405. //
  14406. // Describes one or more of your virtual private gateways.
  14407. //
  14408. // For more information about virtual private gateways, see AWS Managed VPN
  14409. // Connections (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html)
  14410. // in the Amazon Virtual Private Cloud User Guide.
  14411. //
  14412. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14413. // with awserr.Error's Code and Message methods to get detailed information about
  14414. // the error.
  14415. //
  14416. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14417. // API operation DescribeVpnGateways for usage and error information.
  14418. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpnGateways
  14419. func (c *EC2) DescribeVpnGateways(input *DescribeVpnGatewaysInput) (*DescribeVpnGatewaysOutput, error) {
  14420. req, out := c.DescribeVpnGatewaysRequest(input)
  14421. return out, req.Send()
  14422. }
  14423. // DescribeVpnGatewaysWithContext is the same as DescribeVpnGateways with the addition of
  14424. // the ability to pass a context and additional request options.
  14425. //
  14426. // See DescribeVpnGateways for details on how to use this API operation.
  14427. //
  14428. // The context must be non-nil and will be used for request cancellation. If
  14429. // the context is nil a panic will occur. In the future the SDK may create
  14430. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14431. // for more information on using Contexts.
  14432. func (c *EC2) DescribeVpnGatewaysWithContext(ctx aws.Context, input *DescribeVpnGatewaysInput, opts ...request.Option) (*DescribeVpnGatewaysOutput, error) {
  14433. req, out := c.DescribeVpnGatewaysRequest(input)
  14434. req.SetContext(ctx)
  14435. req.ApplyOptions(opts...)
  14436. return out, req.Send()
  14437. }
  14438. const opDetachClassicLinkVpc = "DetachClassicLinkVpc"
  14439. // DetachClassicLinkVpcRequest generates a "aws/request.Request" representing the
  14440. // client's request for the DetachClassicLinkVpc operation. The "output" return
  14441. // value will be populated with the request's response once the request completes
  14442. // successfuly.
  14443. //
  14444. // Use "Send" method on the returned Request to send the API call to the service.
  14445. // the "output" return value is not valid until after Send returns without error.
  14446. //
  14447. // See DetachClassicLinkVpc for more information on using the DetachClassicLinkVpc
  14448. // API call, and error handling.
  14449. //
  14450. // This method is useful when you want to inject custom logic or configuration
  14451. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  14452. //
  14453. //
  14454. // // Example sending a request using the DetachClassicLinkVpcRequest method.
  14455. // req, resp := client.DetachClassicLinkVpcRequest(params)
  14456. //
  14457. // err := req.Send()
  14458. // if err == nil { // resp is now filled
  14459. // fmt.Println(resp)
  14460. // }
  14461. //
  14462. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachClassicLinkVpc
  14463. func (c *EC2) DetachClassicLinkVpcRequest(input *DetachClassicLinkVpcInput) (req *request.Request, output *DetachClassicLinkVpcOutput) {
  14464. op := &request.Operation{
  14465. Name: opDetachClassicLinkVpc,
  14466. HTTPMethod: "POST",
  14467. HTTPPath: "/",
  14468. }
  14469. if input == nil {
  14470. input = &DetachClassicLinkVpcInput{}
  14471. }
  14472. output = &DetachClassicLinkVpcOutput{}
  14473. req = c.newRequest(op, input, output)
  14474. return
  14475. }
  14476. // DetachClassicLinkVpc API operation for Amazon Elastic Compute Cloud.
  14477. //
  14478. // Unlinks (detaches) a linked EC2-Classic instance from a VPC. After the instance
  14479. // has been unlinked, the VPC security groups are no longer associated with
  14480. // it. An instance is automatically unlinked from a VPC when it's stopped.
  14481. //
  14482. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14483. // with awserr.Error's Code and Message methods to get detailed information about
  14484. // the error.
  14485. //
  14486. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14487. // API operation DetachClassicLinkVpc for usage and error information.
  14488. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachClassicLinkVpc
  14489. func (c *EC2) DetachClassicLinkVpc(input *DetachClassicLinkVpcInput) (*DetachClassicLinkVpcOutput, error) {
  14490. req, out := c.DetachClassicLinkVpcRequest(input)
  14491. return out, req.Send()
  14492. }
  14493. // DetachClassicLinkVpcWithContext is the same as DetachClassicLinkVpc with the addition of
  14494. // the ability to pass a context and additional request options.
  14495. //
  14496. // See DetachClassicLinkVpc for details on how to use this API operation.
  14497. //
  14498. // The context must be non-nil and will be used for request cancellation. If
  14499. // the context is nil a panic will occur. In the future the SDK may create
  14500. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14501. // for more information on using Contexts.
  14502. func (c *EC2) DetachClassicLinkVpcWithContext(ctx aws.Context, input *DetachClassicLinkVpcInput, opts ...request.Option) (*DetachClassicLinkVpcOutput, error) {
  14503. req, out := c.DetachClassicLinkVpcRequest(input)
  14504. req.SetContext(ctx)
  14505. req.ApplyOptions(opts...)
  14506. return out, req.Send()
  14507. }
  14508. const opDetachInternetGateway = "DetachInternetGateway"
  14509. // DetachInternetGatewayRequest generates a "aws/request.Request" representing the
  14510. // client's request for the DetachInternetGateway operation. The "output" return
  14511. // value will be populated with the request's response once the request completes
  14512. // successfuly.
  14513. //
  14514. // Use "Send" method on the returned Request to send the API call to the service.
  14515. // the "output" return value is not valid until after Send returns without error.
  14516. //
  14517. // See DetachInternetGateway for more information on using the DetachInternetGateway
  14518. // API call, and error handling.
  14519. //
  14520. // This method is useful when you want to inject custom logic or configuration
  14521. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  14522. //
  14523. //
  14524. // // Example sending a request using the DetachInternetGatewayRequest method.
  14525. // req, resp := client.DetachInternetGatewayRequest(params)
  14526. //
  14527. // err := req.Send()
  14528. // if err == nil { // resp is now filled
  14529. // fmt.Println(resp)
  14530. // }
  14531. //
  14532. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachInternetGateway
  14533. func (c *EC2) DetachInternetGatewayRequest(input *DetachInternetGatewayInput) (req *request.Request, output *DetachInternetGatewayOutput) {
  14534. op := &request.Operation{
  14535. Name: opDetachInternetGateway,
  14536. HTTPMethod: "POST",
  14537. HTTPPath: "/",
  14538. }
  14539. if input == nil {
  14540. input = &DetachInternetGatewayInput{}
  14541. }
  14542. output = &DetachInternetGatewayOutput{}
  14543. req = c.newRequest(op, input, output)
  14544. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  14545. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  14546. return
  14547. }
  14548. // DetachInternetGateway API operation for Amazon Elastic Compute Cloud.
  14549. //
  14550. // Detaches an Internet gateway from a VPC, disabling connectivity between the
  14551. // Internet and the VPC. The VPC must not contain any running instances with
  14552. // Elastic IP addresses or public IPv4 addresses.
  14553. //
  14554. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14555. // with awserr.Error's Code and Message methods to get detailed information about
  14556. // the error.
  14557. //
  14558. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14559. // API operation DetachInternetGateway for usage and error information.
  14560. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachInternetGateway
  14561. func (c *EC2) DetachInternetGateway(input *DetachInternetGatewayInput) (*DetachInternetGatewayOutput, error) {
  14562. req, out := c.DetachInternetGatewayRequest(input)
  14563. return out, req.Send()
  14564. }
  14565. // DetachInternetGatewayWithContext is the same as DetachInternetGateway with the addition of
  14566. // the ability to pass a context and additional request options.
  14567. //
  14568. // See DetachInternetGateway for details on how to use this API operation.
  14569. //
  14570. // The context must be non-nil and will be used for request cancellation. If
  14571. // the context is nil a panic will occur. In the future the SDK may create
  14572. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14573. // for more information on using Contexts.
  14574. func (c *EC2) DetachInternetGatewayWithContext(ctx aws.Context, input *DetachInternetGatewayInput, opts ...request.Option) (*DetachInternetGatewayOutput, error) {
  14575. req, out := c.DetachInternetGatewayRequest(input)
  14576. req.SetContext(ctx)
  14577. req.ApplyOptions(opts...)
  14578. return out, req.Send()
  14579. }
  14580. const opDetachNetworkInterface = "DetachNetworkInterface"
  14581. // DetachNetworkInterfaceRequest generates a "aws/request.Request" representing the
  14582. // client's request for the DetachNetworkInterface operation. The "output" return
  14583. // value will be populated with the request's response once the request completes
  14584. // successfuly.
  14585. //
  14586. // Use "Send" method on the returned Request to send the API call to the service.
  14587. // the "output" return value is not valid until after Send returns without error.
  14588. //
  14589. // See DetachNetworkInterface for more information on using the DetachNetworkInterface
  14590. // API call, and error handling.
  14591. //
  14592. // This method is useful when you want to inject custom logic or configuration
  14593. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  14594. //
  14595. //
  14596. // // Example sending a request using the DetachNetworkInterfaceRequest method.
  14597. // req, resp := client.DetachNetworkInterfaceRequest(params)
  14598. //
  14599. // err := req.Send()
  14600. // if err == nil { // resp is now filled
  14601. // fmt.Println(resp)
  14602. // }
  14603. //
  14604. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachNetworkInterface
  14605. func (c *EC2) DetachNetworkInterfaceRequest(input *DetachNetworkInterfaceInput) (req *request.Request, output *DetachNetworkInterfaceOutput) {
  14606. op := &request.Operation{
  14607. Name: opDetachNetworkInterface,
  14608. HTTPMethod: "POST",
  14609. HTTPPath: "/",
  14610. }
  14611. if input == nil {
  14612. input = &DetachNetworkInterfaceInput{}
  14613. }
  14614. output = &DetachNetworkInterfaceOutput{}
  14615. req = c.newRequest(op, input, output)
  14616. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  14617. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  14618. return
  14619. }
  14620. // DetachNetworkInterface API operation for Amazon Elastic Compute Cloud.
  14621. //
  14622. // Detaches a network interface from an instance.
  14623. //
  14624. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14625. // with awserr.Error's Code and Message methods to get detailed information about
  14626. // the error.
  14627. //
  14628. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14629. // API operation DetachNetworkInterface for usage and error information.
  14630. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachNetworkInterface
  14631. func (c *EC2) DetachNetworkInterface(input *DetachNetworkInterfaceInput) (*DetachNetworkInterfaceOutput, error) {
  14632. req, out := c.DetachNetworkInterfaceRequest(input)
  14633. return out, req.Send()
  14634. }
  14635. // DetachNetworkInterfaceWithContext is the same as DetachNetworkInterface with the addition of
  14636. // the ability to pass a context and additional request options.
  14637. //
  14638. // See DetachNetworkInterface for details on how to use this API operation.
  14639. //
  14640. // The context must be non-nil and will be used for request cancellation. If
  14641. // the context is nil a panic will occur. In the future the SDK may create
  14642. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14643. // for more information on using Contexts.
  14644. func (c *EC2) DetachNetworkInterfaceWithContext(ctx aws.Context, input *DetachNetworkInterfaceInput, opts ...request.Option) (*DetachNetworkInterfaceOutput, error) {
  14645. req, out := c.DetachNetworkInterfaceRequest(input)
  14646. req.SetContext(ctx)
  14647. req.ApplyOptions(opts...)
  14648. return out, req.Send()
  14649. }
  14650. const opDetachVolume = "DetachVolume"
  14651. // DetachVolumeRequest generates a "aws/request.Request" representing the
  14652. // client's request for the DetachVolume operation. The "output" return
  14653. // value will be populated with the request's response once the request completes
  14654. // successfuly.
  14655. //
  14656. // Use "Send" method on the returned Request to send the API call to the service.
  14657. // the "output" return value is not valid until after Send returns without error.
  14658. //
  14659. // See DetachVolume for more information on using the DetachVolume
  14660. // API call, and error handling.
  14661. //
  14662. // This method is useful when you want to inject custom logic or configuration
  14663. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  14664. //
  14665. //
  14666. // // Example sending a request using the DetachVolumeRequest method.
  14667. // req, resp := client.DetachVolumeRequest(params)
  14668. //
  14669. // err := req.Send()
  14670. // if err == nil { // resp is now filled
  14671. // fmt.Println(resp)
  14672. // }
  14673. //
  14674. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachVolume
  14675. func (c *EC2) DetachVolumeRequest(input *DetachVolumeInput) (req *request.Request, output *VolumeAttachment) {
  14676. op := &request.Operation{
  14677. Name: opDetachVolume,
  14678. HTTPMethod: "POST",
  14679. HTTPPath: "/",
  14680. }
  14681. if input == nil {
  14682. input = &DetachVolumeInput{}
  14683. }
  14684. output = &VolumeAttachment{}
  14685. req = c.newRequest(op, input, output)
  14686. return
  14687. }
  14688. // DetachVolume API operation for Amazon Elastic Compute Cloud.
  14689. //
  14690. // Detaches an EBS volume from an instance. Make sure to unmount any file systems
  14691. // on the device within your operating system before detaching the volume. Failure
  14692. // to do so can result in the volume becoming stuck in the busy state while
  14693. // detaching. If this happens, detachment can be delayed indefinitely until
  14694. // you unmount the volume, force detachment, reboot the instance, or all three.
  14695. // If an EBS volume is the root device of an instance, it can't be detached
  14696. // while the instance is running. To detach the root volume, stop the instance
  14697. // first.
  14698. //
  14699. // When a volume with an AWS Marketplace product code is detached from an instance,
  14700. // the product code is no longer associated with the instance.
  14701. //
  14702. // For more information, see Detaching an Amazon EBS Volume (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-detaching-volume.html)
  14703. // in the Amazon Elastic Compute Cloud User Guide.
  14704. //
  14705. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14706. // with awserr.Error's Code and Message methods to get detailed information about
  14707. // the error.
  14708. //
  14709. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14710. // API operation DetachVolume for usage and error information.
  14711. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachVolume
  14712. func (c *EC2) DetachVolume(input *DetachVolumeInput) (*VolumeAttachment, error) {
  14713. req, out := c.DetachVolumeRequest(input)
  14714. return out, req.Send()
  14715. }
  14716. // DetachVolumeWithContext is the same as DetachVolume with the addition of
  14717. // the ability to pass a context and additional request options.
  14718. //
  14719. // See DetachVolume for details on how to use this API operation.
  14720. //
  14721. // The context must be non-nil and will be used for request cancellation. If
  14722. // the context is nil a panic will occur. In the future the SDK may create
  14723. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14724. // for more information on using Contexts.
  14725. func (c *EC2) DetachVolumeWithContext(ctx aws.Context, input *DetachVolumeInput, opts ...request.Option) (*VolumeAttachment, error) {
  14726. req, out := c.DetachVolumeRequest(input)
  14727. req.SetContext(ctx)
  14728. req.ApplyOptions(opts...)
  14729. return out, req.Send()
  14730. }
  14731. const opDetachVpnGateway = "DetachVpnGateway"
  14732. // DetachVpnGatewayRequest generates a "aws/request.Request" representing the
  14733. // client's request for the DetachVpnGateway operation. The "output" return
  14734. // value will be populated with the request's response once the request completes
  14735. // successfuly.
  14736. //
  14737. // Use "Send" method on the returned Request to send the API call to the service.
  14738. // the "output" return value is not valid until after Send returns without error.
  14739. //
  14740. // See DetachVpnGateway for more information on using the DetachVpnGateway
  14741. // API call, and error handling.
  14742. //
  14743. // This method is useful when you want to inject custom logic or configuration
  14744. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  14745. //
  14746. //
  14747. // // Example sending a request using the DetachVpnGatewayRequest method.
  14748. // req, resp := client.DetachVpnGatewayRequest(params)
  14749. //
  14750. // err := req.Send()
  14751. // if err == nil { // resp is now filled
  14752. // fmt.Println(resp)
  14753. // }
  14754. //
  14755. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachVpnGateway
  14756. func (c *EC2) DetachVpnGatewayRequest(input *DetachVpnGatewayInput) (req *request.Request, output *DetachVpnGatewayOutput) {
  14757. op := &request.Operation{
  14758. Name: opDetachVpnGateway,
  14759. HTTPMethod: "POST",
  14760. HTTPPath: "/",
  14761. }
  14762. if input == nil {
  14763. input = &DetachVpnGatewayInput{}
  14764. }
  14765. output = &DetachVpnGatewayOutput{}
  14766. req = c.newRequest(op, input, output)
  14767. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  14768. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  14769. return
  14770. }
  14771. // DetachVpnGateway API operation for Amazon Elastic Compute Cloud.
  14772. //
  14773. // Detaches a virtual private gateway from a VPC. You do this if you're planning
  14774. // to turn off the VPC and not use it anymore. You can confirm a virtual private
  14775. // gateway has been completely detached from a VPC by describing the virtual
  14776. // private gateway (any attachments to the virtual private gateway are also
  14777. // described).
  14778. //
  14779. // You must wait for the attachment's state to switch to detached before you
  14780. // can delete the VPC or attach a different VPC to the virtual private gateway.
  14781. //
  14782. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14783. // with awserr.Error's Code and Message methods to get detailed information about
  14784. // the error.
  14785. //
  14786. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14787. // API operation DetachVpnGateway for usage and error information.
  14788. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachVpnGateway
  14789. func (c *EC2) DetachVpnGateway(input *DetachVpnGatewayInput) (*DetachVpnGatewayOutput, error) {
  14790. req, out := c.DetachVpnGatewayRequest(input)
  14791. return out, req.Send()
  14792. }
  14793. // DetachVpnGatewayWithContext is the same as DetachVpnGateway with the addition of
  14794. // the ability to pass a context and additional request options.
  14795. //
  14796. // See DetachVpnGateway for details on how to use this API operation.
  14797. //
  14798. // The context must be non-nil and will be used for request cancellation. If
  14799. // the context is nil a panic will occur. In the future the SDK may create
  14800. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14801. // for more information on using Contexts.
  14802. func (c *EC2) DetachVpnGatewayWithContext(ctx aws.Context, input *DetachVpnGatewayInput, opts ...request.Option) (*DetachVpnGatewayOutput, error) {
  14803. req, out := c.DetachVpnGatewayRequest(input)
  14804. req.SetContext(ctx)
  14805. req.ApplyOptions(opts...)
  14806. return out, req.Send()
  14807. }
  14808. const opDisableVgwRoutePropagation = "DisableVgwRoutePropagation"
  14809. // DisableVgwRoutePropagationRequest generates a "aws/request.Request" representing the
  14810. // client's request for the DisableVgwRoutePropagation operation. The "output" return
  14811. // value will be populated with the request's response once the request completes
  14812. // successfuly.
  14813. //
  14814. // Use "Send" method on the returned Request to send the API call to the service.
  14815. // the "output" return value is not valid until after Send returns without error.
  14816. //
  14817. // See DisableVgwRoutePropagation for more information on using the DisableVgwRoutePropagation
  14818. // API call, and error handling.
  14819. //
  14820. // This method is useful when you want to inject custom logic or configuration
  14821. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  14822. //
  14823. //
  14824. // // Example sending a request using the DisableVgwRoutePropagationRequest method.
  14825. // req, resp := client.DisableVgwRoutePropagationRequest(params)
  14826. //
  14827. // err := req.Send()
  14828. // if err == nil { // resp is now filled
  14829. // fmt.Println(resp)
  14830. // }
  14831. //
  14832. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVgwRoutePropagation
  14833. func (c *EC2) DisableVgwRoutePropagationRequest(input *DisableVgwRoutePropagationInput) (req *request.Request, output *DisableVgwRoutePropagationOutput) {
  14834. op := &request.Operation{
  14835. Name: opDisableVgwRoutePropagation,
  14836. HTTPMethod: "POST",
  14837. HTTPPath: "/",
  14838. }
  14839. if input == nil {
  14840. input = &DisableVgwRoutePropagationInput{}
  14841. }
  14842. output = &DisableVgwRoutePropagationOutput{}
  14843. req = c.newRequest(op, input, output)
  14844. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  14845. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  14846. return
  14847. }
  14848. // DisableVgwRoutePropagation API operation for Amazon Elastic Compute Cloud.
  14849. //
  14850. // Disables a virtual private gateway (VGW) from propagating routes to a specified
  14851. // route table of a VPC.
  14852. //
  14853. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14854. // with awserr.Error's Code and Message methods to get detailed information about
  14855. // the error.
  14856. //
  14857. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14858. // API operation DisableVgwRoutePropagation for usage and error information.
  14859. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVgwRoutePropagation
  14860. func (c *EC2) DisableVgwRoutePropagation(input *DisableVgwRoutePropagationInput) (*DisableVgwRoutePropagationOutput, error) {
  14861. req, out := c.DisableVgwRoutePropagationRequest(input)
  14862. return out, req.Send()
  14863. }
  14864. // DisableVgwRoutePropagationWithContext is the same as DisableVgwRoutePropagation with the addition of
  14865. // the ability to pass a context and additional request options.
  14866. //
  14867. // See DisableVgwRoutePropagation for details on how to use this API operation.
  14868. //
  14869. // The context must be non-nil and will be used for request cancellation. If
  14870. // the context is nil a panic will occur. In the future the SDK may create
  14871. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14872. // for more information on using Contexts.
  14873. func (c *EC2) DisableVgwRoutePropagationWithContext(ctx aws.Context, input *DisableVgwRoutePropagationInput, opts ...request.Option) (*DisableVgwRoutePropagationOutput, error) {
  14874. req, out := c.DisableVgwRoutePropagationRequest(input)
  14875. req.SetContext(ctx)
  14876. req.ApplyOptions(opts...)
  14877. return out, req.Send()
  14878. }
  14879. const opDisableVpcClassicLink = "DisableVpcClassicLink"
  14880. // DisableVpcClassicLinkRequest generates a "aws/request.Request" representing the
  14881. // client's request for the DisableVpcClassicLink operation. The "output" return
  14882. // value will be populated with the request's response once the request completes
  14883. // successfuly.
  14884. //
  14885. // Use "Send" method on the returned Request to send the API call to the service.
  14886. // the "output" return value is not valid until after Send returns without error.
  14887. //
  14888. // See DisableVpcClassicLink for more information on using the DisableVpcClassicLink
  14889. // API call, and error handling.
  14890. //
  14891. // This method is useful when you want to inject custom logic or configuration
  14892. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  14893. //
  14894. //
  14895. // // Example sending a request using the DisableVpcClassicLinkRequest method.
  14896. // req, resp := client.DisableVpcClassicLinkRequest(params)
  14897. //
  14898. // err := req.Send()
  14899. // if err == nil { // resp is now filled
  14900. // fmt.Println(resp)
  14901. // }
  14902. //
  14903. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVpcClassicLink
  14904. func (c *EC2) DisableVpcClassicLinkRequest(input *DisableVpcClassicLinkInput) (req *request.Request, output *DisableVpcClassicLinkOutput) {
  14905. op := &request.Operation{
  14906. Name: opDisableVpcClassicLink,
  14907. HTTPMethod: "POST",
  14908. HTTPPath: "/",
  14909. }
  14910. if input == nil {
  14911. input = &DisableVpcClassicLinkInput{}
  14912. }
  14913. output = &DisableVpcClassicLinkOutput{}
  14914. req = c.newRequest(op, input, output)
  14915. return
  14916. }
  14917. // DisableVpcClassicLink API operation for Amazon Elastic Compute Cloud.
  14918. //
  14919. // Disables ClassicLink for a VPC. You cannot disable ClassicLink for a VPC
  14920. // that has EC2-Classic instances linked to it.
  14921. //
  14922. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14923. // with awserr.Error's Code and Message methods to get detailed information about
  14924. // the error.
  14925. //
  14926. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14927. // API operation DisableVpcClassicLink for usage and error information.
  14928. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVpcClassicLink
  14929. func (c *EC2) DisableVpcClassicLink(input *DisableVpcClassicLinkInput) (*DisableVpcClassicLinkOutput, error) {
  14930. req, out := c.DisableVpcClassicLinkRequest(input)
  14931. return out, req.Send()
  14932. }
  14933. // DisableVpcClassicLinkWithContext is the same as DisableVpcClassicLink with the addition of
  14934. // the ability to pass a context and additional request options.
  14935. //
  14936. // See DisableVpcClassicLink for details on how to use this API operation.
  14937. //
  14938. // The context must be non-nil and will be used for request cancellation. If
  14939. // the context is nil a panic will occur. In the future the SDK may create
  14940. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14941. // for more information on using Contexts.
  14942. func (c *EC2) DisableVpcClassicLinkWithContext(ctx aws.Context, input *DisableVpcClassicLinkInput, opts ...request.Option) (*DisableVpcClassicLinkOutput, error) {
  14943. req, out := c.DisableVpcClassicLinkRequest(input)
  14944. req.SetContext(ctx)
  14945. req.ApplyOptions(opts...)
  14946. return out, req.Send()
  14947. }
  14948. const opDisableVpcClassicLinkDnsSupport = "DisableVpcClassicLinkDnsSupport"
  14949. // DisableVpcClassicLinkDnsSupportRequest generates a "aws/request.Request" representing the
  14950. // client's request for the DisableVpcClassicLinkDnsSupport operation. The "output" return
  14951. // value will be populated with the request's response once the request completes
  14952. // successfuly.
  14953. //
  14954. // Use "Send" method on the returned Request to send the API call to the service.
  14955. // the "output" return value is not valid until after Send returns without error.
  14956. //
  14957. // See DisableVpcClassicLinkDnsSupport for more information on using the DisableVpcClassicLinkDnsSupport
  14958. // API call, and error handling.
  14959. //
  14960. // This method is useful when you want to inject custom logic or configuration
  14961. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  14962. //
  14963. //
  14964. // // Example sending a request using the DisableVpcClassicLinkDnsSupportRequest method.
  14965. // req, resp := client.DisableVpcClassicLinkDnsSupportRequest(params)
  14966. //
  14967. // err := req.Send()
  14968. // if err == nil { // resp is now filled
  14969. // fmt.Println(resp)
  14970. // }
  14971. //
  14972. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVpcClassicLinkDnsSupport
  14973. func (c *EC2) DisableVpcClassicLinkDnsSupportRequest(input *DisableVpcClassicLinkDnsSupportInput) (req *request.Request, output *DisableVpcClassicLinkDnsSupportOutput) {
  14974. op := &request.Operation{
  14975. Name: opDisableVpcClassicLinkDnsSupport,
  14976. HTTPMethod: "POST",
  14977. HTTPPath: "/",
  14978. }
  14979. if input == nil {
  14980. input = &DisableVpcClassicLinkDnsSupportInput{}
  14981. }
  14982. output = &DisableVpcClassicLinkDnsSupportOutput{}
  14983. req = c.newRequest(op, input, output)
  14984. return
  14985. }
  14986. // DisableVpcClassicLinkDnsSupport API operation for Amazon Elastic Compute Cloud.
  14987. //
  14988. // Disables ClassicLink DNS support for a VPC. If disabled, DNS hostnames resolve
  14989. // to public IP addresses when addressed between a linked EC2-Classic instance
  14990. // and instances in the VPC to which it's linked. For more information about
  14991. // ClassicLink, see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html)
  14992. // in the Amazon Elastic Compute Cloud User Guide.
  14993. //
  14994. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14995. // with awserr.Error's Code and Message methods to get detailed information about
  14996. // the error.
  14997. //
  14998. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14999. // API operation DisableVpcClassicLinkDnsSupport for usage and error information.
  15000. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVpcClassicLinkDnsSupport
  15001. func (c *EC2) DisableVpcClassicLinkDnsSupport(input *DisableVpcClassicLinkDnsSupportInput) (*DisableVpcClassicLinkDnsSupportOutput, error) {
  15002. req, out := c.DisableVpcClassicLinkDnsSupportRequest(input)
  15003. return out, req.Send()
  15004. }
  15005. // DisableVpcClassicLinkDnsSupportWithContext is the same as DisableVpcClassicLinkDnsSupport with the addition of
  15006. // the ability to pass a context and additional request options.
  15007. //
  15008. // See DisableVpcClassicLinkDnsSupport for details on how to use this API operation.
  15009. //
  15010. // The context must be non-nil and will be used for request cancellation. If
  15011. // the context is nil a panic will occur. In the future the SDK may create
  15012. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15013. // for more information on using Contexts.
  15014. func (c *EC2) DisableVpcClassicLinkDnsSupportWithContext(ctx aws.Context, input *DisableVpcClassicLinkDnsSupportInput, opts ...request.Option) (*DisableVpcClassicLinkDnsSupportOutput, error) {
  15015. req, out := c.DisableVpcClassicLinkDnsSupportRequest(input)
  15016. req.SetContext(ctx)
  15017. req.ApplyOptions(opts...)
  15018. return out, req.Send()
  15019. }
  15020. const opDisassociateAddress = "DisassociateAddress"
  15021. // DisassociateAddressRequest generates a "aws/request.Request" representing the
  15022. // client's request for the DisassociateAddress operation. The "output" return
  15023. // value will be populated with the request's response once the request completes
  15024. // successfuly.
  15025. //
  15026. // Use "Send" method on the returned Request to send the API call to the service.
  15027. // the "output" return value is not valid until after Send returns without error.
  15028. //
  15029. // See DisassociateAddress for more information on using the DisassociateAddress
  15030. // API call, and error handling.
  15031. //
  15032. // This method is useful when you want to inject custom logic or configuration
  15033. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15034. //
  15035. //
  15036. // // Example sending a request using the DisassociateAddressRequest method.
  15037. // req, resp := client.DisassociateAddressRequest(params)
  15038. //
  15039. // err := req.Send()
  15040. // if err == nil { // resp is now filled
  15041. // fmt.Println(resp)
  15042. // }
  15043. //
  15044. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateAddress
  15045. func (c *EC2) DisassociateAddressRequest(input *DisassociateAddressInput) (req *request.Request, output *DisassociateAddressOutput) {
  15046. op := &request.Operation{
  15047. Name: opDisassociateAddress,
  15048. HTTPMethod: "POST",
  15049. HTTPPath: "/",
  15050. }
  15051. if input == nil {
  15052. input = &DisassociateAddressInput{}
  15053. }
  15054. output = &DisassociateAddressOutput{}
  15055. req = c.newRequest(op, input, output)
  15056. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  15057. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  15058. return
  15059. }
  15060. // DisassociateAddress API operation for Amazon Elastic Compute Cloud.
  15061. //
  15062. // Disassociates an Elastic IP address from the instance or network interface
  15063. // it's associated with.
  15064. //
  15065. // An Elastic IP address is for use in either the EC2-Classic platform or in
  15066. // a VPC. For more information, see Elastic IP Addresses (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html)
  15067. // in the Amazon Elastic Compute Cloud User Guide.
  15068. //
  15069. // This is an idempotent operation. If you perform the operation more than once,
  15070. // Amazon EC2 doesn't return an error.
  15071. //
  15072. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15073. // with awserr.Error's Code and Message methods to get detailed information about
  15074. // the error.
  15075. //
  15076. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15077. // API operation DisassociateAddress for usage and error information.
  15078. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateAddress
  15079. func (c *EC2) DisassociateAddress(input *DisassociateAddressInput) (*DisassociateAddressOutput, error) {
  15080. req, out := c.DisassociateAddressRequest(input)
  15081. return out, req.Send()
  15082. }
  15083. // DisassociateAddressWithContext is the same as DisassociateAddress with the addition of
  15084. // the ability to pass a context and additional request options.
  15085. //
  15086. // See DisassociateAddress for details on how to use this API operation.
  15087. //
  15088. // The context must be non-nil and will be used for request cancellation. If
  15089. // the context is nil a panic will occur. In the future the SDK may create
  15090. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15091. // for more information on using Contexts.
  15092. func (c *EC2) DisassociateAddressWithContext(ctx aws.Context, input *DisassociateAddressInput, opts ...request.Option) (*DisassociateAddressOutput, error) {
  15093. req, out := c.DisassociateAddressRequest(input)
  15094. req.SetContext(ctx)
  15095. req.ApplyOptions(opts...)
  15096. return out, req.Send()
  15097. }
  15098. const opDisassociateIamInstanceProfile = "DisassociateIamInstanceProfile"
  15099. // DisassociateIamInstanceProfileRequest generates a "aws/request.Request" representing the
  15100. // client's request for the DisassociateIamInstanceProfile operation. The "output" return
  15101. // value will be populated with the request's response once the request completes
  15102. // successfuly.
  15103. //
  15104. // Use "Send" method on the returned Request to send the API call to the service.
  15105. // the "output" return value is not valid until after Send returns without error.
  15106. //
  15107. // See DisassociateIamInstanceProfile for more information on using the DisassociateIamInstanceProfile
  15108. // API call, and error handling.
  15109. //
  15110. // This method is useful when you want to inject custom logic or configuration
  15111. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15112. //
  15113. //
  15114. // // Example sending a request using the DisassociateIamInstanceProfileRequest method.
  15115. // req, resp := client.DisassociateIamInstanceProfileRequest(params)
  15116. //
  15117. // err := req.Send()
  15118. // if err == nil { // resp is now filled
  15119. // fmt.Println(resp)
  15120. // }
  15121. //
  15122. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateIamInstanceProfile
  15123. func (c *EC2) DisassociateIamInstanceProfileRequest(input *DisassociateIamInstanceProfileInput) (req *request.Request, output *DisassociateIamInstanceProfileOutput) {
  15124. op := &request.Operation{
  15125. Name: opDisassociateIamInstanceProfile,
  15126. HTTPMethod: "POST",
  15127. HTTPPath: "/",
  15128. }
  15129. if input == nil {
  15130. input = &DisassociateIamInstanceProfileInput{}
  15131. }
  15132. output = &DisassociateIamInstanceProfileOutput{}
  15133. req = c.newRequest(op, input, output)
  15134. return
  15135. }
  15136. // DisassociateIamInstanceProfile API operation for Amazon Elastic Compute Cloud.
  15137. //
  15138. // Disassociates an IAM instance profile from a running or stopped instance.
  15139. //
  15140. // Use DescribeIamInstanceProfileAssociations to get the association ID.
  15141. //
  15142. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15143. // with awserr.Error's Code and Message methods to get detailed information about
  15144. // the error.
  15145. //
  15146. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15147. // API operation DisassociateIamInstanceProfile for usage and error information.
  15148. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateIamInstanceProfile
  15149. func (c *EC2) DisassociateIamInstanceProfile(input *DisassociateIamInstanceProfileInput) (*DisassociateIamInstanceProfileOutput, error) {
  15150. req, out := c.DisassociateIamInstanceProfileRequest(input)
  15151. return out, req.Send()
  15152. }
  15153. // DisassociateIamInstanceProfileWithContext is the same as DisassociateIamInstanceProfile with the addition of
  15154. // the ability to pass a context and additional request options.
  15155. //
  15156. // See DisassociateIamInstanceProfile for details on how to use this API operation.
  15157. //
  15158. // The context must be non-nil and will be used for request cancellation. If
  15159. // the context is nil a panic will occur. In the future the SDK may create
  15160. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15161. // for more information on using Contexts.
  15162. func (c *EC2) DisassociateIamInstanceProfileWithContext(ctx aws.Context, input *DisassociateIamInstanceProfileInput, opts ...request.Option) (*DisassociateIamInstanceProfileOutput, error) {
  15163. req, out := c.DisassociateIamInstanceProfileRequest(input)
  15164. req.SetContext(ctx)
  15165. req.ApplyOptions(opts...)
  15166. return out, req.Send()
  15167. }
  15168. const opDisassociateRouteTable = "DisassociateRouteTable"
  15169. // DisassociateRouteTableRequest generates a "aws/request.Request" representing the
  15170. // client's request for the DisassociateRouteTable operation. The "output" return
  15171. // value will be populated with the request's response once the request completes
  15172. // successfuly.
  15173. //
  15174. // Use "Send" method on the returned Request to send the API call to the service.
  15175. // the "output" return value is not valid until after Send returns without error.
  15176. //
  15177. // See DisassociateRouteTable for more information on using the DisassociateRouteTable
  15178. // API call, and error handling.
  15179. //
  15180. // This method is useful when you want to inject custom logic or configuration
  15181. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15182. //
  15183. //
  15184. // // Example sending a request using the DisassociateRouteTableRequest method.
  15185. // req, resp := client.DisassociateRouteTableRequest(params)
  15186. //
  15187. // err := req.Send()
  15188. // if err == nil { // resp is now filled
  15189. // fmt.Println(resp)
  15190. // }
  15191. //
  15192. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateRouteTable
  15193. func (c *EC2) DisassociateRouteTableRequest(input *DisassociateRouteTableInput) (req *request.Request, output *DisassociateRouteTableOutput) {
  15194. op := &request.Operation{
  15195. Name: opDisassociateRouteTable,
  15196. HTTPMethod: "POST",
  15197. HTTPPath: "/",
  15198. }
  15199. if input == nil {
  15200. input = &DisassociateRouteTableInput{}
  15201. }
  15202. output = &DisassociateRouteTableOutput{}
  15203. req = c.newRequest(op, input, output)
  15204. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  15205. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  15206. return
  15207. }
  15208. // DisassociateRouteTable API operation for Amazon Elastic Compute Cloud.
  15209. //
  15210. // Disassociates a subnet from a route table.
  15211. //
  15212. // After you perform this action, the subnet no longer uses the routes in the
  15213. // route table. Instead, it uses the routes in the VPC's main route table. For
  15214. // more information about route tables, see Route Tables (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html)
  15215. // in the Amazon Virtual Private Cloud User Guide.
  15216. //
  15217. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15218. // with awserr.Error's Code and Message methods to get detailed information about
  15219. // the error.
  15220. //
  15221. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15222. // API operation DisassociateRouteTable for usage and error information.
  15223. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateRouteTable
  15224. func (c *EC2) DisassociateRouteTable(input *DisassociateRouteTableInput) (*DisassociateRouteTableOutput, error) {
  15225. req, out := c.DisassociateRouteTableRequest(input)
  15226. return out, req.Send()
  15227. }
  15228. // DisassociateRouteTableWithContext is the same as DisassociateRouteTable with the addition of
  15229. // the ability to pass a context and additional request options.
  15230. //
  15231. // See DisassociateRouteTable for details on how to use this API operation.
  15232. //
  15233. // The context must be non-nil and will be used for request cancellation. If
  15234. // the context is nil a panic will occur. In the future the SDK may create
  15235. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15236. // for more information on using Contexts.
  15237. func (c *EC2) DisassociateRouteTableWithContext(ctx aws.Context, input *DisassociateRouteTableInput, opts ...request.Option) (*DisassociateRouteTableOutput, error) {
  15238. req, out := c.DisassociateRouteTableRequest(input)
  15239. req.SetContext(ctx)
  15240. req.ApplyOptions(opts...)
  15241. return out, req.Send()
  15242. }
  15243. const opDisassociateSubnetCidrBlock = "DisassociateSubnetCidrBlock"
  15244. // DisassociateSubnetCidrBlockRequest generates a "aws/request.Request" representing the
  15245. // client's request for the DisassociateSubnetCidrBlock operation. The "output" return
  15246. // value will be populated with the request's response once the request completes
  15247. // successfuly.
  15248. //
  15249. // Use "Send" method on the returned Request to send the API call to the service.
  15250. // the "output" return value is not valid until after Send returns without error.
  15251. //
  15252. // See DisassociateSubnetCidrBlock for more information on using the DisassociateSubnetCidrBlock
  15253. // API call, and error handling.
  15254. //
  15255. // This method is useful when you want to inject custom logic or configuration
  15256. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15257. //
  15258. //
  15259. // // Example sending a request using the DisassociateSubnetCidrBlockRequest method.
  15260. // req, resp := client.DisassociateSubnetCidrBlockRequest(params)
  15261. //
  15262. // err := req.Send()
  15263. // if err == nil { // resp is now filled
  15264. // fmt.Println(resp)
  15265. // }
  15266. //
  15267. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateSubnetCidrBlock
  15268. func (c *EC2) DisassociateSubnetCidrBlockRequest(input *DisassociateSubnetCidrBlockInput) (req *request.Request, output *DisassociateSubnetCidrBlockOutput) {
  15269. op := &request.Operation{
  15270. Name: opDisassociateSubnetCidrBlock,
  15271. HTTPMethod: "POST",
  15272. HTTPPath: "/",
  15273. }
  15274. if input == nil {
  15275. input = &DisassociateSubnetCidrBlockInput{}
  15276. }
  15277. output = &DisassociateSubnetCidrBlockOutput{}
  15278. req = c.newRequest(op, input, output)
  15279. return
  15280. }
  15281. // DisassociateSubnetCidrBlock API operation for Amazon Elastic Compute Cloud.
  15282. //
  15283. // Disassociates a CIDR block from a subnet. Currently, you can disassociate
  15284. // an IPv6 CIDR block only. You must detach or delete all gateways and resources
  15285. // that are associated with the CIDR block before you can disassociate it.
  15286. //
  15287. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15288. // with awserr.Error's Code and Message methods to get detailed information about
  15289. // the error.
  15290. //
  15291. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15292. // API operation DisassociateSubnetCidrBlock for usage and error information.
  15293. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateSubnetCidrBlock
  15294. func (c *EC2) DisassociateSubnetCidrBlock(input *DisassociateSubnetCidrBlockInput) (*DisassociateSubnetCidrBlockOutput, error) {
  15295. req, out := c.DisassociateSubnetCidrBlockRequest(input)
  15296. return out, req.Send()
  15297. }
  15298. // DisassociateSubnetCidrBlockWithContext is the same as DisassociateSubnetCidrBlock with the addition of
  15299. // the ability to pass a context and additional request options.
  15300. //
  15301. // See DisassociateSubnetCidrBlock for details on how to use this API operation.
  15302. //
  15303. // The context must be non-nil and will be used for request cancellation. If
  15304. // the context is nil a panic will occur. In the future the SDK may create
  15305. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15306. // for more information on using Contexts.
  15307. func (c *EC2) DisassociateSubnetCidrBlockWithContext(ctx aws.Context, input *DisassociateSubnetCidrBlockInput, opts ...request.Option) (*DisassociateSubnetCidrBlockOutput, error) {
  15308. req, out := c.DisassociateSubnetCidrBlockRequest(input)
  15309. req.SetContext(ctx)
  15310. req.ApplyOptions(opts...)
  15311. return out, req.Send()
  15312. }
  15313. const opDisassociateVpcCidrBlock = "DisassociateVpcCidrBlock"
  15314. // DisassociateVpcCidrBlockRequest generates a "aws/request.Request" representing the
  15315. // client's request for the DisassociateVpcCidrBlock operation. The "output" return
  15316. // value will be populated with the request's response once the request completes
  15317. // successfuly.
  15318. //
  15319. // Use "Send" method on the returned Request to send the API call to the service.
  15320. // the "output" return value is not valid until after Send returns without error.
  15321. //
  15322. // See DisassociateVpcCidrBlock for more information on using the DisassociateVpcCidrBlock
  15323. // API call, and error handling.
  15324. //
  15325. // This method is useful when you want to inject custom logic or configuration
  15326. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15327. //
  15328. //
  15329. // // Example sending a request using the DisassociateVpcCidrBlockRequest method.
  15330. // req, resp := client.DisassociateVpcCidrBlockRequest(params)
  15331. //
  15332. // err := req.Send()
  15333. // if err == nil { // resp is now filled
  15334. // fmt.Println(resp)
  15335. // }
  15336. //
  15337. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateVpcCidrBlock
  15338. func (c *EC2) DisassociateVpcCidrBlockRequest(input *DisassociateVpcCidrBlockInput) (req *request.Request, output *DisassociateVpcCidrBlockOutput) {
  15339. op := &request.Operation{
  15340. Name: opDisassociateVpcCidrBlock,
  15341. HTTPMethod: "POST",
  15342. HTTPPath: "/",
  15343. }
  15344. if input == nil {
  15345. input = &DisassociateVpcCidrBlockInput{}
  15346. }
  15347. output = &DisassociateVpcCidrBlockOutput{}
  15348. req = c.newRequest(op, input, output)
  15349. return
  15350. }
  15351. // DisassociateVpcCidrBlock API operation for Amazon Elastic Compute Cloud.
  15352. //
  15353. // Disassociates a CIDR block from a VPC. To disassociate the CIDR block, you
  15354. // must specify its association ID. You can get the association ID by using
  15355. // DescribeVpcs. You must detach or delete all gateways and resources that are
  15356. // associated with the CIDR block before you can disassociate it.
  15357. //
  15358. // You cannot disassociate the CIDR block with which you originally created
  15359. // the VPC (the primary CIDR block).
  15360. //
  15361. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15362. // with awserr.Error's Code and Message methods to get detailed information about
  15363. // the error.
  15364. //
  15365. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15366. // API operation DisassociateVpcCidrBlock for usage and error information.
  15367. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateVpcCidrBlock
  15368. func (c *EC2) DisassociateVpcCidrBlock(input *DisassociateVpcCidrBlockInput) (*DisassociateVpcCidrBlockOutput, error) {
  15369. req, out := c.DisassociateVpcCidrBlockRequest(input)
  15370. return out, req.Send()
  15371. }
  15372. // DisassociateVpcCidrBlockWithContext is the same as DisassociateVpcCidrBlock with the addition of
  15373. // the ability to pass a context and additional request options.
  15374. //
  15375. // See DisassociateVpcCidrBlock for details on how to use this API operation.
  15376. //
  15377. // The context must be non-nil and will be used for request cancellation. If
  15378. // the context is nil a panic will occur. In the future the SDK may create
  15379. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15380. // for more information on using Contexts.
  15381. func (c *EC2) DisassociateVpcCidrBlockWithContext(ctx aws.Context, input *DisassociateVpcCidrBlockInput, opts ...request.Option) (*DisassociateVpcCidrBlockOutput, error) {
  15382. req, out := c.DisassociateVpcCidrBlockRequest(input)
  15383. req.SetContext(ctx)
  15384. req.ApplyOptions(opts...)
  15385. return out, req.Send()
  15386. }
  15387. const opEnableVgwRoutePropagation = "EnableVgwRoutePropagation"
  15388. // EnableVgwRoutePropagationRequest generates a "aws/request.Request" representing the
  15389. // client's request for the EnableVgwRoutePropagation operation. The "output" return
  15390. // value will be populated with the request's response once the request completes
  15391. // successfuly.
  15392. //
  15393. // Use "Send" method on the returned Request to send the API call to the service.
  15394. // the "output" return value is not valid until after Send returns without error.
  15395. //
  15396. // See EnableVgwRoutePropagation for more information on using the EnableVgwRoutePropagation
  15397. // API call, and error handling.
  15398. //
  15399. // This method is useful when you want to inject custom logic or configuration
  15400. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15401. //
  15402. //
  15403. // // Example sending a request using the EnableVgwRoutePropagationRequest method.
  15404. // req, resp := client.EnableVgwRoutePropagationRequest(params)
  15405. //
  15406. // err := req.Send()
  15407. // if err == nil { // resp is now filled
  15408. // fmt.Println(resp)
  15409. // }
  15410. //
  15411. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVgwRoutePropagation
  15412. func (c *EC2) EnableVgwRoutePropagationRequest(input *EnableVgwRoutePropagationInput) (req *request.Request, output *EnableVgwRoutePropagationOutput) {
  15413. op := &request.Operation{
  15414. Name: opEnableVgwRoutePropagation,
  15415. HTTPMethod: "POST",
  15416. HTTPPath: "/",
  15417. }
  15418. if input == nil {
  15419. input = &EnableVgwRoutePropagationInput{}
  15420. }
  15421. output = &EnableVgwRoutePropagationOutput{}
  15422. req = c.newRequest(op, input, output)
  15423. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  15424. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  15425. return
  15426. }
  15427. // EnableVgwRoutePropagation API operation for Amazon Elastic Compute Cloud.
  15428. //
  15429. // Enables a virtual private gateway (VGW) to propagate routes to the specified
  15430. // route table of a VPC.
  15431. //
  15432. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15433. // with awserr.Error's Code and Message methods to get detailed information about
  15434. // the error.
  15435. //
  15436. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15437. // API operation EnableVgwRoutePropagation for usage and error information.
  15438. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVgwRoutePropagation
  15439. func (c *EC2) EnableVgwRoutePropagation(input *EnableVgwRoutePropagationInput) (*EnableVgwRoutePropagationOutput, error) {
  15440. req, out := c.EnableVgwRoutePropagationRequest(input)
  15441. return out, req.Send()
  15442. }
  15443. // EnableVgwRoutePropagationWithContext is the same as EnableVgwRoutePropagation with the addition of
  15444. // the ability to pass a context and additional request options.
  15445. //
  15446. // See EnableVgwRoutePropagation for details on how to use this API operation.
  15447. //
  15448. // The context must be non-nil and will be used for request cancellation. If
  15449. // the context is nil a panic will occur. In the future the SDK may create
  15450. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15451. // for more information on using Contexts.
  15452. func (c *EC2) EnableVgwRoutePropagationWithContext(ctx aws.Context, input *EnableVgwRoutePropagationInput, opts ...request.Option) (*EnableVgwRoutePropagationOutput, error) {
  15453. req, out := c.EnableVgwRoutePropagationRequest(input)
  15454. req.SetContext(ctx)
  15455. req.ApplyOptions(opts...)
  15456. return out, req.Send()
  15457. }
  15458. const opEnableVolumeIO = "EnableVolumeIO"
  15459. // EnableVolumeIORequest generates a "aws/request.Request" representing the
  15460. // client's request for the EnableVolumeIO operation. The "output" return
  15461. // value will be populated with the request's response once the request completes
  15462. // successfuly.
  15463. //
  15464. // Use "Send" method on the returned Request to send the API call to the service.
  15465. // the "output" return value is not valid until after Send returns without error.
  15466. //
  15467. // See EnableVolumeIO for more information on using the EnableVolumeIO
  15468. // API call, and error handling.
  15469. //
  15470. // This method is useful when you want to inject custom logic or configuration
  15471. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15472. //
  15473. //
  15474. // // Example sending a request using the EnableVolumeIORequest method.
  15475. // req, resp := client.EnableVolumeIORequest(params)
  15476. //
  15477. // err := req.Send()
  15478. // if err == nil { // resp is now filled
  15479. // fmt.Println(resp)
  15480. // }
  15481. //
  15482. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVolumeIO
  15483. func (c *EC2) EnableVolumeIORequest(input *EnableVolumeIOInput) (req *request.Request, output *EnableVolumeIOOutput) {
  15484. op := &request.Operation{
  15485. Name: opEnableVolumeIO,
  15486. HTTPMethod: "POST",
  15487. HTTPPath: "/",
  15488. }
  15489. if input == nil {
  15490. input = &EnableVolumeIOInput{}
  15491. }
  15492. output = &EnableVolumeIOOutput{}
  15493. req = c.newRequest(op, input, output)
  15494. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  15495. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  15496. return
  15497. }
  15498. // EnableVolumeIO API operation for Amazon Elastic Compute Cloud.
  15499. //
  15500. // Enables I/O operations for a volume that had I/O operations disabled because
  15501. // the data on the volume was potentially inconsistent.
  15502. //
  15503. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15504. // with awserr.Error's Code and Message methods to get detailed information about
  15505. // the error.
  15506. //
  15507. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15508. // API operation EnableVolumeIO for usage and error information.
  15509. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVolumeIO
  15510. func (c *EC2) EnableVolumeIO(input *EnableVolumeIOInput) (*EnableVolumeIOOutput, error) {
  15511. req, out := c.EnableVolumeIORequest(input)
  15512. return out, req.Send()
  15513. }
  15514. // EnableVolumeIOWithContext is the same as EnableVolumeIO with the addition of
  15515. // the ability to pass a context and additional request options.
  15516. //
  15517. // See EnableVolumeIO for details on how to use this API operation.
  15518. //
  15519. // The context must be non-nil and will be used for request cancellation. If
  15520. // the context is nil a panic will occur. In the future the SDK may create
  15521. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15522. // for more information on using Contexts.
  15523. func (c *EC2) EnableVolumeIOWithContext(ctx aws.Context, input *EnableVolumeIOInput, opts ...request.Option) (*EnableVolumeIOOutput, error) {
  15524. req, out := c.EnableVolumeIORequest(input)
  15525. req.SetContext(ctx)
  15526. req.ApplyOptions(opts...)
  15527. return out, req.Send()
  15528. }
  15529. const opEnableVpcClassicLink = "EnableVpcClassicLink"
  15530. // EnableVpcClassicLinkRequest generates a "aws/request.Request" representing the
  15531. // client's request for the EnableVpcClassicLink operation. The "output" return
  15532. // value will be populated with the request's response once the request completes
  15533. // successfuly.
  15534. //
  15535. // Use "Send" method on the returned Request to send the API call to the service.
  15536. // the "output" return value is not valid until after Send returns without error.
  15537. //
  15538. // See EnableVpcClassicLink for more information on using the EnableVpcClassicLink
  15539. // API call, and error handling.
  15540. //
  15541. // This method is useful when you want to inject custom logic or configuration
  15542. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15543. //
  15544. //
  15545. // // Example sending a request using the EnableVpcClassicLinkRequest method.
  15546. // req, resp := client.EnableVpcClassicLinkRequest(params)
  15547. //
  15548. // err := req.Send()
  15549. // if err == nil { // resp is now filled
  15550. // fmt.Println(resp)
  15551. // }
  15552. //
  15553. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVpcClassicLink
  15554. func (c *EC2) EnableVpcClassicLinkRequest(input *EnableVpcClassicLinkInput) (req *request.Request, output *EnableVpcClassicLinkOutput) {
  15555. op := &request.Operation{
  15556. Name: opEnableVpcClassicLink,
  15557. HTTPMethod: "POST",
  15558. HTTPPath: "/",
  15559. }
  15560. if input == nil {
  15561. input = &EnableVpcClassicLinkInput{}
  15562. }
  15563. output = &EnableVpcClassicLinkOutput{}
  15564. req = c.newRequest(op, input, output)
  15565. return
  15566. }
  15567. // EnableVpcClassicLink API operation for Amazon Elastic Compute Cloud.
  15568. //
  15569. // Enables a VPC for ClassicLink. You can then link EC2-Classic instances to
  15570. // your ClassicLink-enabled VPC to allow communication over private IP addresses.
  15571. // You cannot enable your VPC for ClassicLink if any of your VPC's route tables
  15572. // have existing routes for address ranges within the 10.0.0.0/8 IP address
  15573. // range, excluding local routes for VPCs in the 10.0.0.0/16 and 10.1.0.0/16
  15574. // IP address ranges. For more information, see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html)
  15575. // in the Amazon Elastic Compute Cloud User Guide.
  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 EnableVpcClassicLink for usage and error information.
  15583. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVpcClassicLink
  15584. func (c *EC2) EnableVpcClassicLink(input *EnableVpcClassicLinkInput) (*EnableVpcClassicLinkOutput, error) {
  15585. req, out := c.EnableVpcClassicLinkRequest(input)
  15586. return out, req.Send()
  15587. }
  15588. // EnableVpcClassicLinkWithContext is the same as EnableVpcClassicLink with the addition of
  15589. // the ability to pass a context and additional request options.
  15590. //
  15591. // See EnableVpcClassicLink 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) EnableVpcClassicLinkWithContext(ctx aws.Context, input *EnableVpcClassicLinkInput, opts ...request.Option) (*EnableVpcClassicLinkOutput, error) {
  15598. req, out := c.EnableVpcClassicLinkRequest(input)
  15599. req.SetContext(ctx)
  15600. req.ApplyOptions(opts...)
  15601. return out, req.Send()
  15602. }
  15603. const opEnableVpcClassicLinkDnsSupport = "EnableVpcClassicLinkDnsSupport"
  15604. // EnableVpcClassicLinkDnsSupportRequest generates a "aws/request.Request" representing the
  15605. // client's request for the EnableVpcClassicLinkDnsSupport operation. The "output" return
  15606. // value will be populated with the request's response once the request completes
  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 EnableVpcClassicLinkDnsSupport for more information on using the EnableVpcClassicLinkDnsSupport
  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 EnableVpcClassicLinkDnsSupportRequest method.
  15620. // req, resp := client.EnableVpcClassicLinkDnsSupportRequest(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/EnableVpcClassicLinkDnsSupport
  15628. func (c *EC2) EnableVpcClassicLinkDnsSupportRequest(input *EnableVpcClassicLinkDnsSupportInput) (req *request.Request, output *EnableVpcClassicLinkDnsSupportOutput) {
  15629. op := &request.Operation{
  15630. Name: opEnableVpcClassicLinkDnsSupport,
  15631. HTTPMethod: "POST",
  15632. HTTPPath: "/",
  15633. }
  15634. if input == nil {
  15635. input = &EnableVpcClassicLinkDnsSupportInput{}
  15636. }
  15637. output = &EnableVpcClassicLinkDnsSupportOutput{}
  15638. req = c.newRequest(op, input, output)
  15639. return
  15640. }
  15641. // EnableVpcClassicLinkDnsSupport API operation for Amazon Elastic Compute Cloud.
  15642. //
  15643. // Enables a VPC to support DNS hostname resolution for ClassicLink. If enabled,
  15644. // the DNS hostname of a linked EC2-Classic instance resolves to its private
  15645. // IP address when addressed from an instance in the VPC to which it's linked.
  15646. // Similarly, the DNS hostname of an instance in a VPC resolves to its private
  15647. // IP address when addressed from a linked EC2-Classic instance. For more information
  15648. // about ClassicLink, see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html)
  15649. // in the Amazon Elastic Compute Cloud User Guide.
  15650. //
  15651. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15652. // with awserr.Error's Code and Message methods to get detailed information about
  15653. // the error.
  15654. //
  15655. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15656. // API operation EnableVpcClassicLinkDnsSupport for usage and error information.
  15657. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVpcClassicLinkDnsSupport
  15658. func (c *EC2) EnableVpcClassicLinkDnsSupport(input *EnableVpcClassicLinkDnsSupportInput) (*EnableVpcClassicLinkDnsSupportOutput, error) {
  15659. req, out := c.EnableVpcClassicLinkDnsSupportRequest(input)
  15660. return out, req.Send()
  15661. }
  15662. // EnableVpcClassicLinkDnsSupportWithContext is the same as EnableVpcClassicLinkDnsSupport with the addition of
  15663. // the ability to pass a context and additional request options.
  15664. //
  15665. // See EnableVpcClassicLinkDnsSupport for details on how to use this API operation.
  15666. //
  15667. // The context must be non-nil and will be used for request cancellation. If
  15668. // the context is nil a panic will occur. In the future the SDK may create
  15669. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15670. // for more information on using Contexts.
  15671. func (c *EC2) EnableVpcClassicLinkDnsSupportWithContext(ctx aws.Context, input *EnableVpcClassicLinkDnsSupportInput, opts ...request.Option) (*EnableVpcClassicLinkDnsSupportOutput, error) {
  15672. req, out := c.EnableVpcClassicLinkDnsSupportRequest(input)
  15673. req.SetContext(ctx)
  15674. req.ApplyOptions(opts...)
  15675. return out, req.Send()
  15676. }
  15677. const opGetConsoleOutput = "GetConsoleOutput"
  15678. // GetConsoleOutputRequest generates a "aws/request.Request" representing the
  15679. // client's request for the GetConsoleOutput operation. The "output" return
  15680. // value will be populated with the request's response once the request completes
  15681. // successfuly.
  15682. //
  15683. // Use "Send" method on the returned Request to send the API call to the service.
  15684. // the "output" return value is not valid until after Send returns without error.
  15685. //
  15686. // See GetConsoleOutput for more information on using the GetConsoleOutput
  15687. // API call, and error handling.
  15688. //
  15689. // This method is useful when you want to inject custom logic or configuration
  15690. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15691. //
  15692. //
  15693. // // Example sending a request using the GetConsoleOutputRequest method.
  15694. // req, resp := client.GetConsoleOutputRequest(params)
  15695. //
  15696. // err := req.Send()
  15697. // if err == nil { // resp is now filled
  15698. // fmt.Println(resp)
  15699. // }
  15700. //
  15701. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetConsoleOutput
  15702. func (c *EC2) GetConsoleOutputRequest(input *GetConsoleOutputInput) (req *request.Request, output *GetConsoleOutputOutput) {
  15703. op := &request.Operation{
  15704. Name: opGetConsoleOutput,
  15705. HTTPMethod: "POST",
  15706. HTTPPath: "/",
  15707. }
  15708. if input == nil {
  15709. input = &GetConsoleOutputInput{}
  15710. }
  15711. output = &GetConsoleOutputOutput{}
  15712. req = c.newRequest(op, input, output)
  15713. return
  15714. }
  15715. // GetConsoleOutput API operation for Amazon Elastic Compute Cloud.
  15716. //
  15717. // Gets the console output for the specified instance. For Linux instances,
  15718. // the instance console output displays the exact console output that would
  15719. // normally be displayed on a physical monitor attached to a computer. For Windows
  15720. // instances, the instance console output includes output from the EC2Config
  15721. // service.
  15722. //
  15723. // GetConsoleOutput returns up to 64 KB of console output shortly after it's
  15724. // generated by the instance.
  15725. //
  15726. // By default, the console output returns buffered information that was posted
  15727. // shortly after an instance transition state (start, stop, reboot, or terminate).
  15728. // This information is available for at least one hour after the most recent
  15729. // post.
  15730. //
  15731. // You can optionally retrieve the latest serial console output at any time
  15732. // during the instance lifecycle. This option is only supported on C5, M5, and
  15733. // i3.metal instances.
  15734. //
  15735. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15736. // with awserr.Error's Code and Message methods to get detailed information about
  15737. // the error.
  15738. //
  15739. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15740. // API operation GetConsoleOutput for usage and error information.
  15741. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetConsoleOutput
  15742. func (c *EC2) GetConsoleOutput(input *GetConsoleOutputInput) (*GetConsoleOutputOutput, error) {
  15743. req, out := c.GetConsoleOutputRequest(input)
  15744. return out, req.Send()
  15745. }
  15746. // GetConsoleOutputWithContext is the same as GetConsoleOutput with the addition of
  15747. // the ability to pass a context and additional request options.
  15748. //
  15749. // See GetConsoleOutput for details on how to use this API operation.
  15750. //
  15751. // The context must be non-nil and will be used for request cancellation. If
  15752. // the context is nil a panic will occur. In the future the SDK may create
  15753. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15754. // for more information on using Contexts.
  15755. func (c *EC2) GetConsoleOutputWithContext(ctx aws.Context, input *GetConsoleOutputInput, opts ...request.Option) (*GetConsoleOutputOutput, error) {
  15756. req, out := c.GetConsoleOutputRequest(input)
  15757. req.SetContext(ctx)
  15758. req.ApplyOptions(opts...)
  15759. return out, req.Send()
  15760. }
  15761. const opGetConsoleScreenshot = "GetConsoleScreenshot"
  15762. // GetConsoleScreenshotRequest generates a "aws/request.Request" representing the
  15763. // client's request for the GetConsoleScreenshot operation. The "output" return
  15764. // value will be populated with the request's response once the request completes
  15765. // successfuly.
  15766. //
  15767. // Use "Send" method on the returned Request to send the API call to the service.
  15768. // the "output" return value is not valid until after Send returns without error.
  15769. //
  15770. // See GetConsoleScreenshot for more information on using the GetConsoleScreenshot
  15771. // API call, and error handling.
  15772. //
  15773. // This method is useful when you want to inject custom logic or configuration
  15774. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15775. //
  15776. //
  15777. // // Example sending a request using the GetConsoleScreenshotRequest method.
  15778. // req, resp := client.GetConsoleScreenshotRequest(params)
  15779. //
  15780. // err := req.Send()
  15781. // if err == nil { // resp is now filled
  15782. // fmt.Println(resp)
  15783. // }
  15784. //
  15785. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetConsoleScreenshot
  15786. func (c *EC2) GetConsoleScreenshotRequest(input *GetConsoleScreenshotInput) (req *request.Request, output *GetConsoleScreenshotOutput) {
  15787. op := &request.Operation{
  15788. Name: opGetConsoleScreenshot,
  15789. HTTPMethod: "POST",
  15790. HTTPPath: "/",
  15791. }
  15792. if input == nil {
  15793. input = &GetConsoleScreenshotInput{}
  15794. }
  15795. output = &GetConsoleScreenshotOutput{}
  15796. req = c.newRequest(op, input, output)
  15797. return
  15798. }
  15799. // GetConsoleScreenshot API operation for Amazon Elastic Compute Cloud.
  15800. //
  15801. // Retrieve a JPG-format screenshot of a running instance to help with troubleshooting.
  15802. //
  15803. // The returned content is Base64-encoded.
  15804. //
  15805. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15806. // with awserr.Error's Code and Message methods to get detailed information about
  15807. // the error.
  15808. //
  15809. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15810. // API operation GetConsoleScreenshot for usage and error information.
  15811. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetConsoleScreenshot
  15812. func (c *EC2) GetConsoleScreenshot(input *GetConsoleScreenshotInput) (*GetConsoleScreenshotOutput, error) {
  15813. req, out := c.GetConsoleScreenshotRequest(input)
  15814. return out, req.Send()
  15815. }
  15816. // GetConsoleScreenshotWithContext is the same as GetConsoleScreenshot with the addition of
  15817. // the ability to pass a context and additional request options.
  15818. //
  15819. // See GetConsoleScreenshot for details on how to use this API operation.
  15820. //
  15821. // The context must be non-nil and will be used for request cancellation. If
  15822. // the context is nil a panic will occur. In the future the SDK may create
  15823. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15824. // for more information on using Contexts.
  15825. func (c *EC2) GetConsoleScreenshotWithContext(ctx aws.Context, input *GetConsoleScreenshotInput, opts ...request.Option) (*GetConsoleScreenshotOutput, error) {
  15826. req, out := c.GetConsoleScreenshotRequest(input)
  15827. req.SetContext(ctx)
  15828. req.ApplyOptions(opts...)
  15829. return out, req.Send()
  15830. }
  15831. const opGetHostReservationPurchasePreview = "GetHostReservationPurchasePreview"
  15832. // GetHostReservationPurchasePreviewRequest generates a "aws/request.Request" representing the
  15833. // client's request for the GetHostReservationPurchasePreview operation. The "output" return
  15834. // value will be populated with the request's response once the request completes
  15835. // successfuly.
  15836. //
  15837. // Use "Send" method on the returned Request to send the API call to the service.
  15838. // the "output" return value is not valid until after Send returns without error.
  15839. //
  15840. // See GetHostReservationPurchasePreview for more information on using the GetHostReservationPurchasePreview
  15841. // API call, and error handling.
  15842. //
  15843. // This method is useful when you want to inject custom logic or configuration
  15844. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15845. //
  15846. //
  15847. // // Example sending a request using the GetHostReservationPurchasePreviewRequest method.
  15848. // req, resp := client.GetHostReservationPurchasePreviewRequest(params)
  15849. //
  15850. // err := req.Send()
  15851. // if err == nil { // resp is now filled
  15852. // fmt.Println(resp)
  15853. // }
  15854. //
  15855. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetHostReservationPurchasePreview
  15856. func (c *EC2) GetHostReservationPurchasePreviewRequest(input *GetHostReservationPurchasePreviewInput) (req *request.Request, output *GetHostReservationPurchasePreviewOutput) {
  15857. op := &request.Operation{
  15858. Name: opGetHostReservationPurchasePreview,
  15859. HTTPMethod: "POST",
  15860. HTTPPath: "/",
  15861. }
  15862. if input == nil {
  15863. input = &GetHostReservationPurchasePreviewInput{}
  15864. }
  15865. output = &GetHostReservationPurchasePreviewOutput{}
  15866. req = c.newRequest(op, input, output)
  15867. return
  15868. }
  15869. // GetHostReservationPurchasePreview API operation for Amazon Elastic Compute Cloud.
  15870. //
  15871. // Preview a reservation purchase with configurations that match those of your
  15872. // Dedicated Host. You must have active Dedicated Hosts in your account before
  15873. // you purchase a reservation.
  15874. //
  15875. // This is a preview of the PurchaseHostReservation action and does not result
  15876. // in the offering being purchased.
  15877. //
  15878. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15879. // with awserr.Error's Code and Message methods to get detailed information about
  15880. // the error.
  15881. //
  15882. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15883. // API operation GetHostReservationPurchasePreview for usage and error information.
  15884. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetHostReservationPurchasePreview
  15885. func (c *EC2) GetHostReservationPurchasePreview(input *GetHostReservationPurchasePreviewInput) (*GetHostReservationPurchasePreviewOutput, error) {
  15886. req, out := c.GetHostReservationPurchasePreviewRequest(input)
  15887. return out, req.Send()
  15888. }
  15889. // GetHostReservationPurchasePreviewWithContext is the same as GetHostReservationPurchasePreview with the addition of
  15890. // the ability to pass a context and additional request options.
  15891. //
  15892. // See GetHostReservationPurchasePreview for details on how to use this API operation.
  15893. //
  15894. // The context must be non-nil and will be used for request cancellation. If
  15895. // the context is nil a panic will occur. In the future the SDK may create
  15896. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15897. // for more information on using Contexts.
  15898. func (c *EC2) GetHostReservationPurchasePreviewWithContext(ctx aws.Context, input *GetHostReservationPurchasePreviewInput, opts ...request.Option) (*GetHostReservationPurchasePreviewOutput, error) {
  15899. req, out := c.GetHostReservationPurchasePreviewRequest(input)
  15900. req.SetContext(ctx)
  15901. req.ApplyOptions(opts...)
  15902. return out, req.Send()
  15903. }
  15904. const opGetLaunchTemplateData = "GetLaunchTemplateData"
  15905. // GetLaunchTemplateDataRequest generates a "aws/request.Request" representing the
  15906. // client's request for the GetLaunchTemplateData operation. The "output" return
  15907. // value will be populated with the request's response once the request completes
  15908. // successfuly.
  15909. //
  15910. // Use "Send" method on the returned Request to send the API call to the service.
  15911. // the "output" return value is not valid until after Send returns without error.
  15912. //
  15913. // See GetLaunchTemplateData for more information on using the GetLaunchTemplateData
  15914. // API call, and error handling.
  15915. //
  15916. // This method is useful when you want to inject custom logic or configuration
  15917. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15918. //
  15919. //
  15920. // // Example sending a request using the GetLaunchTemplateDataRequest method.
  15921. // req, resp := client.GetLaunchTemplateDataRequest(params)
  15922. //
  15923. // err := req.Send()
  15924. // if err == nil { // resp is now filled
  15925. // fmt.Println(resp)
  15926. // }
  15927. //
  15928. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetLaunchTemplateData
  15929. func (c *EC2) GetLaunchTemplateDataRequest(input *GetLaunchTemplateDataInput) (req *request.Request, output *GetLaunchTemplateDataOutput) {
  15930. op := &request.Operation{
  15931. Name: opGetLaunchTemplateData,
  15932. HTTPMethod: "POST",
  15933. HTTPPath: "/",
  15934. }
  15935. if input == nil {
  15936. input = &GetLaunchTemplateDataInput{}
  15937. }
  15938. output = &GetLaunchTemplateDataOutput{}
  15939. req = c.newRequest(op, input, output)
  15940. return
  15941. }
  15942. // GetLaunchTemplateData API operation for Amazon Elastic Compute Cloud.
  15943. //
  15944. // Retrieves the configuration data of the specified instance. You can use this
  15945. // data to create a launch template.
  15946. //
  15947. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15948. // with awserr.Error's Code and Message methods to get detailed information about
  15949. // the error.
  15950. //
  15951. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15952. // API operation GetLaunchTemplateData for usage and error information.
  15953. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetLaunchTemplateData
  15954. func (c *EC2) GetLaunchTemplateData(input *GetLaunchTemplateDataInput) (*GetLaunchTemplateDataOutput, error) {
  15955. req, out := c.GetLaunchTemplateDataRequest(input)
  15956. return out, req.Send()
  15957. }
  15958. // GetLaunchTemplateDataWithContext is the same as GetLaunchTemplateData with the addition of
  15959. // the ability to pass a context and additional request options.
  15960. //
  15961. // See GetLaunchTemplateData for details on how to use this API operation.
  15962. //
  15963. // The context must be non-nil and will be used for request cancellation. If
  15964. // the context is nil a panic will occur. In the future the SDK may create
  15965. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15966. // for more information on using Contexts.
  15967. func (c *EC2) GetLaunchTemplateDataWithContext(ctx aws.Context, input *GetLaunchTemplateDataInput, opts ...request.Option) (*GetLaunchTemplateDataOutput, error) {
  15968. req, out := c.GetLaunchTemplateDataRequest(input)
  15969. req.SetContext(ctx)
  15970. req.ApplyOptions(opts...)
  15971. return out, req.Send()
  15972. }
  15973. const opGetPasswordData = "GetPasswordData"
  15974. // GetPasswordDataRequest generates a "aws/request.Request" representing the
  15975. // client's request for the GetPasswordData operation. The "output" return
  15976. // value will be populated with the request's response once the request completes
  15977. // successfuly.
  15978. //
  15979. // Use "Send" method on the returned Request to send the API call to the service.
  15980. // the "output" return value is not valid until after Send returns without error.
  15981. //
  15982. // See GetPasswordData for more information on using the GetPasswordData
  15983. // API call, and error handling.
  15984. //
  15985. // This method is useful when you want to inject custom logic or configuration
  15986. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15987. //
  15988. //
  15989. // // Example sending a request using the GetPasswordDataRequest method.
  15990. // req, resp := client.GetPasswordDataRequest(params)
  15991. //
  15992. // err := req.Send()
  15993. // if err == nil { // resp is now filled
  15994. // fmt.Println(resp)
  15995. // }
  15996. //
  15997. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetPasswordData
  15998. func (c *EC2) GetPasswordDataRequest(input *GetPasswordDataInput) (req *request.Request, output *GetPasswordDataOutput) {
  15999. op := &request.Operation{
  16000. Name: opGetPasswordData,
  16001. HTTPMethod: "POST",
  16002. HTTPPath: "/",
  16003. }
  16004. if input == nil {
  16005. input = &GetPasswordDataInput{}
  16006. }
  16007. output = &GetPasswordDataOutput{}
  16008. req = c.newRequest(op, input, output)
  16009. return
  16010. }
  16011. // GetPasswordData API operation for Amazon Elastic Compute Cloud.
  16012. //
  16013. // Retrieves the encrypted administrator password for a running Windows instance.
  16014. //
  16015. // The Windows password is generated at boot by the EC2Config service or EC2Launch
  16016. // scripts (Windows Server 2016 and later). This usually only happens the first
  16017. // time an instance is launched. For more information, see EC2Config (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/UsingConfig_WinAMI.html)
  16018. // and EC2Launch (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2launch.html)
  16019. // in the Amazon Elastic Compute Cloud User Guide.
  16020. //
  16021. // For the EC2Config service, the password is not generated for rebundled AMIs
  16022. // unless Ec2SetPassword is enabled before bundling.
  16023. //
  16024. // The password is encrypted using the key pair that you specified when you
  16025. // launched the instance. You must provide the corresponding key pair file.
  16026. //
  16027. // When you launch an instance, password generation and encryption may take
  16028. // a few minutes. If you try to retrieve the password before it's available,
  16029. // the output returns an empty string. We recommend that you wait up to 15 minutes
  16030. // after launching an instance before trying to retrieve the generated password.
  16031. //
  16032. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16033. // with awserr.Error's Code and Message methods to get detailed information about
  16034. // the error.
  16035. //
  16036. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16037. // API operation GetPasswordData for usage and error information.
  16038. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetPasswordData
  16039. func (c *EC2) GetPasswordData(input *GetPasswordDataInput) (*GetPasswordDataOutput, error) {
  16040. req, out := c.GetPasswordDataRequest(input)
  16041. return out, req.Send()
  16042. }
  16043. // GetPasswordDataWithContext is the same as GetPasswordData with the addition of
  16044. // the ability to pass a context and additional request options.
  16045. //
  16046. // See GetPasswordData for details on how to use this API operation.
  16047. //
  16048. // The context must be non-nil and will be used for request cancellation. If
  16049. // the context is nil a panic will occur. In the future the SDK may create
  16050. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16051. // for more information on using Contexts.
  16052. func (c *EC2) GetPasswordDataWithContext(ctx aws.Context, input *GetPasswordDataInput, opts ...request.Option) (*GetPasswordDataOutput, error) {
  16053. req, out := c.GetPasswordDataRequest(input)
  16054. req.SetContext(ctx)
  16055. req.ApplyOptions(opts...)
  16056. return out, req.Send()
  16057. }
  16058. const opGetReservedInstancesExchangeQuote = "GetReservedInstancesExchangeQuote"
  16059. // GetReservedInstancesExchangeQuoteRequest generates a "aws/request.Request" representing the
  16060. // client's request for the GetReservedInstancesExchangeQuote operation. The "output" return
  16061. // value will be populated with the request's response once the request completes
  16062. // successfuly.
  16063. //
  16064. // Use "Send" method on the returned Request to send the API call to the service.
  16065. // the "output" return value is not valid until after Send returns without error.
  16066. //
  16067. // See GetReservedInstancesExchangeQuote for more information on using the GetReservedInstancesExchangeQuote
  16068. // API call, and error handling.
  16069. //
  16070. // This method is useful when you want to inject custom logic or configuration
  16071. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16072. //
  16073. //
  16074. // // Example sending a request using the GetReservedInstancesExchangeQuoteRequest method.
  16075. // req, resp := client.GetReservedInstancesExchangeQuoteRequest(params)
  16076. //
  16077. // err := req.Send()
  16078. // if err == nil { // resp is now filled
  16079. // fmt.Println(resp)
  16080. // }
  16081. //
  16082. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetReservedInstancesExchangeQuote
  16083. func (c *EC2) GetReservedInstancesExchangeQuoteRequest(input *GetReservedInstancesExchangeQuoteInput) (req *request.Request, output *GetReservedInstancesExchangeQuoteOutput) {
  16084. op := &request.Operation{
  16085. Name: opGetReservedInstancesExchangeQuote,
  16086. HTTPMethod: "POST",
  16087. HTTPPath: "/",
  16088. }
  16089. if input == nil {
  16090. input = &GetReservedInstancesExchangeQuoteInput{}
  16091. }
  16092. output = &GetReservedInstancesExchangeQuoteOutput{}
  16093. req = c.newRequest(op, input, output)
  16094. return
  16095. }
  16096. // GetReservedInstancesExchangeQuote API operation for Amazon Elastic Compute Cloud.
  16097. //
  16098. // Returns a quote and exchange information for exchanging one or more specified
  16099. // Convertible Reserved Instances for a new Convertible Reserved Instance. If
  16100. // the exchange cannot be performed, the reason is returned in the response.
  16101. // Use AcceptReservedInstancesExchangeQuote to perform the exchange.
  16102. //
  16103. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16104. // with awserr.Error's Code and Message methods to get detailed information about
  16105. // the error.
  16106. //
  16107. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16108. // API operation GetReservedInstancesExchangeQuote for usage and error information.
  16109. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetReservedInstancesExchangeQuote
  16110. func (c *EC2) GetReservedInstancesExchangeQuote(input *GetReservedInstancesExchangeQuoteInput) (*GetReservedInstancesExchangeQuoteOutput, error) {
  16111. req, out := c.GetReservedInstancesExchangeQuoteRequest(input)
  16112. return out, req.Send()
  16113. }
  16114. // GetReservedInstancesExchangeQuoteWithContext is the same as GetReservedInstancesExchangeQuote with the addition of
  16115. // the ability to pass a context and additional request options.
  16116. //
  16117. // See GetReservedInstancesExchangeQuote for details on how to use this API operation.
  16118. //
  16119. // The context must be non-nil and will be used for request cancellation. If
  16120. // the context is nil a panic will occur. In the future the SDK may create
  16121. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16122. // for more information on using Contexts.
  16123. func (c *EC2) GetReservedInstancesExchangeQuoteWithContext(ctx aws.Context, input *GetReservedInstancesExchangeQuoteInput, opts ...request.Option) (*GetReservedInstancesExchangeQuoteOutput, error) {
  16124. req, out := c.GetReservedInstancesExchangeQuoteRequest(input)
  16125. req.SetContext(ctx)
  16126. req.ApplyOptions(opts...)
  16127. return out, req.Send()
  16128. }
  16129. const opImportImage = "ImportImage"
  16130. // ImportImageRequest generates a "aws/request.Request" representing the
  16131. // client's request for the ImportImage operation. The "output" return
  16132. // value will be populated with the request's response once the request completes
  16133. // successfuly.
  16134. //
  16135. // Use "Send" method on the returned Request to send the API call to the service.
  16136. // the "output" return value is not valid until after Send returns without error.
  16137. //
  16138. // See ImportImage for more information on using the ImportImage
  16139. // API call, and error handling.
  16140. //
  16141. // This method is useful when you want to inject custom logic or configuration
  16142. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16143. //
  16144. //
  16145. // // Example sending a request using the ImportImageRequest method.
  16146. // req, resp := client.ImportImageRequest(params)
  16147. //
  16148. // err := req.Send()
  16149. // if err == nil { // resp is now filled
  16150. // fmt.Println(resp)
  16151. // }
  16152. //
  16153. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportImage
  16154. func (c *EC2) ImportImageRequest(input *ImportImageInput) (req *request.Request, output *ImportImageOutput) {
  16155. op := &request.Operation{
  16156. Name: opImportImage,
  16157. HTTPMethod: "POST",
  16158. HTTPPath: "/",
  16159. }
  16160. if input == nil {
  16161. input = &ImportImageInput{}
  16162. }
  16163. output = &ImportImageOutput{}
  16164. req = c.newRequest(op, input, output)
  16165. return
  16166. }
  16167. // ImportImage API operation for Amazon Elastic Compute Cloud.
  16168. //
  16169. // Import single or multi-volume disk images or EBS snapshots into an Amazon
  16170. // Machine Image (AMI). For more information, see Importing a VM as an Image
  16171. // Using VM Import/Export (http://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html)
  16172. // in the VM Import/Export User Guide.
  16173. //
  16174. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16175. // with awserr.Error's Code and Message methods to get detailed information about
  16176. // the error.
  16177. //
  16178. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16179. // API operation ImportImage for usage and error information.
  16180. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportImage
  16181. func (c *EC2) ImportImage(input *ImportImageInput) (*ImportImageOutput, error) {
  16182. req, out := c.ImportImageRequest(input)
  16183. return out, req.Send()
  16184. }
  16185. // ImportImageWithContext is the same as ImportImage with the addition of
  16186. // the ability to pass a context and additional request options.
  16187. //
  16188. // See ImportImage for details on how to use this API operation.
  16189. //
  16190. // The context must be non-nil and will be used for request cancellation. If
  16191. // the context is nil a panic will occur. In the future the SDK may create
  16192. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16193. // for more information on using Contexts.
  16194. func (c *EC2) ImportImageWithContext(ctx aws.Context, input *ImportImageInput, opts ...request.Option) (*ImportImageOutput, error) {
  16195. req, out := c.ImportImageRequest(input)
  16196. req.SetContext(ctx)
  16197. req.ApplyOptions(opts...)
  16198. return out, req.Send()
  16199. }
  16200. const opImportInstance = "ImportInstance"
  16201. // ImportInstanceRequest generates a "aws/request.Request" representing the
  16202. // client's request for the ImportInstance operation. The "output" return
  16203. // value will be populated with the request's response once the request completes
  16204. // successfuly.
  16205. //
  16206. // Use "Send" method on the returned Request to send the API call to the service.
  16207. // the "output" return value is not valid until after Send returns without error.
  16208. //
  16209. // See ImportInstance for more information on using the ImportInstance
  16210. // API call, and error handling.
  16211. //
  16212. // This method is useful when you want to inject custom logic or configuration
  16213. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16214. //
  16215. //
  16216. // // Example sending a request using the ImportInstanceRequest method.
  16217. // req, resp := client.ImportInstanceRequest(params)
  16218. //
  16219. // err := req.Send()
  16220. // if err == nil { // resp is now filled
  16221. // fmt.Println(resp)
  16222. // }
  16223. //
  16224. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportInstance
  16225. func (c *EC2) ImportInstanceRequest(input *ImportInstanceInput) (req *request.Request, output *ImportInstanceOutput) {
  16226. op := &request.Operation{
  16227. Name: opImportInstance,
  16228. HTTPMethod: "POST",
  16229. HTTPPath: "/",
  16230. }
  16231. if input == nil {
  16232. input = &ImportInstanceInput{}
  16233. }
  16234. output = &ImportInstanceOutput{}
  16235. req = c.newRequest(op, input, output)
  16236. return
  16237. }
  16238. // ImportInstance API operation for Amazon Elastic Compute Cloud.
  16239. //
  16240. // Creates an import instance task using metadata from the specified disk image.
  16241. // ImportInstance only supports single-volume VMs. To import multi-volume VMs,
  16242. // use ImportImage. For more information, see Importing a Virtual Machine Using
  16243. // the Amazon EC2 CLI (http://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/ec2-cli-vmimport-export.html).
  16244. //
  16245. // For information about the import manifest referenced by this API action,
  16246. // see VM Import Manifest (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html).
  16247. //
  16248. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16249. // with awserr.Error's Code and Message methods to get detailed information about
  16250. // the error.
  16251. //
  16252. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16253. // API operation ImportInstance for usage and error information.
  16254. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportInstance
  16255. func (c *EC2) ImportInstance(input *ImportInstanceInput) (*ImportInstanceOutput, error) {
  16256. req, out := c.ImportInstanceRequest(input)
  16257. return out, req.Send()
  16258. }
  16259. // ImportInstanceWithContext is the same as ImportInstance with the addition of
  16260. // the ability to pass a context and additional request options.
  16261. //
  16262. // See ImportInstance for details on how to use this API operation.
  16263. //
  16264. // The context must be non-nil and will be used for request cancellation. If
  16265. // the context is nil a panic will occur. In the future the SDK may create
  16266. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16267. // for more information on using Contexts.
  16268. func (c *EC2) ImportInstanceWithContext(ctx aws.Context, input *ImportInstanceInput, opts ...request.Option) (*ImportInstanceOutput, error) {
  16269. req, out := c.ImportInstanceRequest(input)
  16270. req.SetContext(ctx)
  16271. req.ApplyOptions(opts...)
  16272. return out, req.Send()
  16273. }
  16274. const opImportKeyPair = "ImportKeyPair"
  16275. // ImportKeyPairRequest generates a "aws/request.Request" representing the
  16276. // client's request for the ImportKeyPair operation. The "output" return
  16277. // value will be populated with the request's response once the request completes
  16278. // successfuly.
  16279. //
  16280. // Use "Send" method on the returned Request to send the API call to the service.
  16281. // the "output" return value is not valid until after Send returns without error.
  16282. //
  16283. // See ImportKeyPair for more information on using the ImportKeyPair
  16284. // API call, and error handling.
  16285. //
  16286. // This method is useful when you want to inject custom logic or configuration
  16287. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16288. //
  16289. //
  16290. // // Example sending a request using the ImportKeyPairRequest method.
  16291. // req, resp := client.ImportKeyPairRequest(params)
  16292. //
  16293. // err := req.Send()
  16294. // if err == nil { // resp is now filled
  16295. // fmt.Println(resp)
  16296. // }
  16297. //
  16298. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportKeyPair
  16299. func (c *EC2) ImportKeyPairRequest(input *ImportKeyPairInput) (req *request.Request, output *ImportKeyPairOutput) {
  16300. op := &request.Operation{
  16301. Name: opImportKeyPair,
  16302. HTTPMethod: "POST",
  16303. HTTPPath: "/",
  16304. }
  16305. if input == nil {
  16306. input = &ImportKeyPairInput{}
  16307. }
  16308. output = &ImportKeyPairOutput{}
  16309. req = c.newRequest(op, input, output)
  16310. return
  16311. }
  16312. // ImportKeyPair API operation for Amazon Elastic Compute Cloud.
  16313. //
  16314. // Imports the public key from an RSA key pair that you created with a third-party
  16315. // tool. Compare this with CreateKeyPair, in which AWS creates the key pair
  16316. // and gives the keys to you (AWS keeps a copy of the public key). With ImportKeyPair,
  16317. // you create the key pair and give AWS just the public key. The private key
  16318. // is never transferred between you and AWS.
  16319. //
  16320. // For more information about key pairs, see Key Pairs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html)
  16321. // in the Amazon Elastic Compute Cloud User Guide.
  16322. //
  16323. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16324. // with awserr.Error's Code and Message methods to get detailed information about
  16325. // the error.
  16326. //
  16327. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16328. // API operation ImportKeyPair for usage and error information.
  16329. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportKeyPair
  16330. func (c *EC2) ImportKeyPair(input *ImportKeyPairInput) (*ImportKeyPairOutput, error) {
  16331. req, out := c.ImportKeyPairRequest(input)
  16332. return out, req.Send()
  16333. }
  16334. // ImportKeyPairWithContext is the same as ImportKeyPair with the addition of
  16335. // the ability to pass a context and additional request options.
  16336. //
  16337. // See ImportKeyPair for details on how to use this API operation.
  16338. //
  16339. // The context must be non-nil and will be used for request cancellation. If
  16340. // the context is nil a panic will occur. In the future the SDK may create
  16341. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16342. // for more information on using Contexts.
  16343. func (c *EC2) ImportKeyPairWithContext(ctx aws.Context, input *ImportKeyPairInput, opts ...request.Option) (*ImportKeyPairOutput, error) {
  16344. req, out := c.ImportKeyPairRequest(input)
  16345. req.SetContext(ctx)
  16346. req.ApplyOptions(opts...)
  16347. return out, req.Send()
  16348. }
  16349. const opImportSnapshot = "ImportSnapshot"
  16350. // ImportSnapshotRequest generates a "aws/request.Request" representing the
  16351. // client's request for the ImportSnapshot operation. The "output" return
  16352. // value will be populated with the request's response once the request completes
  16353. // successfuly.
  16354. //
  16355. // Use "Send" method on the returned Request to send the API call to the service.
  16356. // the "output" return value is not valid until after Send returns without error.
  16357. //
  16358. // See ImportSnapshot for more information on using the ImportSnapshot
  16359. // API call, and error handling.
  16360. //
  16361. // This method is useful when you want to inject custom logic or configuration
  16362. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16363. //
  16364. //
  16365. // // Example sending a request using the ImportSnapshotRequest method.
  16366. // req, resp := client.ImportSnapshotRequest(params)
  16367. //
  16368. // err := req.Send()
  16369. // if err == nil { // resp is now filled
  16370. // fmt.Println(resp)
  16371. // }
  16372. //
  16373. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportSnapshot
  16374. func (c *EC2) ImportSnapshotRequest(input *ImportSnapshotInput) (req *request.Request, output *ImportSnapshotOutput) {
  16375. op := &request.Operation{
  16376. Name: opImportSnapshot,
  16377. HTTPMethod: "POST",
  16378. HTTPPath: "/",
  16379. }
  16380. if input == nil {
  16381. input = &ImportSnapshotInput{}
  16382. }
  16383. output = &ImportSnapshotOutput{}
  16384. req = c.newRequest(op, input, output)
  16385. return
  16386. }
  16387. // ImportSnapshot API operation for Amazon Elastic Compute Cloud.
  16388. //
  16389. // Imports a disk into an EBS snapshot.
  16390. //
  16391. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16392. // with awserr.Error's Code and Message methods to get detailed information about
  16393. // the error.
  16394. //
  16395. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16396. // API operation ImportSnapshot for usage and error information.
  16397. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportSnapshot
  16398. func (c *EC2) ImportSnapshot(input *ImportSnapshotInput) (*ImportSnapshotOutput, error) {
  16399. req, out := c.ImportSnapshotRequest(input)
  16400. return out, req.Send()
  16401. }
  16402. // ImportSnapshotWithContext is the same as ImportSnapshot with the addition of
  16403. // the ability to pass a context and additional request options.
  16404. //
  16405. // See ImportSnapshot for details on how to use this API operation.
  16406. //
  16407. // The context must be non-nil and will be used for request cancellation. If
  16408. // the context is nil a panic will occur. In the future the SDK may create
  16409. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16410. // for more information on using Contexts.
  16411. func (c *EC2) ImportSnapshotWithContext(ctx aws.Context, input *ImportSnapshotInput, opts ...request.Option) (*ImportSnapshotOutput, error) {
  16412. req, out := c.ImportSnapshotRequest(input)
  16413. req.SetContext(ctx)
  16414. req.ApplyOptions(opts...)
  16415. return out, req.Send()
  16416. }
  16417. const opImportVolume = "ImportVolume"
  16418. // ImportVolumeRequest generates a "aws/request.Request" representing the
  16419. // client's request for the ImportVolume operation. The "output" return
  16420. // value will be populated with the request's response once the request completes
  16421. // successfuly.
  16422. //
  16423. // Use "Send" method on the returned Request to send the API call to the service.
  16424. // the "output" return value is not valid until after Send returns without error.
  16425. //
  16426. // See ImportVolume for more information on using the ImportVolume
  16427. // API call, and error handling.
  16428. //
  16429. // This method is useful when you want to inject custom logic or configuration
  16430. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16431. //
  16432. //
  16433. // // Example sending a request using the ImportVolumeRequest method.
  16434. // req, resp := client.ImportVolumeRequest(params)
  16435. //
  16436. // err := req.Send()
  16437. // if err == nil { // resp is now filled
  16438. // fmt.Println(resp)
  16439. // }
  16440. //
  16441. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportVolume
  16442. func (c *EC2) ImportVolumeRequest(input *ImportVolumeInput) (req *request.Request, output *ImportVolumeOutput) {
  16443. op := &request.Operation{
  16444. Name: opImportVolume,
  16445. HTTPMethod: "POST",
  16446. HTTPPath: "/",
  16447. }
  16448. if input == nil {
  16449. input = &ImportVolumeInput{}
  16450. }
  16451. output = &ImportVolumeOutput{}
  16452. req = c.newRequest(op, input, output)
  16453. return
  16454. }
  16455. // ImportVolume API operation for Amazon Elastic Compute Cloud.
  16456. //
  16457. // Creates an import volume task using metadata from the specified disk image.For
  16458. // more information, see Importing Disks to Amazon EBS (http://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/importing-your-volumes-into-amazon-ebs.html).
  16459. //
  16460. // For information about the import manifest referenced by this API action,
  16461. // see VM Import Manifest (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html).
  16462. //
  16463. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16464. // with awserr.Error's Code and Message methods to get detailed information about
  16465. // the error.
  16466. //
  16467. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16468. // API operation ImportVolume for usage and error information.
  16469. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportVolume
  16470. func (c *EC2) ImportVolume(input *ImportVolumeInput) (*ImportVolumeOutput, error) {
  16471. req, out := c.ImportVolumeRequest(input)
  16472. return out, req.Send()
  16473. }
  16474. // ImportVolumeWithContext is the same as ImportVolume with the addition of
  16475. // the ability to pass a context and additional request options.
  16476. //
  16477. // See ImportVolume for details on how to use this API operation.
  16478. //
  16479. // The context must be non-nil and will be used for request cancellation. If
  16480. // the context is nil a panic will occur. In the future the SDK may create
  16481. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16482. // for more information on using Contexts.
  16483. func (c *EC2) ImportVolumeWithContext(ctx aws.Context, input *ImportVolumeInput, opts ...request.Option) (*ImportVolumeOutput, error) {
  16484. req, out := c.ImportVolumeRequest(input)
  16485. req.SetContext(ctx)
  16486. req.ApplyOptions(opts...)
  16487. return out, req.Send()
  16488. }
  16489. const opModifyFleet = "ModifyFleet"
  16490. // ModifyFleetRequest generates a "aws/request.Request" representing the
  16491. // client's request for the ModifyFleet operation. The "output" return
  16492. // value will be populated with the request's response once the request completes
  16493. // successfuly.
  16494. //
  16495. // Use "Send" method on the returned Request to send the API call to the service.
  16496. // the "output" return value is not valid until after Send returns without error.
  16497. //
  16498. // See ModifyFleet for more information on using the ModifyFleet
  16499. // API call, and error handling.
  16500. //
  16501. // This method is useful when you want to inject custom logic or configuration
  16502. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16503. //
  16504. //
  16505. // // Example sending a request using the ModifyFleetRequest method.
  16506. // req, resp := client.ModifyFleetRequest(params)
  16507. //
  16508. // err := req.Send()
  16509. // if err == nil { // resp is now filled
  16510. // fmt.Println(resp)
  16511. // }
  16512. //
  16513. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyFleet
  16514. func (c *EC2) ModifyFleetRequest(input *ModifyFleetInput) (req *request.Request, output *ModifyFleetOutput) {
  16515. op := &request.Operation{
  16516. Name: opModifyFleet,
  16517. HTTPMethod: "POST",
  16518. HTTPPath: "/",
  16519. }
  16520. if input == nil {
  16521. input = &ModifyFleetInput{}
  16522. }
  16523. output = &ModifyFleetOutput{}
  16524. req = c.newRequest(op, input, output)
  16525. return
  16526. }
  16527. // ModifyFleet API operation for Amazon Elastic Compute Cloud.
  16528. //
  16529. // Modifies the specified EC2 Fleet.
  16530. //
  16531. // While the EC2 Fleet is being modified, it is in the modifying state.
  16532. //
  16533. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16534. // with awserr.Error's Code and Message methods to get detailed information about
  16535. // the error.
  16536. //
  16537. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16538. // API operation ModifyFleet for usage and error information.
  16539. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyFleet
  16540. func (c *EC2) ModifyFleet(input *ModifyFleetInput) (*ModifyFleetOutput, error) {
  16541. req, out := c.ModifyFleetRequest(input)
  16542. return out, req.Send()
  16543. }
  16544. // ModifyFleetWithContext is the same as ModifyFleet with the addition of
  16545. // the ability to pass a context and additional request options.
  16546. //
  16547. // See ModifyFleet for details on how to use this API operation.
  16548. //
  16549. // The context must be non-nil and will be used for request cancellation. If
  16550. // the context is nil a panic will occur. In the future the SDK may create
  16551. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16552. // for more information on using Contexts.
  16553. func (c *EC2) ModifyFleetWithContext(ctx aws.Context, input *ModifyFleetInput, opts ...request.Option) (*ModifyFleetOutput, error) {
  16554. req, out := c.ModifyFleetRequest(input)
  16555. req.SetContext(ctx)
  16556. req.ApplyOptions(opts...)
  16557. return out, req.Send()
  16558. }
  16559. const opModifyFpgaImageAttribute = "ModifyFpgaImageAttribute"
  16560. // ModifyFpgaImageAttributeRequest generates a "aws/request.Request" representing the
  16561. // client's request for the ModifyFpgaImageAttribute operation. The "output" return
  16562. // value will be populated with the request's response once the request completes
  16563. // successfuly.
  16564. //
  16565. // Use "Send" method on the returned Request to send the API call to the service.
  16566. // the "output" return value is not valid until after Send returns without error.
  16567. //
  16568. // See ModifyFpgaImageAttribute for more information on using the ModifyFpgaImageAttribute
  16569. // API call, and error handling.
  16570. //
  16571. // This method is useful when you want to inject custom logic or configuration
  16572. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16573. //
  16574. //
  16575. // // Example sending a request using the ModifyFpgaImageAttributeRequest method.
  16576. // req, resp := client.ModifyFpgaImageAttributeRequest(params)
  16577. //
  16578. // err := req.Send()
  16579. // if err == nil { // resp is now filled
  16580. // fmt.Println(resp)
  16581. // }
  16582. //
  16583. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyFpgaImageAttribute
  16584. func (c *EC2) ModifyFpgaImageAttributeRequest(input *ModifyFpgaImageAttributeInput) (req *request.Request, output *ModifyFpgaImageAttributeOutput) {
  16585. op := &request.Operation{
  16586. Name: opModifyFpgaImageAttribute,
  16587. HTTPMethod: "POST",
  16588. HTTPPath: "/",
  16589. }
  16590. if input == nil {
  16591. input = &ModifyFpgaImageAttributeInput{}
  16592. }
  16593. output = &ModifyFpgaImageAttributeOutput{}
  16594. req = c.newRequest(op, input, output)
  16595. return
  16596. }
  16597. // ModifyFpgaImageAttribute API operation for Amazon Elastic Compute Cloud.
  16598. //
  16599. // Modifies the specified attribute of the specified Amazon FPGA Image (AFI).
  16600. //
  16601. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16602. // with awserr.Error's Code and Message methods to get detailed information about
  16603. // the error.
  16604. //
  16605. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16606. // API operation ModifyFpgaImageAttribute for usage and error information.
  16607. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyFpgaImageAttribute
  16608. func (c *EC2) ModifyFpgaImageAttribute(input *ModifyFpgaImageAttributeInput) (*ModifyFpgaImageAttributeOutput, error) {
  16609. req, out := c.ModifyFpgaImageAttributeRequest(input)
  16610. return out, req.Send()
  16611. }
  16612. // ModifyFpgaImageAttributeWithContext is the same as ModifyFpgaImageAttribute with the addition of
  16613. // the ability to pass a context and additional request options.
  16614. //
  16615. // See ModifyFpgaImageAttribute for details on how to use this API operation.
  16616. //
  16617. // The context must be non-nil and will be used for request cancellation. If
  16618. // the context is nil a panic will occur. In the future the SDK may create
  16619. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16620. // for more information on using Contexts.
  16621. func (c *EC2) ModifyFpgaImageAttributeWithContext(ctx aws.Context, input *ModifyFpgaImageAttributeInput, opts ...request.Option) (*ModifyFpgaImageAttributeOutput, error) {
  16622. req, out := c.ModifyFpgaImageAttributeRequest(input)
  16623. req.SetContext(ctx)
  16624. req.ApplyOptions(opts...)
  16625. return out, req.Send()
  16626. }
  16627. const opModifyHosts = "ModifyHosts"
  16628. // ModifyHostsRequest generates a "aws/request.Request" representing the
  16629. // client's request for the ModifyHosts operation. The "output" return
  16630. // value will be populated with the request's response once the request completes
  16631. // successfuly.
  16632. //
  16633. // Use "Send" method on the returned Request to send the API call to the service.
  16634. // the "output" return value is not valid until after Send returns without error.
  16635. //
  16636. // See ModifyHosts for more information on using the ModifyHosts
  16637. // API call, and error handling.
  16638. //
  16639. // This method is useful when you want to inject custom logic or configuration
  16640. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16641. //
  16642. //
  16643. // // Example sending a request using the ModifyHostsRequest method.
  16644. // req, resp := client.ModifyHostsRequest(params)
  16645. //
  16646. // err := req.Send()
  16647. // if err == nil { // resp is now filled
  16648. // fmt.Println(resp)
  16649. // }
  16650. //
  16651. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyHosts
  16652. func (c *EC2) ModifyHostsRequest(input *ModifyHostsInput) (req *request.Request, output *ModifyHostsOutput) {
  16653. op := &request.Operation{
  16654. Name: opModifyHosts,
  16655. HTTPMethod: "POST",
  16656. HTTPPath: "/",
  16657. }
  16658. if input == nil {
  16659. input = &ModifyHostsInput{}
  16660. }
  16661. output = &ModifyHostsOutput{}
  16662. req = c.newRequest(op, input, output)
  16663. return
  16664. }
  16665. // ModifyHosts API operation for Amazon Elastic Compute Cloud.
  16666. //
  16667. // Modify the auto-placement setting of a Dedicated Host. When auto-placement
  16668. // is enabled, AWS will place instances that you launch with a tenancy of host,
  16669. // but without targeting a specific host ID, onto any available Dedicated Host
  16670. // in your account which has auto-placement enabled. When auto-placement is
  16671. // disabled, you need to provide a host ID if you want the instance to launch
  16672. // onto a specific host. If no host ID is provided, the instance will be launched
  16673. // onto a suitable host which has auto-placement enabled.
  16674. //
  16675. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16676. // with awserr.Error's Code and Message methods to get detailed information about
  16677. // the error.
  16678. //
  16679. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16680. // API operation ModifyHosts for usage and error information.
  16681. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyHosts
  16682. func (c *EC2) ModifyHosts(input *ModifyHostsInput) (*ModifyHostsOutput, error) {
  16683. req, out := c.ModifyHostsRequest(input)
  16684. return out, req.Send()
  16685. }
  16686. // ModifyHostsWithContext is the same as ModifyHosts with the addition of
  16687. // the ability to pass a context and additional request options.
  16688. //
  16689. // See ModifyHosts for details on how to use this API operation.
  16690. //
  16691. // The context must be non-nil and will be used for request cancellation. If
  16692. // the context is nil a panic will occur. In the future the SDK may create
  16693. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16694. // for more information on using Contexts.
  16695. func (c *EC2) ModifyHostsWithContext(ctx aws.Context, input *ModifyHostsInput, opts ...request.Option) (*ModifyHostsOutput, error) {
  16696. req, out := c.ModifyHostsRequest(input)
  16697. req.SetContext(ctx)
  16698. req.ApplyOptions(opts...)
  16699. return out, req.Send()
  16700. }
  16701. const opModifyIdFormat = "ModifyIdFormat"
  16702. // ModifyIdFormatRequest generates a "aws/request.Request" representing the
  16703. // client's request for the ModifyIdFormat operation. The "output" return
  16704. // value will be populated with the request's response once the request completes
  16705. // successfuly.
  16706. //
  16707. // Use "Send" method on the returned Request to send the API call to the service.
  16708. // the "output" return value is not valid until after Send returns without error.
  16709. //
  16710. // See ModifyIdFormat for more information on using the ModifyIdFormat
  16711. // API call, and error handling.
  16712. //
  16713. // This method is useful when you want to inject custom logic or configuration
  16714. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16715. //
  16716. //
  16717. // // Example sending a request using the ModifyIdFormatRequest method.
  16718. // req, resp := client.ModifyIdFormatRequest(params)
  16719. //
  16720. // err := req.Send()
  16721. // if err == nil { // resp is now filled
  16722. // fmt.Println(resp)
  16723. // }
  16724. //
  16725. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyIdFormat
  16726. func (c *EC2) ModifyIdFormatRequest(input *ModifyIdFormatInput) (req *request.Request, output *ModifyIdFormatOutput) {
  16727. op := &request.Operation{
  16728. Name: opModifyIdFormat,
  16729. HTTPMethod: "POST",
  16730. HTTPPath: "/",
  16731. }
  16732. if input == nil {
  16733. input = &ModifyIdFormatInput{}
  16734. }
  16735. output = &ModifyIdFormatOutput{}
  16736. req = c.newRequest(op, input, output)
  16737. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  16738. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  16739. return
  16740. }
  16741. // ModifyIdFormat API operation for Amazon Elastic Compute Cloud.
  16742. //
  16743. // Modifies the ID format for the specified resource on a per-region basis.
  16744. // You can specify that resources should receive longer IDs (17-character IDs)
  16745. // when they are created.
  16746. //
  16747. // This request can only be used to modify longer ID settings for resource types
  16748. // that are within the opt-in period. Resources currently in their opt-in period
  16749. // include: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation
  16750. // | elastic-ip-association | export-task | flow-log | image | import-task |
  16751. // internet-gateway | network-acl | network-acl-association | network-interface
  16752. // | network-interface-attachment | prefix-list | route-table | route-table-association
  16753. // | security-group | subnet | subnet-cidr-block-association | vpc | vpc-cidr-block-association
  16754. // | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.
  16755. //
  16756. // This setting applies to the IAM user who makes the request; it does not apply
  16757. // to the entire AWS account. By default, an IAM user defaults to the same settings
  16758. // as the root user. If you're using this action as the root user, then these
  16759. // settings apply to the entire account, unless an IAM user explicitly overrides
  16760. // these settings for themselves. For more information, see Resource IDs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/resource-ids.html)
  16761. // in the Amazon Elastic Compute Cloud User Guide.
  16762. //
  16763. // Resources created with longer IDs are visible to all IAM roles and users,
  16764. // regardless of these settings and provided that they have permission to use
  16765. // the relevant Describe command for the resource type.
  16766. //
  16767. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16768. // with awserr.Error's Code and Message methods to get detailed information about
  16769. // the error.
  16770. //
  16771. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16772. // API operation ModifyIdFormat for usage and error information.
  16773. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyIdFormat
  16774. func (c *EC2) ModifyIdFormat(input *ModifyIdFormatInput) (*ModifyIdFormatOutput, error) {
  16775. req, out := c.ModifyIdFormatRequest(input)
  16776. return out, req.Send()
  16777. }
  16778. // ModifyIdFormatWithContext is the same as ModifyIdFormat with the addition of
  16779. // the ability to pass a context and additional request options.
  16780. //
  16781. // See ModifyIdFormat for details on how to use this API operation.
  16782. //
  16783. // The context must be non-nil and will be used for request cancellation. If
  16784. // the context is nil a panic will occur. In the future the SDK may create
  16785. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16786. // for more information on using Contexts.
  16787. func (c *EC2) ModifyIdFormatWithContext(ctx aws.Context, input *ModifyIdFormatInput, opts ...request.Option) (*ModifyIdFormatOutput, error) {
  16788. req, out := c.ModifyIdFormatRequest(input)
  16789. req.SetContext(ctx)
  16790. req.ApplyOptions(opts...)
  16791. return out, req.Send()
  16792. }
  16793. const opModifyIdentityIdFormat = "ModifyIdentityIdFormat"
  16794. // ModifyIdentityIdFormatRequest generates a "aws/request.Request" representing the
  16795. // client's request for the ModifyIdentityIdFormat operation. The "output" return
  16796. // value will be populated with the request's response once the request completes
  16797. // successfuly.
  16798. //
  16799. // Use "Send" method on the returned Request to send the API call to the service.
  16800. // the "output" return value is not valid until after Send returns without error.
  16801. //
  16802. // See ModifyIdentityIdFormat for more information on using the ModifyIdentityIdFormat
  16803. // API call, and error handling.
  16804. //
  16805. // This method is useful when you want to inject custom logic or configuration
  16806. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16807. //
  16808. //
  16809. // // Example sending a request using the ModifyIdentityIdFormatRequest method.
  16810. // req, resp := client.ModifyIdentityIdFormatRequest(params)
  16811. //
  16812. // err := req.Send()
  16813. // if err == nil { // resp is now filled
  16814. // fmt.Println(resp)
  16815. // }
  16816. //
  16817. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyIdentityIdFormat
  16818. func (c *EC2) ModifyIdentityIdFormatRequest(input *ModifyIdentityIdFormatInput) (req *request.Request, output *ModifyIdentityIdFormatOutput) {
  16819. op := &request.Operation{
  16820. Name: opModifyIdentityIdFormat,
  16821. HTTPMethod: "POST",
  16822. HTTPPath: "/",
  16823. }
  16824. if input == nil {
  16825. input = &ModifyIdentityIdFormatInput{}
  16826. }
  16827. output = &ModifyIdentityIdFormatOutput{}
  16828. req = c.newRequest(op, input, output)
  16829. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  16830. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  16831. return
  16832. }
  16833. // ModifyIdentityIdFormat API operation for Amazon Elastic Compute Cloud.
  16834. //
  16835. // Modifies the ID format of a resource for a specified IAM user, IAM role,
  16836. // or the root user for an account; or all IAM users, IAM roles, and the root
  16837. // user for an account. You can specify that resources should receive longer
  16838. // IDs (17-character IDs) when they are created.
  16839. //
  16840. // This request can only be used to modify longer ID settings for resource types
  16841. // that are within the opt-in period. Resources currently in their opt-in period
  16842. // include: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation
  16843. // | elastic-ip-association | export-task | flow-log | image | import-task |
  16844. // internet-gateway | network-acl | network-acl-association | network-interface
  16845. // | network-interface-attachment | prefix-list | route-table | route-table-association
  16846. // | security-group | subnet | subnet-cidr-block-association | vpc | vpc-cidr-block-association
  16847. // | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.
  16848. //
  16849. // For more information, see Resource IDs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/resource-ids.html)
  16850. // in the Amazon Elastic Compute Cloud User Guide.
  16851. //
  16852. // This setting applies to the principal specified in the request; it does not
  16853. // apply to the principal that makes the request.
  16854. //
  16855. // Resources created with longer IDs are visible to all IAM roles and users,
  16856. // regardless of these settings and provided that they have permission to use
  16857. // the relevant Describe command for the resource type.
  16858. //
  16859. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16860. // with awserr.Error's Code and Message methods to get detailed information about
  16861. // the error.
  16862. //
  16863. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16864. // API operation ModifyIdentityIdFormat for usage and error information.
  16865. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyIdentityIdFormat
  16866. func (c *EC2) ModifyIdentityIdFormat(input *ModifyIdentityIdFormatInput) (*ModifyIdentityIdFormatOutput, error) {
  16867. req, out := c.ModifyIdentityIdFormatRequest(input)
  16868. return out, req.Send()
  16869. }
  16870. // ModifyIdentityIdFormatWithContext is the same as ModifyIdentityIdFormat with the addition of
  16871. // the ability to pass a context and additional request options.
  16872. //
  16873. // See ModifyIdentityIdFormat for details on how to use this API operation.
  16874. //
  16875. // The context must be non-nil and will be used for request cancellation. If
  16876. // the context is nil a panic will occur. In the future the SDK may create
  16877. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16878. // for more information on using Contexts.
  16879. func (c *EC2) ModifyIdentityIdFormatWithContext(ctx aws.Context, input *ModifyIdentityIdFormatInput, opts ...request.Option) (*ModifyIdentityIdFormatOutput, error) {
  16880. req, out := c.ModifyIdentityIdFormatRequest(input)
  16881. req.SetContext(ctx)
  16882. req.ApplyOptions(opts...)
  16883. return out, req.Send()
  16884. }
  16885. const opModifyImageAttribute = "ModifyImageAttribute"
  16886. // ModifyImageAttributeRequest generates a "aws/request.Request" representing the
  16887. // client's request for the ModifyImageAttribute operation. The "output" return
  16888. // value will be populated with the request's response once the request completes
  16889. // successfuly.
  16890. //
  16891. // Use "Send" method on the returned Request to send the API call to the service.
  16892. // the "output" return value is not valid until after Send returns without error.
  16893. //
  16894. // See ModifyImageAttribute for more information on using the ModifyImageAttribute
  16895. // API call, and error handling.
  16896. //
  16897. // This method is useful when you want to inject custom logic or configuration
  16898. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16899. //
  16900. //
  16901. // // Example sending a request using the ModifyImageAttributeRequest method.
  16902. // req, resp := client.ModifyImageAttributeRequest(params)
  16903. //
  16904. // err := req.Send()
  16905. // if err == nil { // resp is now filled
  16906. // fmt.Println(resp)
  16907. // }
  16908. //
  16909. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyImageAttribute
  16910. func (c *EC2) ModifyImageAttributeRequest(input *ModifyImageAttributeInput) (req *request.Request, output *ModifyImageAttributeOutput) {
  16911. op := &request.Operation{
  16912. Name: opModifyImageAttribute,
  16913. HTTPMethod: "POST",
  16914. HTTPPath: "/",
  16915. }
  16916. if input == nil {
  16917. input = &ModifyImageAttributeInput{}
  16918. }
  16919. output = &ModifyImageAttributeOutput{}
  16920. req = c.newRequest(op, input, output)
  16921. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  16922. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  16923. return
  16924. }
  16925. // ModifyImageAttribute API operation for Amazon Elastic Compute Cloud.
  16926. //
  16927. // Modifies the specified attribute of the specified AMI. You can specify only
  16928. // one attribute at a time. You can use the Attribute parameter to specify the
  16929. // attribute or one of the following parameters: Description, LaunchPermission,
  16930. // or ProductCode.
  16931. //
  16932. // AWS Marketplace product codes cannot be modified. Images with an AWS Marketplace
  16933. // product code cannot be made public.
  16934. //
  16935. // To enable the SriovNetSupport enhanced networking attribute of an image,
  16936. // enable SriovNetSupport on an instance and create an AMI from the instance.
  16937. //
  16938. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16939. // with awserr.Error's Code and Message methods to get detailed information about
  16940. // the error.
  16941. //
  16942. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16943. // API operation ModifyImageAttribute for usage and error information.
  16944. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyImageAttribute
  16945. func (c *EC2) ModifyImageAttribute(input *ModifyImageAttributeInput) (*ModifyImageAttributeOutput, error) {
  16946. req, out := c.ModifyImageAttributeRequest(input)
  16947. return out, req.Send()
  16948. }
  16949. // ModifyImageAttributeWithContext is the same as ModifyImageAttribute with the addition of
  16950. // the ability to pass a context and additional request options.
  16951. //
  16952. // See ModifyImageAttribute for details on how to use this API operation.
  16953. //
  16954. // The context must be non-nil and will be used for request cancellation. If
  16955. // the context is nil a panic will occur. In the future the SDK may create
  16956. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16957. // for more information on using Contexts.
  16958. func (c *EC2) ModifyImageAttributeWithContext(ctx aws.Context, input *ModifyImageAttributeInput, opts ...request.Option) (*ModifyImageAttributeOutput, error) {
  16959. req, out := c.ModifyImageAttributeRequest(input)
  16960. req.SetContext(ctx)
  16961. req.ApplyOptions(opts...)
  16962. return out, req.Send()
  16963. }
  16964. const opModifyInstanceAttribute = "ModifyInstanceAttribute"
  16965. // ModifyInstanceAttributeRequest generates a "aws/request.Request" representing the
  16966. // client's request for the ModifyInstanceAttribute operation. The "output" return
  16967. // value will be populated with the request's response once the request completes
  16968. // successfuly.
  16969. //
  16970. // Use "Send" method on the returned Request to send the API call to the service.
  16971. // the "output" return value is not valid until after Send returns without error.
  16972. //
  16973. // See ModifyInstanceAttribute for more information on using the ModifyInstanceAttribute
  16974. // API call, and error handling.
  16975. //
  16976. // This method is useful when you want to inject custom logic or configuration
  16977. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16978. //
  16979. //
  16980. // // Example sending a request using the ModifyInstanceAttributeRequest method.
  16981. // req, resp := client.ModifyInstanceAttributeRequest(params)
  16982. //
  16983. // err := req.Send()
  16984. // if err == nil { // resp is now filled
  16985. // fmt.Println(resp)
  16986. // }
  16987. //
  16988. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceAttribute
  16989. func (c *EC2) ModifyInstanceAttributeRequest(input *ModifyInstanceAttributeInput) (req *request.Request, output *ModifyInstanceAttributeOutput) {
  16990. op := &request.Operation{
  16991. Name: opModifyInstanceAttribute,
  16992. HTTPMethod: "POST",
  16993. HTTPPath: "/",
  16994. }
  16995. if input == nil {
  16996. input = &ModifyInstanceAttributeInput{}
  16997. }
  16998. output = &ModifyInstanceAttributeOutput{}
  16999. req = c.newRequest(op, input, output)
  17000. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  17001. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  17002. return
  17003. }
  17004. // ModifyInstanceAttribute API operation for Amazon Elastic Compute Cloud.
  17005. //
  17006. // Modifies the specified attribute of the specified instance. You can specify
  17007. // only one attribute at a time.
  17008. //
  17009. // Note: Using this action to change the security groups associated with an
  17010. // elastic network interface (ENI) attached to an instance in a VPC can result
  17011. // in an error if the instance has more than one ENI. To change the security
  17012. // groups associated with an ENI attached to an instance that has multiple ENIs,
  17013. // we recommend that you use the ModifyNetworkInterfaceAttribute action.
  17014. //
  17015. // To modify some attributes, the instance must be stopped. For more information,
  17016. // see Modifying Attributes of a Stopped Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_ChangingAttributesWhileInstanceStopped.html)
  17017. // in the Amazon Elastic Compute Cloud User Guide.
  17018. //
  17019. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17020. // with awserr.Error's Code and Message methods to get detailed information about
  17021. // the error.
  17022. //
  17023. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17024. // API operation ModifyInstanceAttribute for usage and error information.
  17025. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceAttribute
  17026. func (c *EC2) ModifyInstanceAttribute(input *ModifyInstanceAttributeInput) (*ModifyInstanceAttributeOutput, error) {
  17027. req, out := c.ModifyInstanceAttributeRequest(input)
  17028. return out, req.Send()
  17029. }
  17030. // ModifyInstanceAttributeWithContext is the same as ModifyInstanceAttribute with the addition of
  17031. // the ability to pass a context and additional request options.
  17032. //
  17033. // See ModifyInstanceAttribute for details on how to use this API operation.
  17034. //
  17035. // The context must be non-nil and will be used for request cancellation. If
  17036. // the context is nil a panic will occur. In the future the SDK may create
  17037. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17038. // for more information on using Contexts.
  17039. func (c *EC2) ModifyInstanceAttributeWithContext(ctx aws.Context, input *ModifyInstanceAttributeInput, opts ...request.Option) (*ModifyInstanceAttributeOutput, error) {
  17040. req, out := c.ModifyInstanceAttributeRequest(input)
  17041. req.SetContext(ctx)
  17042. req.ApplyOptions(opts...)
  17043. return out, req.Send()
  17044. }
  17045. const opModifyInstanceCreditSpecification = "ModifyInstanceCreditSpecification"
  17046. // ModifyInstanceCreditSpecificationRequest generates a "aws/request.Request" representing the
  17047. // client's request for the ModifyInstanceCreditSpecification operation. The "output" return
  17048. // value will be populated with the request's response once the request completes
  17049. // successfuly.
  17050. //
  17051. // Use "Send" method on the returned Request to send the API call to the service.
  17052. // the "output" return value is not valid until after Send returns without error.
  17053. //
  17054. // See ModifyInstanceCreditSpecification for more information on using the ModifyInstanceCreditSpecification
  17055. // API call, and error handling.
  17056. //
  17057. // This method is useful when you want to inject custom logic or configuration
  17058. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17059. //
  17060. //
  17061. // // Example sending a request using the ModifyInstanceCreditSpecificationRequest method.
  17062. // req, resp := client.ModifyInstanceCreditSpecificationRequest(params)
  17063. //
  17064. // err := req.Send()
  17065. // if err == nil { // resp is now filled
  17066. // fmt.Println(resp)
  17067. // }
  17068. //
  17069. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceCreditSpecification
  17070. func (c *EC2) ModifyInstanceCreditSpecificationRequest(input *ModifyInstanceCreditSpecificationInput) (req *request.Request, output *ModifyInstanceCreditSpecificationOutput) {
  17071. op := &request.Operation{
  17072. Name: opModifyInstanceCreditSpecification,
  17073. HTTPMethod: "POST",
  17074. HTTPPath: "/",
  17075. }
  17076. if input == nil {
  17077. input = &ModifyInstanceCreditSpecificationInput{}
  17078. }
  17079. output = &ModifyInstanceCreditSpecificationOutput{}
  17080. req = c.newRequest(op, input, output)
  17081. return
  17082. }
  17083. // ModifyInstanceCreditSpecification API operation for Amazon Elastic Compute Cloud.
  17084. //
  17085. // Modifies the credit option for CPU usage on a running or stopped T2 instance.
  17086. // The credit options are standard and unlimited.
  17087. //
  17088. // For more information, see T2 Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/t2-instances.html)
  17089. // in the Amazon Elastic Compute Cloud User Guide.
  17090. //
  17091. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17092. // with awserr.Error's Code and Message methods to get detailed information about
  17093. // the error.
  17094. //
  17095. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17096. // API operation ModifyInstanceCreditSpecification for usage and error information.
  17097. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceCreditSpecification
  17098. func (c *EC2) ModifyInstanceCreditSpecification(input *ModifyInstanceCreditSpecificationInput) (*ModifyInstanceCreditSpecificationOutput, error) {
  17099. req, out := c.ModifyInstanceCreditSpecificationRequest(input)
  17100. return out, req.Send()
  17101. }
  17102. // ModifyInstanceCreditSpecificationWithContext is the same as ModifyInstanceCreditSpecification with the addition of
  17103. // the ability to pass a context and additional request options.
  17104. //
  17105. // See ModifyInstanceCreditSpecification for details on how to use this API operation.
  17106. //
  17107. // The context must be non-nil and will be used for request cancellation. If
  17108. // the context is nil a panic will occur. In the future the SDK may create
  17109. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17110. // for more information on using Contexts.
  17111. func (c *EC2) ModifyInstanceCreditSpecificationWithContext(ctx aws.Context, input *ModifyInstanceCreditSpecificationInput, opts ...request.Option) (*ModifyInstanceCreditSpecificationOutput, error) {
  17112. req, out := c.ModifyInstanceCreditSpecificationRequest(input)
  17113. req.SetContext(ctx)
  17114. req.ApplyOptions(opts...)
  17115. return out, req.Send()
  17116. }
  17117. const opModifyInstancePlacement = "ModifyInstancePlacement"
  17118. // ModifyInstancePlacementRequest generates a "aws/request.Request" representing the
  17119. // client's request for the ModifyInstancePlacement operation. The "output" return
  17120. // value will be populated with the request's response once the request completes
  17121. // successfuly.
  17122. //
  17123. // Use "Send" method on the returned Request to send the API call to the service.
  17124. // the "output" return value is not valid until after Send returns without error.
  17125. //
  17126. // See ModifyInstancePlacement for more information on using the ModifyInstancePlacement
  17127. // API call, and error handling.
  17128. //
  17129. // This method is useful when you want to inject custom logic or configuration
  17130. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17131. //
  17132. //
  17133. // // Example sending a request using the ModifyInstancePlacementRequest method.
  17134. // req, resp := client.ModifyInstancePlacementRequest(params)
  17135. //
  17136. // err := req.Send()
  17137. // if err == nil { // resp is now filled
  17138. // fmt.Println(resp)
  17139. // }
  17140. //
  17141. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstancePlacement
  17142. func (c *EC2) ModifyInstancePlacementRequest(input *ModifyInstancePlacementInput) (req *request.Request, output *ModifyInstancePlacementOutput) {
  17143. op := &request.Operation{
  17144. Name: opModifyInstancePlacement,
  17145. HTTPMethod: "POST",
  17146. HTTPPath: "/",
  17147. }
  17148. if input == nil {
  17149. input = &ModifyInstancePlacementInput{}
  17150. }
  17151. output = &ModifyInstancePlacementOutput{}
  17152. req = c.newRequest(op, input, output)
  17153. return
  17154. }
  17155. // ModifyInstancePlacement API operation for Amazon Elastic Compute Cloud.
  17156. //
  17157. // Modifies the placement attributes for a specified instance. You can do the
  17158. // following:
  17159. //
  17160. // * Modify the affinity between an instance and a Dedicated Host (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-overview.html).
  17161. // When affinity is set to host and the instance is not associated with a
  17162. // specific Dedicated Host, the next time the instance is launched, it is
  17163. // automatically associated with the host on which it lands. If the instance
  17164. // is restarted or rebooted, this relationship persists.
  17165. //
  17166. // * Change the Dedicated Host with which an instance is associated.
  17167. //
  17168. // * Change the instance tenancy of an instance from host to dedicated, or
  17169. // from dedicated to host.
  17170. //
  17171. // * Move an instance to or from a placement group (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html).
  17172. //
  17173. // At least one attribute for affinity, host ID, tenancy, or placement group
  17174. // name must be specified in the request. Affinity and tenancy can be modified
  17175. // in the same request.
  17176. //
  17177. // To modify the host ID, tenancy, or placement group for an instance, the instance
  17178. // must be in the stopped state.
  17179. //
  17180. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17181. // with awserr.Error's Code and Message methods to get detailed information about
  17182. // the error.
  17183. //
  17184. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17185. // API operation ModifyInstancePlacement for usage and error information.
  17186. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstancePlacement
  17187. func (c *EC2) ModifyInstancePlacement(input *ModifyInstancePlacementInput) (*ModifyInstancePlacementOutput, error) {
  17188. req, out := c.ModifyInstancePlacementRequest(input)
  17189. return out, req.Send()
  17190. }
  17191. // ModifyInstancePlacementWithContext is the same as ModifyInstancePlacement with the addition of
  17192. // the ability to pass a context and additional request options.
  17193. //
  17194. // See ModifyInstancePlacement for details on how to use this API operation.
  17195. //
  17196. // The context must be non-nil and will be used for request cancellation. If
  17197. // the context is nil a panic will occur. In the future the SDK may create
  17198. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17199. // for more information on using Contexts.
  17200. func (c *EC2) ModifyInstancePlacementWithContext(ctx aws.Context, input *ModifyInstancePlacementInput, opts ...request.Option) (*ModifyInstancePlacementOutput, error) {
  17201. req, out := c.ModifyInstancePlacementRequest(input)
  17202. req.SetContext(ctx)
  17203. req.ApplyOptions(opts...)
  17204. return out, req.Send()
  17205. }
  17206. const opModifyLaunchTemplate = "ModifyLaunchTemplate"
  17207. // ModifyLaunchTemplateRequest generates a "aws/request.Request" representing the
  17208. // client's request for the ModifyLaunchTemplate operation. The "output" return
  17209. // value will be populated with the request's response once the request completes
  17210. // successfuly.
  17211. //
  17212. // Use "Send" method on the returned Request to send the API call to the service.
  17213. // the "output" return value is not valid until after Send returns without error.
  17214. //
  17215. // See ModifyLaunchTemplate for more information on using the ModifyLaunchTemplate
  17216. // API call, and error handling.
  17217. //
  17218. // This method is useful when you want to inject custom logic or configuration
  17219. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17220. //
  17221. //
  17222. // // Example sending a request using the ModifyLaunchTemplateRequest method.
  17223. // req, resp := client.ModifyLaunchTemplateRequest(params)
  17224. //
  17225. // err := req.Send()
  17226. // if err == nil { // resp is now filled
  17227. // fmt.Println(resp)
  17228. // }
  17229. //
  17230. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyLaunchTemplate
  17231. func (c *EC2) ModifyLaunchTemplateRequest(input *ModifyLaunchTemplateInput) (req *request.Request, output *ModifyLaunchTemplateOutput) {
  17232. op := &request.Operation{
  17233. Name: opModifyLaunchTemplate,
  17234. HTTPMethod: "POST",
  17235. HTTPPath: "/",
  17236. }
  17237. if input == nil {
  17238. input = &ModifyLaunchTemplateInput{}
  17239. }
  17240. output = &ModifyLaunchTemplateOutput{}
  17241. req = c.newRequest(op, input, output)
  17242. return
  17243. }
  17244. // ModifyLaunchTemplate API operation for Amazon Elastic Compute Cloud.
  17245. //
  17246. // Modifies a launch template. You can specify which version of the launch template
  17247. // to set as the default version. When launching an instance, the default version
  17248. // applies when a launch template version is not specified.
  17249. //
  17250. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17251. // with awserr.Error's Code and Message methods to get detailed information about
  17252. // the error.
  17253. //
  17254. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17255. // API operation ModifyLaunchTemplate for usage and error information.
  17256. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyLaunchTemplate
  17257. func (c *EC2) ModifyLaunchTemplate(input *ModifyLaunchTemplateInput) (*ModifyLaunchTemplateOutput, error) {
  17258. req, out := c.ModifyLaunchTemplateRequest(input)
  17259. return out, req.Send()
  17260. }
  17261. // ModifyLaunchTemplateWithContext is the same as ModifyLaunchTemplate with the addition of
  17262. // the ability to pass a context and additional request options.
  17263. //
  17264. // See ModifyLaunchTemplate for details on how to use this API operation.
  17265. //
  17266. // The context must be non-nil and will be used for request cancellation. If
  17267. // the context is nil a panic will occur. In the future the SDK may create
  17268. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17269. // for more information on using Contexts.
  17270. func (c *EC2) ModifyLaunchTemplateWithContext(ctx aws.Context, input *ModifyLaunchTemplateInput, opts ...request.Option) (*ModifyLaunchTemplateOutput, error) {
  17271. req, out := c.ModifyLaunchTemplateRequest(input)
  17272. req.SetContext(ctx)
  17273. req.ApplyOptions(opts...)
  17274. return out, req.Send()
  17275. }
  17276. const opModifyNetworkInterfaceAttribute = "ModifyNetworkInterfaceAttribute"
  17277. // ModifyNetworkInterfaceAttributeRequest generates a "aws/request.Request" representing the
  17278. // client's request for the ModifyNetworkInterfaceAttribute operation. The "output" return
  17279. // value will be populated with the request's response once the request completes
  17280. // successfuly.
  17281. //
  17282. // Use "Send" method on the returned Request to send the API call to the service.
  17283. // the "output" return value is not valid until after Send returns without error.
  17284. //
  17285. // See ModifyNetworkInterfaceAttribute for more information on using the ModifyNetworkInterfaceAttribute
  17286. // API call, and error handling.
  17287. //
  17288. // This method is useful when you want to inject custom logic or configuration
  17289. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17290. //
  17291. //
  17292. // // Example sending a request using the ModifyNetworkInterfaceAttributeRequest method.
  17293. // req, resp := client.ModifyNetworkInterfaceAttributeRequest(params)
  17294. //
  17295. // err := req.Send()
  17296. // if err == nil { // resp is now filled
  17297. // fmt.Println(resp)
  17298. // }
  17299. //
  17300. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyNetworkInterfaceAttribute
  17301. func (c *EC2) ModifyNetworkInterfaceAttributeRequest(input *ModifyNetworkInterfaceAttributeInput) (req *request.Request, output *ModifyNetworkInterfaceAttributeOutput) {
  17302. op := &request.Operation{
  17303. Name: opModifyNetworkInterfaceAttribute,
  17304. HTTPMethod: "POST",
  17305. HTTPPath: "/",
  17306. }
  17307. if input == nil {
  17308. input = &ModifyNetworkInterfaceAttributeInput{}
  17309. }
  17310. output = &ModifyNetworkInterfaceAttributeOutput{}
  17311. req = c.newRequest(op, input, output)
  17312. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  17313. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  17314. return
  17315. }
  17316. // ModifyNetworkInterfaceAttribute API operation for Amazon Elastic Compute Cloud.
  17317. //
  17318. // Modifies the specified network interface attribute. You can specify only
  17319. // one attribute at a time.
  17320. //
  17321. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17322. // with awserr.Error's Code and Message methods to get detailed information about
  17323. // the error.
  17324. //
  17325. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17326. // API operation ModifyNetworkInterfaceAttribute for usage and error information.
  17327. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyNetworkInterfaceAttribute
  17328. func (c *EC2) ModifyNetworkInterfaceAttribute(input *ModifyNetworkInterfaceAttributeInput) (*ModifyNetworkInterfaceAttributeOutput, error) {
  17329. req, out := c.ModifyNetworkInterfaceAttributeRequest(input)
  17330. return out, req.Send()
  17331. }
  17332. // ModifyNetworkInterfaceAttributeWithContext is the same as ModifyNetworkInterfaceAttribute with the addition of
  17333. // the ability to pass a context and additional request options.
  17334. //
  17335. // See ModifyNetworkInterfaceAttribute for details on how to use this API operation.
  17336. //
  17337. // The context must be non-nil and will be used for request cancellation. If
  17338. // the context is nil a panic will occur. In the future the SDK may create
  17339. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17340. // for more information on using Contexts.
  17341. func (c *EC2) ModifyNetworkInterfaceAttributeWithContext(ctx aws.Context, input *ModifyNetworkInterfaceAttributeInput, opts ...request.Option) (*ModifyNetworkInterfaceAttributeOutput, error) {
  17342. req, out := c.ModifyNetworkInterfaceAttributeRequest(input)
  17343. req.SetContext(ctx)
  17344. req.ApplyOptions(opts...)
  17345. return out, req.Send()
  17346. }
  17347. const opModifyReservedInstances = "ModifyReservedInstances"
  17348. // ModifyReservedInstancesRequest generates a "aws/request.Request" representing the
  17349. // client's request for the ModifyReservedInstances operation. The "output" return
  17350. // value will be populated with the request's response once the request completes
  17351. // successfuly.
  17352. //
  17353. // Use "Send" method on the returned Request to send the API call to the service.
  17354. // the "output" return value is not valid until after Send returns without error.
  17355. //
  17356. // See ModifyReservedInstances for more information on using the ModifyReservedInstances
  17357. // API call, and error handling.
  17358. //
  17359. // This method is useful when you want to inject custom logic or configuration
  17360. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17361. //
  17362. //
  17363. // // Example sending a request using the ModifyReservedInstancesRequest method.
  17364. // req, resp := client.ModifyReservedInstancesRequest(params)
  17365. //
  17366. // err := req.Send()
  17367. // if err == nil { // resp is now filled
  17368. // fmt.Println(resp)
  17369. // }
  17370. //
  17371. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyReservedInstances
  17372. func (c *EC2) ModifyReservedInstancesRequest(input *ModifyReservedInstancesInput) (req *request.Request, output *ModifyReservedInstancesOutput) {
  17373. op := &request.Operation{
  17374. Name: opModifyReservedInstances,
  17375. HTTPMethod: "POST",
  17376. HTTPPath: "/",
  17377. }
  17378. if input == nil {
  17379. input = &ModifyReservedInstancesInput{}
  17380. }
  17381. output = &ModifyReservedInstancesOutput{}
  17382. req = c.newRequest(op, input, output)
  17383. return
  17384. }
  17385. // ModifyReservedInstances API operation for Amazon Elastic Compute Cloud.
  17386. //
  17387. // Modifies the Availability Zone, instance count, instance type, or network
  17388. // platform (EC2-Classic or EC2-VPC) of your Reserved Instances. The Reserved
  17389. // Instances to be modified must be identical, except for Availability Zone,
  17390. // network platform, and instance type.
  17391. //
  17392. // For more information, see Modifying Reserved Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-modifying.html)
  17393. // in the Amazon Elastic Compute Cloud User Guide.
  17394. //
  17395. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17396. // with awserr.Error's Code and Message methods to get detailed information about
  17397. // the error.
  17398. //
  17399. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17400. // API operation ModifyReservedInstances for usage and error information.
  17401. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyReservedInstances
  17402. func (c *EC2) ModifyReservedInstances(input *ModifyReservedInstancesInput) (*ModifyReservedInstancesOutput, error) {
  17403. req, out := c.ModifyReservedInstancesRequest(input)
  17404. return out, req.Send()
  17405. }
  17406. // ModifyReservedInstancesWithContext is the same as ModifyReservedInstances with the addition of
  17407. // the ability to pass a context and additional request options.
  17408. //
  17409. // See ModifyReservedInstances for details on how to use this API operation.
  17410. //
  17411. // The context must be non-nil and will be used for request cancellation. If
  17412. // the context is nil a panic will occur. In the future the SDK may create
  17413. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17414. // for more information on using Contexts.
  17415. func (c *EC2) ModifyReservedInstancesWithContext(ctx aws.Context, input *ModifyReservedInstancesInput, opts ...request.Option) (*ModifyReservedInstancesOutput, error) {
  17416. req, out := c.ModifyReservedInstancesRequest(input)
  17417. req.SetContext(ctx)
  17418. req.ApplyOptions(opts...)
  17419. return out, req.Send()
  17420. }
  17421. const opModifySnapshotAttribute = "ModifySnapshotAttribute"
  17422. // ModifySnapshotAttributeRequest generates a "aws/request.Request" representing the
  17423. // client's request for the ModifySnapshotAttribute operation. The "output" return
  17424. // value will be populated with the request's response once the request completes
  17425. // successfuly.
  17426. //
  17427. // Use "Send" method on the returned Request to send the API call to the service.
  17428. // the "output" return value is not valid until after Send returns without error.
  17429. //
  17430. // See ModifySnapshotAttribute for more information on using the ModifySnapshotAttribute
  17431. // API call, and error handling.
  17432. //
  17433. // This method is useful when you want to inject custom logic or configuration
  17434. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17435. //
  17436. //
  17437. // // Example sending a request using the ModifySnapshotAttributeRequest method.
  17438. // req, resp := client.ModifySnapshotAttributeRequest(params)
  17439. //
  17440. // err := req.Send()
  17441. // if err == nil { // resp is now filled
  17442. // fmt.Println(resp)
  17443. // }
  17444. //
  17445. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySnapshotAttribute
  17446. func (c *EC2) ModifySnapshotAttributeRequest(input *ModifySnapshotAttributeInput) (req *request.Request, output *ModifySnapshotAttributeOutput) {
  17447. op := &request.Operation{
  17448. Name: opModifySnapshotAttribute,
  17449. HTTPMethod: "POST",
  17450. HTTPPath: "/",
  17451. }
  17452. if input == nil {
  17453. input = &ModifySnapshotAttributeInput{}
  17454. }
  17455. output = &ModifySnapshotAttributeOutput{}
  17456. req = c.newRequest(op, input, output)
  17457. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  17458. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  17459. return
  17460. }
  17461. // ModifySnapshotAttribute API operation for Amazon Elastic Compute Cloud.
  17462. //
  17463. // Adds or removes permission settings for the specified snapshot. You may add
  17464. // or remove specified AWS account IDs from a snapshot's list of create volume
  17465. // permissions, but you cannot do both in a single API call. If you need to
  17466. // both add and remove account IDs for a snapshot, you must use multiple API
  17467. // calls.
  17468. //
  17469. // Encrypted snapshots and snapshots with AWS Marketplace product codes cannot
  17470. // be made public. Snapshots encrypted with your default CMK cannot be shared
  17471. // with other accounts.
  17472. //
  17473. // For more information on modifying snapshot permissions, see Sharing Snapshots
  17474. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-modifying-snapshot-permissions.html)
  17475. // in the Amazon Elastic Compute Cloud User Guide.
  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 ModifySnapshotAttribute for usage and error information.
  17483. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySnapshotAttribute
  17484. func (c *EC2) ModifySnapshotAttribute(input *ModifySnapshotAttributeInput) (*ModifySnapshotAttributeOutput, error) {
  17485. req, out := c.ModifySnapshotAttributeRequest(input)
  17486. return out, req.Send()
  17487. }
  17488. // ModifySnapshotAttributeWithContext is the same as ModifySnapshotAttribute with the addition of
  17489. // the ability to pass a context and additional request options.
  17490. //
  17491. // See ModifySnapshotAttribute 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) ModifySnapshotAttributeWithContext(ctx aws.Context, input *ModifySnapshotAttributeInput, opts ...request.Option) (*ModifySnapshotAttributeOutput, error) {
  17498. req, out := c.ModifySnapshotAttributeRequest(input)
  17499. req.SetContext(ctx)
  17500. req.ApplyOptions(opts...)
  17501. return out, req.Send()
  17502. }
  17503. const opModifySpotFleetRequest = "ModifySpotFleetRequest"
  17504. // ModifySpotFleetRequestRequest generates a "aws/request.Request" representing the
  17505. // client's request for the ModifySpotFleetRequest operation. The "output" return
  17506. // value will be populated with the request's response once the request completes
  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 ModifySpotFleetRequest for more information on using the ModifySpotFleetRequest
  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 ModifySpotFleetRequestRequest method.
  17520. // req, resp := client.ModifySpotFleetRequestRequest(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/ModifySpotFleetRequest
  17528. func (c *EC2) ModifySpotFleetRequestRequest(input *ModifySpotFleetRequestInput) (req *request.Request, output *ModifySpotFleetRequestOutput) {
  17529. op := &request.Operation{
  17530. Name: opModifySpotFleetRequest,
  17531. HTTPMethod: "POST",
  17532. HTTPPath: "/",
  17533. }
  17534. if input == nil {
  17535. input = &ModifySpotFleetRequestInput{}
  17536. }
  17537. output = &ModifySpotFleetRequestOutput{}
  17538. req = c.newRequest(op, input, output)
  17539. return
  17540. }
  17541. // ModifySpotFleetRequest API operation for Amazon Elastic Compute Cloud.
  17542. //
  17543. // Modifies the specified Spot Fleet request.
  17544. //
  17545. // While the Spot Fleet request is being modified, it is in the modifying state.
  17546. //
  17547. // To scale up your Spot Fleet, increase its target capacity. The Spot Fleet
  17548. // launches the additional Spot Instances according to the allocation strategy
  17549. // for the Spot Fleet request. If the allocation strategy is lowestPrice, the
  17550. // Spot Fleet launches instances using the Spot pool with the lowest price.
  17551. // If the allocation strategy is diversified, the Spot Fleet distributes the
  17552. // instances across the Spot pools.
  17553. //
  17554. // To scale down your Spot Fleet, decrease its target capacity. First, the Spot
  17555. // Fleet cancels any open requests that exceed the new target capacity. You
  17556. // can request that the Spot Fleet terminate Spot Instances until the size of
  17557. // the fleet no longer exceeds the new target capacity. If the allocation strategy
  17558. // is lowestPrice, the Spot Fleet terminates the instances with the highest
  17559. // price per unit. If the allocation strategy is diversified, the Spot Fleet
  17560. // terminates instances across the Spot pools. Alternatively, you can request
  17561. // that the Spot Fleet keep the fleet at its current size, but not replace any
  17562. // Spot Instances that are interrupted or that you terminate manually.
  17563. //
  17564. // If you are finished with your Spot Fleet for now, but will use it again later,
  17565. // you can set the target capacity to 0.
  17566. //
  17567. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17568. // with awserr.Error's Code and Message methods to get detailed information about
  17569. // the error.
  17570. //
  17571. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17572. // API operation ModifySpotFleetRequest for usage and error information.
  17573. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySpotFleetRequest
  17574. func (c *EC2) ModifySpotFleetRequest(input *ModifySpotFleetRequestInput) (*ModifySpotFleetRequestOutput, error) {
  17575. req, out := c.ModifySpotFleetRequestRequest(input)
  17576. return out, req.Send()
  17577. }
  17578. // ModifySpotFleetRequestWithContext is the same as ModifySpotFleetRequest with the addition of
  17579. // the ability to pass a context and additional request options.
  17580. //
  17581. // See ModifySpotFleetRequest for details on how to use this API operation.
  17582. //
  17583. // The context must be non-nil and will be used for request cancellation. If
  17584. // the context is nil a panic will occur. In the future the SDK may create
  17585. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17586. // for more information on using Contexts.
  17587. func (c *EC2) ModifySpotFleetRequestWithContext(ctx aws.Context, input *ModifySpotFleetRequestInput, opts ...request.Option) (*ModifySpotFleetRequestOutput, error) {
  17588. req, out := c.ModifySpotFleetRequestRequest(input)
  17589. req.SetContext(ctx)
  17590. req.ApplyOptions(opts...)
  17591. return out, req.Send()
  17592. }
  17593. const opModifySubnetAttribute = "ModifySubnetAttribute"
  17594. // ModifySubnetAttributeRequest generates a "aws/request.Request" representing the
  17595. // client's request for the ModifySubnetAttribute operation. The "output" return
  17596. // value will be populated with the request's response once the request completes
  17597. // successfuly.
  17598. //
  17599. // Use "Send" method on the returned Request to send the API call to the service.
  17600. // the "output" return value is not valid until after Send returns without error.
  17601. //
  17602. // See ModifySubnetAttribute for more information on using the ModifySubnetAttribute
  17603. // API call, and error handling.
  17604. //
  17605. // This method is useful when you want to inject custom logic or configuration
  17606. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17607. //
  17608. //
  17609. // // Example sending a request using the ModifySubnetAttributeRequest method.
  17610. // req, resp := client.ModifySubnetAttributeRequest(params)
  17611. //
  17612. // err := req.Send()
  17613. // if err == nil { // resp is now filled
  17614. // fmt.Println(resp)
  17615. // }
  17616. //
  17617. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySubnetAttribute
  17618. func (c *EC2) ModifySubnetAttributeRequest(input *ModifySubnetAttributeInput) (req *request.Request, output *ModifySubnetAttributeOutput) {
  17619. op := &request.Operation{
  17620. Name: opModifySubnetAttribute,
  17621. HTTPMethod: "POST",
  17622. HTTPPath: "/",
  17623. }
  17624. if input == nil {
  17625. input = &ModifySubnetAttributeInput{}
  17626. }
  17627. output = &ModifySubnetAttributeOutput{}
  17628. req = c.newRequest(op, input, output)
  17629. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  17630. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  17631. return
  17632. }
  17633. // ModifySubnetAttribute API operation for Amazon Elastic Compute Cloud.
  17634. //
  17635. // Modifies a subnet attribute. You can only modify one attribute at a time.
  17636. //
  17637. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17638. // with awserr.Error's Code and Message methods to get detailed information about
  17639. // the error.
  17640. //
  17641. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17642. // API operation ModifySubnetAttribute for usage and error information.
  17643. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySubnetAttribute
  17644. func (c *EC2) ModifySubnetAttribute(input *ModifySubnetAttributeInput) (*ModifySubnetAttributeOutput, error) {
  17645. req, out := c.ModifySubnetAttributeRequest(input)
  17646. return out, req.Send()
  17647. }
  17648. // ModifySubnetAttributeWithContext is the same as ModifySubnetAttribute with the addition of
  17649. // the ability to pass a context and additional request options.
  17650. //
  17651. // See ModifySubnetAttribute for details on how to use this API operation.
  17652. //
  17653. // The context must be non-nil and will be used for request cancellation. If
  17654. // the context is nil a panic will occur. In the future the SDK may create
  17655. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17656. // for more information on using Contexts.
  17657. func (c *EC2) ModifySubnetAttributeWithContext(ctx aws.Context, input *ModifySubnetAttributeInput, opts ...request.Option) (*ModifySubnetAttributeOutput, error) {
  17658. req, out := c.ModifySubnetAttributeRequest(input)
  17659. req.SetContext(ctx)
  17660. req.ApplyOptions(opts...)
  17661. return out, req.Send()
  17662. }
  17663. const opModifyVolume = "ModifyVolume"
  17664. // ModifyVolumeRequest generates a "aws/request.Request" representing the
  17665. // client's request for the ModifyVolume operation. The "output" return
  17666. // value will be populated with the request's response once the request completes
  17667. // successfuly.
  17668. //
  17669. // Use "Send" method on the returned Request to send the API call to the service.
  17670. // the "output" return value is not valid until after Send returns without error.
  17671. //
  17672. // See ModifyVolume for more information on using the ModifyVolume
  17673. // API call, and error handling.
  17674. //
  17675. // This method is useful when you want to inject custom logic or configuration
  17676. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17677. //
  17678. //
  17679. // // Example sending a request using the ModifyVolumeRequest method.
  17680. // req, resp := client.ModifyVolumeRequest(params)
  17681. //
  17682. // err := req.Send()
  17683. // if err == nil { // resp is now filled
  17684. // fmt.Println(resp)
  17685. // }
  17686. //
  17687. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVolume
  17688. func (c *EC2) ModifyVolumeRequest(input *ModifyVolumeInput) (req *request.Request, output *ModifyVolumeOutput) {
  17689. op := &request.Operation{
  17690. Name: opModifyVolume,
  17691. HTTPMethod: "POST",
  17692. HTTPPath: "/",
  17693. }
  17694. if input == nil {
  17695. input = &ModifyVolumeInput{}
  17696. }
  17697. output = &ModifyVolumeOutput{}
  17698. req = c.newRequest(op, input, output)
  17699. return
  17700. }
  17701. // ModifyVolume API operation for Amazon Elastic Compute Cloud.
  17702. //
  17703. // You can modify several parameters of an existing EBS volume, including volume
  17704. // size, volume type, and IOPS capacity. If your EBS volume is attached to a
  17705. // current-generation EC2 instance type, you may be able to apply these changes
  17706. // without stopping the instance or detaching the volume from it. For more information
  17707. // about modifying an EBS volume running Linux, see Modifying the Size, IOPS,
  17708. // or Type of an EBS Volume on Linux (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html).
  17709. // For more information about modifying an EBS volume running Windows, see Modifying
  17710. // the Size, IOPS, or Type of an EBS Volume on Windows (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-expand-volume.html).
  17711. //
  17712. // When you complete a resize operation on your volume, you need to extend the
  17713. // volume's file-system size to take advantage of the new storage capacity.
  17714. // For information about extending a Linux file system, see Extending a Linux
  17715. // File System (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html#recognize-expanded-volume-linux).
  17716. // For information about extending a Windows file system, see Extending a Windows
  17717. // File System (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-expand-volume.html#recognize-expanded-volume-windows).
  17718. //
  17719. // You can use CloudWatch Events to check the status of a modification to an
  17720. // EBS volume. For information about CloudWatch Events, see the Amazon CloudWatch
  17721. // Events User Guide (http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/).
  17722. // You can also track the status of a modification using the DescribeVolumesModifications
  17723. // API. For information about tracking status changes using either method, see
  17724. // Monitoring Volume Modifications (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html#monitoring_mods).
  17725. //
  17726. // With previous-generation instance types, resizing an EBS volume may require
  17727. // detaching and reattaching the volume or stopping and restarting the instance.
  17728. // For more information about modifying an EBS volume running Linux, see Modifying
  17729. // the Size, IOPS, or Type of an EBS Volume on Linux (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html).
  17730. // For more information about modifying an EBS volume running Windows, see Modifying
  17731. // the Size, IOPS, or Type of an EBS Volume on Windows (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-expand-volume.html).
  17732. //
  17733. // If you reach the maximum volume modification rate per volume limit, you will
  17734. // need to wait at least six hours before applying further modifications to
  17735. // the affected EBS volume.
  17736. //
  17737. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17738. // with awserr.Error's Code and Message methods to get detailed information about
  17739. // the error.
  17740. //
  17741. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17742. // API operation ModifyVolume for usage and error information.
  17743. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVolume
  17744. func (c *EC2) ModifyVolume(input *ModifyVolumeInput) (*ModifyVolumeOutput, error) {
  17745. req, out := c.ModifyVolumeRequest(input)
  17746. return out, req.Send()
  17747. }
  17748. // ModifyVolumeWithContext is the same as ModifyVolume with the addition of
  17749. // the ability to pass a context and additional request options.
  17750. //
  17751. // See ModifyVolume for details on how to use this API operation.
  17752. //
  17753. // The context must be non-nil and will be used for request cancellation. If
  17754. // the context is nil a panic will occur. In the future the SDK may create
  17755. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17756. // for more information on using Contexts.
  17757. func (c *EC2) ModifyVolumeWithContext(ctx aws.Context, input *ModifyVolumeInput, opts ...request.Option) (*ModifyVolumeOutput, error) {
  17758. req, out := c.ModifyVolumeRequest(input)
  17759. req.SetContext(ctx)
  17760. req.ApplyOptions(opts...)
  17761. return out, req.Send()
  17762. }
  17763. const opModifyVolumeAttribute = "ModifyVolumeAttribute"
  17764. // ModifyVolumeAttributeRequest generates a "aws/request.Request" representing the
  17765. // client's request for the ModifyVolumeAttribute operation. The "output" return
  17766. // value will be populated with the request's response once the request completes
  17767. // successfuly.
  17768. //
  17769. // Use "Send" method on the returned Request to send the API call to the service.
  17770. // the "output" return value is not valid until after Send returns without error.
  17771. //
  17772. // See ModifyVolumeAttribute for more information on using the ModifyVolumeAttribute
  17773. // API call, and error handling.
  17774. //
  17775. // This method is useful when you want to inject custom logic or configuration
  17776. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17777. //
  17778. //
  17779. // // Example sending a request using the ModifyVolumeAttributeRequest method.
  17780. // req, resp := client.ModifyVolumeAttributeRequest(params)
  17781. //
  17782. // err := req.Send()
  17783. // if err == nil { // resp is now filled
  17784. // fmt.Println(resp)
  17785. // }
  17786. //
  17787. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVolumeAttribute
  17788. func (c *EC2) ModifyVolumeAttributeRequest(input *ModifyVolumeAttributeInput) (req *request.Request, output *ModifyVolumeAttributeOutput) {
  17789. op := &request.Operation{
  17790. Name: opModifyVolumeAttribute,
  17791. HTTPMethod: "POST",
  17792. HTTPPath: "/",
  17793. }
  17794. if input == nil {
  17795. input = &ModifyVolumeAttributeInput{}
  17796. }
  17797. output = &ModifyVolumeAttributeOutput{}
  17798. req = c.newRequest(op, input, output)
  17799. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  17800. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  17801. return
  17802. }
  17803. // ModifyVolumeAttribute API operation for Amazon Elastic Compute Cloud.
  17804. //
  17805. // Modifies a volume attribute.
  17806. //
  17807. // By default, all I/O operations for the volume are suspended when the data
  17808. // on the volume is determined to be potentially inconsistent, to prevent undetectable,
  17809. // latent data corruption. The I/O access to the volume can be resumed by first
  17810. // enabling I/O access and then checking the data consistency on your volume.
  17811. //
  17812. // You can change the default behavior to resume I/O operations. We recommend
  17813. // that you change this only for boot volumes or for volumes that are stateless
  17814. // or disposable.
  17815. //
  17816. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17817. // with awserr.Error's Code and Message methods to get detailed information about
  17818. // the error.
  17819. //
  17820. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17821. // API operation ModifyVolumeAttribute for usage and error information.
  17822. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVolumeAttribute
  17823. func (c *EC2) ModifyVolumeAttribute(input *ModifyVolumeAttributeInput) (*ModifyVolumeAttributeOutput, error) {
  17824. req, out := c.ModifyVolumeAttributeRequest(input)
  17825. return out, req.Send()
  17826. }
  17827. // ModifyVolumeAttributeWithContext is the same as ModifyVolumeAttribute with the addition of
  17828. // the ability to pass a context and additional request options.
  17829. //
  17830. // See ModifyVolumeAttribute for details on how to use this API operation.
  17831. //
  17832. // The context must be non-nil and will be used for request cancellation. If
  17833. // the context is nil a panic will occur. In the future the SDK may create
  17834. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17835. // for more information on using Contexts.
  17836. func (c *EC2) ModifyVolumeAttributeWithContext(ctx aws.Context, input *ModifyVolumeAttributeInput, opts ...request.Option) (*ModifyVolumeAttributeOutput, error) {
  17837. req, out := c.ModifyVolumeAttributeRequest(input)
  17838. req.SetContext(ctx)
  17839. req.ApplyOptions(opts...)
  17840. return out, req.Send()
  17841. }
  17842. const opModifyVpcAttribute = "ModifyVpcAttribute"
  17843. // ModifyVpcAttributeRequest generates a "aws/request.Request" representing the
  17844. // client's request for the ModifyVpcAttribute operation. The "output" return
  17845. // value will be populated with the request's response once the request completes
  17846. // successfuly.
  17847. //
  17848. // Use "Send" method on the returned Request to send the API call to the service.
  17849. // the "output" return value is not valid until after Send returns without error.
  17850. //
  17851. // See ModifyVpcAttribute for more information on using the ModifyVpcAttribute
  17852. // API call, and error handling.
  17853. //
  17854. // This method is useful when you want to inject custom logic or configuration
  17855. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17856. //
  17857. //
  17858. // // Example sending a request using the ModifyVpcAttributeRequest method.
  17859. // req, resp := client.ModifyVpcAttributeRequest(params)
  17860. //
  17861. // err := req.Send()
  17862. // if err == nil { // resp is now filled
  17863. // fmt.Println(resp)
  17864. // }
  17865. //
  17866. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcAttribute
  17867. func (c *EC2) ModifyVpcAttributeRequest(input *ModifyVpcAttributeInput) (req *request.Request, output *ModifyVpcAttributeOutput) {
  17868. op := &request.Operation{
  17869. Name: opModifyVpcAttribute,
  17870. HTTPMethod: "POST",
  17871. HTTPPath: "/",
  17872. }
  17873. if input == nil {
  17874. input = &ModifyVpcAttributeInput{}
  17875. }
  17876. output = &ModifyVpcAttributeOutput{}
  17877. req = c.newRequest(op, input, output)
  17878. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  17879. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  17880. return
  17881. }
  17882. // ModifyVpcAttribute API operation for Amazon Elastic Compute Cloud.
  17883. //
  17884. // Modifies the specified attribute of the specified VPC.
  17885. //
  17886. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17887. // with awserr.Error's Code and Message methods to get detailed information about
  17888. // the error.
  17889. //
  17890. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17891. // API operation ModifyVpcAttribute for usage and error information.
  17892. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcAttribute
  17893. func (c *EC2) ModifyVpcAttribute(input *ModifyVpcAttributeInput) (*ModifyVpcAttributeOutput, error) {
  17894. req, out := c.ModifyVpcAttributeRequest(input)
  17895. return out, req.Send()
  17896. }
  17897. // ModifyVpcAttributeWithContext is the same as ModifyVpcAttribute with the addition of
  17898. // the ability to pass a context and additional request options.
  17899. //
  17900. // See ModifyVpcAttribute for details on how to use this API operation.
  17901. //
  17902. // The context must be non-nil and will be used for request cancellation. If
  17903. // the context is nil a panic will occur. In the future the SDK may create
  17904. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17905. // for more information on using Contexts.
  17906. func (c *EC2) ModifyVpcAttributeWithContext(ctx aws.Context, input *ModifyVpcAttributeInput, opts ...request.Option) (*ModifyVpcAttributeOutput, error) {
  17907. req, out := c.ModifyVpcAttributeRequest(input)
  17908. req.SetContext(ctx)
  17909. req.ApplyOptions(opts...)
  17910. return out, req.Send()
  17911. }
  17912. const opModifyVpcEndpoint = "ModifyVpcEndpoint"
  17913. // ModifyVpcEndpointRequest generates a "aws/request.Request" representing the
  17914. // client's request for the ModifyVpcEndpoint operation. The "output" return
  17915. // value will be populated with the request's response once the request completes
  17916. // successfuly.
  17917. //
  17918. // Use "Send" method on the returned Request to send the API call to the service.
  17919. // the "output" return value is not valid until after Send returns without error.
  17920. //
  17921. // See ModifyVpcEndpoint for more information on using the ModifyVpcEndpoint
  17922. // API call, and error handling.
  17923. //
  17924. // This method is useful when you want to inject custom logic or configuration
  17925. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17926. //
  17927. //
  17928. // // Example sending a request using the ModifyVpcEndpointRequest method.
  17929. // req, resp := client.ModifyVpcEndpointRequest(params)
  17930. //
  17931. // err := req.Send()
  17932. // if err == nil { // resp is now filled
  17933. // fmt.Println(resp)
  17934. // }
  17935. //
  17936. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpoint
  17937. func (c *EC2) ModifyVpcEndpointRequest(input *ModifyVpcEndpointInput) (req *request.Request, output *ModifyVpcEndpointOutput) {
  17938. op := &request.Operation{
  17939. Name: opModifyVpcEndpoint,
  17940. HTTPMethod: "POST",
  17941. HTTPPath: "/",
  17942. }
  17943. if input == nil {
  17944. input = &ModifyVpcEndpointInput{}
  17945. }
  17946. output = &ModifyVpcEndpointOutput{}
  17947. req = c.newRequest(op, input, output)
  17948. return
  17949. }
  17950. // ModifyVpcEndpoint API operation for Amazon Elastic Compute Cloud.
  17951. //
  17952. // Modifies attributes of a specified VPC endpoint. The attributes that you
  17953. // can modify depend on the type of VPC endpoint (interface or gateway). For
  17954. // more information, see VPC Endpoints (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-endpoints.html)
  17955. // in the Amazon Virtual Private Cloud User Guide.
  17956. //
  17957. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17958. // with awserr.Error's Code and Message methods to get detailed information about
  17959. // the error.
  17960. //
  17961. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17962. // API operation ModifyVpcEndpoint for usage and error information.
  17963. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpoint
  17964. func (c *EC2) ModifyVpcEndpoint(input *ModifyVpcEndpointInput) (*ModifyVpcEndpointOutput, error) {
  17965. req, out := c.ModifyVpcEndpointRequest(input)
  17966. return out, req.Send()
  17967. }
  17968. // ModifyVpcEndpointWithContext is the same as ModifyVpcEndpoint with the addition of
  17969. // the ability to pass a context and additional request options.
  17970. //
  17971. // See ModifyVpcEndpoint for details on how to use this API operation.
  17972. //
  17973. // The context must be non-nil and will be used for request cancellation. If
  17974. // the context is nil a panic will occur. In the future the SDK may create
  17975. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17976. // for more information on using Contexts.
  17977. func (c *EC2) ModifyVpcEndpointWithContext(ctx aws.Context, input *ModifyVpcEndpointInput, opts ...request.Option) (*ModifyVpcEndpointOutput, error) {
  17978. req, out := c.ModifyVpcEndpointRequest(input)
  17979. req.SetContext(ctx)
  17980. req.ApplyOptions(opts...)
  17981. return out, req.Send()
  17982. }
  17983. const opModifyVpcEndpointConnectionNotification = "ModifyVpcEndpointConnectionNotification"
  17984. // ModifyVpcEndpointConnectionNotificationRequest generates a "aws/request.Request" representing the
  17985. // client's request for the ModifyVpcEndpointConnectionNotification operation. The "output" return
  17986. // value will be populated with the request's response once the request completes
  17987. // successfuly.
  17988. //
  17989. // Use "Send" method on the returned Request to send the API call to the service.
  17990. // the "output" return value is not valid until after Send returns without error.
  17991. //
  17992. // See ModifyVpcEndpointConnectionNotification for more information on using the ModifyVpcEndpointConnectionNotification
  17993. // API call, and error handling.
  17994. //
  17995. // This method is useful when you want to inject custom logic or configuration
  17996. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17997. //
  17998. //
  17999. // // Example sending a request using the ModifyVpcEndpointConnectionNotificationRequest method.
  18000. // req, resp := client.ModifyVpcEndpointConnectionNotificationRequest(params)
  18001. //
  18002. // err := req.Send()
  18003. // if err == nil { // resp is now filled
  18004. // fmt.Println(resp)
  18005. // }
  18006. //
  18007. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointConnectionNotification
  18008. func (c *EC2) ModifyVpcEndpointConnectionNotificationRequest(input *ModifyVpcEndpointConnectionNotificationInput) (req *request.Request, output *ModifyVpcEndpointConnectionNotificationOutput) {
  18009. op := &request.Operation{
  18010. Name: opModifyVpcEndpointConnectionNotification,
  18011. HTTPMethod: "POST",
  18012. HTTPPath: "/",
  18013. }
  18014. if input == nil {
  18015. input = &ModifyVpcEndpointConnectionNotificationInput{}
  18016. }
  18017. output = &ModifyVpcEndpointConnectionNotificationOutput{}
  18018. req = c.newRequest(op, input, output)
  18019. return
  18020. }
  18021. // ModifyVpcEndpointConnectionNotification API operation for Amazon Elastic Compute Cloud.
  18022. //
  18023. // Modifies a connection notification for VPC endpoint or VPC endpoint service.
  18024. // You can change the SNS topic for the notification, or the events for which
  18025. // to be notified.
  18026. //
  18027. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18028. // with awserr.Error's Code and Message methods to get detailed information about
  18029. // the error.
  18030. //
  18031. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18032. // API operation ModifyVpcEndpointConnectionNotification for usage and error information.
  18033. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointConnectionNotification
  18034. func (c *EC2) ModifyVpcEndpointConnectionNotification(input *ModifyVpcEndpointConnectionNotificationInput) (*ModifyVpcEndpointConnectionNotificationOutput, error) {
  18035. req, out := c.ModifyVpcEndpointConnectionNotificationRequest(input)
  18036. return out, req.Send()
  18037. }
  18038. // ModifyVpcEndpointConnectionNotificationWithContext is the same as ModifyVpcEndpointConnectionNotification with the addition of
  18039. // the ability to pass a context and additional request options.
  18040. //
  18041. // See ModifyVpcEndpointConnectionNotification for details on how to use this API operation.
  18042. //
  18043. // The context must be non-nil and will be used for request cancellation. If
  18044. // the context is nil a panic will occur. In the future the SDK may create
  18045. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18046. // for more information on using Contexts.
  18047. func (c *EC2) ModifyVpcEndpointConnectionNotificationWithContext(ctx aws.Context, input *ModifyVpcEndpointConnectionNotificationInput, opts ...request.Option) (*ModifyVpcEndpointConnectionNotificationOutput, error) {
  18048. req, out := c.ModifyVpcEndpointConnectionNotificationRequest(input)
  18049. req.SetContext(ctx)
  18050. req.ApplyOptions(opts...)
  18051. return out, req.Send()
  18052. }
  18053. const opModifyVpcEndpointServiceConfiguration = "ModifyVpcEndpointServiceConfiguration"
  18054. // ModifyVpcEndpointServiceConfigurationRequest generates a "aws/request.Request" representing the
  18055. // client's request for the ModifyVpcEndpointServiceConfiguration operation. The "output" return
  18056. // value will be populated with the request's response once the request completes
  18057. // successfuly.
  18058. //
  18059. // Use "Send" method on the returned Request to send the API call to the service.
  18060. // the "output" return value is not valid until after Send returns without error.
  18061. //
  18062. // See ModifyVpcEndpointServiceConfiguration for more information on using the ModifyVpcEndpointServiceConfiguration
  18063. // API call, and error handling.
  18064. //
  18065. // This method is useful when you want to inject custom logic or configuration
  18066. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18067. //
  18068. //
  18069. // // Example sending a request using the ModifyVpcEndpointServiceConfigurationRequest method.
  18070. // req, resp := client.ModifyVpcEndpointServiceConfigurationRequest(params)
  18071. //
  18072. // err := req.Send()
  18073. // if err == nil { // resp is now filled
  18074. // fmt.Println(resp)
  18075. // }
  18076. //
  18077. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointServiceConfiguration
  18078. func (c *EC2) ModifyVpcEndpointServiceConfigurationRequest(input *ModifyVpcEndpointServiceConfigurationInput) (req *request.Request, output *ModifyVpcEndpointServiceConfigurationOutput) {
  18079. op := &request.Operation{
  18080. Name: opModifyVpcEndpointServiceConfiguration,
  18081. HTTPMethod: "POST",
  18082. HTTPPath: "/",
  18083. }
  18084. if input == nil {
  18085. input = &ModifyVpcEndpointServiceConfigurationInput{}
  18086. }
  18087. output = &ModifyVpcEndpointServiceConfigurationOutput{}
  18088. req = c.newRequest(op, input, output)
  18089. return
  18090. }
  18091. // ModifyVpcEndpointServiceConfiguration API operation for Amazon Elastic Compute Cloud.
  18092. //
  18093. // Modifies the attributes of your VPC endpoint service configuration. You can
  18094. // change the Network Load Balancers for your service, and you can specify whether
  18095. // acceptance is required for requests to connect to your endpoint service through
  18096. // an interface VPC endpoint.
  18097. //
  18098. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18099. // with awserr.Error's Code and Message methods to get detailed information about
  18100. // the error.
  18101. //
  18102. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18103. // API operation ModifyVpcEndpointServiceConfiguration for usage and error information.
  18104. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointServiceConfiguration
  18105. func (c *EC2) ModifyVpcEndpointServiceConfiguration(input *ModifyVpcEndpointServiceConfigurationInput) (*ModifyVpcEndpointServiceConfigurationOutput, error) {
  18106. req, out := c.ModifyVpcEndpointServiceConfigurationRequest(input)
  18107. return out, req.Send()
  18108. }
  18109. // ModifyVpcEndpointServiceConfigurationWithContext is the same as ModifyVpcEndpointServiceConfiguration with the addition of
  18110. // the ability to pass a context and additional request options.
  18111. //
  18112. // See ModifyVpcEndpointServiceConfiguration for details on how to use this API operation.
  18113. //
  18114. // The context must be non-nil and will be used for request cancellation. If
  18115. // the context is nil a panic will occur. In the future the SDK may create
  18116. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18117. // for more information on using Contexts.
  18118. func (c *EC2) ModifyVpcEndpointServiceConfigurationWithContext(ctx aws.Context, input *ModifyVpcEndpointServiceConfigurationInput, opts ...request.Option) (*ModifyVpcEndpointServiceConfigurationOutput, error) {
  18119. req, out := c.ModifyVpcEndpointServiceConfigurationRequest(input)
  18120. req.SetContext(ctx)
  18121. req.ApplyOptions(opts...)
  18122. return out, req.Send()
  18123. }
  18124. const opModifyVpcEndpointServicePermissions = "ModifyVpcEndpointServicePermissions"
  18125. // ModifyVpcEndpointServicePermissionsRequest generates a "aws/request.Request" representing the
  18126. // client's request for the ModifyVpcEndpointServicePermissions operation. The "output" return
  18127. // value will be populated with the request's response once the request completes
  18128. // successfuly.
  18129. //
  18130. // Use "Send" method on the returned Request to send the API call to the service.
  18131. // the "output" return value is not valid until after Send returns without error.
  18132. //
  18133. // See ModifyVpcEndpointServicePermissions for more information on using the ModifyVpcEndpointServicePermissions
  18134. // API call, and error handling.
  18135. //
  18136. // This method is useful when you want to inject custom logic or configuration
  18137. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18138. //
  18139. //
  18140. // // Example sending a request using the ModifyVpcEndpointServicePermissionsRequest method.
  18141. // req, resp := client.ModifyVpcEndpointServicePermissionsRequest(params)
  18142. //
  18143. // err := req.Send()
  18144. // if err == nil { // resp is now filled
  18145. // fmt.Println(resp)
  18146. // }
  18147. //
  18148. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointServicePermissions
  18149. func (c *EC2) ModifyVpcEndpointServicePermissionsRequest(input *ModifyVpcEndpointServicePermissionsInput) (req *request.Request, output *ModifyVpcEndpointServicePermissionsOutput) {
  18150. op := &request.Operation{
  18151. Name: opModifyVpcEndpointServicePermissions,
  18152. HTTPMethod: "POST",
  18153. HTTPPath: "/",
  18154. }
  18155. if input == nil {
  18156. input = &ModifyVpcEndpointServicePermissionsInput{}
  18157. }
  18158. output = &ModifyVpcEndpointServicePermissionsOutput{}
  18159. req = c.newRequest(op, input, output)
  18160. return
  18161. }
  18162. // ModifyVpcEndpointServicePermissions API operation for Amazon Elastic Compute Cloud.
  18163. //
  18164. // Modifies the permissions for your VPC endpoint service (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/endpoint-service.html).
  18165. // You can add or remove permissions for service consumers (IAM users, IAM roles,
  18166. // and AWS accounts) to connect to your endpoint service.
  18167. //
  18168. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18169. // with awserr.Error's Code and Message methods to get detailed information about
  18170. // the error.
  18171. //
  18172. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18173. // API operation ModifyVpcEndpointServicePermissions for usage and error information.
  18174. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointServicePermissions
  18175. func (c *EC2) ModifyVpcEndpointServicePermissions(input *ModifyVpcEndpointServicePermissionsInput) (*ModifyVpcEndpointServicePermissionsOutput, error) {
  18176. req, out := c.ModifyVpcEndpointServicePermissionsRequest(input)
  18177. return out, req.Send()
  18178. }
  18179. // ModifyVpcEndpointServicePermissionsWithContext is the same as ModifyVpcEndpointServicePermissions with the addition of
  18180. // the ability to pass a context and additional request options.
  18181. //
  18182. // See ModifyVpcEndpointServicePermissions for details on how to use this API operation.
  18183. //
  18184. // The context must be non-nil and will be used for request cancellation. If
  18185. // the context is nil a panic will occur. In the future the SDK may create
  18186. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18187. // for more information on using Contexts.
  18188. func (c *EC2) ModifyVpcEndpointServicePermissionsWithContext(ctx aws.Context, input *ModifyVpcEndpointServicePermissionsInput, opts ...request.Option) (*ModifyVpcEndpointServicePermissionsOutput, error) {
  18189. req, out := c.ModifyVpcEndpointServicePermissionsRequest(input)
  18190. req.SetContext(ctx)
  18191. req.ApplyOptions(opts...)
  18192. return out, req.Send()
  18193. }
  18194. const opModifyVpcPeeringConnectionOptions = "ModifyVpcPeeringConnectionOptions"
  18195. // ModifyVpcPeeringConnectionOptionsRequest generates a "aws/request.Request" representing the
  18196. // client's request for the ModifyVpcPeeringConnectionOptions operation. The "output" return
  18197. // value will be populated with the request's response once the request completes
  18198. // successfuly.
  18199. //
  18200. // Use "Send" method on the returned Request to send the API call to the service.
  18201. // the "output" return value is not valid until after Send returns without error.
  18202. //
  18203. // See ModifyVpcPeeringConnectionOptions for more information on using the ModifyVpcPeeringConnectionOptions
  18204. // API call, and error handling.
  18205. //
  18206. // This method is useful when you want to inject custom logic or configuration
  18207. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18208. //
  18209. //
  18210. // // Example sending a request using the ModifyVpcPeeringConnectionOptionsRequest method.
  18211. // req, resp := client.ModifyVpcPeeringConnectionOptionsRequest(params)
  18212. //
  18213. // err := req.Send()
  18214. // if err == nil { // resp is now filled
  18215. // fmt.Println(resp)
  18216. // }
  18217. //
  18218. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcPeeringConnectionOptions
  18219. func (c *EC2) ModifyVpcPeeringConnectionOptionsRequest(input *ModifyVpcPeeringConnectionOptionsInput) (req *request.Request, output *ModifyVpcPeeringConnectionOptionsOutput) {
  18220. op := &request.Operation{
  18221. Name: opModifyVpcPeeringConnectionOptions,
  18222. HTTPMethod: "POST",
  18223. HTTPPath: "/",
  18224. }
  18225. if input == nil {
  18226. input = &ModifyVpcPeeringConnectionOptionsInput{}
  18227. }
  18228. output = &ModifyVpcPeeringConnectionOptionsOutput{}
  18229. req = c.newRequest(op, input, output)
  18230. return
  18231. }
  18232. // ModifyVpcPeeringConnectionOptions API operation for Amazon Elastic Compute Cloud.
  18233. //
  18234. // Modifies the VPC peering connection options on one side of a VPC peering
  18235. // connection. You can do the following:
  18236. //
  18237. // * Enable/disable communication over the peering connection between an
  18238. // EC2-Classic instance that's linked to your VPC (using ClassicLink) and
  18239. // instances in the peer VPC.
  18240. //
  18241. // * Enable/disable communication over the peering connection between instances
  18242. // in your VPC and an EC2-Classic instance that's linked to the peer VPC.
  18243. //
  18244. // * Enable/disable the ability to resolve public DNS hostnames to private
  18245. // IP addresses when queried from instances in the peer VPC.
  18246. //
  18247. // If the peered VPCs are in different accounts, each owner must initiate a
  18248. // separate request to modify the peering connection options, depending on whether
  18249. // their VPC was the requester or accepter for the VPC peering connection. If
  18250. // the peered VPCs are in the same account, you can modify the requester and
  18251. // accepter options in the same request. To confirm which VPC is the accepter
  18252. // and requester for a VPC peering connection, use the DescribeVpcPeeringConnections
  18253. // command.
  18254. //
  18255. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18256. // with awserr.Error's Code and Message methods to get detailed information about
  18257. // the error.
  18258. //
  18259. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18260. // API operation ModifyVpcPeeringConnectionOptions for usage and error information.
  18261. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcPeeringConnectionOptions
  18262. func (c *EC2) ModifyVpcPeeringConnectionOptions(input *ModifyVpcPeeringConnectionOptionsInput) (*ModifyVpcPeeringConnectionOptionsOutput, error) {
  18263. req, out := c.ModifyVpcPeeringConnectionOptionsRequest(input)
  18264. return out, req.Send()
  18265. }
  18266. // ModifyVpcPeeringConnectionOptionsWithContext is the same as ModifyVpcPeeringConnectionOptions with the addition of
  18267. // the ability to pass a context and additional request options.
  18268. //
  18269. // See ModifyVpcPeeringConnectionOptions for details on how to use this API operation.
  18270. //
  18271. // The context must be non-nil and will be used for request cancellation. If
  18272. // the context is nil a panic will occur. In the future the SDK may create
  18273. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18274. // for more information on using Contexts.
  18275. func (c *EC2) ModifyVpcPeeringConnectionOptionsWithContext(ctx aws.Context, input *ModifyVpcPeeringConnectionOptionsInput, opts ...request.Option) (*ModifyVpcPeeringConnectionOptionsOutput, error) {
  18276. req, out := c.ModifyVpcPeeringConnectionOptionsRequest(input)
  18277. req.SetContext(ctx)
  18278. req.ApplyOptions(opts...)
  18279. return out, req.Send()
  18280. }
  18281. const opModifyVpcTenancy = "ModifyVpcTenancy"
  18282. // ModifyVpcTenancyRequest generates a "aws/request.Request" representing the
  18283. // client's request for the ModifyVpcTenancy operation. The "output" return
  18284. // value will be populated with the request's response once the request completes
  18285. // successfuly.
  18286. //
  18287. // Use "Send" method on the returned Request to send the API call to the service.
  18288. // the "output" return value is not valid until after Send returns without error.
  18289. //
  18290. // See ModifyVpcTenancy for more information on using the ModifyVpcTenancy
  18291. // API call, and error handling.
  18292. //
  18293. // This method is useful when you want to inject custom logic or configuration
  18294. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18295. //
  18296. //
  18297. // // Example sending a request using the ModifyVpcTenancyRequest method.
  18298. // req, resp := client.ModifyVpcTenancyRequest(params)
  18299. //
  18300. // err := req.Send()
  18301. // if err == nil { // resp is now filled
  18302. // fmt.Println(resp)
  18303. // }
  18304. //
  18305. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcTenancy
  18306. func (c *EC2) ModifyVpcTenancyRequest(input *ModifyVpcTenancyInput) (req *request.Request, output *ModifyVpcTenancyOutput) {
  18307. op := &request.Operation{
  18308. Name: opModifyVpcTenancy,
  18309. HTTPMethod: "POST",
  18310. HTTPPath: "/",
  18311. }
  18312. if input == nil {
  18313. input = &ModifyVpcTenancyInput{}
  18314. }
  18315. output = &ModifyVpcTenancyOutput{}
  18316. req = c.newRequest(op, input, output)
  18317. return
  18318. }
  18319. // ModifyVpcTenancy API operation for Amazon Elastic Compute Cloud.
  18320. //
  18321. // Modifies the instance tenancy attribute of the specified VPC. You can change
  18322. // the instance tenancy attribute of a VPC to default only. You cannot change
  18323. // the instance tenancy attribute to dedicated.
  18324. //
  18325. // After you modify the tenancy of the VPC, any new instances that you launch
  18326. // into the VPC have a tenancy of default, unless you specify otherwise during
  18327. // launch. The tenancy of any existing instances in the VPC is not affected.
  18328. //
  18329. // For more information about Dedicated Instances, see Dedicated Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-instance.html)
  18330. // in the Amazon Elastic Compute Cloud User Guide.
  18331. //
  18332. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18333. // with awserr.Error's Code and Message methods to get detailed information about
  18334. // the error.
  18335. //
  18336. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18337. // API operation ModifyVpcTenancy for usage and error information.
  18338. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcTenancy
  18339. func (c *EC2) ModifyVpcTenancy(input *ModifyVpcTenancyInput) (*ModifyVpcTenancyOutput, error) {
  18340. req, out := c.ModifyVpcTenancyRequest(input)
  18341. return out, req.Send()
  18342. }
  18343. // ModifyVpcTenancyWithContext is the same as ModifyVpcTenancy with the addition of
  18344. // the ability to pass a context and additional request options.
  18345. //
  18346. // See ModifyVpcTenancy for details on how to use this API operation.
  18347. //
  18348. // The context must be non-nil and will be used for request cancellation. If
  18349. // the context is nil a panic will occur. In the future the SDK may create
  18350. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18351. // for more information on using Contexts.
  18352. func (c *EC2) ModifyVpcTenancyWithContext(ctx aws.Context, input *ModifyVpcTenancyInput, opts ...request.Option) (*ModifyVpcTenancyOutput, error) {
  18353. req, out := c.ModifyVpcTenancyRequest(input)
  18354. req.SetContext(ctx)
  18355. req.ApplyOptions(opts...)
  18356. return out, req.Send()
  18357. }
  18358. const opMonitorInstances = "MonitorInstances"
  18359. // MonitorInstancesRequest generates a "aws/request.Request" representing the
  18360. // client's request for the MonitorInstances operation. The "output" return
  18361. // value will be populated with the request's response once the request completes
  18362. // successfuly.
  18363. //
  18364. // Use "Send" method on the returned Request to send the API call to the service.
  18365. // the "output" return value is not valid until after Send returns without error.
  18366. //
  18367. // See MonitorInstances for more information on using the MonitorInstances
  18368. // API call, and error handling.
  18369. //
  18370. // This method is useful when you want to inject custom logic or configuration
  18371. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18372. //
  18373. //
  18374. // // Example sending a request using the MonitorInstancesRequest method.
  18375. // req, resp := client.MonitorInstancesRequest(params)
  18376. //
  18377. // err := req.Send()
  18378. // if err == nil { // resp is now filled
  18379. // fmt.Println(resp)
  18380. // }
  18381. //
  18382. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MonitorInstances
  18383. func (c *EC2) MonitorInstancesRequest(input *MonitorInstancesInput) (req *request.Request, output *MonitorInstancesOutput) {
  18384. op := &request.Operation{
  18385. Name: opMonitorInstances,
  18386. HTTPMethod: "POST",
  18387. HTTPPath: "/",
  18388. }
  18389. if input == nil {
  18390. input = &MonitorInstancesInput{}
  18391. }
  18392. output = &MonitorInstancesOutput{}
  18393. req = c.newRequest(op, input, output)
  18394. return
  18395. }
  18396. // MonitorInstances API operation for Amazon Elastic Compute Cloud.
  18397. //
  18398. // Enables detailed monitoring for a running instance. Otherwise, basic monitoring
  18399. // is enabled. For more information, see Monitoring Your Instances and Volumes
  18400. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-cloudwatch.html)
  18401. // in the Amazon Elastic Compute Cloud User Guide.
  18402. //
  18403. // To disable detailed monitoring, see .
  18404. //
  18405. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18406. // with awserr.Error's Code and Message methods to get detailed information about
  18407. // the error.
  18408. //
  18409. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18410. // API operation MonitorInstances for usage and error information.
  18411. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MonitorInstances
  18412. func (c *EC2) MonitorInstances(input *MonitorInstancesInput) (*MonitorInstancesOutput, error) {
  18413. req, out := c.MonitorInstancesRequest(input)
  18414. return out, req.Send()
  18415. }
  18416. // MonitorInstancesWithContext is the same as MonitorInstances with the addition of
  18417. // the ability to pass a context and additional request options.
  18418. //
  18419. // See MonitorInstances for details on how to use this API operation.
  18420. //
  18421. // The context must be non-nil and will be used for request cancellation. If
  18422. // the context is nil a panic will occur. In the future the SDK may create
  18423. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18424. // for more information on using Contexts.
  18425. func (c *EC2) MonitorInstancesWithContext(ctx aws.Context, input *MonitorInstancesInput, opts ...request.Option) (*MonitorInstancesOutput, error) {
  18426. req, out := c.MonitorInstancesRequest(input)
  18427. req.SetContext(ctx)
  18428. req.ApplyOptions(opts...)
  18429. return out, req.Send()
  18430. }
  18431. const opMoveAddressToVpc = "MoveAddressToVpc"
  18432. // MoveAddressToVpcRequest generates a "aws/request.Request" representing the
  18433. // client's request for the MoveAddressToVpc operation. The "output" return
  18434. // value will be populated with the request's response once the request completes
  18435. // successfuly.
  18436. //
  18437. // Use "Send" method on the returned Request to send the API call to the service.
  18438. // the "output" return value is not valid until after Send returns without error.
  18439. //
  18440. // See MoveAddressToVpc for more information on using the MoveAddressToVpc
  18441. // API call, and error handling.
  18442. //
  18443. // This method is useful when you want to inject custom logic or configuration
  18444. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18445. //
  18446. //
  18447. // // Example sending a request using the MoveAddressToVpcRequest method.
  18448. // req, resp := client.MoveAddressToVpcRequest(params)
  18449. //
  18450. // err := req.Send()
  18451. // if err == nil { // resp is now filled
  18452. // fmt.Println(resp)
  18453. // }
  18454. //
  18455. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MoveAddressToVpc
  18456. func (c *EC2) MoveAddressToVpcRequest(input *MoveAddressToVpcInput) (req *request.Request, output *MoveAddressToVpcOutput) {
  18457. op := &request.Operation{
  18458. Name: opMoveAddressToVpc,
  18459. HTTPMethod: "POST",
  18460. HTTPPath: "/",
  18461. }
  18462. if input == nil {
  18463. input = &MoveAddressToVpcInput{}
  18464. }
  18465. output = &MoveAddressToVpcOutput{}
  18466. req = c.newRequest(op, input, output)
  18467. return
  18468. }
  18469. // MoveAddressToVpc API operation for Amazon Elastic Compute Cloud.
  18470. //
  18471. // Moves an Elastic IP address from the EC2-Classic platform to the EC2-VPC
  18472. // platform. The Elastic IP address must be allocated to your account for more
  18473. // than 24 hours, and it must not be associated with an instance. After the
  18474. // Elastic IP address is moved, it is no longer available for use in the EC2-Classic
  18475. // platform, unless you move it back using the RestoreAddressToClassic request.
  18476. // You cannot move an Elastic IP address that was originally allocated for use
  18477. // in the EC2-VPC platform to the EC2-Classic platform.
  18478. //
  18479. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18480. // with awserr.Error's Code and Message methods to get detailed information about
  18481. // the error.
  18482. //
  18483. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18484. // API operation MoveAddressToVpc for usage and error information.
  18485. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MoveAddressToVpc
  18486. func (c *EC2) MoveAddressToVpc(input *MoveAddressToVpcInput) (*MoveAddressToVpcOutput, error) {
  18487. req, out := c.MoveAddressToVpcRequest(input)
  18488. return out, req.Send()
  18489. }
  18490. // MoveAddressToVpcWithContext is the same as MoveAddressToVpc with the addition of
  18491. // the ability to pass a context and additional request options.
  18492. //
  18493. // See MoveAddressToVpc for details on how to use this API operation.
  18494. //
  18495. // The context must be non-nil and will be used for request cancellation. If
  18496. // the context is nil a panic will occur. In the future the SDK may create
  18497. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18498. // for more information on using Contexts.
  18499. func (c *EC2) MoveAddressToVpcWithContext(ctx aws.Context, input *MoveAddressToVpcInput, opts ...request.Option) (*MoveAddressToVpcOutput, error) {
  18500. req, out := c.MoveAddressToVpcRequest(input)
  18501. req.SetContext(ctx)
  18502. req.ApplyOptions(opts...)
  18503. return out, req.Send()
  18504. }
  18505. const opPurchaseHostReservation = "PurchaseHostReservation"
  18506. // PurchaseHostReservationRequest generates a "aws/request.Request" representing the
  18507. // client's request for the PurchaseHostReservation operation. The "output" return
  18508. // value will be populated with the request's response once the request completes
  18509. // successfuly.
  18510. //
  18511. // Use "Send" method on the returned Request to send the API call to the service.
  18512. // the "output" return value is not valid until after Send returns without error.
  18513. //
  18514. // See PurchaseHostReservation for more information on using the PurchaseHostReservation
  18515. // API call, and error handling.
  18516. //
  18517. // This method is useful when you want to inject custom logic or configuration
  18518. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18519. //
  18520. //
  18521. // // Example sending a request using the PurchaseHostReservationRequest method.
  18522. // req, resp := client.PurchaseHostReservationRequest(params)
  18523. //
  18524. // err := req.Send()
  18525. // if err == nil { // resp is now filled
  18526. // fmt.Println(resp)
  18527. // }
  18528. //
  18529. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseHostReservation
  18530. func (c *EC2) PurchaseHostReservationRequest(input *PurchaseHostReservationInput) (req *request.Request, output *PurchaseHostReservationOutput) {
  18531. op := &request.Operation{
  18532. Name: opPurchaseHostReservation,
  18533. HTTPMethod: "POST",
  18534. HTTPPath: "/",
  18535. }
  18536. if input == nil {
  18537. input = &PurchaseHostReservationInput{}
  18538. }
  18539. output = &PurchaseHostReservationOutput{}
  18540. req = c.newRequest(op, input, output)
  18541. return
  18542. }
  18543. // PurchaseHostReservation API operation for Amazon Elastic Compute Cloud.
  18544. //
  18545. // Purchase a reservation with configurations that match those of your Dedicated
  18546. // Host. You must have active Dedicated Hosts in your account before you purchase
  18547. // a reservation. This action results in the specified reservation being purchased
  18548. // and charged to your account.
  18549. //
  18550. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18551. // with awserr.Error's Code and Message methods to get detailed information about
  18552. // the error.
  18553. //
  18554. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18555. // API operation PurchaseHostReservation for usage and error information.
  18556. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseHostReservation
  18557. func (c *EC2) PurchaseHostReservation(input *PurchaseHostReservationInput) (*PurchaseHostReservationOutput, error) {
  18558. req, out := c.PurchaseHostReservationRequest(input)
  18559. return out, req.Send()
  18560. }
  18561. // PurchaseHostReservationWithContext is the same as PurchaseHostReservation with the addition of
  18562. // the ability to pass a context and additional request options.
  18563. //
  18564. // See PurchaseHostReservation for details on how to use this API operation.
  18565. //
  18566. // The context must be non-nil and will be used for request cancellation. If
  18567. // the context is nil a panic will occur. In the future the SDK may create
  18568. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18569. // for more information on using Contexts.
  18570. func (c *EC2) PurchaseHostReservationWithContext(ctx aws.Context, input *PurchaseHostReservationInput, opts ...request.Option) (*PurchaseHostReservationOutput, error) {
  18571. req, out := c.PurchaseHostReservationRequest(input)
  18572. req.SetContext(ctx)
  18573. req.ApplyOptions(opts...)
  18574. return out, req.Send()
  18575. }
  18576. const opPurchaseReservedInstancesOffering = "PurchaseReservedInstancesOffering"
  18577. // PurchaseReservedInstancesOfferingRequest generates a "aws/request.Request" representing the
  18578. // client's request for the PurchaseReservedInstancesOffering operation. The "output" return
  18579. // value will be populated with the request's response once the request completes
  18580. // successfuly.
  18581. //
  18582. // Use "Send" method on the returned Request to send the API call to the service.
  18583. // the "output" return value is not valid until after Send returns without error.
  18584. //
  18585. // See PurchaseReservedInstancesOffering for more information on using the PurchaseReservedInstancesOffering
  18586. // API call, and error handling.
  18587. //
  18588. // This method is useful when you want to inject custom logic or configuration
  18589. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18590. //
  18591. //
  18592. // // Example sending a request using the PurchaseReservedInstancesOfferingRequest method.
  18593. // req, resp := client.PurchaseReservedInstancesOfferingRequest(params)
  18594. //
  18595. // err := req.Send()
  18596. // if err == nil { // resp is now filled
  18597. // fmt.Println(resp)
  18598. // }
  18599. //
  18600. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseReservedInstancesOffering
  18601. func (c *EC2) PurchaseReservedInstancesOfferingRequest(input *PurchaseReservedInstancesOfferingInput) (req *request.Request, output *PurchaseReservedInstancesOfferingOutput) {
  18602. op := &request.Operation{
  18603. Name: opPurchaseReservedInstancesOffering,
  18604. HTTPMethod: "POST",
  18605. HTTPPath: "/",
  18606. }
  18607. if input == nil {
  18608. input = &PurchaseReservedInstancesOfferingInput{}
  18609. }
  18610. output = &PurchaseReservedInstancesOfferingOutput{}
  18611. req = c.newRequest(op, input, output)
  18612. return
  18613. }
  18614. // PurchaseReservedInstancesOffering API operation for Amazon Elastic Compute Cloud.
  18615. //
  18616. // Purchases a Reserved Instance for use with your account. With Reserved Instances,
  18617. // you pay a lower hourly rate compared to On-Demand instance pricing.
  18618. //
  18619. // Use DescribeReservedInstancesOfferings to get a list of Reserved Instance
  18620. // offerings that match your specifications. After you've purchased a Reserved
  18621. // Instance, you can check for your new Reserved Instance with DescribeReservedInstances.
  18622. //
  18623. // For more information, see Reserved Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts-on-demand-reserved-instances.html)
  18624. // and Reserved Instance Marketplace (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html)
  18625. // in the Amazon Elastic Compute Cloud User Guide.
  18626. //
  18627. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18628. // with awserr.Error's Code and Message methods to get detailed information about
  18629. // the error.
  18630. //
  18631. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18632. // API operation PurchaseReservedInstancesOffering for usage and error information.
  18633. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseReservedInstancesOffering
  18634. func (c *EC2) PurchaseReservedInstancesOffering(input *PurchaseReservedInstancesOfferingInput) (*PurchaseReservedInstancesOfferingOutput, error) {
  18635. req, out := c.PurchaseReservedInstancesOfferingRequest(input)
  18636. return out, req.Send()
  18637. }
  18638. // PurchaseReservedInstancesOfferingWithContext is the same as PurchaseReservedInstancesOffering with the addition of
  18639. // the ability to pass a context and additional request options.
  18640. //
  18641. // See PurchaseReservedInstancesOffering for details on how to use this API operation.
  18642. //
  18643. // The context must be non-nil and will be used for request cancellation. If
  18644. // the context is nil a panic will occur. In the future the SDK may create
  18645. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18646. // for more information on using Contexts.
  18647. func (c *EC2) PurchaseReservedInstancesOfferingWithContext(ctx aws.Context, input *PurchaseReservedInstancesOfferingInput, opts ...request.Option) (*PurchaseReservedInstancesOfferingOutput, error) {
  18648. req, out := c.PurchaseReservedInstancesOfferingRequest(input)
  18649. req.SetContext(ctx)
  18650. req.ApplyOptions(opts...)
  18651. return out, req.Send()
  18652. }
  18653. const opPurchaseScheduledInstances = "PurchaseScheduledInstances"
  18654. // PurchaseScheduledInstancesRequest generates a "aws/request.Request" representing the
  18655. // client's request for the PurchaseScheduledInstances operation. The "output" return
  18656. // value will be populated with the request's response once the request completes
  18657. // successfuly.
  18658. //
  18659. // Use "Send" method on the returned Request to send the API call to the service.
  18660. // the "output" return value is not valid until after Send returns without error.
  18661. //
  18662. // See PurchaseScheduledInstances for more information on using the PurchaseScheduledInstances
  18663. // API call, and error handling.
  18664. //
  18665. // This method is useful when you want to inject custom logic or configuration
  18666. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18667. //
  18668. //
  18669. // // Example sending a request using the PurchaseScheduledInstancesRequest method.
  18670. // req, resp := client.PurchaseScheduledInstancesRequest(params)
  18671. //
  18672. // err := req.Send()
  18673. // if err == nil { // resp is now filled
  18674. // fmt.Println(resp)
  18675. // }
  18676. //
  18677. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseScheduledInstances
  18678. func (c *EC2) PurchaseScheduledInstancesRequest(input *PurchaseScheduledInstancesInput) (req *request.Request, output *PurchaseScheduledInstancesOutput) {
  18679. op := &request.Operation{
  18680. Name: opPurchaseScheduledInstances,
  18681. HTTPMethod: "POST",
  18682. HTTPPath: "/",
  18683. }
  18684. if input == nil {
  18685. input = &PurchaseScheduledInstancesInput{}
  18686. }
  18687. output = &PurchaseScheduledInstancesOutput{}
  18688. req = c.newRequest(op, input, output)
  18689. return
  18690. }
  18691. // PurchaseScheduledInstances API operation for Amazon Elastic Compute Cloud.
  18692. //
  18693. // Purchases one or more Scheduled Instances with the specified schedule.
  18694. //
  18695. // Scheduled Instances enable you to purchase Amazon EC2 compute capacity by
  18696. // the hour for a one-year term. Before you can purchase a Scheduled Instance,
  18697. // you must call DescribeScheduledInstanceAvailability to check for available
  18698. // schedules and obtain a purchase token. After you purchase a Scheduled Instance,
  18699. // you must call RunScheduledInstances during each scheduled time period.
  18700. //
  18701. // After you purchase a Scheduled Instance, you can't cancel, modify, or resell
  18702. // your purchase.
  18703. //
  18704. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18705. // with awserr.Error's Code and Message methods to get detailed information about
  18706. // the error.
  18707. //
  18708. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18709. // API operation PurchaseScheduledInstances for usage and error information.
  18710. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseScheduledInstances
  18711. func (c *EC2) PurchaseScheduledInstances(input *PurchaseScheduledInstancesInput) (*PurchaseScheduledInstancesOutput, error) {
  18712. req, out := c.PurchaseScheduledInstancesRequest(input)
  18713. return out, req.Send()
  18714. }
  18715. // PurchaseScheduledInstancesWithContext is the same as PurchaseScheduledInstances with the addition of
  18716. // the ability to pass a context and additional request options.
  18717. //
  18718. // See PurchaseScheduledInstances for details on how to use this API operation.
  18719. //
  18720. // The context must be non-nil and will be used for request cancellation. If
  18721. // the context is nil a panic will occur. In the future the SDK may create
  18722. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18723. // for more information on using Contexts.
  18724. func (c *EC2) PurchaseScheduledInstancesWithContext(ctx aws.Context, input *PurchaseScheduledInstancesInput, opts ...request.Option) (*PurchaseScheduledInstancesOutput, error) {
  18725. req, out := c.PurchaseScheduledInstancesRequest(input)
  18726. req.SetContext(ctx)
  18727. req.ApplyOptions(opts...)
  18728. return out, req.Send()
  18729. }
  18730. const opRebootInstances = "RebootInstances"
  18731. // RebootInstancesRequest generates a "aws/request.Request" representing the
  18732. // client's request for the RebootInstances operation. The "output" return
  18733. // value will be populated with the request's response once the request completes
  18734. // successfuly.
  18735. //
  18736. // Use "Send" method on the returned Request to send the API call to the service.
  18737. // the "output" return value is not valid until after Send returns without error.
  18738. //
  18739. // See RebootInstances for more information on using the RebootInstances
  18740. // API call, and error handling.
  18741. //
  18742. // This method is useful when you want to inject custom logic or configuration
  18743. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18744. //
  18745. //
  18746. // // Example sending a request using the RebootInstancesRequest method.
  18747. // req, resp := client.RebootInstancesRequest(params)
  18748. //
  18749. // err := req.Send()
  18750. // if err == nil { // resp is now filled
  18751. // fmt.Println(resp)
  18752. // }
  18753. //
  18754. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RebootInstances
  18755. func (c *EC2) RebootInstancesRequest(input *RebootInstancesInput) (req *request.Request, output *RebootInstancesOutput) {
  18756. op := &request.Operation{
  18757. Name: opRebootInstances,
  18758. HTTPMethod: "POST",
  18759. HTTPPath: "/",
  18760. }
  18761. if input == nil {
  18762. input = &RebootInstancesInput{}
  18763. }
  18764. output = &RebootInstancesOutput{}
  18765. req = c.newRequest(op, input, output)
  18766. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  18767. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  18768. return
  18769. }
  18770. // RebootInstances API operation for Amazon Elastic Compute Cloud.
  18771. //
  18772. // Requests a reboot of one or more instances. This operation is asynchronous;
  18773. // it only queues a request to reboot the specified instances. The operation
  18774. // succeeds if the instances are valid and belong to you. Requests to reboot
  18775. // terminated instances are ignored.
  18776. //
  18777. // If an instance does not cleanly shut down within four minutes, Amazon EC2
  18778. // performs a hard reboot.
  18779. //
  18780. // For more information about troubleshooting, see Getting Console Output and
  18781. // Rebooting Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-console.html)
  18782. // in the Amazon Elastic Compute 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 RebootInstances for usage and error information.
  18790. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RebootInstances
  18791. func (c *EC2) RebootInstances(input *RebootInstancesInput) (*RebootInstancesOutput, error) {
  18792. req, out := c.RebootInstancesRequest(input)
  18793. return out, req.Send()
  18794. }
  18795. // RebootInstancesWithContext is the same as RebootInstances with the addition of
  18796. // the ability to pass a context and additional request options.
  18797. //
  18798. // See RebootInstances 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) RebootInstancesWithContext(ctx aws.Context, input *RebootInstancesInput, opts ...request.Option) (*RebootInstancesOutput, error) {
  18805. req, out := c.RebootInstancesRequest(input)
  18806. req.SetContext(ctx)
  18807. req.ApplyOptions(opts...)
  18808. return out, req.Send()
  18809. }
  18810. const opRegisterImage = "RegisterImage"
  18811. // RegisterImageRequest generates a "aws/request.Request" representing the
  18812. // client's request for the RegisterImage operation. The "output" return
  18813. // value will be populated with the request's response once the request completes
  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 RegisterImage for more information on using the RegisterImage
  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 RegisterImageRequest method.
  18827. // req, resp := client.RegisterImageRequest(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/RegisterImage
  18835. func (c *EC2) RegisterImageRequest(input *RegisterImageInput) (req *request.Request, output *RegisterImageOutput) {
  18836. op := &request.Operation{
  18837. Name: opRegisterImage,
  18838. HTTPMethod: "POST",
  18839. HTTPPath: "/",
  18840. }
  18841. if input == nil {
  18842. input = &RegisterImageInput{}
  18843. }
  18844. output = &RegisterImageOutput{}
  18845. req = c.newRequest(op, input, output)
  18846. return
  18847. }
  18848. // RegisterImage API operation for Amazon Elastic Compute Cloud.
  18849. //
  18850. // Registers an AMI. When you're creating an AMI, this is the final step you
  18851. // must complete before you can launch an instance from the AMI. For more information
  18852. // about creating AMIs, see Creating Your Own AMIs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami.html)
  18853. // in the Amazon Elastic Compute Cloud User Guide.
  18854. //
  18855. // For Amazon EBS-backed instances, CreateImage creates and registers the AMI
  18856. // in a single request, so you don't have to register the AMI yourself.
  18857. //
  18858. // You can also use RegisterImage to create an Amazon EBS-backed Linux AMI from
  18859. // a snapshot of a root device volume. You specify the snapshot using the block
  18860. // device mapping. For more information, see Launching a Linux Instance from
  18861. // a Backup (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-launch-snapshot.html)
  18862. // in the Amazon Elastic Compute Cloud User Guide.
  18863. //
  18864. // You can't register an image where a secondary (non-root) snapshot has AWS
  18865. // Marketplace product codes.
  18866. //
  18867. // Some Linux distributions, such as Red Hat Enterprise Linux (RHEL) and SUSE
  18868. // Linux Enterprise Server (SLES), use the EC2 billing product code associated
  18869. // with an AMI to verify the subscription status for package updates. Creating
  18870. // an AMI from an EBS snapshot does not maintain this billing code, and subsequent
  18871. // instances launched from such an AMI will not be able to connect to package
  18872. // update infrastructure. To create an AMI that must retain billing codes, see
  18873. // CreateImage.
  18874. //
  18875. // If needed, you can deregister an AMI at any time. Any modifications you make
  18876. // to an AMI backed by an instance store volume invalidates its registration.
  18877. // If you make changes to an image, deregister the previous image and register
  18878. // the new image.
  18879. //
  18880. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18881. // with awserr.Error's Code and Message methods to get detailed information about
  18882. // the error.
  18883. //
  18884. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18885. // API operation RegisterImage for usage and error information.
  18886. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RegisterImage
  18887. func (c *EC2) RegisterImage(input *RegisterImageInput) (*RegisterImageOutput, error) {
  18888. req, out := c.RegisterImageRequest(input)
  18889. return out, req.Send()
  18890. }
  18891. // RegisterImageWithContext is the same as RegisterImage with the addition of
  18892. // the ability to pass a context and additional request options.
  18893. //
  18894. // See RegisterImage for details on how to use this API operation.
  18895. //
  18896. // The context must be non-nil and will be used for request cancellation. If
  18897. // the context is nil a panic will occur. In the future the SDK may create
  18898. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18899. // for more information on using Contexts.
  18900. func (c *EC2) RegisterImageWithContext(ctx aws.Context, input *RegisterImageInput, opts ...request.Option) (*RegisterImageOutput, error) {
  18901. req, out := c.RegisterImageRequest(input)
  18902. req.SetContext(ctx)
  18903. req.ApplyOptions(opts...)
  18904. return out, req.Send()
  18905. }
  18906. const opRejectVpcEndpointConnections = "RejectVpcEndpointConnections"
  18907. // RejectVpcEndpointConnectionsRequest generates a "aws/request.Request" representing the
  18908. // client's request for the RejectVpcEndpointConnections operation. The "output" return
  18909. // value will be populated with the request's response once the request completes
  18910. // successfuly.
  18911. //
  18912. // Use "Send" method on the returned Request to send the API call to the service.
  18913. // the "output" return value is not valid until after Send returns without error.
  18914. //
  18915. // See RejectVpcEndpointConnections for more information on using the RejectVpcEndpointConnections
  18916. // API call, and error handling.
  18917. //
  18918. // This method is useful when you want to inject custom logic or configuration
  18919. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18920. //
  18921. //
  18922. // // Example sending a request using the RejectVpcEndpointConnectionsRequest method.
  18923. // req, resp := client.RejectVpcEndpointConnectionsRequest(params)
  18924. //
  18925. // err := req.Send()
  18926. // if err == nil { // resp is now filled
  18927. // fmt.Println(resp)
  18928. // }
  18929. //
  18930. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectVpcEndpointConnections
  18931. func (c *EC2) RejectVpcEndpointConnectionsRequest(input *RejectVpcEndpointConnectionsInput) (req *request.Request, output *RejectVpcEndpointConnectionsOutput) {
  18932. op := &request.Operation{
  18933. Name: opRejectVpcEndpointConnections,
  18934. HTTPMethod: "POST",
  18935. HTTPPath: "/",
  18936. }
  18937. if input == nil {
  18938. input = &RejectVpcEndpointConnectionsInput{}
  18939. }
  18940. output = &RejectVpcEndpointConnectionsOutput{}
  18941. req = c.newRequest(op, input, output)
  18942. return
  18943. }
  18944. // RejectVpcEndpointConnections API operation for Amazon Elastic Compute Cloud.
  18945. //
  18946. // Rejects one or more VPC endpoint connection requests to your VPC endpoint
  18947. // service.
  18948. //
  18949. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18950. // with awserr.Error's Code and Message methods to get detailed information about
  18951. // the error.
  18952. //
  18953. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18954. // API operation RejectVpcEndpointConnections for usage and error information.
  18955. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectVpcEndpointConnections
  18956. func (c *EC2) RejectVpcEndpointConnections(input *RejectVpcEndpointConnectionsInput) (*RejectVpcEndpointConnectionsOutput, error) {
  18957. req, out := c.RejectVpcEndpointConnectionsRequest(input)
  18958. return out, req.Send()
  18959. }
  18960. // RejectVpcEndpointConnectionsWithContext is the same as RejectVpcEndpointConnections with the addition of
  18961. // the ability to pass a context and additional request options.
  18962. //
  18963. // See RejectVpcEndpointConnections for details on how to use this API operation.
  18964. //
  18965. // The context must be non-nil and will be used for request cancellation. If
  18966. // the context is nil a panic will occur. In the future the SDK may create
  18967. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18968. // for more information on using Contexts.
  18969. func (c *EC2) RejectVpcEndpointConnectionsWithContext(ctx aws.Context, input *RejectVpcEndpointConnectionsInput, opts ...request.Option) (*RejectVpcEndpointConnectionsOutput, error) {
  18970. req, out := c.RejectVpcEndpointConnectionsRequest(input)
  18971. req.SetContext(ctx)
  18972. req.ApplyOptions(opts...)
  18973. return out, req.Send()
  18974. }
  18975. const opRejectVpcPeeringConnection = "RejectVpcPeeringConnection"
  18976. // RejectVpcPeeringConnectionRequest generates a "aws/request.Request" representing the
  18977. // client's request for the RejectVpcPeeringConnection operation. The "output" return
  18978. // value will be populated with the request's response once the request completes
  18979. // successfuly.
  18980. //
  18981. // Use "Send" method on the returned Request to send the API call to the service.
  18982. // the "output" return value is not valid until after Send returns without error.
  18983. //
  18984. // See RejectVpcPeeringConnection for more information on using the RejectVpcPeeringConnection
  18985. // API call, and error handling.
  18986. //
  18987. // This method is useful when you want to inject custom logic or configuration
  18988. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18989. //
  18990. //
  18991. // // Example sending a request using the RejectVpcPeeringConnectionRequest method.
  18992. // req, resp := client.RejectVpcPeeringConnectionRequest(params)
  18993. //
  18994. // err := req.Send()
  18995. // if err == nil { // resp is now filled
  18996. // fmt.Println(resp)
  18997. // }
  18998. //
  18999. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectVpcPeeringConnection
  19000. func (c *EC2) RejectVpcPeeringConnectionRequest(input *RejectVpcPeeringConnectionInput) (req *request.Request, output *RejectVpcPeeringConnectionOutput) {
  19001. op := &request.Operation{
  19002. Name: opRejectVpcPeeringConnection,
  19003. HTTPMethod: "POST",
  19004. HTTPPath: "/",
  19005. }
  19006. if input == nil {
  19007. input = &RejectVpcPeeringConnectionInput{}
  19008. }
  19009. output = &RejectVpcPeeringConnectionOutput{}
  19010. req = c.newRequest(op, input, output)
  19011. return
  19012. }
  19013. // RejectVpcPeeringConnection API operation for Amazon Elastic Compute Cloud.
  19014. //
  19015. // Rejects a VPC peering connection request. The VPC peering connection must
  19016. // be in the pending-acceptance state. Use the DescribeVpcPeeringConnections
  19017. // request to view your outstanding VPC peering connection requests. To delete
  19018. // an active VPC peering connection, or to delete a VPC peering connection request
  19019. // that you initiated, use DeleteVpcPeeringConnection.
  19020. //
  19021. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19022. // with awserr.Error's Code and Message methods to get detailed information about
  19023. // the error.
  19024. //
  19025. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19026. // API operation RejectVpcPeeringConnection for usage and error information.
  19027. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectVpcPeeringConnection
  19028. func (c *EC2) RejectVpcPeeringConnection(input *RejectVpcPeeringConnectionInput) (*RejectVpcPeeringConnectionOutput, error) {
  19029. req, out := c.RejectVpcPeeringConnectionRequest(input)
  19030. return out, req.Send()
  19031. }
  19032. // RejectVpcPeeringConnectionWithContext is the same as RejectVpcPeeringConnection with the addition of
  19033. // the ability to pass a context and additional request options.
  19034. //
  19035. // See RejectVpcPeeringConnection for details on how to use this API operation.
  19036. //
  19037. // The context must be non-nil and will be used for request cancellation. If
  19038. // the context is nil a panic will occur. In the future the SDK may create
  19039. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19040. // for more information on using Contexts.
  19041. func (c *EC2) RejectVpcPeeringConnectionWithContext(ctx aws.Context, input *RejectVpcPeeringConnectionInput, opts ...request.Option) (*RejectVpcPeeringConnectionOutput, error) {
  19042. req, out := c.RejectVpcPeeringConnectionRequest(input)
  19043. req.SetContext(ctx)
  19044. req.ApplyOptions(opts...)
  19045. return out, req.Send()
  19046. }
  19047. const opReleaseAddress = "ReleaseAddress"
  19048. // ReleaseAddressRequest generates a "aws/request.Request" representing the
  19049. // client's request for the ReleaseAddress operation. The "output" return
  19050. // value will be populated with the request's response once the request completes
  19051. // successfuly.
  19052. //
  19053. // Use "Send" method on the returned Request to send the API call to the service.
  19054. // the "output" return value is not valid until after Send returns without error.
  19055. //
  19056. // See ReleaseAddress for more information on using the ReleaseAddress
  19057. // API call, and error handling.
  19058. //
  19059. // This method is useful when you want to inject custom logic or configuration
  19060. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19061. //
  19062. //
  19063. // // Example sending a request using the ReleaseAddressRequest method.
  19064. // req, resp := client.ReleaseAddressRequest(params)
  19065. //
  19066. // err := req.Send()
  19067. // if err == nil { // resp is now filled
  19068. // fmt.Println(resp)
  19069. // }
  19070. //
  19071. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReleaseAddress
  19072. func (c *EC2) ReleaseAddressRequest(input *ReleaseAddressInput) (req *request.Request, output *ReleaseAddressOutput) {
  19073. op := &request.Operation{
  19074. Name: opReleaseAddress,
  19075. HTTPMethod: "POST",
  19076. HTTPPath: "/",
  19077. }
  19078. if input == nil {
  19079. input = &ReleaseAddressInput{}
  19080. }
  19081. output = &ReleaseAddressOutput{}
  19082. req = c.newRequest(op, input, output)
  19083. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  19084. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  19085. return
  19086. }
  19087. // ReleaseAddress API operation for Amazon Elastic Compute Cloud.
  19088. //
  19089. // Releases the specified Elastic IP address.
  19090. //
  19091. // [EC2-Classic, default VPC] Releasing an Elastic IP address automatically
  19092. // disassociates it from any instance that it's associated with. To disassociate
  19093. // an Elastic IP address without releasing it, use DisassociateAddress.
  19094. //
  19095. // [Nondefault VPC] You must use DisassociateAddress to disassociate the Elastic
  19096. // IP address before you can release it. Otherwise, Amazon EC2 returns an error
  19097. // (InvalidIPAddress.InUse).
  19098. //
  19099. // After releasing an Elastic IP address, it is released to the IP address pool.
  19100. // Be sure to update your DNS records and any servers or devices that communicate
  19101. // with the address. If you attempt to release an Elastic IP address that you
  19102. // already released, you'll get an AuthFailure error if the address is already
  19103. // allocated to another AWS account.
  19104. //
  19105. // [EC2-VPC] After you release an Elastic IP address for use in a VPC, you might
  19106. // be able to recover it. For more information, see AllocateAddress.
  19107. //
  19108. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19109. // with awserr.Error's Code and Message methods to get detailed information about
  19110. // the error.
  19111. //
  19112. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19113. // API operation ReleaseAddress for usage and error information.
  19114. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReleaseAddress
  19115. func (c *EC2) ReleaseAddress(input *ReleaseAddressInput) (*ReleaseAddressOutput, error) {
  19116. req, out := c.ReleaseAddressRequest(input)
  19117. return out, req.Send()
  19118. }
  19119. // ReleaseAddressWithContext is the same as ReleaseAddress with the addition of
  19120. // the ability to pass a context and additional request options.
  19121. //
  19122. // See ReleaseAddress for details on how to use this API operation.
  19123. //
  19124. // The context must be non-nil and will be used for request cancellation. If
  19125. // the context is nil a panic will occur. In the future the SDK may create
  19126. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19127. // for more information on using Contexts.
  19128. func (c *EC2) ReleaseAddressWithContext(ctx aws.Context, input *ReleaseAddressInput, opts ...request.Option) (*ReleaseAddressOutput, error) {
  19129. req, out := c.ReleaseAddressRequest(input)
  19130. req.SetContext(ctx)
  19131. req.ApplyOptions(opts...)
  19132. return out, req.Send()
  19133. }
  19134. const opReleaseHosts = "ReleaseHosts"
  19135. // ReleaseHostsRequest generates a "aws/request.Request" representing the
  19136. // client's request for the ReleaseHosts operation. The "output" return
  19137. // value will be populated with the request's response once the request completes
  19138. // successfuly.
  19139. //
  19140. // Use "Send" method on the returned Request to send the API call to the service.
  19141. // the "output" return value is not valid until after Send returns without error.
  19142. //
  19143. // See ReleaseHosts for more information on using the ReleaseHosts
  19144. // API call, and error handling.
  19145. //
  19146. // This method is useful when you want to inject custom logic or configuration
  19147. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19148. //
  19149. //
  19150. // // Example sending a request using the ReleaseHostsRequest method.
  19151. // req, resp := client.ReleaseHostsRequest(params)
  19152. //
  19153. // err := req.Send()
  19154. // if err == nil { // resp is now filled
  19155. // fmt.Println(resp)
  19156. // }
  19157. //
  19158. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReleaseHosts
  19159. func (c *EC2) ReleaseHostsRequest(input *ReleaseHostsInput) (req *request.Request, output *ReleaseHostsOutput) {
  19160. op := &request.Operation{
  19161. Name: opReleaseHosts,
  19162. HTTPMethod: "POST",
  19163. HTTPPath: "/",
  19164. }
  19165. if input == nil {
  19166. input = &ReleaseHostsInput{}
  19167. }
  19168. output = &ReleaseHostsOutput{}
  19169. req = c.newRequest(op, input, output)
  19170. return
  19171. }
  19172. // ReleaseHosts API operation for Amazon Elastic Compute Cloud.
  19173. //
  19174. // When you no longer want to use an On-Demand Dedicated Host it can be released.
  19175. // On-Demand billing is stopped and the host goes into released state. The host
  19176. // ID of Dedicated Hosts that have been released can no longer be specified
  19177. // in another request, e.g., ModifyHosts. You must stop or terminate all instances
  19178. // on a host before it can be released.
  19179. //
  19180. // When Dedicated Hosts are released, it make take some time for them to stop
  19181. // counting toward your limit and you may receive capacity errors when trying
  19182. // to allocate new Dedicated hosts. Try waiting a few minutes, and then try
  19183. // again.
  19184. //
  19185. // Released hosts will still appear in a DescribeHosts response.
  19186. //
  19187. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19188. // with awserr.Error's Code and Message methods to get detailed information about
  19189. // the error.
  19190. //
  19191. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19192. // API operation ReleaseHosts for usage and error information.
  19193. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReleaseHosts
  19194. func (c *EC2) ReleaseHosts(input *ReleaseHostsInput) (*ReleaseHostsOutput, error) {
  19195. req, out := c.ReleaseHostsRequest(input)
  19196. return out, req.Send()
  19197. }
  19198. // ReleaseHostsWithContext is the same as ReleaseHosts with the addition of
  19199. // the ability to pass a context and additional request options.
  19200. //
  19201. // See ReleaseHosts for details on how to use this API operation.
  19202. //
  19203. // The context must be non-nil and will be used for request cancellation. If
  19204. // the context is nil a panic will occur. In the future the SDK may create
  19205. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19206. // for more information on using Contexts.
  19207. func (c *EC2) ReleaseHostsWithContext(ctx aws.Context, input *ReleaseHostsInput, opts ...request.Option) (*ReleaseHostsOutput, error) {
  19208. req, out := c.ReleaseHostsRequest(input)
  19209. req.SetContext(ctx)
  19210. req.ApplyOptions(opts...)
  19211. return out, req.Send()
  19212. }
  19213. const opReplaceIamInstanceProfileAssociation = "ReplaceIamInstanceProfileAssociation"
  19214. // ReplaceIamInstanceProfileAssociationRequest generates a "aws/request.Request" representing the
  19215. // client's request for the ReplaceIamInstanceProfileAssociation operation. The "output" return
  19216. // value will be populated with the request's response once the request completes
  19217. // successfuly.
  19218. //
  19219. // Use "Send" method on the returned Request to send the API call to the service.
  19220. // the "output" return value is not valid until after Send returns without error.
  19221. //
  19222. // See ReplaceIamInstanceProfileAssociation for more information on using the ReplaceIamInstanceProfileAssociation
  19223. // API call, and error handling.
  19224. //
  19225. // This method is useful when you want to inject custom logic or configuration
  19226. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19227. //
  19228. //
  19229. // // Example sending a request using the ReplaceIamInstanceProfileAssociationRequest method.
  19230. // req, resp := client.ReplaceIamInstanceProfileAssociationRequest(params)
  19231. //
  19232. // err := req.Send()
  19233. // if err == nil { // resp is now filled
  19234. // fmt.Println(resp)
  19235. // }
  19236. //
  19237. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceIamInstanceProfileAssociation
  19238. func (c *EC2) ReplaceIamInstanceProfileAssociationRequest(input *ReplaceIamInstanceProfileAssociationInput) (req *request.Request, output *ReplaceIamInstanceProfileAssociationOutput) {
  19239. op := &request.Operation{
  19240. Name: opReplaceIamInstanceProfileAssociation,
  19241. HTTPMethod: "POST",
  19242. HTTPPath: "/",
  19243. }
  19244. if input == nil {
  19245. input = &ReplaceIamInstanceProfileAssociationInput{}
  19246. }
  19247. output = &ReplaceIamInstanceProfileAssociationOutput{}
  19248. req = c.newRequest(op, input, output)
  19249. return
  19250. }
  19251. // ReplaceIamInstanceProfileAssociation API operation for Amazon Elastic Compute Cloud.
  19252. //
  19253. // Replaces an IAM instance profile for the specified running instance. You
  19254. // can use this action to change the IAM instance profile that's associated
  19255. // with an instance without having to disassociate the existing IAM instance
  19256. // profile first.
  19257. //
  19258. // Use DescribeIamInstanceProfileAssociations to get the association ID.
  19259. //
  19260. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19261. // with awserr.Error's Code and Message methods to get detailed information about
  19262. // the error.
  19263. //
  19264. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19265. // API operation ReplaceIamInstanceProfileAssociation for usage and error information.
  19266. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceIamInstanceProfileAssociation
  19267. func (c *EC2) ReplaceIamInstanceProfileAssociation(input *ReplaceIamInstanceProfileAssociationInput) (*ReplaceIamInstanceProfileAssociationOutput, error) {
  19268. req, out := c.ReplaceIamInstanceProfileAssociationRequest(input)
  19269. return out, req.Send()
  19270. }
  19271. // ReplaceIamInstanceProfileAssociationWithContext is the same as ReplaceIamInstanceProfileAssociation with the addition of
  19272. // the ability to pass a context and additional request options.
  19273. //
  19274. // See ReplaceIamInstanceProfileAssociation for details on how to use this API operation.
  19275. //
  19276. // The context must be non-nil and will be used for request cancellation. If
  19277. // the context is nil a panic will occur. In the future the SDK may create
  19278. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19279. // for more information on using Contexts.
  19280. func (c *EC2) ReplaceIamInstanceProfileAssociationWithContext(ctx aws.Context, input *ReplaceIamInstanceProfileAssociationInput, opts ...request.Option) (*ReplaceIamInstanceProfileAssociationOutput, error) {
  19281. req, out := c.ReplaceIamInstanceProfileAssociationRequest(input)
  19282. req.SetContext(ctx)
  19283. req.ApplyOptions(opts...)
  19284. return out, req.Send()
  19285. }
  19286. const opReplaceNetworkAclAssociation = "ReplaceNetworkAclAssociation"
  19287. // ReplaceNetworkAclAssociationRequest generates a "aws/request.Request" representing the
  19288. // client's request for the ReplaceNetworkAclAssociation operation. The "output" return
  19289. // value will be populated with the request's response once the request completes
  19290. // successfuly.
  19291. //
  19292. // Use "Send" method on the returned Request to send the API call to the service.
  19293. // the "output" return value is not valid until after Send returns without error.
  19294. //
  19295. // See ReplaceNetworkAclAssociation for more information on using the ReplaceNetworkAclAssociation
  19296. // API call, and error handling.
  19297. //
  19298. // This method is useful when you want to inject custom logic or configuration
  19299. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19300. //
  19301. //
  19302. // // Example sending a request using the ReplaceNetworkAclAssociationRequest method.
  19303. // req, resp := client.ReplaceNetworkAclAssociationRequest(params)
  19304. //
  19305. // err := req.Send()
  19306. // if err == nil { // resp is now filled
  19307. // fmt.Println(resp)
  19308. // }
  19309. //
  19310. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceNetworkAclAssociation
  19311. func (c *EC2) ReplaceNetworkAclAssociationRequest(input *ReplaceNetworkAclAssociationInput) (req *request.Request, output *ReplaceNetworkAclAssociationOutput) {
  19312. op := &request.Operation{
  19313. Name: opReplaceNetworkAclAssociation,
  19314. HTTPMethod: "POST",
  19315. HTTPPath: "/",
  19316. }
  19317. if input == nil {
  19318. input = &ReplaceNetworkAclAssociationInput{}
  19319. }
  19320. output = &ReplaceNetworkAclAssociationOutput{}
  19321. req = c.newRequest(op, input, output)
  19322. return
  19323. }
  19324. // ReplaceNetworkAclAssociation API operation for Amazon Elastic Compute Cloud.
  19325. //
  19326. // Changes which network ACL a subnet is associated with. By default when you
  19327. // create a subnet, it's automatically associated with the default network ACL.
  19328. // For more information about network ACLs, see Network ACLs (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_ACLs.html)
  19329. // in the Amazon Virtual Private Cloud User Guide.
  19330. //
  19331. // This is an idempotent operation.
  19332. //
  19333. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19334. // with awserr.Error's Code and Message methods to get detailed information about
  19335. // the error.
  19336. //
  19337. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19338. // API operation ReplaceNetworkAclAssociation for usage and error information.
  19339. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceNetworkAclAssociation
  19340. func (c *EC2) ReplaceNetworkAclAssociation(input *ReplaceNetworkAclAssociationInput) (*ReplaceNetworkAclAssociationOutput, error) {
  19341. req, out := c.ReplaceNetworkAclAssociationRequest(input)
  19342. return out, req.Send()
  19343. }
  19344. // ReplaceNetworkAclAssociationWithContext is the same as ReplaceNetworkAclAssociation with the addition of
  19345. // the ability to pass a context and additional request options.
  19346. //
  19347. // See ReplaceNetworkAclAssociation for details on how to use this API operation.
  19348. //
  19349. // The context must be non-nil and will be used for request cancellation. If
  19350. // the context is nil a panic will occur. In the future the SDK may create
  19351. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19352. // for more information on using Contexts.
  19353. func (c *EC2) ReplaceNetworkAclAssociationWithContext(ctx aws.Context, input *ReplaceNetworkAclAssociationInput, opts ...request.Option) (*ReplaceNetworkAclAssociationOutput, error) {
  19354. req, out := c.ReplaceNetworkAclAssociationRequest(input)
  19355. req.SetContext(ctx)
  19356. req.ApplyOptions(opts...)
  19357. return out, req.Send()
  19358. }
  19359. const opReplaceNetworkAclEntry = "ReplaceNetworkAclEntry"
  19360. // ReplaceNetworkAclEntryRequest generates a "aws/request.Request" representing the
  19361. // client's request for the ReplaceNetworkAclEntry operation. The "output" return
  19362. // value will be populated with the request's response once the request completes
  19363. // successfuly.
  19364. //
  19365. // Use "Send" method on the returned Request to send the API call to the service.
  19366. // the "output" return value is not valid until after Send returns without error.
  19367. //
  19368. // See ReplaceNetworkAclEntry for more information on using the ReplaceNetworkAclEntry
  19369. // API call, and error handling.
  19370. //
  19371. // This method is useful when you want to inject custom logic or configuration
  19372. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19373. //
  19374. //
  19375. // // Example sending a request using the ReplaceNetworkAclEntryRequest method.
  19376. // req, resp := client.ReplaceNetworkAclEntryRequest(params)
  19377. //
  19378. // err := req.Send()
  19379. // if err == nil { // resp is now filled
  19380. // fmt.Println(resp)
  19381. // }
  19382. //
  19383. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceNetworkAclEntry
  19384. func (c *EC2) ReplaceNetworkAclEntryRequest(input *ReplaceNetworkAclEntryInput) (req *request.Request, output *ReplaceNetworkAclEntryOutput) {
  19385. op := &request.Operation{
  19386. Name: opReplaceNetworkAclEntry,
  19387. HTTPMethod: "POST",
  19388. HTTPPath: "/",
  19389. }
  19390. if input == nil {
  19391. input = &ReplaceNetworkAclEntryInput{}
  19392. }
  19393. output = &ReplaceNetworkAclEntryOutput{}
  19394. req = c.newRequest(op, input, output)
  19395. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  19396. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  19397. return
  19398. }
  19399. // ReplaceNetworkAclEntry API operation for Amazon Elastic Compute Cloud.
  19400. //
  19401. // Replaces an entry (rule) in a network ACL. For more information about network
  19402. // ACLs, see Network ACLs (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_ACLs.html)
  19403. // in the Amazon Virtual Private Cloud User Guide.
  19404. //
  19405. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19406. // with awserr.Error's Code and Message methods to get detailed information about
  19407. // the error.
  19408. //
  19409. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19410. // API operation ReplaceNetworkAclEntry for usage and error information.
  19411. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceNetworkAclEntry
  19412. func (c *EC2) ReplaceNetworkAclEntry(input *ReplaceNetworkAclEntryInput) (*ReplaceNetworkAclEntryOutput, error) {
  19413. req, out := c.ReplaceNetworkAclEntryRequest(input)
  19414. return out, req.Send()
  19415. }
  19416. // ReplaceNetworkAclEntryWithContext is the same as ReplaceNetworkAclEntry with the addition of
  19417. // the ability to pass a context and additional request options.
  19418. //
  19419. // See ReplaceNetworkAclEntry for details on how to use this API operation.
  19420. //
  19421. // The context must be non-nil and will be used for request cancellation. If
  19422. // the context is nil a panic will occur. In the future the SDK may create
  19423. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19424. // for more information on using Contexts.
  19425. func (c *EC2) ReplaceNetworkAclEntryWithContext(ctx aws.Context, input *ReplaceNetworkAclEntryInput, opts ...request.Option) (*ReplaceNetworkAclEntryOutput, error) {
  19426. req, out := c.ReplaceNetworkAclEntryRequest(input)
  19427. req.SetContext(ctx)
  19428. req.ApplyOptions(opts...)
  19429. return out, req.Send()
  19430. }
  19431. const opReplaceRoute = "ReplaceRoute"
  19432. // ReplaceRouteRequest generates a "aws/request.Request" representing the
  19433. // client's request for the ReplaceRoute operation. The "output" return
  19434. // value will be populated with the request's response once the request completes
  19435. // successfuly.
  19436. //
  19437. // Use "Send" method on the returned Request to send the API call to the service.
  19438. // the "output" return value is not valid until after Send returns without error.
  19439. //
  19440. // See ReplaceRoute for more information on using the ReplaceRoute
  19441. // API call, and error handling.
  19442. //
  19443. // This method is useful when you want to inject custom logic or configuration
  19444. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19445. //
  19446. //
  19447. // // Example sending a request using the ReplaceRouteRequest method.
  19448. // req, resp := client.ReplaceRouteRequest(params)
  19449. //
  19450. // err := req.Send()
  19451. // if err == nil { // resp is now filled
  19452. // fmt.Println(resp)
  19453. // }
  19454. //
  19455. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceRoute
  19456. func (c *EC2) ReplaceRouteRequest(input *ReplaceRouteInput) (req *request.Request, output *ReplaceRouteOutput) {
  19457. op := &request.Operation{
  19458. Name: opReplaceRoute,
  19459. HTTPMethod: "POST",
  19460. HTTPPath: "/",
  19461. }
  19462. if input == nil {
  19463. input = &ReplaceRouteInput{}
  19464. }
  19465. output = &ReplaceRouteOutput{}
  19466. req = c.newRequest(op, input, output)
  19467. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  19468. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  19469. return
  19470. }
  19471. // ReplaceRoute API operation for Amazon Elastic Compute Cloud.
  19472. //
  19473. // Replaces an existing route within a route table in a VPC. You must provide
  19474. // only one of the following: Internet gateway or virtual private gateway, NAT
  19475. // instance, NAT gateway, VPC peering connection, network interface, or egress-only
  19476. // Internet gateway.
  19477. //
  19478. // For more information about route tables, see Route Tables (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html)
  19479. // in the Amazon Virtual Private Cloud User Guide.
  19480. //
  19481. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19482. // with awserr.Error's Code and Message methods to get detailed information about
  19483. // the error.
  19484. //
  19485. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19486. // API operation ReplaceRoute for usage and error information.
  19487. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceRoute
  19488. func (c *EC2) ReplaceRoute(input *ReplaceRouteInput) (*ReplaceRouteOutput, error) {
  19489. req, out := c.ReplaceRouteRequest(input)
  19490. return out, req.Send()
  19491. }
  19492. // ReplaceRouteWithContext is the same as ReplaceRoute with the addition of
  19493. // the ability to pass a context and additional request options.
  19494. //
  19495. // See ReplaceRoute for details on how to use this API operation.
  19496. //
  19497. // The context must be non-nil and will be used for request cancellation. If
  19498. // the context is nil a panic will occur. In the future the SDK may create
  19499. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19500. // for more information on using Contexts.
  19501. func (c *EC2) ReplaceRouteWithContext(ctx aws.Context, input *ReplaceRouteInput, opts ...request.Option) (*ReplaceRouteOutput, error) {
  19502. req, out := c.ReplaceRouteRequest(input)
  19503. req.SetContext(ctx)
  19504. req.ApplyOptions(opts...)
  19505. return out, req.Send()
  19506. }
  19507. const opReplaceRouteTableAssociation = "ReplaceRouteTableAssociation"
  19508. // ReplaceRouteTableAssociationRequest generates a "aws/request.Request" representing the
  19509. // client's request for the ReplaceRouteTableAssociation operation. The "output" return
  19510. // value will be populated with the request's response once the request completes
  19511. // successfuly.
  19512. //
  19513. // Use "Send" method on the returned Request to send the API call to the service.
  19514. // the "output" return value is not valid until after Send returns without error.
  19515. //
  19516. // See ReplaceRouteTableAssociation for more information on using the ReplaceRouteTableAssociation
  19517. // API call, and error handling.
  19518. //
  19519. // This method is useful when you want to inject custom logic or configuration
  19520. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19521. //
  19522. //
  19523. // // Example sending a request using the ReplaceRouteTableAssociationRequest method.
  19524. // req, resp := client.ReplaceRouteTableAssociationRequest(params)
  19525. //
  19526. // err := req.Send()
  19527. // if err == nil { // resp is now filled
  19528. // fmt.Println(resp)
  19529. // }
  19530. //
  19531. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceRouteTableAssociation
  19532. func (c *EC2) ReplaceRouteTableAssociationRequest(input *ReplaceRouteTableAssociationInput) (req *request.Request, output *ReplaceRouteTableAssociationOutput) {
  19533. op := &request.Operation{
  19534. Name: opReplaceRouteTableAssociation,
  19535. HTTPMethod: "POST",
  19536. HTTPPath: "/",
  19537. }
  19538. if input == nil {
  19539. input = &ReplaceRouteTableAssociationInput{}
  19540. }
  19541. output = &ReplaceRouteTableAssociationOutput{}
  19542. req = c.newRequest(op, input, output)
  19543. return
  19544. }
  19545. // ReplaceRouteTableAssociation API operation for Amazon Elastic Compute Cloud.
  19546. //
  19547. // Changes the route table associated with a given subnet in a VPC. After the
  19548. // operation completes, the subnet uses the routes in the new route table it's
  19549. // associated with. For more information about route tables, see Route Tables
  19550. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html)
  19551. // in the Amazon Virtual Private Cloud User Guide.
  19552. //
  19553. // You can also use ReplaceRouteTableAssociation to change which table is the
  19554. // main route table in the VPC. You just specify the main route table's association
  19555. // ID and the route table to be the new main route table.
  19556. //
  19557. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19558. // with awserr.Error's Code and Message methods to get detailed information about
  19559. // the error.
  19560. //
  19561. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19562. // API operation ReplaceRouteTableAssociation for usage and error information.
  19563. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceRouteTableAssociation
  19564. func (c *EC2) ReplaceRouteTableAssociation(input *ReplaceRouteTableAssociationInput) (*ReplaceRouteTableAssociationOutput, error) {
  19565. req, out := c.ReplaceRouteTableAssociationRequest(input)
  19566. return out, req.Send()
  19567. }
  19568. // ReplaceRouteTableAssociationWithContext is the same as ReplaceRouteTableAssociation with the addition of
  19569. // the ability to pass a context and additional request options.
  19570. //
  19571. // See ReplaceRouteTableAssociation for details on how to use this API operation.
  19572. //
  19573. // The context must be non-nil and will be used for request cancellation. If
  19574. // the context is nil a panic will occur. In the future the SDK may create
  19575. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19576. // for more information on using Contexts.
  19577. func (c *EC2) ReplaceRouteTableAssociationWithContext(ctx aws.Context, input *ReplaceRouteTableAssociationInput, opts ...request.Option) (*ReplaceRouteTableAssociationOutput, error) {
  19578. req, out := c.ReplaceRouteTableAssociationRequest(input)
  19579. req.SetContext(ctx)
  19580. req.ApplyOptions(opts...)
  19581. return out, req.Send()
  19582. }
  19583. const opReportInstanceStatus = "ReportInstanceStatus"
  19584. // ReportInstanceStatusRequest generates a "aws/request.Request" representing the
  19585. // client's request for the ReportInstanceStatus operation. The "output" return
  19586. // value will be populated with the request's response once the request completes
  19587. // successfuly.
  19588. //
  19589. // Use "Send" method on the returned Request to send the API call to the service.
  19590. // the "output" return value is not valid until after Send returns without error.
  19591. //
  19592. // See ReportInstanceStatus for more information on using the ReportInstanceStatus
  19593. // API call, and error handling.
  19594. //
  19595. // This method is useful when you want to inject custom logic or configuration
  19596. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19597. //
  19598. //
  19599. // // Example sending a request using the ReportInstanceStatusRequest method.
  19600. // req, resp := client.ReportInstanceStatusRequest(params)
  19601. //
  19602. // err := req.Send()
  19603. // if err == nil { // resp is now filled
  19604. // fmt.Println(resp)
  19605. // }
  19606. //
  19607. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReportInstanceStatus
  19608. func (c *EC2) ReportInstanceStatusRequest(input *ReportInstanceStatusInput) (req *request.Request, output *ReportInstanceStatusOutput) {
  19609. op := &request.Operation{
  19610. Name: opReportInstanceStatus,
  19611. HTTPMethod: "POST",
  19612. HTTPPath: "/",
  19613. }
  19614. if input == nil {
  19615. input = &ReportInstanceStatusInput{}
  19616. }
  19617. output = &ReportInstanceStatusOutput{}
  19618. req = c.newRequest(op, input, output)
  19619. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  19620. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  19621. return
  19622. }
  19623. // ReportInstanceStatus API operation for Amazon Elastic Compute Cloud.
  19624. //
  19625. // Submits feedback about the status of an instance. The instance must be in
  19626. // the running state. If your experience with the instance differs from the
  19627. // instance status returned by DescribeInstanceStatus, use ReportInstanceStatus
  19628. // to report your experience with the instance. Amazon EC2 collects this information
  19629. // to improve the accuracy of status checks.
  19630. //
  19631. // Use of this action does not change the value returned by DescribeInstanceStatus.
  19632. //
  19633. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19634. // with awserr.Error's Code and Message methods to get detailed information about
  19635. // the error.
  19636. //
  19637. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19638. // API operation ReportInstanceStatus for usage and error information.
  19639. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReportInstanceStatus
  19640. func (c *EC2) ReportInstanceStatus(input *ReportInstanceStatusInput) (*ReportInstanceStatusOutput, error) {
  19641. req, out := c.ReportInstanceStatusRequest(input)
  19642. return out, req.Send()
  19643. }
  19644. // ReportInstanceStatusWithContext is the same as ReportInstanceStatus with the addition of
  19645. // the ability to pass a context and additional request options.
  19646. //
  19647. // See ReportInstanceStatus for details on how to use this API operation.
  19648. //
  19649. // The context must be non-nil and will be used for request cancellation. If
  19650. // the context is nil a panic will occur. In the future the SDK may create
  19651. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19652. // for more information on using Contexts.
  19653. func (c *EC2) ReportInstanceStatusWithContext(ctx aws.Context, input *ReportInstanceStatusInput, opts ...request.Option) (*ReportInstanceStatusOutput, error) {
  19654. req, out := c.ReportInstanceStatusRequest(input)
  19655. req.SetContext(ctx)
  19656. req.ApplyOptions(opts...)
  19657. return out, req.Send()
  19658. }
  19659. const opRequestSpotFleet = "RequestSpotFleet"
  19660. // RequestSpotFleetRequest generates a "aws/request.Request" representing the
  19661. // client's request for the RequestSpotFleet operation. The "output" return
  19662. // value will be populated with the request's response once the request completes
  19663. // successfuly.
  19664. //
  19665. // Use "Send" method on the returned Request to send the API call to the service.
  19666. // the "output" return value is not valid until after Send returns without error.
  19667. //
  19668. // See RequestSpotFleet for more information on using the RequestSpotFleet
  19669. // API call, and error handling.
  19670. //
  19671. // This method is useful when you want to inject custom logic or configuration
  19672. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19673. //
  19674. //
  19675. // // Example sending a request using the RequestSpotFleetRequest method.
  19676. // req, resp := client.RequestSpotFleetRequest(params)
  19677. //
  19678. // err := req.Send()
  19679. // if err == nil { // resp is now filled
  19680. // fmt.Println(resp)
  19681. // }
  19682. //
  19683. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestSpotFleet
  19684. func (c *EC2) RequestSpotFleetRequest(input *RequestSpotFleetInput) (req *request.Request, output *RequestSpotFleetOutput) {
  19685. op := &request.Operation{
  19686. Name: opRequestSpotFleet,
  19687. HTTPMethod: "POST",
  19688. HTTPPath: "/",
  19689. }
  19690. if input == nil {
  19691. input = &RequestSpotFleetInput{}
  19692. }
  19693. output = &RequestSpotFleetOutput{}
  19694. req = c.newRequest(op, input, output)
  19695. return
  19696. }
  19697. // RequestSpotFleet API operation for Amazon Elastic Compute Cloud.
  19698. //
  19699. // Creates a Spot Fleet request.
  19700. //
  19701. // The Spot Fleet request specifies the total target capacity and the On-Demand
  19702. // target capacity. Amazon EC2 calculates the difference between the total capacity
  19703. // and On-Demand capacity, and launches the difference as Spot capacity.
  19704. //
  19705. // You can submit a single request that includes multiple launch specifications
  19706. // that vary by instance type, AMI, Availability Zone, or subnet.
  19707. //
  19708. // By default, the Spot Fleet requests Spot Instances in the Spot pool where
  19709. // the price per unit is the lowest. Each launch specification can include its
  19710. // own instance weighting that reflects the value of the instance type to your
  19711. // application workload.
  19712. //
  19713. // Alternatively, you can specify that the Spot Fleet distribute the target
  19714. // capacity across the Spot pools included in its launch specifications. By
  19715. // ensuring that the Spot Instances in your Spot Fleet are in different Spot
  19716. // pools, you can improve the availability of your fleet.
  19717. //
  19718. // You can specify tags for the Spot Instances. You cannot tag other resource
  19719. // types in a Spot Fleet request because only the instance resource type is
  19720. // supported.
  19721. //
  19722. // For more information, see Spot Fleet Requests (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-requests.html)
  19723. // in the Amazon EC2 User Guide for Linux Instances.
  19724. //
  19725. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19726. // with awserr.Error's Code and Message methods to get detailed information about
  19727. // the error.
  19728. //
  19729. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19730. // API operation RequestSpotFleet for usage and error information.
  19731. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestSpotFleet
  19732. func (c *EC2) RequestSpotFleet(input *RequestSpotFleetInput) (*RequestSpotFleetOutput, error) {
  19733. req, out := c.RequestSpotFleetRequest(input)
  19734. return out, req.Send()
  19735. }
  19736. // RequestSpotFleetWithContext is the same as RequestSpotFleet with the addition of
  19737. // the ability to pass a context and additional request options.
  19738. //
  19739. // See RequestSpotFleet for details on how to use this API operation.
  19740. //
  19741. // The context must be non-nil and will be used for request cancellation. If
  19742. // the context is nil a panic will occur. In the future the SDK may create
  19743. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19744. // for more information on using Contexts.
  19745. func (c *EC2) RequestSpotFleetWithContext(ctx aws.Context, input *RequestSpotFleetInput, opts ...request.Option) (*RequestSpotFleetOutput, error) {
  19746. req, out := c.RequestSpotFleetRequest(input)
  19747. req.SetContext(ctx)
  19748. req.ApplyOptions(opts...)
  19749. return out, req.Send()
  19750. }
  19751. const opRequestSpotInstances = "RequestSpotInstances"
  19752. // RequestSpotInstancesRequest generates a "aws/request.Request" representing the
  19753. // client's request for the RequestSpotInstances operation. The "output" return
  19754. // value will be populated with the request's response once the request completes
  19755. // successfuly.
  19756. //
  19757. // Use "Send" method on the returned Request to send the API call to the service.
  19758. // the "output" return value is not valid until after Send returns without error.
  19759. //
  19760. // See RequestSpotInstances for more information on using the RequestSpotInstances
  19761. // API call, and error handling.
  19762. //
  19763. // This method is useful when you want to inject custom logic or configuration
  19764. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19765. //
  19766. //
  19767. // // Example sending a request using the RequestSpotInstancesRequest method.
  19768. // req, resp := client.RequestSpotInstancesRequest(params)
  19769. //
  19770. // err := req.Send()
  19771. // if err == nil { // resp is now filled
  19772. // fmt.Println(resp)
  19773. // }
  19774. //
  19775. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestSpotInstances
  19776. func (c *EC2) RequestSpotInstancesRequest(input *RequestSpotInstancesInput) (req *request.Request, output *RequestSpotInstancesOutput) {
  19777. op := &request.Operation{
  19778. Name: opRequestSpotInstances,
  19779. HTTPMethod: "POST",
  19780. HTTPPath: "/",
  19781. }
  19782. if input == nil {
  19783. input = &RequestSpotInstancesInput{}
  19784. }
  19785. output = &RequestSpotInstancesOutput{}
  19786. req = c.newRequest(op, input, output)
  19787. return
  19788. }
  19789. // RequestSpotInstances API operation for Amazon Elastic Compute Cloud.
  19790. //
  19791. // Creates a Spot Instance request.
  19792. //
  19793. // For more information, see Spot Instance Requests (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html)
  19794. // in the Amazon EC2 User Guide for Linux Instances.
  19795. //
  19796. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19797. // with awserr.Error's Code and Message methods to get detailed information about
  19798. // the error.
  19799. //
  19800. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19801. // API operation RequestSpotInstances for usage and error information.
  19802. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestSpotInstances
  19803. func (c *EC2) RequestSpotInstances(input *RequestSpotInstancesInput) (*RequestSpotInstancesOutput, error) {
  19804. req, out := c.RequestSpotInstancesRequest(input)
  19805. return out, req.Send()
  19806. }
  19807. // RequestSpotInstancesWithContext is the same as RequestSpotInstances with the addition of
  19808. // the ability to pass a context and additional request options.
  19809. //
  19810. // See RequestSpotInstances for details on how to use this API operation.
  19811. //
  19812. // The context must be non-nil and will be used for request cancellation. If
  19813. // the context is nil a panic will occur. In the future the SDK may create
  19814. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19815. // for more information on using Contexts.
  19816. func (c *EC2) RequestSpotInstancesWithContext(ctx aws.Context, input *RequestSpotInstancesInput, opts ...request.Option) (*RequestSpotInstancesOutput, error) {
  19817. req, out := c.RequestSpotInstancesRequest(input)
  19818. req.SetContext(ctx)
  19819. req.ApplyOptions(opts...)
  19820. return out, req.Send()
  19821. }
  19822. const opResetFpgaImageAttribute = "ResetFpgaImageAttribute"
  19823. // ResetFpgaImageAttributeRequest generates a "aws/request.Request" representing the
  19824. // client's request for the ResetFpgaImageAttribute operation. The "output" return
  19825. // value will be populated with the request's response once the request completes
  19826. // successfuly.
  19827. //
  19828. // Use "Send" method on the returned Request to send the API call to the service.
  19829. // the "output" return value is not valid until after Send returns without error.
  19830. //
  19831. // See ResetFpgaImageAttribute for more information on using the ResetFpgaImageAttribute
  19832. // API call, and error handling.
  19833. //
  19834. // This method is useful when you want to inject custom logic or configuration
  19835. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19836. //
  19837. //
  19838. // // Example sending a request using the ResetFpgaImageAttributeRequest method.
  19839. // req, resp := client.ResetFpgaImageAttributeRequest(params)
  19840. //
  19841. // err := req.Send()
  19842. // if err == nil { // resp is now filled
  19843. // fmt.Println(resp)
  19844. // }
  19845. //
  19846. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetFpgaImageAttribute
  19847. func (c *EC2) ResetFpgaImageAttributeRequest(input *ResetFpgaImageAttributeInput) (req *request.Request, output *ResetFpgaImageAttributeOutput) {
  19848. op := &request.Operation{
  19849. Name: opResetFpgaImageAttribute,
  19850. HTTPMethod: "POST",
  19851. HTTPPath: "/",
  19852. }
  19853. if input == nil {
  19854. input = &ResetFpgaImageAttributeInput{}
  19855. }
  19856. output = &ResetFpgaImageAttributeOutput{}
  19857. req = c.newRequest(op, input, output)
  19858. return
  19859. }
  19860. // ResetFpgaImageAttribute API operation for Amazon Elastic Compute Cloud.
  19861. //
  19862. // Resets the specified attribute of the specified Amazon FPGA Image (AFI) to
  19863. // its default value. You can only reset the load permission attribute.
  19864. //
  19865. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19866. // with awserr.Error's Code and Message methods to get detailed information about
  19867. // the error.
  19868. //
  19869. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19870. // API operation ResetFpgaImageAttribute for usage and error information.
  19871. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetFpgaImageAttribute
  19872. func (c *EC2) ResetFpgaImageAttribute(input *ResetFpgaImageAttributeInput) (*ResetFpgaImageAttributeOutput, error) {
  19873. req, out := c.ResetFpgaImageAttributeRequest(input)
  19874. return out, req.Send()
  19875. }
  19876. // ResetFpgaImageAttributeWithContext is the same as ResetFpgaImageAttribute with the addition of
  19877. // the ability to pass a context and additional request options.
  19878. //
  19879. // See ResetFpgaImageAttribute for details on how to use this API operation.
  19880. //
  19881. // The context must be non-nil and will be used for request cancellation. If
  19882. // the context is nil a panic will occur. In the future the SDK may create
  19883. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19884. // for more information on using Contexts.
  19885. func (c *EC2) ResetFpgaImageAttributeWithContext(ctx aws.Context, input *ResetFpgaImageAttributeInput, opts ...request.Option) (*ResetFpgaImageAttributeOutput, error) {
  19886. req, out := c.ResetFpgaImageAttributeRequest(input)
  19887. req.SetContext(ctx)
  19888. req.ApplyOptions(opts...)
  19889. return out, req.Send()
  19890. }
  19891. const opResetImageAttribute = "ResetImageAttribute"
  19892. // ResetImageAttributeRequest generates a "aws/request.Request" representing the
  19893. // client's request for the ResetImageAttribute operation. The "output" return
  19894. // value will be populated with the request's response once the request completes
  19895. // successfuly.
  19896. //
  19897. // Use "Send" method on the returned Request to send the API call to the service.
  19898. // the "output" return value is not valid until after Send returns without error.
  19899. //
  19900. // See ResetImageAttribute for more information on using the ResetImageAttribute
  19901. // API call, and error handling.
  19902. //
  19903. // This method is useful when you want to inject custom logic or configuration
  19904. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19905. //
  19906. //
  19907. // // Example sending a request using the ResetImageAttributeRequest method.
  19908. // req, resp := client.ResetImageAttributeRequest(params)
  19909. //
  19910. // err := req.Send()
  19911. // if err == nil { // resp is now filled
  19912. // fmt.Println(resp)
  19913. // }
  19914. //
  19915. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetImageAttribute
  19916. func (c *EC2) ResetImageAttributeRequest(input *ResetImageAttributeInput) (req *request.Request, output *ResetImageAttributeOutput) {
  19917. op := &request.Operation{
  19918. Name: opResetImageAttribute,
  19919. HTTPMethod: "POST",
  19920. HTTPPath: "/",
  19921. }
  19922. if input == nil {
  19923. input = &ResetImageAttributeInput{}
  19924. }
  19925. output = &ResetImageAttributeOutput{}
  19926. req = c.newRequest(op, input, output)
  19927. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  19928. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  19929. return
  19930. }
  19931. // ResetImageAttribute API operation for Amazon Elastic Compute Cloud.
  19932. //
  19933. // Resets an attribute of an AMI to its default value.
  19934. //
  19935. // The productCodes attribute can't be reset.
  19936. //
  19937. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19938. // with awserr.Error's Code and Message methods to get detailed information about
  19939. // the error.
  19940. //
  19941. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19942. // API operation ResetImageAttribute for usage and error information.
  19943. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetImageAttribute
  19944. func (c *EC2) ResetImageAttribute(input *ResetImageAttributeInput) (*ResetImageAttributeOutput, error) {
  19945. req, out := c.ResetImageAttributeRequest(input)
  19946. return out, req.Send()
  19947. }
  19948. // ResetImageAttributeWithContext is the same as ResetImageAttribute with the addition of
  19949. // the ability to pass a context and additional request options.
  19950. //
  19951. // See ResetImageAttribute for details on how to use this API operation.
  19952. //
  19953. // The context must be non-nil and will be used for request cancellation. If
  19954. // the context is nil a panic will occur. In the future the SDK may create
  19955. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19956. // for more information on using Contexts.
  19957. func (c *EC2) ResetImageAttributeWithContext(ctx aws.Context, input *ResetImageAttributeInput, opts ...request.Option) (*ResetImageAttributeOutput, error) {
  19958. req, out := c.ResetImageAttributeRequest(input)
  19959. req.SetContext(ctx)
  19960. req.ApplyOptions(opts...)
  19961. return out, req.Send()
  19962. }
  19963. const opResetInstanceAttribute = "ResetInstanceAttribute"
  19964. // ResetInstanceAttributeRequest generates a "aws/request.Request" representing the
  19965. // client's request for the ResetInstanceAttribute operation. The "output" return
  19966. // value will be populated with the request's response once the request completes
  19967. // successfuly.
  19968. //
  19969. // Use "Send" method on the returned Request to send the API call to the service.
  19970. // the "output" return value is not valid until after Send returns without error.
  19971. //
  19972. // See ResetInstanceAttribute for more information on using the ResetInstanceAttribute
  19973. // API call, and error handling.
  19974. //
  19975. // This method is useful when you want to inject custom logic or configuration
  19976. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19977. //
  19978. //
  19979. // // Example sending a request using the ResetInstanceAttributeRequest method.
  19980. // req, resp := client.ResetInstanceAttributeRequest(params)
  19981. //
  19982. // err := req.Send()
  19983. // if err == nil { // resp is now filled
  19984. // fmt.Println(resp)
  19985. // }
  19986. //
  19987. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetInstanceAttribute
  19988. func (c *EC2) ResetInstanceAttributeRequest(input *ResetInstanceAttributeInput) (req *request.Request, output *ResetInstanceAttributeOutput) {
  19989. op := &request.Operation{
  19990. Name: opResetInstanceAttribute,
  19991. HTTPMethod: "POST",
  19992. HTTPPath: "/",
  19993. }
  19994. if input == nil {
  19995. input = &ResetInstanceAttributeInput{}
  19996. }
  19997. output = &ResetInstanceAttributeOutput{}
  19998. req = c.newRequest(op, input, output)
  19999. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  20000. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  20001. return
  20002. }
  20003. // ResetInstanceAttribute API operation for Amazon Elastic Compute Cloud.
  20004. //
  20005. // Resets an attribute of an instance to its default value. To reset the kernel
  20006. // or ramdisk, the instance must be in a stopped state. To reset the sourceDestCheck,
  20007. // the instance can be either running or stopped.
  20008. //
  20009. // The sourceDestCheck attribute controls whether source/destination checking
  20010. // is enabled. The default value is true, which means checking is enabled. This
  20011. // value must be false for a NAT instance to perform NAT. For more information,
  20012. // see NAT Instances (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html)
  20013. // in the Amazon Virtual Private Cloud User Guide.
  20014. //
  20015. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20016. // with awserr.Error's Code and Message methods to get detailed information about
  20017. // the error.
  20018. //
  20019. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20020. // API operation ResetInstanceAttribute for usage and error information.
  20021. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetInstanceAttribute
  20022. func (c *EC2) ResetInstanceAttribute(input *ResetInstanceAttributeInput) (*ResetInstanceAttributeOutput, error) {
  20023. req, out := c.ResetInstanceAttributeRequest(input)
  20024. return out, req.Send()
  20025. }
  20026. // ResetInstanceAttributeWithContext is the same as ResetInstanceAttribute with the addition of
  20027. // the ability to pass a context and additional request options.
  20028. //
  20029. // See ResetInstanceAttribute for details on how to use this API operation.
  20030. //
  20031. // The context must be non-nil and will be used for request cancellation. If
  20032. // the context is nil a panic will occur. In the future the SDK may create
  20033. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20034. // for more information on using Contexts.
  20035. func (c *EC2) ResetInstanceAttributeWithContext(ctx aws.Context, input *ResetInstanceAttributeInput, opts ...request.Option) (*ResetInstanceAttributeOutput, error) {
  20036. req, out := c.ResetInstanceAttributeRequest(input)
  20037. req.SetContext(ctx)
  20038. req.ApplyOptions(opts...)
  20039. return out, req.Send()
  20040. }
  20041. const opResetNetworkInterfaceAttribute = "ResetNetworkInterfaceAttribute"
  20042. // ResetNetworkInterfaceAttributeRequest generates a "aws/request.Request" representing the
  20043. // client's request for the ResetNetworkInterfaceAttribute operation. The "output" return
  20044. // value will be populated with the request's response once the request completes
  20045. // successfuly.
  20046. //
  20047. // Use "Send" method on the returned Request to send the API call to the service.
  20048. // the "output" return value is not valid until after Send returns without error.
  20049. //
  20050. // See ResetNetworkInterfaceAttribute for more information on using the ResetNetworkInterfaceAttribute
  20051. // API call, and error handling.
  20052. //
  20053. // This method is useful when you want to inject custom logic or configuration
  20054. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20055. //
  20056. //
  20057. // // Example sending a request using the ResetNetworkInterfaceAttributeRequest method.
  20058. // req, resp := client.ResetNetworkInterfaceAttributeRequest(params)
  20059. //
  20060. // err := req.Send()
  20061. // if err == nil { // resp is now filled
  20062. // fmt.Println(resp)
  20063. // }
  20064. //
  20065. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetNetworkInterfaceAttribute
  20066. func (c *EC2) ResetNetworkInterfaceAttributeRequest(input *ResetNetworkInterfaceAttributeInput) (req *request.Request, output *ResetNetworkInterfaceAttributeOutput) {
  20067. op := &request.Operation{
  20068. Name: opResetNetworkInterfaceAttribute,
  20069. HTTPMethod: "POST",
  20070. HTTPPath: "/",
  20071. }
  20072. if input == nil {
  20073. input = &ResetNetworkInterfaceAttributeInput{}
  20074. }
  20075. output = &ResetNetworkInterfaceAttributeOutput{}
  20076. req = c.newRequest(op, input, output)
  20077. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  20078. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  20079. return
  20080. }
  20081. // ResetNetworkInterfaceAttribute API operation for Amazon Elastic Compute Cloud.
  20082. //
  20083. // Resets a network interface attribute. You can specify only one attribute
  20084. // at a time.
  20085. //
  20086. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20087. // with awserr.Error's Code and Message methods to get detailed information about
  20088. // the error.
  20089. //
  20090. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20091. // API operation ResetNetworkInterfaceAttribute for usage and error information.
  20092. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetNetworkInterfaceAttribute
  20093. func (c *EC2) ResetNetworkInterfaceAttribute(input *ResetNetworkInterfaceAttributeInput) (*ResetNetworkInterfaceAttributeOutput, error) {
  20094. req, out := c.ResetNetworkInterfaceAttributeRequest(input)
  20095. return out, req.Send()
  20096. }
  20097. // ResetNetworkInterfaceAttributeWithContext is the same as ResetNetworkInterfaceAttribute with the addition of
  20098. // the ability to pass a context and additional request options.
  20099. //
  20100. // See ResetNetworkInterfaceAttribute for details on how to use this API operation.
  20101. //
  20102. // The context must be non-nil and will be used for request cancellation. If
  20103. // the context is nil a panic will occur. In the future the SDK may create
  20104. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20105. // for more information on using Contexts.
  20106. func (c *EC2) ResetNetworkInterfaceAttributeWithContext(ctx aws.Context, input *ResetNetworkInterfaceAttributeInput, opts ...request.Option) (*ResetNetworkInterfaceAttributeOutput, error) {
  20107. req, out := c.ResetNetworkInterfaceAttributeRequest(input)
  20108. req.SetContext(ctx)
  20109. req.ApplyOptions(opts...)
  20110. return out, req.Send()
  20111. }
  20112. const opResetSnapshotAttribute = "ResetSnapshotAttribute"
  20113. // ResetSnapshotAttributeRequest generates a "aws/request.Request" representing the
  20114. // client's request for the ResetSnapshotAttribute operation. The "output" return
  20115. // value will be populated with the request's response once the request completes
  20116. // successfuly.
  20117. //
  20118. // Use "Send" method on the returned Request to send the API call to the service.
  20119. // the "output" return value is not valid until after Send returns without error.
  20120. //
  20121. // See ResetSnapshotAttribute for more information on using the ResetSnapshotAttribute
  20122. // API call, and error handling.
  20123. //
  20124. // This method is useful when you want to inject custom logic or configuration
  20125. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20126. //
  20127. //
  20128. // // Example sending a request using the ResetSnapshotAttributeRequest method.
  20129. // req, resp := client.ResetSnapshotAttributeRequest(params)
  20130. //
  20131. // err := req.Send()
  20132. // if err == nil { // resp is now filled
  20133. // fmt.Println(resp)
  20134. // }
  20135. //
  20136. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetSnapshotAttribute
  20137. func (c *EC2) ResetSnapshotAttributeRequest(input *ResetSnapshotAttributeInput) (req *request.Request, output *ResetSnapshotAttributeOutput) {
  20138. op := &request.Operation{
  20139. Name: opResetSnapshotAttribute,
  20140. HTTPMethod: "POST",
  20141. HTTPPath: "/",
  20142. }
  20143. if input == nil {
  20144. input = &ResetSnapshotAttributeInput{}
  20145. }
  20146. output = &ResetSnapshotAttributeOutput{}
  20147. req = c.newRequest(op, input, output)
  20148. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  20149. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  20150. return
  20151. }
  20152. // ResetSnapshotAttribute API operation for Amazon Elastic Compute Cloud.
  20153. //
  20154. // Resets permission settings for the specified snapshot.
  20155. //
  20156. // For more information on modifying snapshot permissions, see Sharing Snapshots
  20157. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-modifying-snapshot-permissions.html)
  20158. // in the Amazon Elastic Compute Cloud User Guide.
  20159. //
  20160. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20161. // with awserr.Error's Code and Message methods to get detailed information about
  20162. // the error.
  20163. //
  20164. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20165. // API operation ResetSnapshotAttribute for usage and error information.
  20166. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetSnapshotAttribute
  20167. func (c *EC2) ResetSnapshotAttribute(input *ResetSnapshotAttributeInput) (*ResetSnapshotAttributeOutput, error) {
  20168. req, out := c.ResetSnapshotAttributeRequest(input)
  20169. return out, req.Send()
  20170. }
  20171. // ResetSnapshotAttributeWithContext is the same as ResetSnapshotAttribute with the addition of
  20172. // the ability to pass a context and additional request options.
  20173. //
  20174. // See ResetSnapshotAttribute for details on how to use this API operation.
  20175. //
  20176. // The context must be non-nil and will be used for request cancellation. If
  20177. // the context is nil a panic will occur. In the future the SDK may create
  20178. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20179. // for more information on using Contexts.
  20180. func (c *EC2) ResetSnapshotAttributeWithContext(ctx aws.Context, input *ResetSnapshotAttributeInput, opts ...request.Option) (*ResetSnapshotAttributeOutput, error) {
  20181. req, out := c.ResetSnapshotAttributeRequest(input)
  20182. req.SetContext(ctx)
  20183. req.ApplyOptions(opts...)
  20184. return out, req.Send()
  20185. }
  20186. const opRestoreAddressToClassic = "RestoreAddressToClassic"
  20187. // RestoreAddressToClassicRequest generates a "aws/request.Request" representing the
  20188. // client's request for the RestoreAddressToClassic operation. The "output" return
  20189. // value will be populated with the request's response once the request completes
  20190. // successfuly.
  20191. //
  20192. // Use "Send" method on the returned Request to send the API call to the service.
  20193. // the "output" return value is not valid until after Send returns without error.
  20194. //
  20195. // See RestoreAddressToClassic for more information on using the RestoreAddressToClassic
  20196. // API call, and error handling.
  20197. //
  20198. // This method is useful when you want to inject custom logic or configuration
  20199. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20200. //
  20201. //
  20202. // // Example sending a request using the RestoreAddressToClassicRequest method.
  20203. // req, resp := client.RestoreAddressToClassicRequest(params)
  20204. //
  20205. // err := req.Send()
  20206. // if err == nil { // resp is now filled
  20207. // fmt.Println(resp)
  20208. // }
  20209. //
  20210. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RestoreAddressToClassic
  20211. func (c *EC2) RestoreAddressToClassicRequest(input *RestoreAddressToClassicInput) (req *request.Request, output *RestoreAddressToClassicOutput) {
  20212. op := &request.Operation{
  20213. Name: opRestoreAddressToClassic,
  20214. HTTPMethod: "POST",
  20215. HTTPPath: "/",
  20216. }
  20217. if input == nil {
  20218. input = &RestoreAddressToClassicInput{}
  20219. }
  20220. output = &RestoreAddressToClassicOutput{}
  20221. req = c.newRequest(op, input, output)
  20222. return
  20223. }
  20224. // RestoreAddressToClassic API operation for Amazon Elastic Compute Cloud.
  20225. //
  20226. // Restores an Elastic IP address that was previously moved to the EC2-VPC platform
  20227. // back to the EC2-Classic platform. You cannot move an Elastic IP address that
  20228. // was originally allocated for use in EC2-VPC. The Elastic IP address must
  20229. // not be associated with an instance or network interface.
  20230. //
  20231. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20232. // with awserr.Error's Code and Message methods to get detailed information about
  20233. // the error.
  20234. //
  20235. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20236. // API operation RestoreAddressToClassic for usage and error information.
  20237. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RestoreAddressToClassic
  20238. func (c *EC2) RestoreAddressToClassic(input *RestoreAddressToClassicInput) (*RestoreAddressToClassicOutput, error) {
  20239. req, out := c.RestoreAddressToClassicRequest(input)
  20240. return out, req.Send()
  20241. }
  20242. // RestoreAddressToClassicWithContext is the same as RestoreAddressToClassic with the addition of
  20243. // the ability to pass a context and additional request options.
  20244. //
  20245. // See RestoreAddressToClassic for details on how to use this API operation.
  20246. //
  20247. // The context must be non-nil and will be used for request cancellation. If
  20248. // the context is nil a panic will occur. In the future the SDK may create
  20249. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20250. // for more information on using Contexts.
  20251. func (c *EC2) RestoreAddressToClassicWithContext(ctx aws.Context, input *RestoreAddressToClassicInput, opts ...request.Option) (*RestoreAddressToClassicOutput, error) {
  20252. req, out := c.RestoreAddressToClassicRequest(input)
  20253. req.SetContext(ctx)
  20254. req.ApplyOptions(opts...)
  20255. return out, req.Send()
  20256. }
  20257. const opRevokeSecurityGroupEgress = "RevokeSecurityGroupEgress"
  20258. // RevokeSecurityGroupEgressRequest generates a "aws/request.Request" representing the
  20259. // client's request for the RevokeSecurityGroupEgress operation. The "output" return
  20260. // value will be populated with the request's response once the request completes
  20261. // successfuly.
  20262. //
  20263. // Use "Send" method on the returned Request to send the API call to the service.
  20264. // the "output" return value is not valid until after Send returns without error.
  20265. //
  20266. // See RevokeSecurityGroupEgress for more information on using the RevokeSecurityGroupEgress
  20267. // API call, and error handling.
  20268. //
  20269. // This method is useful when you want to inject custom logic or configuration
  20270. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20271. //
  20272. //
  20273. // // Example sending a request using the RevokeSecurityGroupEgressRequest method.
  20274. // req, resp := client.RevokeSecurityGroupEgressRequest(params)
  20275. //
  20276. // err := req.Send()
  20277. // if err == nil { // resp is now filled
  20278. // fmt.Println(resp)
  20279. // }
  20280. //
  20281. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeSecurityGroupEgress
  20282. func (c *EC2) RevokeSecurityGroupEgressRequest(input *RevokeSecurityGroupEgressInput) (req *request.Request, output *RevokeSecurityGroupEgressOutput) {
  20283. op := &request.Operation{
  20284. Name: opRevokeSecurityGroupEgress,
  20285. HTTPMethod: "POST",
  20286. HTTPPath: "/",
  20287. }
  20288. if input == nil {
  20289. input = &RevokeSecurityGroupEgressInput{}
  20290. }
  20291. output = &RevokeSecurityGroupEgressOutput{}
  20292. req = c.newRequest(op, input, output)
  20293. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  20294. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  20295. return
  20296. }
  20297. // RevokeSecurityGroupEgress API operation for Amazon Elastic Compute Cloud.
  20298. //
  20299. // [EC2-VPC only] Removes one or more egress rules from a security group for
  20300. // EC2-VPC. This action doesn't apply to security groups for use in EC2-Classic.
  20301. // To remove a rule, the values that you specify (for example, ports) must match
  20302. // the existing rule's values exactly.
  20303. //
  20304. // Each rule consists of the protocol and the IPv4 or IPv6 CIDR range or source
  20305. // security group. For the TCP and UDP protocols, you must also specify the
  20306. // destination port or range of ports. For the ICMP protocol, you must also
  20307. // specify the ICMP type and code. If the security group rule has a description,
  20308. // you do not have to specify the description to revoke the rule.
  20309. //
  20310. // Rule changes are propagated to instances within the security group as quickly
  20311. // as possible. However, a small delay might occur.
  20312. //
  20313. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20314. // with awserr.Error's Code and Message methods to get detailed information about
  20315. // the error.
  20316. //
  20317. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20318. // API operation RevokeSecurityGroupEgress for usage and error information.
  20319. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeSecurityGroupEgress
  20320. func (c *EC2) RevokeSecurityGroupEgress(input *RevokeSecurityGroupEgressInput) (*RevokeSecurityGroupEgressOutput, error) {
  20321. req, out := c.RevokeSecurityGroupEgressRequest(input)
  20322. return out, req.Send()
  20323. }
  20324. // RevokeSecurityGroupEgressWithContext is the same as RevokeSecurityGroupEgress with the addition of
  20325. // the ability to pass a context and additional request options.
  20326. //
  20327. // See RevokeSecurityGroupEgress for details on how to use this API operation.
  20328. //
  20329. // The context must be non-nil and will be used for request cancellation. If
  20330. // the context is nil a panic will occur. In the future the SDK may create
  20331. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20332. // for more information on using Contexts.
  20333. func (c *EC2) RevokeSecurityGroupEgressWithContext(ctx aws.Context, input *RevokeSecurityGroupEgressInput, opts ...request.Option) (*RevokeSecurityGroupEgressOutput, error) {
  20334. req, out := c.RevokeSecurityGroupEgressRequest(input)
  20335. req.SetContext(ctx)
  20336. req.ApplyOptions(opts...)
  20337. return out, req.Send()
  20338. }
  20339. const opRevokeSecurityGroupIngress = "RevokeSecurityGroupIngress"
  20340. // RevokeSecurityGroupIngressRequest generates a "aws/request.Request" representing the
  20341. // client's request for the RevokeSecurityGroupIngress operation. The "output" return
  20342. // value will be populated with the request's response once the request completes
  20343. // successfuly.
  20344. //
  20345. // Use "Send" method on the returned Request to send the API call to the service.
  20346. // the "output" return value is not valid until after Send returns without error.
  20347. //
  20348. // See RevokeSecurityGroupIngress for more information on using the RevokeSecurityGroupIngress
  20349. // API call, and error handling.
  20350. //
  20351. // This method is useful when you want to inject custom logic or configuration
  20352. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20353. //
  20354. //
  20355. // // Example sending a request using the RevokeSecurityGroupIngressRequest method.
  20356. // req, resp := client.RevokeSecurityGroupIngressRequest(params)
  20357. //
  20358. // err := req.Send()
  20359. // if err == nil { // resp is now filled
  20360. // fmt.Println(resp)
  20361. // }
  20362. //
  20363. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeSecurityGroupIngress
  20364. func (c *EC2) RevokeSecurityGroupIngressRequest(input *RevokeSecurityGroupIngressInput) (req *request.Request, output *RevokeSecurityGroupIngressOutput) {
  20365. op := &request.Operation{
  20366. Name: opRevokeSecurityGroupIngress,
  20367. HTTPMethod: "POST",
  20368. HTTPPath: "/",
  20369. }
  20370. if input == nil {
  20371. input = &RevokeSecurityGroupIngressInput{}
  20372. }
  20373. output = &RevokeSecurityGroupIngressOutput{}
  20374. req = c.newRequest(op, input, output)
  20375. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  20376. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  20377. return
  20378. }
  20379. // RevokeSecurityGroupIngress API operation for Amazon Elastic Compute Cloud.
  20380. //
  20381. // Removes one or more ingress rules from a security group. To remove a rule,
  20382. // the values that you specify (for example, ports) must match the existing
  20383. // rule's values exactly.
  20384. //
  20385. // [EC2-Classic security groups only] If the values you specify do not match
  20386. // the existing rule's values, no error is returned. Use DescribeSecurityGroups
  20387. // to verify that the rule has been removed.
  20388. //
  20389. // Each rule consists of the protocol and the CIDR range or source security
  20390. // group. For the TCP and UDP protocols, you must also specify the destination
  20391. // port or range of ports. For the ICMP protocol, you must also specify the
  20392. // ICMP type and code. If the security group rule has a description, you do
  20393. // not have to specify the description to revoke the rule.
  20394. //
  20395. // Rule changes are propagated to instances within the security group as quickly
  20396. // as possible. However, a small delay might occur.
  20397. //
  20398. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20399. // with awserr.Error's Code and Message methods to get detailed information about
  20400. // the error.
  20401. //
  20402. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20403. // API operation RevokeSecurityGroupIngress for usage and error information.
  20404. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeSecurityGroupIngress
  20405. func (c *EC2) RevokeSecurityGroupIngress(input *RevokeSecurityGroupIngressInput) (*RevokeSecurityGroupIngressOutput, error) {
  20406. req, out := c.RevokeSecurityGroupIngressRequest(input)
  20407. return out, req.Send()
  20408. }
  20409. // RevokeSecurityGroupIngressWithContext is the same as RevokeSecurityGroupIngress with the addition of
  20410. // the ability to pass a context and additional request options.
  20411. //
  20412. // See RevokeSecurityGroupIngress for details on how to use this API operation.
  20413. //
  20414. // The context must be non-nil and will be used for request cancellation. If
  20415. // the context is nil a panic will occur. In the future the SDK may create
  20416. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20417. // for more information on using Contexts.
  20418. func (c *EC2) RevokeSecurityGroupIngressWithContext(ctx aws.Context, input *RevokeSecurityGroupIngressInput, opts ...request.Option) (*RevokeSecurityGroupIngressOutput, error) {
  20419. req, out := c.RevokeSecurityGroupIngressRequest(input)
  20420. req.SetContext(ctx)
  20421. req.ApplyOptions(opts...)
  20422. return out, req.Send()
  20423. }
  20424. const opRunInstances = "RunInstances"
  20425. // RunInstancesRequest generates a "aws/request.Request" representing the
  20426. // client's request for the RunInstances operation. The "output" return
  20427. // value will be populated with the request's response once the request completes
  20428. // successfuly.
  20429. //
  20430. // Use "Send" method on the returned Request to send the API call to the service.
  20431. // the "output" return value is not valid until after Send returns without error.
  20432. //
  20433. // See RunInstances for more information on using the RunInstances
  20434. // API call, and error handling.
  20435. //
  20436. // This method is useful when you want to inject custom logic or configuration
  20437. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20438. //
  20439. //
  20440. // // Example sending a request using the RunInstancesRequest method.
  20441. // req, resp := client.RunInstancesRequest(params)
  20442. //
  20443. // err := req.Send()
  20444. // if err == nil { // resp is now filled
  20445. // fmt.Println(resp)
  20446. // }
  20447. //
  20448. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RunInstances
  20449. func (c *EC2) RunInstancesRequest(input *RunInstancesInput) (req *request.Request, output *Reservation) {
  20450. op := &request.Operation{
  20451. Name: opRunInstances,
  20452. HTTPMethod: "POST",
  20453. HTTPPath: "/",
  20454. }
  20455. if input == nil {
  20456. input = &RunInstancesInput{}
  20457. }
  20458. output = &Reservation{}
  20459. req = c.newRequest(op, input, output)
  20460. return
  20461. }
  20462. // RunInstances API operation for Amazon Elastic Compute Cloud.
  20463. //
  20464. // Launches the specified number of instances using an AMI for which you have
  20465. // permissions.
  20466. //
  20467. // You can specify a number of options, or leave the default options. The following
  20468. // rules apply:
  20469. //
  20470. // * [EC2-VPC] If you don't specify a subnet ID, we choose a default subnet
  20471. // from your default VPC for you. If you don't have a default VPC, you must
  20472. // specify a subnet ID in the request.
  20473. //
  20474. // * [EC2-Classic] If don't specify an Availability Zone, we choose one for
  20475. // you.
  20476. //
  20477. // * Some instance types must be launched into a VPC. If you do not have
  20478. // a default VPC, or if you do not specify a subnet ID, the request fails.
  20479. // 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).
  20480. //
  20481. // * [EC2-VPC] All instances have a network interface with a primary private
  20482. // IPv4 address. If you don't specify this address, we choose one from the
  20483. // IPv4 range of your subnet.
  20484. //
  20485. // * Not all instance types support IPv6 addresses. For more information,
  20486. // see Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html).
  20487. //
  20488. // * If you don't specify a security group ID, we use the default security
  20489. // group. For more information, see Security Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html).
  20490. //
  20491. // * If any of the AMIs have a product code attached for which the user has
  20492. // not subscribed, the request fails.
  20493. //
  20494. // You can create a launch template (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html),
  20495. // which is a resource that contains the parameters to launch an instance. When
  20496. // you launch an instance using RunInstances, you can specify the launch template
  20497. // instead of specifying the launch parameters.
  20498. //
  20499. // To ensure faster instance launches, break up large requests into smaller
  20500. // batches. For example, create five separate launch requests for 100 instances
  20501. // each instead of one launch request for 500 instances.
  20502. //
  20503. // An instance is ready for you to use when it's in the running state. You can
  20504. // check the state of your instance using DescribeInstances. You can tag instances
  20505. // and EBS volumes during launch, after launch, or both. For more information,
  20506. // see CreateTags and Tagging Your Amazon EC2 Resources (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html).
  20507. //
  20508. // Linux instances have access to the public key of the key pair at boot. You
  20509. // can use this key to provide secure access to the instance. Amazon EC2 public
  20510. // images use this feature to provide secure access without passwords. For more
  20511. // information, see Key Pairs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html)
  20512. // in the Amazon Elastic Compute Cloud User Guide.
  20513. //
  20514. // For troubleshooting, see What To Do If An Instance Immediately Terminates
  20515. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_InstanceStraightToTerminated.html),
  20516. // and Troubleshooting Connecting to Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html)
  20517. // in the Amazon Elastic Compute Cloud User Guide.
  20518. //
  20519. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20520. // with awserr.Error's Code and Message methods to get detailed information about
  20521. // the error.
  20522. //
  20523. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20524. // API operation RunInstances for usage and error information.
  20525. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RunInstances
  20526. func (c *EC2) RunInstances(input *RunInstancesInput) (*Reservation, error) {
  20527. req, out := c.RunInstancesRequest(input)
  20528. return out, req.Send()
  20529. }
  20530. // RunInstancesWithContext is the same as RunInstances with the addition of
  20531. // the ability to pass a context and additional request options.
  20532. //
  20533. // See RunInstances for details on how to use this API operation.
  20534. //
  20535. // The context must be non-nil and will be used for request cancellation. If
  20536. // the context is nil a panic will occur. In the future the SDK may create
  20537. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20538. // for more information on using Contexts.
  20539. func (c *EC2) RunInstancesWithContext(ctx aws.Context, input *RunInstancesInput, opts ...request.Option) (*Reservation, error) {
  20540. req, out := c.RunInstancesRequest(input)
  20541. req.SetContext(ctx)
  20542. req.ApplyOptions(opts...)
  20543. return out, req.Send()
  20544. }
  20545. const opRunScheduledInstances = "RunScheduledInstances"
  20546. // RunScheduledInstancesRequest generates a "aws/request.Request" representing the
  20547. // client's request for the RunScheduledInstances operation. The "output" return
  20548. // value will be populated with the request's response once the request completes
  20549. // successfuly.
  20550. //
  20551. // Use "Send" method on the returned Request to send the API call to the service.
  20552. // the "output" return value is not valid until after Send returns without error.
  20553. //
  20554. // See RunScheduledInstances for more information on using the RunScheduledInstances
  20555. // API call, and error handling.
  20556. //
  20557. // This method is useful when you want to inject custom logic or configuration
  20558. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20559. //
  20560. //
  20561. // // Example sending a request using the RunScheduledInstancesRequest method.
  20562. // req, resp := client.RunScheduledInstancesRequest(params)
  20563. //
  20564. // err := req.Send()
  20565. // if err == nil { // resp is now filled
  20566. // fmt.Println(resp)
  20567. // }
  20568. //
  20569. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RunScheduledInstances
  20570. func (c *EC2) RunScheduledInstancesRequest(input *RunScheduledInstancesInput) (req *request.Request, output *RunScheduledInstancesOutput) {
  20571. op := &request.Operation{
  20572. Name: opRunScheduledInstances,
  20573. HTTPMethod: "POST",
  20574. HTTPPath: "/",
  20575. }
  20576. if input == nil {
  20577. input = &RunScheduledInstancesInput{}
  20578. }
  20579. output = &RunScheduledInstancesOutput{}
  20580. req = c.newRequest(op, input, output)
  20581. return
  20582. }
  20583. // RunScheduledInstances API operation for Amazon Elastic Compute Cloud.
  20584. //
  20585. // Launches the specified Scheduled Instances.
  20586. //
  20587. // Before you can launch a Scheduled Instance, you must purchase it and obtain
  20588. // an identifier using PurchaseScheduledInstances.
  20589. //
  20590. // You must launch a Scheduled Instance during its scheduled time period. You
  20591. // can't stop or reboot a Scheduled Instance, but you can terminate it as needed.
  20592. // If you terminate a Scheduled Instance before the current scheduled time period
  20593. // ends, you can launch it again after a few minutes. For more information,
  20594. // see Scheduled Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-scheduled-instances.html)
  20595. // in the Amazon Elastic Compute Cloud User Guide.
  20596. //
  20597. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20598. // with awserr.Error's Code and Message methods to get detailed information about
  20599. // the error.
  20600. //
  20601. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20602. // API operation RunScheduledInstances for usage and error information.
  20603. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RunScheduledInstances
  20604. func (c *EC2) RunScheduledInstances(input *RunScheduledInstancesInput) (*RunScheduledInstancesOutput, error) {
  20605. req, out := c.RunScheduledInstancesRequest(input)
  20606. return out, req.Send()
  20607. }
  20608. // RunScheduledInstancesWithContext is the same as RunScheduledInstances with the addition of
  20609. // the ability to pass a context and additional request options.
  20610. //
  20611. // See RunScheduledInstances for details on how to use this API operation.
  20612. //
  20613. // The context must be non-nil and will be used for request cancellation. If
  20614. // the context is nil a panic will occur. In the future the SDK may create
  20615. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20616. // for more information on using Contexts.
  20617. func (c *EC2) RunScheduledInstancesWithContext(ctx aws.Context, input *RunScheduledInstancesInput, opts ...request.Option) (*RunScheduledInstancesOutput, error) {
  20618. req, out := c.RunScheduledInstancesRequest(input)
  20619. req.SetContext(ctx)
  20620. req.ApplyOptions(opts...)
  20621. return out, req.Send()
  20622. }
  20623. const opStartInstances = "StartInstances"
  20624. // StartInstancesRequest generates a "aws/request.Request" representing the
  20625. // client's request for the StartInstances operation. The "output" return
  20626. // value will be populated with the request's response once the request completes
  20627. // successfuly.
  20628. //
  20629. // Use "Send" method on the returned Request to send the API call to the service.
  20630. // the "output" return value is not valid until after Send returns without error.
  20631. //
  20632. // See StartInstances for more information on using the StartInstances
  20633. // API call, and error handling.
  20634. //
  20635. // This method is useful when you want to inject custom logic or configuration
  20636. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20637. //
  20638. //
  20639. // // Example sending a request using the StartInstancesRequest method.
  20640. // req, resp := client.StartInstancesRequest(params)
  20641. //
  20642. // err := req.Send()
  20643. // if err == nil { // resp is now filled
  20644. // fmt.Println(resp)
  20645. // }
  20646. //
  20647. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StartInstances
  20648. func (c *EC2) StartInstancesRequest(input *StartInstancesInput) (req *request.Request, output *StartInstancesOutput) {
  20649. op := &request.Operation{
  20650. Name: opStartInstances,
  20651. HTTPMethod: "POST",
  20652. HTTPPath: "/",
  20653. }
  20654. if input == nil {
  20655. input = &StartInstancesInput{}
  20656. }
  20657. output = &StartInstancesOutput{}
  20658. req = c.newRequest(op, input, output)
  20659. return
  20660. }
  20661. // StartInstances API operation for Amazon Elastic Compute Cloud.
  20662. //
  20663. // Starts an Amazon EBS-backed instance that you've previously stopped.
  20664. //
  20665. // Instances that use Amazon EBS volumes as their root devices can be quickly
  20666. // stopped and started. When an instance is stopped, the compute resources are
  20667. // released and you are not billed for instance usage. However, your root partition
  20668. // Amazon EBS volume remains and continues to persist your data, and you are
  20669. // charged for Amazon EBS volume usage. You can restart your instance at any
  20670. // time. Every time you start your Windows instance, Amazon EC2 charges you
  20671. // for a full instance hour. If you stop and restart your Windows instance,
  20672. // a new instance hour begins and Amazon EC2 charges you for another full instance
  20673. // hour even if you are still within the same 60-minute period when it was stopped.
  20674. // Every time you start your Linux instance, Amazon EC2 charges a one-minute
  20675. // minimum for instance usage, and thereafter charges per second for instance
  20676. // usage.
  20677. //
  20678. // Before stopping an instance, make sure it is in a state from which it can
  20679. // be restarted. Stopping an instance does not preserve data stored in RAM.
  20680. //
  20681. // Performing this operation on an instance that uses an instance store as its
  20682. // root device returns an error.
  20683. //
  20684. // For more information, see Stopping Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html)
  20685. // in the Amazon Elastic Compute Cloud User Guide.
  20686. //
  20687. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20688. // with awserr.Error's Code and Message methods to get detailed information about
  20689. // the error.
  20690. //
  20691. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20692. // API operation StartInstances for usage and error information.
  20693. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StartInstances
  20694. func (c *EC2) StartInstances(input *StartInstancesInput) (*StartInstancesOutput, error) {
  20695. req, out := c.StartInstancesRequest(input)
  20696. return out, req.Send()
  20697. }
  20698. // StartInstancesWithContext is the same as StartInstances with the addition of
  20699. // the ability to pass a context and additional request options.
  20700. //
  20701. // See StartInstances for details on how to use this API operation.
  20702. //
  20703. // The context must be non-nil and will be used for request cancellation. If
  20704. // the context is nil a panic will occur. In the future the SDK may create
  20705. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20706. // for more information on using Contexts.
  20707. func (c *EC2) StartInstancesWithContext(ctx aws.Context, input *StartInstancesInput, opts ...request.Option) (*StartInstancesOutput, error) {
  20708. req, out := c.StartInstancesRequest(input)
  20709. req.SetContext(ctx)
  20710. req.ApplyOptions(opts...)
  20711. return out, req.Send()
  20712. }
  20713. const opStopInstances = "StopInstances"
  20714. // StopInstancesRequest generates a "aws/request.Request" representing the
  20715. // client's request for the StopInstances operation. The "output" return
  20716. // value will be populated with the request's response once the request completes
  20717. // successfuly.
  20718. //
  20719. // Use "Send" method on the returned Request to send the API call to the service.
  20720. // the "output" return value is not valid until after Send returns without error.
  20721. //
  20722. // See StopInstances for more information on using the StopInstances
  20723. // API call, and error handling.
  20724. //
  20725. // This method is useful when you want to inject custom logic or configuration
  20726. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20727. //
  20728. //
  20729. // // Example sending a request using the StopInstancesRequest method.
  20730. // req, resp := client.StopInstancesRequest(params)
  20731. //
  20732. // err := req.Send()
  20733. // if err == nil { // resp is now filled
  20734. // fmt.Println(resp)
  20735. // }
  20736. //
  20737. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StopInstances
  20738. func (c *EC2) StopInstancesRequest(input *StopInstancesInput) (req *request.Request, output *StopInstancesOutput) {
  20739. op := &request.Operation{
  20740. Name: opStopInstances,
  20741. HTTPMethod: "POST",
  20742. HTTPPath: "/",
  20743. }
  20744. if input == nil {
  20745. input = &StopInstancesInput{}
  20746. }
  20747. output = &StopInstancesOutput{}
  20748. req = c.newRequest(op, input, output)
  20749. return
  20750. }
  20751. // StopInstances API operation for Amazon Elastic Compute Cloud.
  20752. //
  20753. // Stops an Amazon EBS-backed instance.
  20754. //
  20755. // We don't charge usage for a stopped instance, or data transfer fees; however,
  20756. // your root partition Amazon EBS volume remains and continues to persist your
  20757. // data, and you are charged for Amazon EBS volume usage. Every time you start
  20758. // your Windows instance, Amazon EC2 charges you for a full instance hour. If
  20759. // you stop and restart your Windows instance, a new instance hour begins and
  20760. // Amazon EC2 charges you for another full instance hour even if you are still
  20761. // within the same 60-minute period when it was stopped. Every time you start
  20762. // your Linux instance, Amazon EC2 charges a one-minute minimum for instance
  20763. // usage, and thereafter charges per second for instance usage.
  20764. //
  20765. // You can't start or stop Spot Instances, and you can't stop instance store-backed
  20766. // instances.
  20767. //
  20768. // When you stop an instance, we shut it down. You can restart your instance
  20769. // at any time. Before stopping an instance, make sure it is in a state from
  20770. // which it can be restarted. Stopping an instance does not preserve data stored
  20771. // in RAM.
  20772. //
  20773. // Stopping an instance is different to rebooting or terminating it. For example,
  20774. // when you stop an instance, the root device and any other devices attached
  20775. // to the instance persist. When you terminate an instance, the root device
  20776. // and any other devices attached during the instance launch are automatically
  20777. // deleted. For more information about the differences between rebooting, stopping,
  20778. // and terminating instances, see Instance Lifecycle (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html)
  20779. // in the Amazon Elastic Compute Cloud User Guide.
  20780. //
  20781. // When you stop an instance, we attempt to shut it down forcibly after a short
  20782. // while. If your instance appears stuck in the stopping state after a period
  20783. // of time, there may be an issue with the underlying host computer. For more
  20784. // information, see Troubleshooting Stopping Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesStopping.html)
  20785. // in the Amazon Elastic Compute Cloud User Guide.
  20786. //
  20787. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20788. // with awserr.Error's Code and Message methods to get detailed information about
  20789. // the error.
  20790. //
  20791. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20792. // API operation StopInstances for usage and error information.
  20793. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StopInstances
  20794. func (c *EC2) StopInstances(input *StopInstancesInput) (*StopInstancesOutput, error) {
  20795. req, out := c.StopInstancesRequest(input)
  20796. return out, req.Send()
  20797. }
  20798. // StopInstancesWithContext is the same as StopInstances with the addition of
  20799. // the ability to pass a context and additional request options.
  20800. //
  20801. // See StopInstances for details on how to use this API operation.
  20802. //
  20803. // The context must be non-nil and will be used for request cancellation. If
  20804. // the context is nil a panic will occur. In the future the SDK may create
  20805. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20806. // for more information on using Contexts.
  20807. func (c *EC2) StopInstancesWithContext(ctx aws.Context, input *StopInstancesInput, opts ...request.Option) (*StopInstancesOutput, error) {
  20808. req, out := c.StopInstancesRequest(input)
  20809. req.SetContext(ctx)
  20810. req.ApplyOptions(opts...)
  20811. return out, req.Send()
  20812. }
  20813. const opTerminateInstances = "TerminateInstances"
  20814. // TerminateInstancesRequest generates a "aws/request.Request" representing the
  20815. // client's request for the TerminateInstances operation. The "output" return
  20816. // value will be populated with the request's response once the request completes
  20817. // successfuly.
  20818. //
  20819. // Use "Send" method on the returned Request to send the API call to the service.
  20820. // the "output" return value is not valid until after Send returns without error.
  20821. //
  20822. // See TerminateInstances for more information on using the TerminateInstances
  20823. // API call, and error handling.
  20824. //
  20825. // This method is useful when you want to inject custom logic or configuration
  20826. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20827. //
  20828. //
  20829. // // Example sending a request using the TerminateInstancesRequest method.
  20830. // req, resp := client.TerminateInstancesRequest(params)
  20831. //
  20832. // err := req.Send()
  20833. // if err == nil { // resp is now filled
  20834. // fmt.Println(resp)
  20835. // }
  20836. //
  20837. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TerminateInstances
  20838. func (c *EC2) TerminateInstancesRequest(input *TerminateInstancesInput) (req *request.Request, output *TerminateInstancesOutput) {
  20839. op := &request.Operation{
  20840. Name: opTerminateInstances,
  20841. HTTPMethod: "POST",
  20842. HTTPPath: "/",
  20843. }
  20844. if input == nil {
  20845. input = &TerminateInstancesInput{}
  20846. }
  20847. output = &TerminateInstancesOutput{}
  20848. req = c.newRequest(op, input, output)
  20849. return
  20850. }
  20851. // TerminateInstances API operation for Amazon Elastic Compute Cloud.
  20852. //
  20853. // Shuts down one or more instances. This operation is idempotent; if you terminate
  20854. // an instance more than once, each call succeeds.
  20855. //
  20856. // If you specify multiple instances and the request fails (for example, because
  20857. // of a single incorrect instance ID), none of the instances are terminated.
  20858. //
  20859. // Terminated instances remain visible after termination (for approximately
  20860. // one hour).
  20861. //
  20862. // By default, Amazon EC2 deletes all EBS volumes that were attached when the
  20863. // instance launched. Volumes attached after instance launch continue running.
  20864. //
  20865. // You can stop, start, and terminate EBS-backed instances. You can only terminate
  20866. // instance store-backed instances. What happens to an instance differs if you
  20867. // stop it or terminate it. For example, when you stop an instance, the root
  20868. // device and any other devices attached to the instance persist. When you terminate
  20869. // an instance, any attached EBS volumes with the DeleteOnTermination block
  20870. // device mapping parameter set to true are automatically deleted. For more
  20871. // information about the differences between stopping and terminating instances,
  20872. // see Instance Lifecycle (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html)
  20873. // in the Amazon Elastic Compute Cloud User Guide.
  20874. //
  20875. // For more information about troubleshooting, see Troubleshooting Terminating
  20876. // Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesShuttingDown.html)
  20877. // in the Amazon Elastic Compute Cloud User Guide.
  20878. //
  20879. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20880. // with awserr.Error's Code and Message methods to get detailed information about
  20881. // the error.
  20882. //
  20883. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20884. // API operation TerminateInstances for usage and error information.
  20885. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TerminateInstances
  20886. func (c *EC2) TerminateInstances(input *TerminateInstancesInput) (*TerminateInstancesOutput, error) {
  20887. req, out := c.TerminateInstancesRequest(input)
  20888. return out, req.Send()
  20889. }
  20890. // TerminateInstancesWithContext is the same as TerminateInstances with the addition of
  20891. // the ability to pass a context and additional request options.
  20892. //
  20893. // See TerminateInstances for details on how to use this API operation.
  20894. //
  20895. // The context must be non-nil and will be used for request cancellation. If
  20896. // the context is nil a panic will occur. In the future the SDK may create
  20897. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20898. // for more information on using Contexts.
  20899. func (c *EC2) TerminateInstancesWithContext(ctx aws.Context, input *TerminateInstancesInput, opts ...request.Option) (*TerminateInstancesOutput, error) {
  20900. req, out := c.TerminateInstancesRequest(input)
  20901. req.SetContext(ctx)
  20902. req.ApplyOptions(opts...)
  20903. return out, req.Send()
  20904. }
  20905. const opUnassignIpv6Addresses = "UnassignIpv6Addresses"
  20906. // UnassignIpv6AddressesRequest generates a "aws/request.Request" representing the
  20907. // client's request for the UnassignIpv6Addresses operation. The "output" return
  20908. // value will be populated with the request's response once the request completes
  20909. // successfuly.
  20910. //
  20911. // Use "Send" method on the returned Request to send the API call to the service.
  20912. // the "output" return value is not valid until after Send returns without error.
  20913. //
  20914. // See UnassignIpv6Addresses for more information on using the UnassignIpv6Addresses
  20915. // API call, and error handling.
  20916. //
  20917. // This method is useful when you want to inject custom logic or configuration
  20918. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20919. //
  20920. //
  20921. // // Example sending a request using the UnassignIpv6AddressesRequest method.
  20922. // req, resp := client.UnassignIpv6AddressesRequest(params)
  20923. //
  20924. // err := req.Send()
  20925. // if err == nil { // resp is now filled
  20926. // fmt.Println(resp)
  20927. // }
  20928. //
  20929. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnassignIpv6Addresses
  20930. func (c *EC2) UnassignIpv6AddressesRequest(input *UnassignIpv6AddressesInput) (req *request.Request, output *UnassignIpv6AddressesOutput) {
  20931. op := &request.Operation{
  20932. Name: opUnassignIpv6Addresses,
  20933. HTTPMethod: "POST",
  20934. HTTPPath: "/",
  20935. }
  20936. if input == nil {
  20937. input = &UnassignIpv6AddressesInput{}
  20938. }
  20939. output = &UnassignIpv6AddressesOutput{}
  20940. req = c.newRequest(op, input, output)
  20941. return
  20942. }
  20943. // UnassignIpv6Addresses API operation for Amazon Elastic Compute Cloud.
  20944. //
  20945. // Unassigns one or more IPv6 addresses from a network interface.
  20946. //
  20947. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20948. // with awserr.Error's Code and Message methods to get detailed information about
  20949. // the error.
  20950. //
  20951. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20952. // API operation UnassignIpv6Addresses for usage and error information.
  20953. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnassignIpv6Addresses
  20954. func (c *EC2) UnassignIpv6Addresses(input *UnassignIpv6AddressesInput) (*UnassignIpv6AddressesOutput, error) {
  20955. req, out := c.UnassignIpv6AddressesRequest(input)
  20956. return out, req.Send()
  20957. }
  20958. // UnassignIpv6AddressesWithContext is the same as UnassignIpv6Addresses with the addition of
  20959. // the ability to pass a context and additional request options.
  20960. //
  20961. // See UnassignIpv6Addresses for details on how to use this API operation.
  20962. //
  20963. // The context must be non-nil and will be used for request cancellation. If
  20964. // the context is nil a panic will occur. In the future the SDK may create
  20965. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20966. // for more information on using Contexts.
  20967. func (c *EC2) UnassignIpv6AddressesWithContext(ctx aws.Context, input *UnassignIpv6AddressesInput, opts ...request.Option) (*UnassignIpv6AddressesOutput, error) {
  20968. req, out := c.UnassignIpv6AddressesRequest(input)
  20969. req.SetContext(ctx)
  20970. req.ApplyOptions(opts...)
  20971. return out, req.Send()
  20972. }
  20973. const opUnassignPrivateIpAddresses = "UnassignPrivateIpAddresses"
  20974. // UnassignPrivateIpAddressesRequest generates a "aws/request.Request" representing the
  20975. // client's request for the UnassignPrivateIpAddresses operation. The "output" return
  20976. // value will be populated with the request's response once the request completes
  20977. // successfuly.
  20978. //
  20979. // Use "Send" method on the returned Request to send the API call to the service.
  20980. // the "output" return value is not valid until after Send returns without error.
  20981. //
  20982. // See UnassignPrivateIpAddresses for more information on using the UnassignPrivateIpAddresses
  20983. // API call, and error handling.
  20984. //
  20985. // This method is useful when you want to inject custom logic or configuration
  20986. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20987. //
  20988. //
  20989. // // Example sending a request using the UnassignPrivateIpAddressesRequest method.
  20990. // req, resp := client.UnassignPrivateIpAddressesRequest(params)
  20991. //
  20992. // err := req.Send()
  20993. // if err == nil { // resp is now filled
  20994. // fmt.Println(resp)
  20995. // }
  20996. //
  20997. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnassignPrivateIpAddresses
  20998. func (c *EC2) UnassignPrivateIpAddressesRequest(input *UnassignPrivateIpAddressesInput) (req *request.Request, output *UnassignPrivateIpAddressesOutput) {
  20999. op := &request.Operation{
  21000. Name: opUnassignPrivateIpAddresses,
  21001. HTTPMethod: "POST",
  21002. HTTPPath: "/",
  21003. }
  21004. if input == nil {
  21005. input = &UnassignPrivateIpAddressesInput{}
  21006. }
  21007. output = &UnassignPrivateIpAddressesOutput{}
  21008. req = c.newRequest(op, input, output)
  21009. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  21010. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  21011. return
  21012. }
  21013. // UnassignPrivateIpAddresses API operation for Amazon Elastic Compute Cloud.
  21014. //
  21015. // Unassigns one or more secondary private IP addresses from a network interface.
  21016. //
  21017. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  21018. // with awserr.Error's Code and Message methods to get detailed information about
  21019. // the error.
  21020. //
  21021. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  21022. // API operation UnassignPrivateIpAddresses for usage and error information.
  21023. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnassignPrivateIpAddresses
  21024. func (c *EC2) UnassignPrivateIpAddresses(input *UnassignPrivateIpAddressesInput) (*UnassignPrivateIpAddressesOutput, error) {
  21025. req, out := c.UnassignPrivateIpAddressesRequest(input)
  21026. return out, req.Send()
  21027. }
  21028. // UnassignPrivateIpAddressesWithContext is the same as UnassignPrivateIpAddresses with the addition of
  21029. // the ability to pass a context and additional request options.
  21030. //
  21031. // See UnassignPrivateIpAddresses for details on how to use this API operation.
  21032. //
  21033. // The context must be non-nil and will be used for request cancellation. If
  21034. // the context is nil a panic will occur. In the future the SDK may create
  21035. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  21036. // for more information on using Contexts.
  21037. func (c *EC2) UnassignPrivateIpAddressesWithContext(ctx aws.Context, input *UnassignPrivateIpAddressesInput, opts ...request.Option) (*UnassignPrivateIpAddressesOutput, error) {
  21038. req, out := c.UnassignPrivateIpAddressesRequest(input)
  21039. req.SetContext(ctx)
  21040. req.ApplyOptions(opts...)
  21041. return out, req.Send()
  21042. }
  21043. const opUnmonitorInstances = "UnmonitorInstances"
  21044. // UnmonitorInstancesRequest generates a "aws/request.Request" representing the
  21045. // client's request for the UnmonitorInstances operation. The "output" return
  21046. // value will be populated with the request's response once the request completes
  21047. // successfuly.
  21048. //
  21049. // Use "Send" method on the returned Request to send the API call to the service.
  21050. // the "output" return value is not valid until after Send returns without error.
  21051. //
  21052. // See UnmonitorInstances for more information on using the UnmonitorInstances
  21053. // API call, and error handling.
  21054. //
  21055. // This method is useful when you want to inject custom logic or configuration
  21056. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  21057. //
  21058. //
  21059. // // Example sending a request using the UnmonitorInstancesRequest method.
  21060. // req, resp := client.UnmonitorInstancesRequest(params)
  21061. //
  21062. // err := req.Send()
  21063. // if err == nil { // resp is now filled
  21064. // fmt.Println(resp)
  21065. // }
  21066. //
  21067. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnmonitorInstances
  21068. func (c *EC2) UnmonitorInstancesRequest(input *UnmonitorInstancesInput) (req *request.Request, output *UnmonitorInstancesOutput) {
  21069. op := &request.Operation{
  21070. Name: opUnmonitorInstances,
  21071. HTTPMethod: "POST",
  21072. HTTPPath: "/",
  21073. }
  21074. if input == nil {
  21075. input = &UnmonitorInstancesInput{}
  21076. }
  21077. output = &UnmonitorInstancesOutput{}
  21078. req = c.newRequest(op, input, output)
  21079. return
  21080. }
  21081. // UnmonitorInstances API operation for Amazon Elastic Compute Cloud.
  21082. //
  21083. // Disables detailed monitoring for a running instance. For more information,
  21084. // see Monitoring Your Instances and Volumes (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-cloudwatch.html)
  21085. // in the Amazon Elastic Compute Cloud User Guide.
  21086. //
  21087. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  21088. // with awserr.Error's Code and Message methods to get detailed information about
  21089. // the error.
  21090. //
  21091. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  21092. // API operation UnmonitorInstances for usage and error information.
  21093. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnmonitorInstances
  21094. func (c *EC2) UnmonitorInstances(input *UnmonitorInstancesInput) (*UnmonitorInstancesOutput, error) {
  21095. req, out := c.UnmonitorInstancesRequest(input)
  21096. return out, req.Send()
  21097. }
  21098. // UnmonitorInstancesWithContext is the same as UnmonitorInstances with the addition of
  21099. // the ability to pass a context and additional request options.
  21100. //
  21101. // See UnmonitorInstances for details on how to use this API operation.
  21102. //
  21103. // The context must be non-nil and will be used for request cancellation. If
  21104. // the context is nil a panic will occur. In the future the SDK may create
  21105. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  21106. // for more information on using Contexts.
  21107. func (c *EC2) UnmonitorInstancesWithContext(ctx aws.Context, input *UnmonitorInstancesInput, opts ...request.Option) (*UnmonitorInstancesOutput, error) {
  21108. req, out := c.UnmonitorInstancesRequest(input)
  21109. req.SetContext(ctx)
  21110. req.ApplyOptions(opts...)
  21111. return out, req.Send()
  21112. }
  21113. const opUpdateSecurityGroupRuleDescriptionsEgress = "UpdateSecurityGroupRuleDescriptionsEgress"
  21114. // UpdateSecurityGroupRuleDescriptionsEgressRequest generates a "aws/request.Request" representing the
  21115. // client's request for the UpdateSecurityGroupRuleDescriptionsEgress operation. The "output" return
  21116. // value will be populated with the request's response once the request completes
  21117. // successfuly.
  21118. //
  21119. // Use "Send" method on the returned Request to send the API call to the service.
  21120. // the "output" return value is not valid until after Send returns without error.
  21121. //
  21122. // See UpdateSecurityGroupRuleDescriptionsEgress for more information on using the UpdateSecurityGroupRuleDescriptionsEgress
  21123. // API call, and error handling.
  21124. //
  21125. // This method is useful when you want to inject custom logic or configuration
  21126. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  21127. //
  21128. //
  21129. // // Example sending a request using the UpdateSecurityGroupRuleDescriptionsEgressRequest method.
  21130. // req, resp := client.UpdateSecurityGroupRuleDescriptionsEgressRequest(params)
  21131. //
  21132. // err := req.Send()
  21133. // if err == nil { // resp is now filled
  21134. // fmt.Println(resp)
  21135. // }
  21136. //
  21137. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UpdateSecurityGroupRuleDescriptionsEgress
  21138. func (c *EC2) UpdateSecurityGroupRuleDescriptionsEgressRequest(input *UpdateSecurityGroupRuleDescriptionsEgressInput) (req *request.Request, output *UpdateSecurityGroupRuleDescriptionsEgressOutput) {
  21139. op := &request.Operation{
  21140. Name: opUpdateSecurityGroupRuleDescriptionsEgress,
  21141. HTTPMethod: "POST",
  21142. HTTPPath: "/",
  21143. }
  21144. if input == nil {
  21145. input = &UpdateSecurityGroupRuleDescriptionsEgressInput{}
  21146. }
  21147. output = &UpdateSecurityGroupRuleDescriptionsEgressOutput{}
  21148. req = c.newRequest(op, input, output)
  21149. return
  21150. }
  21151. // UpdateSecurityGroupRuleDescriptionsEgress API operation for Amazon Elastic Compute Cloud.
  21152. //
  21153. // [EC2-VPC only] Updates the description of an egress (outbound) security group
  21154. // rule. You can replace an existing description, or add a description to a
  21155. // rule that did not have one previously.
  21156. //
  21157. // You specify the description as part of the IP permissions structure. You
  21158. // can remove a description for a security group rule by omitting the description
  21159. // parameter in the request.
  21160. //
  21161. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  21162. // with awserr.Error's Code and Message methods to get detailed information about
  21163. // the error.
  21164. //
  21165. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  21166. // API operation UpdateSecurityGroupRuleDescriptionsEgress for usage and error information.
  21167. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UpdateSecurityGroupRuleDescriptionsEgress
  21168. func (c *EC2) UpdateSecurityGroupRuleDescriptionsEgress(input *UpdateSecurityGroupRuleDescriptionsEgressInput) (*UpdateSecurityGroupRuleDescriptionsEgressOutput, error) {
  21169. req, out := c.UpdateSecurityGroupRuleDescriptionsEgressRequest(input)
  21170. return out, req.Send()
  21171. }
  21172. // UpdateSecurityGroupRuleDescriptionsEgressWithContext is the same as UpdateSecurityGroupRuleDescriptionsEgress with the addition of
  21173. // the ability to pass a context and additional request options.
  21174. //
  21175. // See UpdateSecurityGroupRuleDescriptionsEgress for details on how to use this API operation.
  21176. //
  21177. // The context must be non-nil and will be used for request cancellation. If
  21178. // the context is nil a panic will occur. In the future the SDK may create
  21179. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  21180. // for more information on using Contexts.
  21181. func (c *EC2) UpdateSecurityGroupRuleDescriptionsEgressWithContext(ctx aws.Context, input *UpdateSecurityGroupRuleDescriptionsEgressInput, opts ...request.Option) (*UpdateSecurityGroupRuleDescriptionsEgressOutput, error) {
  21182. req, out := c.UpdateSecurityGroupRuleDescriptionsEgressRequest(input)
  21183. req.SetContext(ctx)
  21184. req.ApplyOptions(opts...)
  21185. return out, req.Send()
  21186. }
  21187. const opUpdateSecurityGroupRuleDescriptionsIngress = "UpdateSecurityGroupRuleDescriptionsIngress"
  21188. // UpdateSecurityGroupRuleDescriptionsIngressRequest generates a "aws/request.Request" representing the
  21189. // client's request for the UpdateSecurityGroupRuleDescriptionsIngress operation. The "output" return
  21190. // value will be populated with the request's response once the request completes
  21191. // successfuly.
  21192. //
  21193. // Use "Send" method on the returned Request to send the API call to the service.
  21194. // the "output" return value is not valid until after Send returns without error.
  21195. //
  21196. // See UpdateSecurityGroupRuleDescriptionsIngress for more information on using the UpdateSecurityGroupRuleDescriptionsIngress
  21197. // API call, and error handling.
  21198. //
  21199. // This method is useful when you want to inject custom logic or configuration
  21200. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  21201. //
  21202. //
  21203. // // Example sending a request using the UpdateSecurityGroupRuleDescriptionsIngressRequest method.
  21204. // req, resp := client.UpdateSecurityGroupRuleDescriptionsIngressRequest(params)
  21205. //
  21206. // err := req.Send()
  21207. // if err == nil { // resp is now filled
  21208. // fmt.Println(resp)
  21209. // }
  21210. //
  21211. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UpdateSecurityGroupRuleDescriptionsIngress
  21212. func (c *EC2) UpdateSecurityGroupRuleDescriptionsIngressRequest(input *UpdateSecurityGroupRuleDescriptionsIngressInput) (req *request.Request, output *UpdateSecurityGroupRuleDescriptionsIngressOutput) {
  21213. op := &request.Operation{
  21214. Name: opUpdateSecurityGroupRuleDescriptionsIngress,
  21215. HTTPMethod: "POST",
  21216. HTTPPath: "/",
  21217. }
  21218. if input == nil {
  21219. input = &UpdateSecurityGroupRuleDescriptionsIngressInput{}
  21220. }
  21221. output = &UpdateSecurityGroupRuleDescriptionsIngressOutput{}
  21222. req = c.newRequest(op, input, output)
  21223. return
  21224. }
  21225. // UpdateSecurityGroupRuleDescriptionsIngress API operation for Amazon Elastic Compute Cloud.
  21226. //
  21227. // Updates the description of an ingress (inbound) security group rule. You
  21228. // can replace an existing description, or add a description to a rule that
  21229. // did not have one previously.
  21230. //
  21231. // You specify the description as part of the IP permissions structure. You
  21232. // can remove a description for a security group rule by omitting the description
  21233. // parameter in the request.
  21234. //
  21235. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  21236. // with awserr.Error's Code and Message methods to get detailed information about
  21237. // the error.
  21238. //
  21239. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  21240. // API operation UpdateSecurityGroupRuleDescriptionsIngress for usage and error information.
  21241. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UpdateSecurityGroupRuleDescriptionsIngress
  21242. func (c *EC2) UpdateSecurityGroupRuleDescriptionsIngress(input *UpdateSecurityGroupRuleDescriptionsIngressInput) (*UpdateSecurityGroupRuleDescriptionsIngressOutput, error) {
  21243. req, out := c.UpdateSecurityGroupRuleDescriptionsIngressRequest(input)
  21244. return out, req.Send()
  21245. }
  21246. // UpdateSecurityGroupRuleDescriptionsIngressWithContext is the same as UpdateSecurityGroupRuleDescriptionsIngress with the addition of
  21247. // the ability to pass a context and additional request options.
  21248. //
  21249. // See UpdateSecurityGroupRuleDescriptionsIngress for details on how to use this API operation.
  21250. //
  21251. // The context must be non-nil and will be used for request cancellation. If
  21252. // the context is nil a panic will occur. In the future the SDK may create
  21253. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  21254. // for more information on using Contexts.
  21255. func (c *EC2) UpdateSecurityGroupRuleDescriptionsIngressWithContext(ctx aws.Context, input *UpdateSecurityGroupRuleDescriptionsIngressInput, opts ...request.Option) (*UpdateSecurityGroupRuleDescriptionsIngressOutput, error) {
  21256. req, out := c.UpdateSecurityGroupRuleDescriptionsIngressRequest(input)
  21257. req.SetContext(ctx)
  21258. req.ApplyOptions(opts...)
  21259. return out, req.Send()
  21260. }
  21261. // Contains the parameters for accepting the quote.
  21262. type AcceptReservedInstancesExchangeQuoteInput struct {
  21263. _ struct{} `type:"structure"`
  21264. // Checks whether you have the required permissions for the action, without
  21265. // actually making the request, and provides an error response. If you have
  21266. // the required permissions, the error response is DryRunOperation. Otherwise,
  21267. // it is UnauthorizedOperation.
  21268. DryRun *bool `type:"boolean"`
  21269. // The IDs of the Convertible Reserved Instances to exchange for another Convertible
  21270. // Reserved Instance of the same or higher value.
  21271. //
  21272. // ReservedInstanceIds is a required field
  21273. ReservedInstanceIds []*string `locationName:"ReservedInstanceId" locationNameList:"ReservedInstanceId" type:"list" required:"true"`
  21274. // The configuration of the target Convertible Reserved Instance to exchange
  21275. // for your current Convertible Reserved Instances.
  21276. TargetConfigurations []*TargetConfigurationRequest `locationName:"TargetConfiguration" locationNameList:"TargetConfigurationRequest" type:"list"`
  21277. }
  21278. // String returns the string representation
  21279. func (s AcceptReservedInstancesExchangeQuoteInput) String() string {
  21280. return awsutil.Prettify(s)
  21281. }
  21282. // GoString returns the string representation
  21283. func (s AcceptReservedInstancesExchangeQuoteInput) GoString() string {
  21284. return s.String()
  21285. }
  21286. // Validate inspects the fields of the type to determine if they are valid.
  21287. func (s *AcceptReservedInstancesExchangeQuoteInput) Validate() error {
  21288. invalidParams := request.ErrInvalidParams{Context: "AcceptReservedInstancesExchangeQuoteInput"}
  21289. if s.ReservedInstanceIds == nil {
  21290. invalidParams.Add(request.NewErrParamRequired("ReservedInstanceIds"))
  21291. }
  21292. if s.TargetConfigurations != nil {
  21293. for i, v := range s.TargetConfigurations {
  21294. if v == nil {
  21295. continue
  21296. }
  21297. if err := v.Validate(); err != nil {
  21298. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TargetConfigurations", i), err.(request.ErrInvalidParams))
  21299. }
  21300. }
  21301. }
  21302. if invalidParams.Len() > 0 {
  21303. return invalidParams
  21304. }
  21305. return nil
  21306. }
  21307. // SetDryRun sets the DryRun field's value.
  21308. func (s *AcceptReservedInstancesExchangeQuoteInput) SetDryRun(v bool) *AcceptReservedInstancesExchangeQuoteInput {
  21309. s.DryRun = &v
  21310. return s
  21311. }
  21312. // SetReservedInstanceIds sets the ReservedInstanceIds field's value.
  21313. func (s *AcceptReservedInstancesExchangeQuoteInput) SetReservedInstanceIds(v []*string) *AcceptReservedInstancesExchangeQuoteInput {
  21314. s.ReservedInstanceIds = v
  21315. return s
  21316. }
  21317. // SetTargetConfigurations sets the TargetConfigurations field's value.
  21318. func (s *AcceptReservedInstancesExchangeQuoteInput) SetTargetConfigurations(v []*TargetConfigurationRequest) *AcceptReservedInstancesExchangeQuoteInput {
  21319. s.TargetConfigurations = v
  21320. return s
  21321. }
  21322. // The result of the exchange and whether it was successful.
  21323. type AcceptReservedInstancesExchangeQuoteOutput struct {
  21324. _ struct{} `type:"structure"`
  21325. // The ID of the successful exchange.
  21326. ExchangeId *string `locationName:"exchangeId" type:"string"`
  21327. }
  21328. // String returns the string representation
  21329. func (s AcceptReservedInstancesExchangeQuoteOutput) String() string {
  21330. return awsutil.Prettify(s)
  21331. }
  21332. // GoString returns the string representation
  21333. func (s AcceptReservedInstancesExchangeQuoteOutput) GoString() string {
  21334. return s.String()
  21335. }
  21336. // SetExchangeId sets the ExchangeId field's value.
  21337. func (s *AcceptReservedInstancesExchangeQuoteOutput) SetExchangeId(v string) *AcceptReservedInstancesExchangeQuoteOutput {
  21338. s.ExchangeId = &v
  21339. return s
  21340. }
  21341. type AcceptVpcEndpointConnectionsInput struct {
  21342. _ struct{} `type:"structure"`
  21343. // Checks whether you have the required permissions for the action, without
  21344. // actually making the request, and provides an error response. If you have
  21345. // the required permissions, the error response is DryRunOperation. Otherwise,
  21346. // it is UnauthorizedOperation.
  21347. DryRun *bool `type:"boolean"`
  21348. // The ID of the endpoint service.
  21349. //
  21350. // ServiceId is a required field
  21351. ServiceId *string `type:"string" required:"true"`
  21352. // The IDs of one or more interface VPC endpoints.
  21353. //
  21354. // VpcEndpointIds is a required field
  21355. VpcEndpointIds []*string `locationName:"VpcEndpointId" locationNameList:"item" type:"list" required:"true"`
  21356. }
  21357. // String returns the string representation
  21358. func (s AcceptVpcEndpointConnectionsInput) String() string {
  21359. return awsutil.Prettify(s)
  21360. }
  21361. // GoString returns the string representation
  21362. func (s AcceptVpcEndpointConnectionsInput) GoString() string {
  21363. return s.String()
  21364. }
  21365. // Validate inspects the fields of the type to determine if they are valid.
  21366. func (s *AcceptVpcEndpointConnectionsInput) Validate() error {
  21367. invalidParams := request.ErrInvalidParams{Context: "AcceptVpcEndpointConnectionsInput"}
  21368. if s.ServiceId == nil {
  21369. invalidParams.Add(request.NewErrParamRequired("ServiceId"))
  21370. }
  21371. if s.VpcEndpointIds == nil {
  21372. invalidParams.Add(request.NewErrParamRequired("VpcEndpointIds"))
  21373. }
  21374. if invalidParams.Len() > 0 {
  21375. return invalidParams
  21376. }
  21377. return nil
  21378. }
  21379. // SetDryRun sets the DryRun field's value.
  21380. func (s *AcceptVpcEndpointConnectionsInput) SetDryRun(v bool) *AcceptVpcEndpointConnectionsInput {
  21381. s.DryRun = &v
  21382. return s
  21383. }
  21384. // SetServiceId sets the ServiceId field's value.
  21385. func (s *AcceptVpcEndpointConnectionsInput) SetServiceId(v string) *AcceptVpcEndpointConnectionsInput {
  21386. s.ServiceId = &v
  21387. return s
  21388. }
  21389. // SetVpcEndpointIds sets the VpcEndpointIds field's value.
  21390. func (s *AcceptVpcEndpointConnectionsInput) SetVpcEndpointIds(v []*string) *AcceptVpcEndpointConnectionsInput {
  21391. s.VpcEndpointIds = v
  21392. return s
  21393. }
  21394. type AcceptVpcEndpointConnectionsOutput struct {
  21395. _ struct{} `type:"structure"`
  21396. // Information about the interface endpoints that were not accepted, if applicable.
  21397. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  21398. }
  21399. // String returns the string representation
  21400. func (s AcceptVpcEndpointConnectionsOutput) String() string {
  21401. return awsutil.Prettify(s)
  21402. }
  21403. // GoString returns the string representation
  21404. func (s AcceptVpcEndpointConnectionsOutput) GoString() string {
  21405. return s.String()
  21406. }
  21407. // SetUnsuccessful sets the Unsuccessful field's value.
  21408. func (s *AcceptVpcEndpointConnectionsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *AcceptVpcEndpointConnectionsOutput {
  21409. s.Unsuccessful = v
  21410. return s
  21411. }
  21412. // Contains the parameters for AcceptVpcPeeringConnection.
  21413. type AcceptVpcPeeringConnectionInput struct {
  21414. _ struct{} `type:"structure"`
  21415. // Checks whether you have the required permissions for the action, without
  21416. // actually making the request, and provides an error response. If you have
  21417. // the required permissions, the error response is DryRunOperation. Otherwise,
  21418. // it is UnauthorizedOperation.
  21419. DryRun *bool `locationName:"dryRun" type:"boolean"`
  21420. // The ID of the VPC peering connection. You must specify this parameter in
  21421. // the request.
  21422. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
  21423. }
  21424. // String returns the string representation
  21425. func (s AcceptVpcPeeringConnectionInput) String() string {
  21426. return awsutil.Prettify(s)
  21427. }
  21428. // GoString returns the string representation
  21429. func (s AcceptVpcPeeringConnectionInput) GoString() string {
  21430. return s.String()
  21431. }
  21432. // SetDryRun sets the DryRun field's value.
  21433. func (s *AcceptVpcPeeringConnectionInput) SetDryRun(v bool) *AcceptVpcPeeringConnectionInput {
  21434. s.DryRun = &v
  21435. return s
  21436. }
  21437. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  21438. func (s *AcceptVpcPeeringConnectionInput) SetVpcPeeringConnectionId(v string) *AcceptVpcPeeringConnectionInput {
  21439. s.VpcPeeringConnectionId = &v
  21440. return s
  21441. }
  21442. // Contains the output of AcceptVpcPeeringConnection.
  21443. type AcceptVpcPeeringConnectionOutput struct {
  21444. _ struct{} `type:"structure"`
  21445. // Information about the VPC peering connection.
  21446. VpcPeeringConnection *VpcPeeringConnection `locationName:"vpcPeeringConnection" type:"structure"`
  21447. }
  21448. // String returns the string representation
  21449. func (s AcceptVpcPeeringConnectionOutput) String() string {
  21450. return awsutil.Prettify(s)
  21451. }
  21452. // GoString returns the string representation
  21453. func (s AcceptVpcPeeringConnectionOutput) GoString() string {
  21454. return s.String()
  21455. }
  21456. // SetVpcPeeringConnection sets the VpcPeeringConnection field's value.
  21457. func (s *AcceptVpcPeeringConnectionOutput) SetVpcPeeringConnection(v *VpcPeeringConnection) *AcceptVpcPeeringConnectionOutput {
  21458. s.VpcPeeringConnection = v
  21459. return s
  21460. }
  21461. // Describes an account attribute.
  21462. type AccountAttribute struct {
  21463. _ struct{} `type:"structure"`
  21464. // The name of the account attribute.
  21465. AttributeName *string `locationName:"attributeName" type:"string"`
  21466. // One or more values for the account attribute.
  21467. AttributeValues []*AccountAttributeValue `locationName:"attributeValueSet" locationNameList:"item" type:"list"`
  21468. }
  21469. // String returns the string representation
  21470. func (s AccountAttribute) String() string {
  21471. return awsutil.Prettify(s)
  21472. }
  21473. // GoString returns the string representation
  21474. func (s AccountAttribute) GoString() string {
  21475. return s.String()
  21476. }
  21477. // SetAttributeName sets the AttributeName field's value.
  21478. func (s *AccountAttribute) SetAttributeName(v string) *AccountAttribute {
  21479. s.AttributeName = &v
  21480. return s
  21481. }
  21482. // SetAttributeValues sets the AttributeValues field's value.
  21483. func (s *AccountAttribute) SetAttributeValues(v []*AccountAttributeValue) *AccountAttribute {
  21484. s.AttributeValues = v
  21485. return s
  21486. }
  21487. // Describes a value of an account attribute.
  21488. type AccountAttributeValue struct {
  21489. _ struct{} `type:"structure"`
  21490. // The value of the attribute.
  21491. AttributeValue *string `locationName:"attributeValue" type:"string"`
  21492. }
  21493. // String returns the string representation
  21494. func (s AccountAttributeValue) String() string {
  21495. return awsutil.Prettify(s)
  21496. }
  21497. // GoString returns the string representation
  21498. func (s AccountAttributeValue) GoString() string {
  21499. return s.String()
  21500. }
  21501. // SetAttributeValue sets the AttributeValue field's value.
  21502. func (s *AccountAttributeValue) SetAttributeValue(v string) *AccountAttributeValue {
  21503. s.AttributeValue = &v
  21504. return s
  21505. }
  21506. // Describes a running instance in a Spot Fleet.
  21507. type ActiveInstance struct {
  21508. _ struct{} `type:"structure"`
  21509. // The health status of the instance. If the status of either the instance status
  21510. // check or the system status check is impaired, the health status of the instance
  21511. // is unhealthy. Otherwise, the health status is healthy.
  21512. InstanceHealth *string `locationName:"instanceHealth" type:"string" enum:"InstanceHealthStatus"`
  21513. // The ID of the instance.
  21514. InstanceId *string `locationName:"instanceId" type:"string"`
  21515. // The instance type.
  21516. InstanceType *string `locationName:"instanceType" type:"string"`
  21517. // The ID of the Spot Instance request.
  21518. SpotInstanceRequestId *string `locationName:"spotInstanceRequestId" type:"string"`
  21519. }
  21520. // String returns the string representation
  21521. func (s ActiveInstance) String() string {
  21522. return awsutil.Prettify(s)
  21523. }
  21524. // GoString returns the string representation
  21525. func (s ActiveInstance) GoString() string {
  21526. return s.String()
  21527. }
  21528. // SetInstanceHealth sets the InstanceHealth field's value.
  21529. func (s *ActiveInstance) SetInstanceHealth(v string) *ActiveInstance {
  21530. s.InstanceHealth = &v
  21531. return s
  21532. }
  21533. // SetInstanceId sets the InstanceId field's value.
  21534. func (s *ActiveInstance) SetInstanceId(v string) *ActiveInstance {
  21535. s.InstanceId = &v
  21536. return s
  21537. }
  21538. // SetInstanceType sets the InstanceType field's value.
  21539. func (s *ActiveInstance) SetInstanceType(v string) *ActiveInstance {
  21540. s.InstanceType = &v
  21541. return s
  21542. }
  21543. // SetSpotInstanceRequestId sets the SpotInstanceRequestId field's value.
  21544. func (s *ActiveInstance) SetSpotInstanceRequestId(v string) *ActiveInstance {
  21545. s.SpotInstanceRequestId = &v
  21546. return s
  21547. }
  21548. // Describes an Elastic IP address.
  21549. type Address struct {
  21550. _ struct{} `type:"structure"`
  21551. // The ID representing the allocation of the address for use with EC2-VPC.
  21552. AllocationId *string `locationName:"allocationId" type:"string"`
  21553. // The ID representing the association of the address with an instance in a
  21554. // VPC.
  21555. AssociationId *string `locationName:"associationId" type:"string"`
  21556. // Indicates whether this Elastic IP address is for use with instances in EC2-Classic
  21557. // (standard) or instances in a VPC (vpc).
  21558. Domain *string `locationName:"domain" type:"string" enum:"DomainType"`
  21559. // The ID of the instance that the address is associated with (if any).
  21560. InstanceId *string `locationName:"instanceId" type:"string"`
  21561. // The ID of the network interface.
  21562. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  21563. // The ID of the AWS account that owns the network interface.
  21564. NetworkInterfaceOwnerId *string `locationName:"networkInterfaceOwnerId" type:"string"`
  21565. // The private IP address associated with the Elastic IP address.
  21566. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  21567. // The Elastic IP address.
  21568. PublicIp *string `locationName:"publicIp" type:"string"`
  21569. // Any tags assigned to the Elastic IP address.
  21570. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  21571. }
  21572. // String returns the string representation
  21573. func (s Address) String() string {
  21574. return awsutil.Prettify(s)
  21575. }
  21576. // GoString returns the string representation
  21577. func (s Address) GoString() string {
  21578. return s.String()
  21579. }
  21580. // SetAllocationId sets the AllocationId field's value.
  21581. func (s *Address) SetAllocationId(v string) *Address {
  21582. s.AllocationId = &v
  21583. return s
  21584. }
  21585. // SetAssociationId sets the AssociationId field's value.
  21586. func (s *Address) SetAssociationId(v string) *Address {
  21587. s.AssociationId = &v
  21588. return s
  21589. }
  21590. // SetDomain sets the Domain field's value.
  21591. func (s *Address) SetDomain(v string) *Address {
  21592. s.Domain = &v
  21593. return s
  21594. }
  21595. // SetInstanceId sets the InstanceId field's value.
  21596. func (s *Address) SetInstanceId(v string) *Address {
  21597. s.InstanceId = &v
  21598. return s
  21599. }
  21600. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  21601. func (s *Address) SetNetworkInterfaceId(v string) *Address {
  21602. s.NetworkInterfaceId = &v
  21603. return s
  21604. }
  21605. // SetNetworkInterfaceOwnerId sets the NetworkInterfaceOwnerId field's value.
  21606. func (s *Address) SetNetworkInterfaceOwnerId(v string) *Address {
  21607. s.NetworkInterfaceOwnerId = &v
  21608. return s
  21609. }
  21610. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  21611. func (s *Address) SetPrivateIpAddress(v string) *Address {
  21612. s.PrivateIpAddress = &v
  21613. return s
  21614. }
  21615. // SetPublicIp sets the PublicIp field's value.
  21616. func (s *Address) SetPublicIp(v string) *Address {
  21617. s.PublicIp = &v
  21618. return s
  21619. }
  21620. // SetTags sets the Tags field's value.
  21621. func (s *Address) SetTags(v []*Tag) *Address {
  21622. s.Tags = v
  21623. return s
  21624. }
  21625. // Contains the parameters for AllocateAddress.
  21626. type AllocateAddressInput struct {
  21627. _ struct{} `type:"structure"`
  21628. // [EC2-VPC] The Elastic IP address to recover.
  21629. Address *string `type:"string"`
  21630. // Set to vpc to allocate the address for use with instances in a VPC.
  21631. //
  21632. // Default: The address is for use with instances in EC2-Classic.
  21633. Domain *string `type:"string" enum:"DomainType"`
  21634. // Checks whether you have the required permissions for the action, without
  21635. // actually making the request, and provides an error response. If you have
  21636. // the required permissions, the error response is DryRunOperation. Otherwise,
  21637. // it is UnauthorizedOperation.
  21638. DryRun *bool `locationName:"dryRun" type:"boolean"`
  21639. }
  21640. // String returns the string representation
  21641. func (s AllocateAddressInput) String() string {
  21642. return awsutil.Prettify(s)
  21643. }
  21644. // GoString returns the string representation
  21645. func (s AllocateAddressInput) GoString() string {
  21646. return s.String()
  21647. }
  21648. // SetAddress sets the Address field's value.
  21649. func (s *AllocateAddressInput) SetAddress(v string) *AllocateAddressInput {
  21650. s.Address = &v
  21651. return s
  21652. }
  21653. // SetDomain sets the Domain field's value.
  21654. func (s *AllocateAddressInput) SetDomain(v string) *AllocateAddressInput {
  21655. s.Domain = &v
  21656. return s
  21657. }
  21658. // SetDryRun sets the DryRun field's value.
  21659. func (s *AllocateAddressInput) SetDryRun(v bool) *AllocateAddressInput {
  21660. s.DryRun = &v
  21661. return s
  21662. }
  21663. // Contains the output of AllocateAddress.
  21664. type AllocateAddressOutput struct {
  21665. _ struct{} `type:"structure"`
  21666. // [EC2-VPC] The ID that AWS assigns to represent the allocation of the Elastic
  21667. // IP address for use with instances in a VPC.
  21668. AllocationId *string `locationName:"allocationId" type:"string"`
  21669. // Indicates whether this Elastic IP address is for use with instances in EC2-Classic
  21670. // (standard) or instances in a VPC (vpc).
  21671. Domain *string `locationName:"domain" type:"string" enum:"DomainType"`
  21672. // The Elastic IP address.
  21673. PublicIp *string `locationName:"publicIp" type:"string"`
  21674. }
  21675. // String returns the string representation
  21676. func (s AllocateAddressOutput) String() string {
  21677. return awsutil.Prettify(s)
  21678. }
  21679. // GoString returns the string representation
  21680. func (s AllocateAddressOutput) GoString() string {
  21681. return s.String()
  21682. }
  21683. // SetAllocationId sets the AllocationId field's value.
  21684. func (s *AllocateAddressOutput) SetAllocationId(v string) *AllocateAddressOutput {
  21685. s.AllocationId = &v
  21686. return s
  21687. }
  21688. // SetDomain sets the Domain field's value.
  21689. func (s *AllocateAddressOutput) SetDomain(v string) *AllocateAddressOutput {
  21690. s.Domain = &v
  21691. return s
  21692. }
  21693. // SetPublicIp sets the PublicIp field's value.
  21694. func (s *AllocateAddressOutput) SetPublicIp(v string) *AllocateAddressOutput {
  21695. s.PublicIp = &v
  21696. return s
  21697. }
  21698. // Contains the parameters for AllocateHosts.
  21699. type AllocateHostsInput struct {
  21700. _ struct{} `type:"structure"`
  21701. // This is enabled by default. This property allows instances to be automatically
  21702. // placed onto available Dedicated Hosts, when you are launching instances without
  21703. // specifying a host ID.
  21704. //
  21705. // Default: Enabled
  21706. AutoPlacement *string `locationName:"autoPlacement" type:"string" enum:"AutoPlacement"`
  21707. // The Availability Zone for the Dedicated Hosts.
  21708. //
  21709. // AvailabilityZone is a required field
  21710. AvailabilityZone *string `locationName:"availabilityZone" type:"string" required:"true"`
  21711. // Unique, case-sensitive identifier you provide to ensure idempotency of the
  21712. // request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html)
  21713. // in the Amazon Elastic Compute Cloud User Guide.
  21714. ClientToken *string `locationName:"clientToken" type:"string"`
  21715. // Specify the instance type that you want your Dedicated Hosts to be configured
  21716. // for. When you specify the instance type, that is the only instance type that
  21717. // you can launch onto that host.
  21718. //
  21719. // InstanceType is a required field
  21720. InstanceType *string `locationName:"instanceType" type:"string" required:"true"`
  21721. // The number of Dedicated Hosts you want to allocate to your account with these
  21722. // parameters.
  21723. //
  21724. // Quantity is a required field
  21725. Quantity *int64 `locationName:"quantity" type:"integer" required:"true"`
  21726. }
  21727. // String returns the string representation
  21728. func (s AllocateHostsInput) String() string {
  21729. return awsutil.Prettify(s)
  21730. }
  21731. // GoString returns the string representation
  21732. func (s AllocateHostsInput) GoString() string {
  21733. return s.String()
  21734. }
  21735. // Validate inspects the fields of the type to determine if they are valid.
  21736. func (s *AllocateHostsInput) Validate() error {
  21737. invalidParams := request.ErrInvalidParams{Context: "AllocateHostsInput"}
  21738. if s.AvailabilityZone == nil {
  21739. invalidParams.Add(request.NewErrParamRequired("AvailabilityZone"))
  21740. }
  21741. if s.InstanceType == nil {
  21742. invalidParams.Add(request.NewErrParamRequired("InstanceType"))
  21743. }
  21744. if s.Quantity == nil {
  21745. invalidParams.Add(request.NewErrParamRequired("Quantity"))
  21746. }
  21747. if invalidParams.Len() > 0 {
  21748. return invalidParams
  21749. }
  21750. return nil
  21751. }
  21752. // SetAutoPlacement sets the AutoPlacement field's value.
  21753. func (s *AllocateHostsInput) SetAutoPlacement(v string) *AllocateHostsInput {
  21754. s.AutoPlacement = &v
  21755. return s
  21756. }
  21757. // SetAvailabilityZone sets the AvailabilityZone field's value.
  21758. func (s *AllocateHostsInput) SetAvailabilityZone(v string) *AllocateHostsInput {
  21759. s.AvailabilityZone = &v
  21760. return s
  21761. }
  21762. // SetClientToken sets the ClientToken field's value.
  21763. func (s *AllocateHostsInput) SetClientToken(v string) *AllocateHostsInput {
  21764. s.ClientToken = &v
  21765. return s
  21766. }
  21767. // SetInstanceType sets the InstanceType field's value.
  21768. func (s *AllocateHostsInput) SetInstanceType(v string) *AllocateHostsInput {
  21769. s.InstanceType = &v
  21770. return s
  21771. }
  21772. // SetQuantity sets the Quantity field's value.
  21773. func (s *AllocateHostsInput) SetQuantity(v int64) *AllocateHostsInput {
  21774. s.Quantity = &v
  21775. return s
  21776. }
  21777. // Contains the output of AllocateHosts.
  21778. type AllocateHostsOutput struct {
  21779. _ struct{} `type:"structure"`
  21780. // The ID of the allocated Dedicated Host. This is used when you want to launch
  21781. // an instance onto a specific host.
  21782. HostIds []*string `locationName:"hostIdSet" locationNameList:"item" type:"list"`
  21783. }
  21784. // String returns the string representation
  21785. func (s AllocateHostsOutput) String() string {
  21786. return awsutil.Prettify(s)
  21787. }
  21788. // GoString returns the string representation
  21789. func (s AllocateHostsOutput) GoString() string {
  21790. return s.String()
  21791. }
  21792. // SetHostIds sets the HostIds field's value.
  21793. func (s *AllocateHostsOutput) SetHostIds(v []*string) *AllocateHostsOutput {
  21794. s.HostIds = v
  21795. return s
  21796. }
  21797. // Describes a principal.
  21798. type AllowedPrincipal struct {
  21799. _ struct{} `type:"structure"`
  21800. // The Amazon Resource Name (ARN) of the principal.
  21801. Principal *string `locationName:"principal" type:"string"`
  21802. // The type of principal.
  21803. PrincipalType *string `locationName:"principalType" type:"string" enum:"PrincipalType"`
  21804. }
  21805. // String returns the string representation
  21806. func (s AllowedPrincipal) String() string {
  21807. return awsutil.Prettify(s)
  21808. }
  21809. // GoString returns the string representation
  21810. func (s AllowedPrincipal) GoString() string {
  21811. return s.String()
  21812. }
  21813. // SetPrincipal sets the Principal field's value.
  21814. func (s *AllowedPrincipal) SetPrincipal(v string) *AllowedPrincipal {
  21815. s.Principal = &v
  21816. return s
  21817. }
  21818. // SetPrincipalType sets the PrincipalType field's value.
  21819. func (s *AllowedPrincipal) SetPrincipalType(v string) *AllowedPrincipal {
  21820. s.PrincipalType = &v
  21821. return s
  21822. }
  21823. type AssignIpv6AddressesInput struct {
  21824. _ struct{} `type:"structure"`
  21825. // The number of IPv6 addresses to assign to the network interface. Amazon EC2
  21826. // automatically selects the IPv6 addresses from the subnet range. You can't
  21827. // use this option if specifying specific IPv6 addresses.
  21828. Ipv6AddressCount *int64 `locationName:"ipv6AddressCount" type:"integer"`
  21829. // One or more specific IPv6 addresses to be assigned to the network interface.
  21830. // You can't use this option if you're specifying a number of IPv6 addresses.
  21831. Ipv6Addresses []*string `locationName:"ipv6Addresses" locationNameList:"item" type:"list"`
  21832. // The ID of the network interface.
  21833. //
  21834. // NetworkInterfaceId is a required field
  21835. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  21836. }
  21837. // String returns the string representation
  21838. func (s AssignIpv6AddressesInput) String() string {
  21839. return awsutil.Prettify(s)
  21840. }
  21841. // GoString returns the string representation
  21842. func (s AssignIpv6AddressesInput) GoString() string {
  21843. return s.String()
  21844. }
  21845. // Validate inspects the fields of the type to determine if they are valid.
  21846. func (s *AssignIpv6AddressesInput) Validate() error {
  21847. invalidParams := request.ErrInvalidParams{Context: "AssignIpv6AddressesInput"}
  21848. if s.NetworkInterfaceId == nil {
  21849. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  21850. }
  21851. if invalidParams.Len() > 0 {
  21852. return invalidParams
  21853. }
  21854. return nil
  21855. }
  21856. // SetIpv6AddressCount sets the Ipv6AddressCount field's value.
  21857. func (s *AssignIpv6AddressesInput) SetIpv6AddressCount(v int64) *AssignIpv6AddressesInput {
  21858. s.Ipv6AddressCount = &v
  21859. return s
  21860. }
  21861. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  21862. func (s *AssignIpv6AddressesInput) SetIpv6Addresses(v []*string) *AssignIpv6AddressesInput {
  21863. s.Ipv6Addresses = v
  21864. return s
  21865. }
  21866. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  21867. func (s *AssignIpv6AddressesInput) SetNetworkInterfaceId(v string) *AssignIpv6AddressesInput {
  21868. s.NetworkInterfaceId = &v
  21869. return s
  21870. }
  21871. type AssignIpv6AddressesOutput struct {
  21872. _ struct{} `type:"structure"`
  21873. // The IPv6 addresses assigned to the network interface.
  21874. AssignedIpv6Addresses []*string `locationName:"assignedIpv6Addresses" locationNameList:"item" type:"list"`
  21875. // The ID of the network interface.
  21876. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  21877. }
  21878. // String returns the string representation
  21879. func (s AssignIpv6AddressesOutput) String() string {
  21880. return awsutil.Prettify(s)
  21881. }
  21882. // GoString returns the string representation
  21883. func (s AssignIpv6AddressesOutput) GoString() string {
  21884. return s.String()
  21885. }
  21886. // SetAssignedIpv6Addresses sets the AssignedIpv6Addresses field's value.
  21887. func (s *AssignIpv6AddressesOutput) SetAssignedIpv6Addresses(v []*string) *AssignIpv6AddressesOutput {
  21888. s.AssignedIpv6Addresses = v
  21889. return s
  21890. }
  21891. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  21892. func (s *AssignIpv6AddressesOutput) SetNetworkInterfaceId(v string) *AssignIpv6AddressesOutput {
  21893. s.NetworkInterfaceId = &v
  21894. return s
  21895. }
  21896. // Contains the parameters for AssignPrivateIpAddresses.
  21897. type AssignPrivateIpAddressesInput struct {
  21898. _ struct{} `type:"structure"`
  21899. // Indicates whether to allow an IP address that is already assigned to another
  21900. // network interface or instance to be reassigned to the specified network interface.
  21901. AllowReassignment *bool `locationName:"allowReassignment" type:"boolean"`
  21902. // The ID of the network interface.
  21903. //
  21904. // NetworkInterfaceId is a required field
  21905. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  21906. // One or more IP addresses to be assigned as a secondary private IP address
  21907. // to the network interface. You can't specify this parameter when also specifying
  21908. // a number of secondary IP addresses.
  21909. //
  21910. // If you don't specify an IP address, Amazon EC2 automatically selects an IP
  21911. // address within the subnet range.
  21912. PrivateIpAddresses []*string `locationName:"privateIpAddress" locationNameList:"PrivateIpAddress" type:"list"`
  21913. // The number of secondary IP addresses to assign to the network interface.
  21914. // You can't specify this parameter when also specifying private IP addresses.
  21915. SecondaryPrivateIpAddressCount *int64 `locationName:"secondaryPrivateIpAddressCount" type:"integer"`
  21916. }
  21917. // String returns the string representation
  21918. func (s AssignPrivateIpAddressesInput) String() string {
  21919. return awsutil.Prettify(s)
  21920. }
  21921. // GoString returns the string representation
  21922. func (s AssignPrivateIpAddressesInput) GoString() string {
  21923. return s.String()
  21924. }
  21925. // Validate inspects the fields of the type to determine if they are valid.
  21926. func (s *AssignPrivateIpAddressesInput) Validate() error {
  21927. invalidParams := request.ErrInvalidParams{Context: "AssignPrivateIpAddressesInput"}
  21928. if s.NetworkInterfaceId == nil {
  21929. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  21930. }
  21931. if invalidParams.Len() > 0 {
  21932. return invalidParams
  21933. }
  21934. return nil
  21935. }
  21936. // SetAllowReassignment sets the AllowReassignment field's value.
  21937. func (s *AssignPrivateIpAddressesInput) SetAllowReassignment(v bool) *AssignPrivateIpAddressesInput {
  21938. s.AllowReassignment = &v
  21939. return s
  21940. }
  21941. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  21942. func (s *AssignPrivateIpAddressesInput) SetNetworkInterfaceId(v string) *AssignPrivateIpAddressesInput {
  21943. s.NetworkInterfaceId = &v
  21944. return s
  21945. }
  21946. // SetPrivateIpAddresses sets the PrivateIpAddresses field's value.
  21947. func (s *AssignPrivateIpAddressesInput) SetPrivateIpAddresses(v []*string) *AssignPrivateIpAddressesInput {
  21948. s.PrivateIpAddresses = v
  21949. return s
  21950. }
  21951. // SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value.
  21952. func (s *AssignPrivateIpAddressesInput) SetSecondaryPrivateIpAddressCount(v int64) *AssignPrivateIpAddressesInput {
  21953. s.SecondaryPrivateIpAddressCount = &v
  21954. return s
  21955. }
  21956. type AssignPrivateIpAddressesOutput struct {
  21957. _ struct{} `type:"structure"`
  21958. }
  21959. // String returns the string representation
  21960. func (s AssignPrivateIpAddressesOutput) String() string {
  21961. return awsutil.Prettify(s)
  21962. }
  21963. // GoString returns the string representation
  21964. func (s AssignPrivateIpAddressesOutput) GoString() string {
  21965. return s.String()
  21966. }
  21967. // Contains the parameters for AssociateAddress.
  21968. type AssociateAddressInput struct {
  21969. _ struct{} `type:"structure"`
  21970. // [EC2-VPC] The allocation ID. This is required for EC2-VPC.
  21971. AllocationId *string `type:"string"`
  21972. // [EC2-VPC] For a VPC in an EC2-Classic account, specify true to allow an Elastic
  21973. // IP address that is already associated with an instance or network interface
  21974. // to be reassociated with the specified instance or network interface. Otherwise,
  21975. // the operation fails. In a VPC in an EC2-VPC-only account, reassociation is
  21976. // automatic, therefore you can specify false to ensure the operation fails
  21977. // if the Elastic IP address is already associated with another resource.
  21978. AllowReassociation *bool `locationName:"allowReassociation" type:"boolean"`
  21979. // Checks whether you have the required permissions for the action, without
  21980. // actually making the request, and provides an error response. If you have
  21981. // the required permissions, the error response is DryRunOperation. Otherwise,
  21982. // it is UnauthorizedOperation.
  21983. DryRun *bool `locationName:"dryRun" type:"boolean"`
  21984. // The ID of the instance. This is required for EC2-Classic. For EC2-VPC, you
  21985. // can specify either the instance ID or the network interface ID, but not both.
  21986. // The operation fails if you specify an instance ID unless exactly one network
  21987. // interface is attached.
  21988. InstanceId *string `type:"string"`
  21989. // [EC2-VPC] The ID of the network interface. If the instance has more than
  21990. // one network interface, you must specify a network interface ID.
  21991. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  21992. // [EC2-VPC] The primary or secondary private IP address to associate with the
  21993. // Elastic IP address. If no private IP address is specified, the Elastic IP
  21994. // address is associated with the primary private IP address.
  21995. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  21996. // The Elastic IP address. This is required for EC2-Classic.
  21997. PublicIp *string `type:"string"`
  21998. }
  21999. // String returns the string representation
  22000. func (s AssociateAddressInput) String() string {
  22001. return awsutil.Prettify(s)
  22002. }
  22003. // GoString returns the string representation
  22004. func (s AssociateAddressInput) GoString() string {
  22005. return s.String()
  22006. }
  22007. // SetAllocationId sets the AllocationId field's value.
  22008. func (s *AssociateAddressInput) SetAllocationId(v string) *AssociateAddressInput {
  22009. s.AllocationId = &v
  22010. return s
  22011. }
  22012. // SetAllowReassociation sets the AllowReassociation field's value.
  22013. func (s *AssociateAddressInput) SetAllowReassociation(v bool) *AssociateAddressInput {
  22014. s.AllowReassociation = &v
  22015. return s
  22016. }
  22017. // SetDryRun sets the DryRun field's value.
  22018. func (s *AssociateAddressInput) SetDryRun(v bool) *AssociateAddressInput {
  22019. s.DryRun = &v
  22020. return s
  22021. }
  22022. // SetInstanceId sets the InstanceId field's value.
  22023. func (s *AssociateAddressInput) SetInstanceId(v string) *AssociateAddressInput {
  22024. s.InstanceId = &v
  22025. return s
  22026. }
  22027. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  22028. func (s *AssociateAddressInput) SetNetworkInterfaceId(v string) *AssociateAddressInput {
  22029. s.NetworkInterfaceId = &v
  22030. return s
  22031. }
  22032. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  22033. func (s *AssociateAddressInput) SetPrivateIpAddress(v string) *AssociateAddressInput {
  22034. s.PrivateIpAddress = &v
  22035. return s
  22036. }
  22037. // SetPublicIp sets the PublicIp field's value.
  22038. func (s *AssociateAddressInput) SetPublicIp(v string) *AssociateAddressInput {
  22039. s.PublicIp = &v
  22040. return s
  22041. }
  22042. // Contains the output of AssociateAddress.
  22043. type AssociateAddressOutput struct {
  22044. _ struct{} `type:"structure"`
  22045. // [EC2-VPC] The ID that represents the association of the Elastic IP address
  22046. // with an instance.
  22047. AssociationId *string `locationName:"associationId" type:"string"`
  22048. }
  22049. // String returns the string representation
  22050. func (s AssociateAddressOutput) String() string {
  22051. return awsutil.Prettify(s)
  22052. }
  22053. // GoString returns the string representation
  22054. func (s AssociateAddressOutput) GoString() string {
  22055. return s.String()
  22056. }
  22057. // SetAssociationId sets the AssociationId field's value.
  22058. func (s *AssociateAddressOutput) SetAssociationId(v string) *AssociateAddressOutput {
  22059. s.AssociationId = &v
  22060. return s
  22061. }
  22062. // Contains the parameters for AssociateDhcpOptions.
  22063. type AssociateDhcpOptionsInput struct {
  22064. _ struct{} `type:"structure"`
  22065. // The ID of the DHCP options set, or default to associate no DHCP options with
  22066. // the VPC.
  22067. //
  22068. // DhcpOptionsId is a required field
  22069. DhcpOptionsId *string `type:"string" required:"true"`
  22070. // Checks whether you have the required permissions for the action, without
  22071. // actually making the request, and provides an error response. If you have
  22072. // the required permissions, the error response is DryRunOperation. Otherwise,
  22073. // it is UnauthorizedOperation.
  22074. DryRun *bool `locationName:"dryRun" type:"boolean"`
  22075. // The ID of the VPC.
  22076. //
  22077. // VpcId is a required field
  22078. VpcId *string `type:"string" required:"true"`
  22079. }
  22080. // String returns the string representation
  22081. func (s AssociateDhcpOptionsInput) String() string {
  22082. return awsutil.Prettify(s)
  22083. }
  22084. // GoString returns the string representation
  22085. func (s AssociateDhcpOptionsInput) GoString() string {
  22086. return s.String()
  22087. }
  22088. // Validate inspects the fields of the type to determine if they are valid.
  22089. func (s *AssociateDhcpOptionsInput) Validate() error {
  22090. invalidParams := request.ErrInvalidParams{Context: "AssociateDhcpOptionsInput"}
  22091. if s.DhcpOptionsId == nil {
  22092. invalidParams.Add(request.NewErrParamRequired("DhcpOptionsId"))
  22093. }
  22094. if s.VpcId == nil {
  22095. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  22096. }
  22097. if invalidParams.Len() > 0 {
  22098. return invalidParams
  22099. }
  22100. return nil
  22101. }
  22102. // SetDhcpOptionsId sets the DhcpOptionsId field's value.
  22103. func (s *AssociateDhcpOptionsInput) SetDhcpOptionsId(v string) *AssociateDhcpOptionsInput {
  22104. s.DhcpOptionsId = &v
  22105. return s
  22106. }
  22107. // SetDryRun sets the DryRun field's value.
  22108. func (s *AssociateDhcpOptionsInput) SetDryRun(v bool) *AssociateDhcpOptionsInput {
  22109. s.DryRun = &v
  22110. return s
  22111. }
  22112. // SetVpcId sets the VpcId field's value.
  22113. func (s *AssociateDhcpOptionsInput) SetVpcId(v string) *AssociateDhcpOptionsInput {
  22114. s.VpcId = &v
  22115. return s
  22116. }
  22117. type AssociateDhcpOptionsOutput struct {
  22118. _ struct{} `type:"structure"`
  22119. }
  22120. // String returns the string representation
  22121. func (s AssociateDhcpOptionsOutput) String() string {
  22122. return awsutil.Prettify(s)
  22123. }
  22124. // GoString returns the string representation
  22125. func (s AssociateDhcpOptionsOutput) GoString() string {
  22126. return s.String()
  22127. }
  22128. type AssociateIamInstanceProfileInput struct {
  22129. _ struct{} `type:"structure"`
  22130. // The IAM instance profile.
  22131. //
  22132. // IamInstanceProfile is a required field
  22133. IamInstanceProfile *IamInstanceProfileSpecification `type:"structure" required:"true"`
  22134. // The ID of the instance.
  22135. //
  22136. // InstanceId is a required field
  22137. InstanceId *string `type:"string" required:"true"`
  22138. }
  22139. // String returns the string representation
  22140. func (s AssociateIamInstanceProfileInput) String() string {
  22141. return awsutil.Prettify(s)
  22142. }
  22143. // GoString returns the string representation
  22144. func (s AssociateIamInstanceProfileInput) GoString() string {
  22145. return s.String()
  22146. }
  22147. // Validate inspects the fields of the type to determine if they are valid.
  22148. func (s *AssociateIamInstanceProfileInput) Validate() error {
  22149. invalidParams := request.ErrInvalidParams{Context: "AssociateIamInstanceProfileInput"}
  22150. if s.IamInstanceProfile == nil {
  22151. invalidParams.Add(request.NewErrParamRequired("IamInstanceProfile"))
  22152. }
  22153. if s.InstanceId == nil {
  22154. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  22155. }
  22156. if invalidParams.Len() > 0 {
  22157. return invalidParams
  22158. }
  22159. return nil
  22160. }
  22161. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  22162. func (s *AssociateIamInstanceProfileInput) SetIamInstanceProfile(v *IamInstanceProfileSpecification) *AssociateIamInstanceProfileInput {
  22163. s.IamInstanceProfile = v
  22164. return s
  22165. }
  22166. // SetInstanceId sets the InstanceId field's value.
  22167. func (s *AssociateIamInstanceProfileInput) SetInstanceId(v string) *AssociateIamInstanceProfileInput {
  22168. s.InstanceId = &v
  22169. return s
  22170. }
  22171. type AssociateIamInstanceProfileOutput struct {
  22172. _ struct{} `type:"structure"`
  22173. // Information about the IAM instance profile association.
  22174. IamInstanceProfileAssociation *IamInstanceProfileAssociation `locationName:"iamInstanceProfileAssociation" type:"structure"`
  22175. }
  22176. // String returns the string representation
  22177. func (s AssociateIamInstanceProfileOutput) String() string {
  22178. return awsutil.Prettify(s)
  22179. }
  22180. // GoString returns the string representation
  22181. func (s AssociateIamInstanceProfileOutput) GoString() string {
  22182. return s.String()
  22183. }
  22184. // SetIamInstanceProfileAssociation sets the IamInstanceProfileAssociation field's value.
  22185. func (s *AssociateIamInstanceProfileOutput) SetIamInstanceProfileAssociation(v *IamInstanceProfileAssociation) *AssociateIamInstanceProfileOutput {
  22186. s.IamInstanceProfileAssociation = v
  22187. return s
  22188. }
  22189. // Contains the parameters for AssociateRouteTable.
  22190. type AssociateRouteTableInput struct {
  22191. _ struct{} `type:"structure"`
  22192. // Checks whether you have the required permissions for the action, without
  22193. // actually making the request, and provides an error response. If you have
  22194. // the required permissions, the error response is DryRunOperation. Otherwise,
  22195. // it is UnauthorizedOperation.
  22196. DryRun *bool `locationName:"dryRun" type:"boolean"`
  22197. // The ID of the route table.
  22198. //
  22199. // RouteTableId is a required field
  22200. RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"`
  22201. // The ID of the subnet.
  22202. //
  22203. // SubnetId is a required field
  22204. SubnetId *string `locationName:"subnetId" type:"string" required:"true"`
  22205. }
  22206. // String returns the string representation
  22207. func (s AssociateRouteTableInput) String() string {
  22208. return awsutil.Prettify(s)
  22209. }
  22210. // GoString returns the string representation
  22211. func (s AssociateRouteTableInput) GoString() string {
  22212. return s.String()
  22213. }
  22214. // Validate inspects the fields of the type to determine if they are valid.
  22215. func (s *AssociateRouteTableInput) Validate() error {
  22216. invalidParams := request.ErrInvalidParams{Context: "AssociateRouteTableInput"}
  22217. if s.RouteTableId == nil {
  22218. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  22219. }
  22220. if s.SubnetId == nil {
  22221. invalidParams.Add(request.NewErrParamRequired("SubnetId"))
  22222. }
  22223. if invalidParams.Len() > 0 {
  22224. return invalidParams
  22225. }
  22226. return nil
  22227. }
  22228. // SetDryRun sets the DryRun field's value.
  22229. func (s *AssociateRouteTableInput) SetDryRun(v bool) *AssociateRouteTableInput {
  22230. s.DryRun = &v
  22231. return s
  22232. }
  22233. // SetRouteTableId sets the RouteTableId field's value.
  22234. func (s *AssociateRouteTableInput) SetRouteTableId(v string) *AssociateRouteTableInput {
  22235. s.RouteTableId = &v
  22236. return s
  22237. }
  22238. // SetSubnetId sets the SubnetId field's value.
  22239. func (s *AssociateRouteTableInput) SetSubnetId(v string) *AssociateRouteTableInput {
  22240. s.SubnetId = &v
  22241. return s
  22242. }
  22243. // Contains the output of AssociateRouteTable.
  22244. type AssociateRouteTableOutput struct {
  22245. _ struct{} `type:"structure"`
  22246. // The route table association ID (needed to disassociate the route table).
  22247. AssociationId *string `locationName:"associationId" type:"string"`
  22248. }
  22249. // String returns the string representation
  22250. func (s AssociateRouteTableOutput) String() string {
  22251. return awsutil.Prettify(s)
  22252. }
  22253. // GoString returns the string representation
  22254. func (s AssociateRouteTableOutput) GoString() string {
  22255. return s.String()
  22256. }
  22257. // SetAssociationId sets the AssociationId field's value.
  22258. func (s *AssociateRouteTableOutput) SetAssociationId(v string) *AssociateRouteTableOutput {
  22259. s.AssociationId = &v
  22260. return s
  22261. }
  22262. type AssociateSubnetCidrBlockInput struct {
  22263. _ struct{} `type:"structure"`
  22264. // The IPv6 CIDR block for your subnet. The subnet must have a /64 prefix length.
  22265. //
  22266. // Ipv6CidrBlock is a required field
  22267. Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string" required:"true"`
  22268. // The ID of your subnet.
  22269. //
  22270. // SubnetId is a required field
  22271. SubnetId *string `locationName:"subnetId" type:"string" required:"true"`
  22272. }
  22273. // String returns the string representation
  22274. func (s AssociateSubnetCidrBlockInput) String() string {
  22275. return awsutil.Prettify(s)
  22276. }
  22277. // GoString returns the string representation
  22278. func (s AssociateSubnetCidrBlockInput) GoString() string {
  22279. return s.String()
  22280. }
  22281. // Validate inspects the fields of the type to determine if they are valid.
  22282. func (s *AssociateSubnetCidrBlockInput) Validate() error {
  22283. invalidParams := request.ErrInvalidParams{Context: "AssociateSubnetCidrBlockInput"}
  22284. if s.Ipv6CidrBlock == nil {
  22285. invalidParams.Add(request.NewErrParamRequired("Ipv6CidrBlock"))
  22286. }
  22287. if s.SubnetId == nil {
  22288. invalidParams.Add(request.NewErrParamRequired("SubnetId"))
  22289. }
  22290. if invalidParams.Len() > 0 {
  22291. return invalidParams
  22292. }
  22293. return nil
  22294. }
  22295. // SetIpv6CidrBlock sets the Ipv6CidrBlock field's value.
  22296. func (s *AssociateSubnetCidrBlockInput) SetIpv6CidrBlock(v string) *AssociateSubnetCidrBlockInput {
  22297. s.Ipv6CidrBlock = &v
  22298. return s
  22299. }
  22300. // SetSubnetId sets the SubnetId field's value.
  22301. func (s *AssociateSubnetCidrBlockInput) SetSubnetId(v string) *AssociateSubnetCidrBlockInput {
  22302. s.SubnetId = &v
  22303. return s
  22304. }
  22305. type AssociateSubnetCidrBlockOutput struct {
  22306. _ struct{} `type:"structure"`
  22307. // Information about the IPv6 CIDR block association.
  22308. Ipv6CidrBlockAssociation *SubnetIpv6CidrBlockAssociation `locationName:"ipv6CidrBlockAssociation" type:"structure"`
  22309. // The ID of the subnet.
  22310. SubnetId *string `locationName:"subnetId" type:"string"`
  22311. }
  22312. // String returns the string representation
  22313. func (s AssociateSubnetCidrBlockOutput) String() string {
  22314. return awsutil.Prettify(s)
  22315. }
  22316. // GoString returns the string representation
  22317. func (s AssociateSubnetCidrBlockOutput) GoString() string {
  22318. return s.String()
  22319. }
  22320. // SetIpv6CidrBlockAssociation sets the Ipv6CidrBlockAssociation field's value.
  22321. func (s *AssociateSubnetCidrBlockOutput) SetIpv6CidrBlockAssociation(v *SubnetIpv6CidrBlockAssociation) *AssociateSubnetCidrBlockOutput {
  22322. s.Ipv6CidrBlockAssociation = v
  22323. return s
  22324. }
  22325. // SetSubnetId sets the SubnetId field's value.
  22326. func (s *AssociateSubnetCidrBlockOutput) SetSubnetId(v string) *AssociateSubnetCidrBlockOutput {
  22327. s.SubnetId = &v
  22328. return s
  22329. }
  22330. type AssociateVpcCidrBlockInput struct {
  22331. _ struct{} `type:"structure"`
  22332. // Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for
  22333. // the VPC. You cannot specify the range of IPv6 addresses, or the size of the
  22334. // CIDR block.
  22335. AmazonProvidedIpv6CidrBlock *bool `locationName:"amazonProvidedIpv6CidrBlock" type:"boolean"`
  22336. // An IPv4 CIDR block to associate with the VPC.
  22337. CidrBlock *string `type:"string"`
  22338. // The ID of the VPC.
  22339. //
  22340. // VpcId is a required field
  22341. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  22342. }
  22343. // String returns the string representation
  22344. func (s AssociateVpcCidrBlockInput) String() string {
  22345. return awsutil.Prettify(s)
  22346. }
  22347. // GoString returns the string representation
  22348. func (s AssociateVpcCidrBlockInput) GoString() string {
  22349. return s.String()
  22350. }
  22351. // Validate inspects the fields of the type to determine if they are valid.
  22352. func (s *AssociateVpcCidrBlockInput) Validate() error {
  22353. invalidParams := request.ErrInvalidParams{Context: "AssociateVpcCidrBlockInput"}
  22354. if s.VpcId == nil {
  22355. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  22356. }
  22357. if invalidParams.Len() > 0 {
  22358. return invalidParams
  22359. }
  22360. return nil
  22361. }
  22362. // SetAmazonProvidedIpv6CidrBlock sets the AmazonProvidedIpv6CidrBlock field's value.
  22363. func (s *AssociateVpcCidrBlockInput) SetAmazonProvidedIpv6CidrBlock(v bool) *AssociateVpcCidrBlockInput {
  22364. s.AmazonProvidedIpv6CidrBlock = &v
  22365. return s
  22366. }
  22367. // SetCidrBlock sets the CidrBlock field's value.
  22368. func (s *AssociateVpcCidrBlockInput) SetCidrBlock(v string) *AssociateVpcCidrBlockInput {
  22369. s.CidrBlock = &v
  22370. return s
  22371. }
  22372. // SetVpcId sets the VpcId field's value.
  22373. func (s *AssociateVpcCidrBlockInput) SetVpcId(v string) *AssociateVpcCidrBlockInput {
  22374. s.VpcId = &v
  22375. return s
  22376. }
  22377. type AssociateVpcCidrBlockOutput struct {
  22378. _ struct{} `type:"structure"`
  22379. // Information about the IPv4 CIDR block association.
  22380. CidrBlockAssociation *VpcCidrBlockAssociation `locationName:"cidrBlockAssociation" type:"structure"`
  22381. // Information about the IPv6 CIDR block association.
  22382. Ipv6CidrBlockAssociation *VpcIpv6CidrBlockAssociation `locationName:"ipv6CidrBlockAssociation" type:"structure"`
  22383. // The ID of the VPC.
  22384. VpcId *string `locationName:"vpcId" type:"string"`
  22385. }
  22386. // String returns the string representation
  22387. func (s AssociateVpcCidrBlockOutput) String() string {
  22388. return awsutil.Prettify(s)
  22389. }
  22390. // GoString returns the string representation
  22391. func (s AssociateVpcCidrBlockOutput) GoString() string {
  22392. return s.String()
  22393. }
  22394. // SetCidrBlockAssociation sets the CidrBlockAssociation field's value.
  22395. func (s *AssociateVpcCidrBlockOutput) SetCidrBlockAssociation(v *VpcCidrBlockAssociation) *AssociateVpcCidrBlockOutput {
  22396. s.CidrBlockAssociation = v
  22397. return s
  22398. }
  22399. // SetIpv6CidrBlockAssociation sets the Ipv6CidrBlockAssociation field's value.
  22400. func (s *AssociateVpcCidrBlockOutput) SetIpv6CidrBlockAssociation(v *VpcIpv6CidrBlockAssociation) *AssociateVpcCidrBlockOutput {
  22401. s.Ipv6CidrBlockAssociation = v
  22402. return s
  22403. }
  22404. // SetVpcId sets the VpcId field's value.
  22405. func (s *AssociateVpcCidrBlockOutput) SetVpcId(v string) *AssociateVpcCidrBlockOutput {
  22406. s.VpcId = &v
  22407. return s
  22408. }
  22409. // Contains the parameters for AttachClassicLinkVpc.
  22410. type AttachClassicLinkVpcInput struct {
  22411. _ struct{} `type:"structure"`
  22412. // Checks whether you have the required permissions for the action, without
  22413. // actually making the request, and provides an error response. If you have
  22414. // the required permissions, the error response is DryRunOperation. Otherwise,
  22415. // it is UnauthorizedOperation.
  22416. DryRun *bool `locationName:"dryRun" type:"boolean"`
  22417. // The ID of one or more of the VPC's security groups. You cannot specify security
  22418. // groups from a different VPC.
  22419. //
  22420. // Groups is a required field
  22421. Groups []*string `locationName:"SecurityGroupId" locationNameList:"groupId" type:"list" required:"true"`
  22422. // The ID of an EC2-Classic instance to link to the ClassicLink-enabled VPC.
  22423. //
  22424. // InstanceId is a required field
  22425. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  22426. // The ID of a ClassicLink-enabled VPC.
  22427. //
  22428. // VpcId is a required field
  22429. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  22430. }
  22431. // String returns the string representation
  22432. func (s AttachClassicLinkVpcInput) String() string {
  22433. return awsutil.Prettify(s)
  22434. }
  22435. // GoString returns the string representation
  22436. func (s AttachClassicLinkVpcInput) GoString() string {
  22437. return s.String()
  22438. }
  22439. // Validate inspects the fields of the type to determine if they are valid.
  22440. func (s *AttachClassicLinkVpcInput) Validate() error {
  22441. invalidParams := request.ErrInvalidParams{Context: "AttachClassicLinkVpcInput"}
  22442. if s.Groups == nil {
  22443. invalidParams.Add(request.NewErrParamRequired("Groups"))
  22444. }
  22445. if s.InstanceId == nil {
  22446. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  22447. }
  22448. if s.VpcId == nil {
  22449. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  22450. }
  22451. if invalidParams.Len() > 0 {
  22452. return invalidParams
  22453. }
  22454. return nil
  22455. }
  22456. // SetDryRun sets the DryRun field's value.
  22457. func (s *AttachClassicLinkVpcInput) SetDryRun(v bool) *AttachClassicLinkVpcInput {
  22458. s.DryRun = &v
  22459. return s
  22460. }
  22461. // SetGroups sets the Groups field's value.
  22462. func (s *AttachClassicLinkVpcInput) SetGroups(v []*string) *AttachClassicLinkVpcInput {
  22463. s.Groups = v
  22464. return s
  22465. }
  22466. // SetInstanceId sets the InstanceId field's value.
  22467. func (s *AttachClassicLinkVpcInput) SetInstanceId(v string) *AttachClassicLinkVpcInput {
  22468. s.InstanceId = &v
  22469. return s
  22470. }
  22471. // SetVpcId sets the VpcId field's value.
  22472. func (s *AttachClassicLinkVpcInput) SetVpcId(v string) *AttachClassicLinkVpcInput {
  22473. s.VpcId = &v
  22474. return s
  22475. }
  22476. // Contains the output of AttachClassicLinkVpc.
  22477. type AttachClassicLinkVpcOutput struct {
  22478. _ struct{} `type:"structure"`
  22479. // Returns true if the request succeeds; otherwise, it returns an error.
  22480. Return *bool `locationName:"return" type:"boolean"`
  22481. }
  22482. // String returns the string representation
  22483. func (s AttachClassicLinkVpcOutput) String() string {
  22484. return awsutil.Prettify(s)
  22485. }
  22486. // GoString returns the string representation
  22487. func (s AttachClassicLinkVpcOutput) GoString() string {
  22488. return s.String()
  22489. }
  22490. // SetReturn sets the Return field's value.
  22491. func (s *AttachClassicLinkVpcOutput) SetReturn(v bool) *AttachClassicLinkVpcOutput {
  22492. s.Return = &v
  22493. return s
  22494. }
  22495. // Contains the parameters for AttachInternetGateway.
  22496. type AttachInternetGatewayInput struct {
  22497. _ struct{} `type:"structure"`
  22498. // Checks whether you have the required permissions for the action, without
  22499. // actually making the request, and provides an error response. If you have
  22500. // the required permissions, the error response is DryRunOperation. Otherwise,
  22501. // it is UnauthorizedOperation.
  22502. DryRun *bool `locationName:"dryRun" type:"boolean"`
  22503. // The ID of the Internet gateway.
  22504. //
  22505. // InternetGatewayId is a required field
  22506. InternetGatewayId *string `locationName:"internetGatewayId" type:"string" required:"true"`
  22507. // The ID of the VPC.
  22508. //
  22509. // VpcId is a required field
  22510. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  22511. }
  22512. // String returns the string representation
  22513. func (s AttachInternetGatewayInput) String() string {
  22514. return awsutil.Prettify(s)
  22515. }
  22516. // GoString returns the string representation
  22517. func (s AttachInternetGatewayInput) GoString() string {
  22518. return s.String()
  22519. }
  22520. // Validate inspects the fields of the type to determine if they are valid.
  22521. func (s *AttachInternetGatewayInput) Validate() error {
  22522. invalidParams := request.ErrInvalidParams{Context: "AttachInternetGatewayInput"}
  22523. if s.InternetGatewayId == nil {
  22524. invalidParams.Add(request.NewErrParamRequired("InternetGatewayId"))
  22525. }
  22526. if s.VpcId == nil {
  22527. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  22528. }
  22529. if invalidParams.Len() > 0 {
  22530. return invalidParams
  22531. }
  22532. return nil
  22533. }
  22534. // SetDryRun sets the DryRun field's value.
  22535. func (s *AttachInternetGatewayInput) SetDryRun(v bool) *AttachInternetGatewayInput {
  22536. s.DryRun = &v
  22537. return s
  22538. }
  22539. // SetInternetGatewayId sets the InternetGatewayId field's value.
  22540. func (s *AttachInternetGatewayInput) SetInternetGatewayId(v string) *AttachInternetGatewayInput {
  22541. s.InternetGatewayId = &v
  22542. return s
  22543. }
  22544. // SetVpcId sets the VpcId field's value.
  22545. func (s *AttachInternetGatewayInput) SetVpcId(v string) *AttachInternetGatewayInput {
  22546. s.VpcId = &v
  22547. return s
  22548. }
  22549. type AttachInternetGatewayOutput struct {
  22550. _ struct{} `type:"structure"`
  22551. }
  22552. // String returns the string representation
  22553. func (s AttachInternetGatewayOutput) String() string {
  22554. return awsutil.Prettify(s)
  22555. }
  22556. // GoString returns the string representation
  22557. func (s AttachInternetGatewayOutput) GoString() string {
  22558. return s.String()
  22559. }
  22560. // Contains the parameters for AttachNetworkInterface.
  22561. type AttachNetworkInterfaceInput struct {
  22562. _ struct{} `type:"structure"`
  22563. // The index of the device for the network interface attachment.
  22564. //
  22565. // DeviceIndex is a required field
  22566. DeviceIndex *int64 `locationName:"deviceIndex" type:"integer" required:"true"`
  22567. // Checks whether you have the required permissions for the action, without
  22568. // actually making the request, and provides an error response. If you have
  22569. // the required permissions, the error response is DryRunOperation. Otherwise,
  22570. // it is UnauthorizedOperation.
  22571. DryRun *bool `locationName:"dryRun" type:"boolean"`
  22572. // The ID of the instance.
  22573. //
  22574. // InstanceId is a required field
  22575. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  22576. // The ID of the network interface.
  22577. //
  22578. // NetworkInterfaceId is a required field
  22579. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  22580. }
  22581. // String returns the string representation
  22582. func (s AttachNetworkInterfaceInput) String() string {
  22583. return awsutil.Prettify(s)
  22584. }
  22585. // GoString returns the string representation
  22586. func (s AttachNetworkInterfaceInput) GoString() string {
  22587. return s.String()
  22588. }
  22589. // Validate inspects the fields of the type to determine if they are valid.
  22590. func (s *AttachNetworkInterfaceInput) Validate() error {
  22591. invalidParams := request.ErrInvalidParams{Context: "AttachNetworkInterfaceInput"}
  22592. if s.DeviceIndex == nil {
  22593. invalidParams.Add(request.NewErrParamRequired("DeviceIndex"))
  22594. }
  22595. if s.InstanceId == nil {
  22596. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  22597. }
  22598. if s.NetworkInterfaceId == nil {
  22599. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  22600. }
  22601. if invalidParams.Len() > 0 {
  22602. return invalidParams
  22603. }
  22604. return nil
  22605. }
  22606. // SetDeviceIndex sets the DeviceIndex field's value.
  22607. func (s *AttachNetworkInterfaceInput) SetDeviceIndex(v int64) *AttachNetworkInterfaceInput {
  22608. s.DeviceIndex = &v
  22609. return s
  22610. }
  22611. // SetDryRun sets the DryRun field's value.
  22612. func (s *AttachNetworkInterfaceInput) SetDryRun(v bool) *AttachNetworkInterfaceInput {
  22613. s.DryRun = &v
  22614. return s
  22615. }
  22616. // SetInstanceId sets the InstanceId field's value.
  22617. func (s *AttachNetworkInterfaceInput) SetInstanceId(v string) *AttachNetworkInterfaceInput {
  22618. s.InstanceId = &v
  22619. return s
  22620. }
  22621. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  22622. func (s *AttachNetworkInterfaceInput) SetNetworkInterfaceId(v string) *AttachNetworkInterfaceInput {
  22623. s.NetworkInterfaceId = &v
  22624. return s
  22625. }
  22626. // Contains the output of AttachNetworkInterface.
  22627. type AttachNetworkInterfaceOutput struct {
  22628. _ struct{} `type:"structure"`
  22629. // The ID of the network interface attachment.
  22630. AttachmentId *string `locationName:"attachmentId" type:"string"`
  22631. }
  22632. // String returns the string representation
  22633. func (s AttachNetworkInterfaceOutput) String() string {
  22634. return awsutil.Prettify(s)
  22635. }
  22636. // GoString returns the string representation
  22637. func (s AttachNetworkInterfaceOutput) GoString() string {
  22638. return s.String()
  22639. }
  22640. // SetAttachmentId sets the AttachmentId field's value.
  22641. func (s *AttachNetworkInterfaceOutput) SetAttachmentId(v string) *AttachNetworkInterfaceOutput {
  22642. s.AttachmentId = &v
  22643. return s
  22644. }
  22645. // Contains the parameters for AttachVolume.
  22646. type AttachVolumeInput struct {
  22647. _ struct{} `type:"structure"`
  22648. // The device name (for example, /dev/sdh or xvdh).
  22649. //
  22650. // Device is a required field
  22651. Device *string `type:"string" required:"true"`
  22652. // Checks whether you have the required permissions for the action, without
  22653. // actually making the request, and provides an error response. If you have
  22654. // the required permissions, the error response is DryRunOperation. Otherwise,
  22655. // it is UnauthorizedOperation.
  22656. DryRun *bool `locationName:"dryRun" type:"boolean"`
  22657. // The ID of the instance.
  22658. //
  22659. // InstanceId is a required field
  22660. InstanceId *string `type:"string" required:"true"`
  22661. // The ID of the EBS volume. The volume and instance must be within the same
  22662. // Availability Zone.
  22663. //
  22664. // VolumeId is a required field
  22665. VolumeId *string `type:"string" required:"true"`
  22666. }
  22667. // String returns the string representation
  22668. func (s AttachVolumeInput) String() string {
  22669. return awsutil.Prettify(s)
  22670. }
  22671. // GoString returns the string representation
  22672. func (s AttachVolumeInput) GoString() string {
  22673. return s.String()
  22674. }
  22675. // Validate inspects the fields of the type to determine if they are valid.
  22676. func (s *AttachVolumeInput) Validate() error {
  22677. invalidParams := request.ErrInvalidParams{Context: "AttachVolumeInput"}
  22678. if s.Device == nil {
  22679. invalidParams.Add(request.NewErrParamRequired("Device"))
  22680. }
  22681. if s.InstanceId == nil {
  22682. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  22683. }
  22684. if s.VolumeId == nil {
  22685. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  22686. }
  22687. if invalidParams.Len() > 0 {
  22688. return invalidParams
  22689. }
  22690. return nil
  22691. }
  22692. // SetDevice sets the Device field's value.
  22693. func (s *AttachVolumeInput) SetDevice(v string) *AttachVolumeInput {
  22694. s.Device = &v
  22695. return s
  22696. }
  22697. // SetDryRun sets the DryRun field's value.
  22698. func (s *AttachVolumeInput) SetDryRun(v bool) *AttachVolumeInput {
  22699. s.DryRun = &v
  22700. return s
  22701. }
  22702. // SetInstanceId sets the InstanceId field's value.
  22703. func (s *AttachVolumeInput) SetInstanceId(v string) *AttachVolumeInput {
  22704. s.InstanceId = &v
  22705. return s
  22706. }
  22707. // SetVolumeId sets the VolumeId field's value.
  22708. func (s *AttachVolumeInput) SetVolumeId(v string) *AttachVolumeInput {
  22709. s.VolumeId = &v
  22710. return s
  22711. }
  22712. // Contains the parameters for AttachVpnGateway.
  22713. type AttachVpnGatewayInput struct {
  22714. _ struct{} `type:"structure"`
  22715. // Checks whether you have the required permissions for the action, without
  22716. // actually making the request, and provides an error response. If you have
  22717. // the required permissions, the error response is DryRunOperation. Otherwise,
  22718. // it is UnauthorizedOperation.
  22719. DryRun *bool `locationName:"dryRun" type:"boolean"`
  22720. // The ID of the VPC.
  22721. //
  22722. // VpcId is a required field
  22723. VpcId *string `type:"string" required:"true"`
  22724. // The ID of the virtual private gateway.
  22725. //
  22726. // VpnGatewayId is a required field
  22727. VpnGatewayId *string `type:"string" required:"true"`
  22728. }
  22729. // String returns the string representation
  22730. func (s AttachVpnGatewayInput) String() string {
  22731. return awsutil.Prettify(s)
  22732. }
  22733. // GoString returns the string representation
  22734. func (s AttachVpnGatewayInput) GoString() string {
  22735. return s.String()
  22736. }
  22737. // Validate inspects the fields of the type to determine if they are valid.
  22738. func (s *AttachVpnGatewayInput) Validate() error {
  22739. invalidParams := request.ErrInvalidParams{Context: "AttachVpnGatewayInput"}
  22740. if s.VpcId == nil {
  22741. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  22742. }
  22743. if s.VpnGatewayId == nil {
  22744. invalidParams.Add(request.NewErrParamRequired("VpnGatewayId"))
  22745. }
  22746. if invalidParams.Len() > 0 {
  22747. return invalidParams
  22748. }
  22749. return nil
  22750. }
  22751. // SetDryRun sets the DryRun field's value.
  22752. func (s *AttachVpnGatewayInput) SetDryRun(v bool) *AttachVpnGatewayInput {
  22753. s.DryRun = &v
  22754. return s
  22755. }
  22756. // SetVpcId sets the VpcId field's value.
  22757. func (s *AttachVpnGatewayInput) SetVpcId(v string) *AttachVpnGatewayInput {
  22758. s.VpcId = &v
  22759. return s
  22760. }
  22761. // SetVpnGatewayId sets the VpnGatewayId field's value.
  22762. func (s *AttachVpnGatewayInput) SetVpnGatewayId(v string) *AttachVpnGatewayInput {
  22763. s.VpnGatewayId = &v
  22764. return s
  22765. }
  22766. // Contains the output of AttachVpnGateway.
  22767. type AttachVpnGatewayOutput struct {
  22768. _ struct{} `type:"structure"`
  22769. // Information about the attachment.
  22770. VpcAttachment *VpcAttachment `locationName:"attachment" type:"structure"`
  22771. }
  22772. // String returns the string representation
  22773. func (s AttachVpnGatewayOutput) String() string {
  22774. return awsutil.Prettify(s)
  22775. }
  22776. // GoString returns the string representation
  22777. func (s AttachVpnGatewayOutput) GoString() string {
  22778. return s.String()
  22779. }
  22780. // SetVpcAttachment sets the VpcAttachment field's value.
  22781. func (s *AttachVpnGatewayOutput) SetVpcAttachment(v *VpcAttachment) *AttachVpnGatewayOutput {
  22782. s.VpcAttachment = v
  22783. return s
  22784. }
  22785. // Describes a value for a resource attribute that is a Boolean value.
  22786. type AttributeBooleanValue struct {
  22787. _ struct{} `type:"structure"`
  22788. // The attribute value. The valid values are true or false.
  22789. Value *bool `locationName:"value" type:"boolean"`
  22790. }
  22791. // String returns the string representation
  22792. func (s AttributeBooleanValue) String() string {
  22793. return awsutil.Prettify(s)
  22794. }
  22795. // GoString returns the string representation
  22796. func (s AttributeBooleanValue) GoString() string {
  22797. return s.String()
  22798. }
  22799. // SetValue sets the Value field's value.
  22800. func (s *AttributeBooleanValue) SetValue(v bool) *AttributeBooleanValue {
  22801. s.Value = &v
  22802. return s
  22803. }
  22804. // Describes a value for a resource attribute that is a String.
  22805. type AttributeValue struct {
  22806. _ struct{} `type:"structure"`
  22807. // The attribute value. The value is case-sensitive.
  22808. Value *string `locationName:"value" type:"string"`
  22809. }
  22810. // String returns the string representation
  22811. func (s AttributeValue) String() string {
  22812. return awsutil.Prettify(s)
  22813. }
  22814. // GoString returns the string representation
  22815. func (s AttributeValue) GoString() string {
  22816. return s.String()
  22817. }
  22818. // SetValue sets the Value field's value.
  22819. func (s *AttributeValue) SetValue(v string) *AttributeValue {
  22820. s.Value = &v
  22821. return s
  22822. }
  22823. // Contains the parameters for AuthorizeSecurityGroupEgress.
  22824. type AuthorizeSecurityGroupEgressInput struct {
  22825. _ struct{} `type:"structure"`
  22826. // Not supported. Use a set of IP permissions to specify the CIDR.
  22827. CidrIp *string `locationName:"cidrIp" type:"string"`
  22828. // Checks whether you have the required permissions for the action, without
  22829. // actually making the request, and provides an error response. If you have
  22830. // the required permissions, the error response is DryRunOperation. Otherwise,
  22831. // it is UnauthorizedOperation.
  22832. DryRun *bool `locationName:"dryRun" type:"boolean"`
  22833. // Not supported. Use a set of IP permissions to specify the port.
  22834. FromPort *int64 `locationName:"fromPort" type:"integer"`
  22835. // The ID of the security group.
  22836. //
  22837. // GroupId is a required field
  22838. GroupId *string `locationName:"groupId" type:"string" required:"true"`
  22839. // One or more sets of IP permissions. You can't specify a destination security
  22840. // group and a CIDR IP address range in the same set of permissions.
  22841. IpPermissions []*IpPermission `locationName:"ipPermissions" locationNameList:"item" type:"list"`
  22842. // Not supported. Use a set of IP permissions to specify the protocol name or
  22843. // number.
  22844. IpProtocol *string `locationName:"ipProtocol" type:"string"`
  22845. // Not supported. Use a set of IP permissions to specify a destination security
  22846. // group.
  22847. SourceSecurityGroupName *string `locationName:"sourceSecurityGroupName" type:"string"`
  22848. // Not supported. Use a set of IP permissions to specify a destination security
  22849. // group.
  22850. SourceSecurityGroupOwnerId *string `locationName:"sourceSecurityGroupOwnerId" type:"string"`
  22851. // Not supported. Use a set of IP permissions to specify the port.
  22852. ToPort *int64 `locationName:"toPort" type:"integer"`
  22853. }
  22854. // String returns the string representation
  22855. func (s AuthorizeSecurityGroupEgressInput) String() string {
  22856. return awsutil.Prettify(s)
  22857. }
  22858. // GoString returns the string representation
  22859. func (s AuthorizeSecurityGroupEgressInput) GoString() string {
  22860. return s.String()
  22861. }
  22862. // Validate inspects the fields of the type to determine if they are valid.
  22863. func (s *AuthorizeSecurityGroupEgressInput) Validate() error {
  22864. invalidParams := request.ErrInvalidParams{Context: "AuthorizeSecurityGroupEgressInput"}
  22865. if s.GroupId == nil {
  22866. invalidParams.Add(request.NewErrParamRequired("GroupId"))
  22867. }
  22868. if invalidParams.Len() > 0 {
  22869. return invalidParams
  22870. }
  22871. return nil
  22872. }
  22873. // SetCidrIp sets the CidrIp field's value.
  22874. func (s *AuthorizeSecurityGroupEgressInput) SetCidrIp(v string) *AuthorizeSecurityGroupEgressInput {
  22875. s.CidrIp = &v
  22876. return s
  22877. }
  22878. // SetDryRun sets the DryRun field's value.
  22879. func (s *AuthorizeSecurityGroupEgressInput) SetDryRun(v bool) *AuthorizeSecurityGroupEgressInput {
  22880. s.DryRun = &v
  22881. return s
  22882. }
  22883. // SetFromPort sets the FromPort field's value.
  22884. func (s *AuthorizeSecurityGroupEgressInput) SetFromPort(v int64) *AuthorizeSecurityGroupEgressInput {
  22885. s.FromPort = &v
  22886. return s
  22887. }
  22888. // SetGroupId sets the GroupId field's value.
  22889. func (s *AuthorizeSecurityGroupEgressInput) SetGroupId(v string) *AuthorizeSecurityGroupEgressInput {
  22890. s.GroupId = &v
  22891. return s
  22892. }
  22893. // SetIpPermissions sets the IpPermissions field's value.
  22894. func (s *AuthorizeSecurityGroupEgressInput) SetIpPermissions(v []*IpPermission) *AuthorizeSecurityGroupEgressInput {
  22895. s.IpPermissions = v
  22896. return s
  22897. }
  22898. // SetIpProtocol sets the IpProtocol field's value.
  22899. func (s *AuthorizeSecurityGroupEgressInput) SetIpProtocol(v string) *AuthorizeSecurityGroupEgressInput {
  22900. s.IpProtocol = &v
  22901. return s
  22902. }
  22903. // SetSourceSecurityGroupName sets the SourceSecurityGroupName field's value.
  22904. func (s *AuthorizeSecurityGroupEgressInput) SetSourceSecurityGroupName(v string) *AuthorizeSecurityGroupEgressInput {
  22905. s.SourceSecurityGroupName = &v
  22906. return s
  22907. }
  22908. // SetSourceSecurityGroupOwnerId sets the SourceSecurityGroupOwnerId field's value.
  22909. func (s *AuthorizeSecurityGroupEgressInput) SetSourceSecurityGroupOwnerId(v string) *AuthorizeSecurityGroupEgressInput {
  22910. s.SourceSecurityGroupOwnerId = &v
  22911. return s
  22912. }
  22913. // SetToPort sets the ToPort field's value.
  22914. func (s *AuthorizeSecurityGroupEgressInput) SetToPort(v int64) *AuthorizeSecurityGroupEgressInput {
  22915. s.ToPort = &v
  22916. return s
  22917. }
  22918. type AuthorizeSecurityGroupEgressOutput struct {
  22919. _ struct{} `type:"structure"`
  22920. }
  22921. // String returns the string representation
  22922. func (s AuthorizeSecurityGroupEgressOutput) String() string {
  22923. return awsutil.Prettify(s)
  22924. }
  22925. // GoString returns the string representation
  22926. func (s AuthorizeSecurityGroupEgressOutput) GoString() string {
  22927. return s.String()
  22928. }
  22929. // Contains the parameters for AuthorizeSecurityGroupIngress.
  22930. type AuthorizeSecurityGroupIngressInput struct {
  22931. _ struct{} `type:"structure"`
  22932. // The CIDR IPv4 address range. You can't specify this parameter when specifying
  22933. // a source security group.
  22934. CidrIp *string `type:"string"`
  22935. // Checks whether you have the required permissions for the action, without
  22936. // actually making the request, and provides an error response. If you have
  22937. // the required permissions, the error response is DryRunOperation. Otherwise,
  22938. // it is UnauthorizedOperation.
  22939. DryRun *bool `locationName:"dryRun" type:"boolean"`
  22940. // The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6
  22941. // type number. For the ICMP/ICMPv6 type number, use -1 to specify all types.
  22942. // If you specify all ICMP/ICMPv6 types, you must specify all codes.
  22943. FromPort *int64 `type:"integer"`
  22944. // The ID of the security group. You must specify either the security group
  22945. // ID or the security group name in the request. For security groups in a nondefault
  22946. // VPC, you must specify the security group ID.
  22947. GroupId *string `type:"string"`
  22948. // [EC2-Classic, default VPC] The name of the security group. You must specify
  22949. // either the security group ID or the security group name in the request.
  22950. GroupName *string `type:"string"`
  22951. // One or more sets of IP permissions. Can be used to specify multiple rules
  22952. // in a single command.
  22953. IpPermissions []*IpPermission `locationNameList:"item" type:"list"`
  22954. // The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)).
  22955. // (VPC only) Use -1 to specify all protocols. If you specify -1, or a protocol
  22956. // number other than tcp, udp, icmp, or 58 (ICMPv6), traffic on all ports is
  22957. // allowed, regardless of any ports you specify. For tcp, udp, and icmp, you
  22958. // must specify a port range. For protocol 58 (ICMPv6), you can optionally specify
  22959. // a port range; if you don't, traffic for all types and codes is allowed.
  22960. IpProtocol *string `type:"string"`
  22961. // [EC2-Classic, default VPC] The name of the source security group. You can't
  22962. // specify this parameter in combination with the following parameters: the
  22963. // CIDR IP address range, the start of the port range, the IP protocol, and
  22964. // the end of the port range. Creates rules that grant full ICMP, UDP, and TCP
  22965. // access. To create a rule with a specific IP protocol and port range, use
  22966. // a set of IP permissions instead. For EC2-VPC, the source security group must
  22967. // be in the same VPC.
  22968. SourceSecurityGroupName *string `type:"string"`
  22969. // [EC2-Classic] The AWS account ID for the source security group, if the source
  22970. // security group is in a different account. You can't specify this parameter
  22971. // in combination with the following parameters: the CIDR IP address range,
  22972. // the IP protocol, the start of the port range, and the end of the port range.
  22973. // Creates rules that grant full ICMP, UDP, and TCP access. To create a rule
  22974. // with a specific IP protocol and port range, use a set of IP permissions instead.
  22975. SourceSecurityGroupOwnerId *string `type:"string"`
  22976. // The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code
  22977. // number. For the ICMP/ICMPv6 code number, use -1 to specify all codes. If
  22978. // you specify all ICMP/ICMPv6 types, you must specify all codes.
  22979. ToPort *int64 `type:"integer"`
  22980. }
  22981. // String returns the string representation
  22982. func (s AuthorizeSecurityGroupIngressInput) String() string {
  22983. return awsutil.Prettify(s)
  22984. }
  22985. // GoString returns the string representation
  22986. func (s AuthorizeSecurityGroupIngressInput) GoString() string {
  22987. return s.String()
  22988. }
  22989. // SetCidrIp sets the CidrIp field's value.
  22990. func (s *AuthorizeSecurityGroupIngressInput) SetCidrIp(v string) *AuthorizeSecurityGroupIngressInput {
  22991. s.CidrIp = &v
  22992. return s
  22993. }
  22994. // SetDryRun sets the DryRun field's value.
  22995. func (s *AuthorizeSecurityGroupIngressInput) SetDryRun(v bool) *AuthorizeSecurityGroupIngressInput {
  22996. s.DryRun = &v
  22997. return s
  22998. }
  22999. // SetFromPort sets the FromPort field's value.
  23000. func (s *AuthorizeSecurityGroupIngressInput) SetFromPort(v int64) *AuthorizeSecurityGroupIngressInput {
  23001. s.FromPort = &v
  23002. return s
  23003. }
  23004. // SetGroupId sets the GroupId field's value.
  23005. func (s *AuthorizeSecurityGroupIngressInput) SetGroupId(v string) *AuthorizeSecurityGroupIngressInput {
  23006. s.GroupId = &v
  23007. return s
  23008. }
  23009. // SetGroupName sets the GroupName field's value.
  23010. func (s *AuthorizeSecurityGroupIngressInput) SetGroupName(v string) *AuthorizeSecurityGroupIngressInput {
  23011. s.GroupName = &v
  23012. return s
  23013. }
  23014. // SetIpPermissions sets the IpPermissions field's value.
  23015. func (s *AuthorizeSecurityGroupIngressInput) SetIpPermissions(v []*IpPermission) *AuthorizeSecurityGroupIngressInput {
  23016. s.IpPermissions = v
  23017. return s
  23018. }
  23019. // SetIpProtocol sets the IpProtocol field's value.
  23020. func (s *AuthorizeSecurityGroupIngressInput) SetIpProtocol(v string) *AuthorizeSecurityGroupIngressInput {
  23021. s.IpProtocol = &v
  23022. return s
  23023. }
  23024. // SetSourceSecurityGroupName sets the SourceSecurityGroupName field's value.
  23025. func (s *AuthorizeSecurityGroupIngressInput) SetSourceSecurityGroupName(v string) *AuthorizeSecurityGroupIngressInput {
  23026. s.SourceSecurityGroupName = &v
  23027. return s
  23028. }
  23029. // SetSourceSecurityGroupOwnerId sets the SourceSecurityGroupOwnerId field's value.
  23030. func (s *AuthorizeSecurityGroupIngressInput) SetSourceSecurityGroupOwnerId(v string) *AuthorizeSecurityGroupIngressInput {
  23031. s.SourceSecurityGroupOwnerId = &v
  23032. return s
  23033. }
  23034. // SetToPort sets the ToPort field's value.
  23035. func (s *AuthorizeSecurityGroupIngressInput) SetToPort(v int64) *AuthorizeSecurityGroupIngressInput {
  23036. s.ToPort = &v
  23037. return s
  23038. }
  23039. type AuthorizeSecurityGroupIngressOutput struct {
  23040. _ struct{} `type:"structure"`
  23041. }
  23042. // String returns the string representation
  23043. func (s AuthorizeSecurityGroupIngressOutput) String() string {
  23044. return awsutil.Prettify(s)
  23045. }
  23046. // GoString returns the string representation
  23047. func (s AuthorizeSecurityGroupIngressOutput) GoString() string {
  23048. return s.String()
  23049. }
  23050. // Describes an Availability Zone.
  23051. type AvailabilityZone struct {
  23052. _ struct{} `type:"structure"`
  23053. // Any messages about the Availability Zone.
  23054. Messages []*AvailabilityZoneMessage `locationName:"messageSet" locationNameList:"item" type:"list"`
  23055. // The name of the region.
  23056. RegionName *string `locationName:"regionName" type:"string"`
  23057. // The state of the Availability Zone.
  23058. State *string `locationName:"zoneState" type:"string" enum:"AvailabilityZoneState"`
  23059. // The name of the Availability Zone.
  23060. ZoneName *string `locationName:"zoneName" type:"string"`
  23061. }
  23062. // String returns the string representation
  23063. func (s AvailabilityZone) String() string {
  23064. return awsutil.Prettify(s)
  23065. }
  23066. // GoString returns the string representation
  23067. func (s AvailabilityZone) GoString() string {
  23068. return s.String()
  23069. }
  23070. // SetMessages sets the Messages field's value.
  23071. func (s *AvailabilityZone) SetMessages(v []*AvailabilityZoneMessage) *AvailabilityZone {
  23072. s.Messages = v
  23073. return s
  23074. }
  23075. // SetRegionName sets the RegionName field's value.
  23076. func (s *AvailabilityZone) SetRegionName(v string) *AvailabilityZone {
  23077. s.RegionName = &v
  23078. return s
  23079. }
  23080. // SetState sets the State field's value.
  23081. func (s *AvailabilityZone) SetState(v string) *AvailabilityZone {
  23082. s.State = &v
  23083. return s
  23084. }
  23085. // SetZoneName sets the ZoneName field's value.
  23086. func (s *AvailabilityZone) SetZoneName(v string) *AvailabilityZone {
  23087. s.ZoneName = &v
  23088. return s
  23089. }
  23090. // Describes a message about an Availability Zone.
  23091. type AvailabilityZoneMessage struct {
  23092. _ struct{} `type:"structure"`
  23093. // The message about the Availability Zone.
  23094. Message *string `locationName:"message" type:"string"`
  23095. }
  23096. // String returns the string representation
  23097. func (s AvailabilityZoneMessage) String() string {
  23098. return awsutil.Prettify(s)
  23099. }
  23100. // GoString returns the string representation
  23101. func (s AvailabilityZoneMessage) GoString() string {
  23102. return s.String()
  23103. }
  23104. // SetMessage sets the Message field's value.
  23105. func (s *AvailabilityZoneMessage) SetMessage(v string) *AvailabilityZoneMessage {
  23106. s.Message = &v
  23107. return s
  23108. }
  23109. // The capacity information for instances launched onto the Dedicated Host.
  23110. type AvailableCapacity struct {
  23111. _ struct{} `type:"structure"`
  23112. // The total number of instances that the Dedicated Host supports.
  23113. AvailableInstanceCapacity []*InstanceCapacity `locationName:"availableInstanceCapacity" locationNameList:"item" type:"list"`
  23114. // The number of vCPUs available on the Dedicated Host.
  23115. AvailableVCpus *int64 `locationName:"availableVCpus" type:"integer"`
  23116. }
  23117. // String returns the string representation
  23118. func (s AvailableCapacity) String() string {
  23119. return awsutil.Prettify(s)
  23120. }
  23121. // GoString returns the string representation
  23122. func (s AvailableCapacity) GoString() string {
  23123. return s.String()
  23124. }
  23125. // SetAvailableInstanceCapacity sets the AvailableInstanceCapacity field's value.
  23126. func (s *AvailableCapacity) SetAvailableInstanceCapacity(v []*InstanceCapacity) *AvailableCapacity {
  23127. s.AvailableInstanceCapacity = v
  23128. return s
  23129. }
  23130. // SetAvailableVCpus sets the AvailableVCpus field's value.
  23131. func (s *AvailableCapacity) SetAvailableVCpus(v int64) *AvailableCapacity {
  23132. s.AvailableVCpus = &v
  23133. return s
  23134. }
  23135. type BlobAttributeValue struct {
  23136. _ struct{} `type:"structure"`
  23137. // Value is automatically base64 encoded/decoded by the SDK.
  23138. Value []byte `locationName:"value" type:"blob"`
  23139. }
  23140. // String returns the string representation
  23141. func (s BlobAttributeValue) String() string {
  23142. return awsutil.Prettify(s)
  23143. }
  23144. // GoString returns the string representation
  23145. func (s BlobAttributeValue) GoString() string {
  23146. return s.String()
  23147. }
  23148. // SetValue sets the Value field's value.
  23149. func (s *BlobAttributeValue) SetValue(v []byte) *BlobAttributeValue {
  23150. s.Value = v
  23151. return s
  23152. }
  23153. // Describes a block device mapping.
  23154. type BlockDeviceMapping struct {
  23155. _ struct{} `type:"structure"`
  23156. // The device name (for example, /dev/sdh or xvdh).
  23157. DeviceName *string `locationName:"deviceName" type:"string"`
  23158. // Parameters used to automatically set up EBS volumes when the instance is
  23159. // launched.
  23160. Ebs *EbsBlockDevice `locationName:"ebs" type:"structure"`
  23161. // Suppresses the specified device included in the block device mapping of the
  23162. // AMI.
  23163. NoDevice *string `locationName:"noDevice" type:"string"`
  23164. // The virtual device name (ephemeralN). Instance store volumes are numbered
  23165. // starting from 0. An instance type with 2 available instance store volumes
  23166. // can specify mappings for ephemeral0 and ephemeral1.The number of available
  23167. // instance store volumes depends on the instance type. After you connect to
  23168. // the instance, you must mount the volume.
  23169. //
  23170. // Constraints: For M3 instances, you must specify instance store volumes in
  23171. // the block device mapping for the instance. When you launch an M3 instance,
  23172. // we ignore any instance store volumes specified in the block device mapping
  23173. // for the AMI.
  23174. VirtualName *string `locationName:"virtualName" type:"string"`
  23175. }
  23176. // String returns the string representation
  23177. func (s BlockDeviceMapping) String() string {
  23178. return awsutil.Prettify(s)
  23179. }
  23180. // GoString returns the string representation
  23181. func (s BlockDeviceMapping) GoString() string {
  23182. return s.String()
  23183. }
  23184. // SetDeviceName sets the DeviceName field's value.
  23185. func (s *BlockDeviceMapping) SetDeviceName(v string) *BlockDeviceMapping {
  23186. s.DeviceName = &v
  23187. return s
  23188. }
  23189. // SetEbs sets the Ebs field's value.
  23190. func (s *BlockDeviceMapping) SetEbs(v *EbsBlockDevice) *BlockDeviceMapping {
  23191. s.Ebs = v
  23192. return s
  23193. }
  23194. // SetNoDevice sets the NoDevice field's value.
  23195. func (s *BlockDeviceMapping) SetNoDevice(v string) *BlockDeviceMapping {
  23196. s.NoDevice = &v
  23197. return s
  23198. }
  23199. // SetVirtualName sets the VirtualName field's value.
  23200. func (s *BlockDeviceMapping) SetVirtualName(v string) *BlockDeviceMapping {
  23201. s.VirtualName = &v
  23202. return s
  23203. }
  23204. // Contains the parameters for BundleInstance.
  23205. type BundleInstanceInput struct {
  23206. _ struct{} `type:"structure"`
  23207. // Checks whether you have the required permissions for the action, without
  23208. // actually making the request, and provides an error response. If you have
  23209. // the required permissions, the error response is DryRunOperation. Otherwise,
  23210. // it is UnauthorizedOperation.
  23211. DryRun *bool `locationName:"dryRun" type:"boolean"`
  23212. // The ID of the instance to bundle.
  23213. //
  23214. // Type: String
  23215. //
  23216. // Default: None
  23217. //
  23218. // Required: Yes
  23219. //
  23220. // InstanceId is a required field
  23221. InstanceId *string `type:"string" required:"true"`
  23222. // The bucket in which to store the AMI. You can specify a bucket that you already
  23223. // own or a new bucket that Amazon EC2 creates on your behalf. If you specify
  23224. // a bucket that belongs to someone else, Amazon EC2 returns an error.
  23225. //
  23226. // Storage is a required field
  23227. Storage *Storage `type:"structure" required:"true"`
  23228. }
  23229. // String returns the string representation
  23230. func (s BundleInstanceInput) String() string {
  23231. return awsutil.Prettify(s)
  23232. }
  23233. // GoString returns the string representation
  23234. func (s BundleInstanceInput) GoString() string {
  23235. return s.String()
  23236. }
  23237. // Validate inspects the fields of the type to determine if they are valid.
  23238. func (s *BundleInstanceInput) Validate() error {
  23239. invalidParams := request.ErrInvalidParams{Context: "BundleInstanceInput"}
  23240. if s.InstanceId == nil {
  23241. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  23242. }
  23243. if s.Storage == nil {
  23244. invalidParams.Add(request.NewErrParamRequired("Storage"))
  23245. }
  23246. if invalidParams.Len() > 0 {
  23247. return invalidParams
  23248. }
  23249. return nil
  23250. }
  23251. // SetDryRun sets the DryRun field's value.
  23252. func (s *BundleInstanceInput) SetDryRun(v bool) *BundleInstanceInput {
  23253. s.DryRun = &v
  23254. return s
  23255. }
  23256. // SetInstanceId sets the InstanceId field's value.
  23257. func (s *BundleInstanceInput) SetInstanceId(v string) *BundleInstanceInput {
  23258. s.InstanceId = &v
  23259. return s
  23260. }
  23261. // SetStorage sets the Storage field's value.
  23262. func (s *BundleInstanceInput) SetStorage(v *Storage) *BundleInstanceInput {
  23263. s.Storage = v
  23264. return s
  23265. }
  23266. // Contains the output of BundleInstance.
  23267. type BundleInstanceOutput struct {
  23268. _ struct{} `type:"structure"`
  23269. // Information about the bundle task.
  23270. BundleTask *BundleTask `locationName:"bundleInstanceTask" type:"structure"`
  23271. }
  23272. // String returns the string representation
  23273. func (s BundleInstanceOutput) String() string {
  23274. return awsutil.Prettify(s)
  23275. }
  23276. // GoString returns the string representation
  23277. func (s BundleInstanceOutput) GoString() string {
  23278. return s.String()
  23279. }
  23280. // SetBundleTask sets the BundleTask field's value.
  23281. func (s *BundleInstanceOutput) SetBundleTask(v *BundleTask) *BundleInstanceOutput {
  23282. s.BundleTask = v
  23283. return s
  23284. }
  23285. // Describes a bundle task.
  23286. type BundleTask struct {
  23287. _ struct{} `type:"structure"`
  23288. // The ID of the bundle task.
  23289. BundleId *string `locationName:"bundleId" type:"string"`
  23290. // If the task fails, a description of the error.
  23291. BundleTaskError *BundleTaskError `locationName:"error" type:"structure"`
  23292. // The ID of the instance associated with this bundle task.
  23293. InstanceId *string `locationName:"instanceId" type:"string"`
  23294. // The level of task completion, as a percent (for example, 20%).
  23295. Progress *string `locationName:"progress" type:"string"`
  23296. // The time this task started.
  23297. StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601"`
  23298. // The state of the task.
  23299. State *string `locationName:"state" type:"string" enum:"BundleTaskState"`
  23300. // The Amazon S3 storage locations.
  23301. Storage *Storage `locationName:"storage" type:"structure"`
  23302. // The time of the most recent update for the task.
  23303. UpdateTime *time.Time `locationName:"updateTime" type:"timestamp" timestampFormat:"iso8601"`
  23304. }
  23305. // String returns the string representation
  23306. func (s BundleTask) String() string {
  23307. return awsutil.Prettify(s)
  23308. }
  23309. // GoString returns the string representation
  23310. func (s BundleTask) GoString() string {
  23311. return s.String()
  23312. }
  23313. // SetBundleId sets the BundleId field's value.
  23314. func (s *BundleTask) SetBundleId(v string) *BundleTask {
  23315. s.BundleId = &v
  23316. return s
  23317. }
  23318. // SetBundleTaskError sets the BundleTaskError field's value.
  23319. func (s *BundleTask) SetBundleTaskError(v *BundleTaskError) *BundleTask {
  23320. s.BundleTaskError = v
  23321. return s
  23322. }
  23323. // SetInstanceId sets the InstanceId field's value.
  23324. func (s *BundleTask) SetInstanceId(v string) *BundleTask {
  23325. s.InstanceId = &v
  23326. return s
  23327. }
  23328. // SetProgress sets the Progress field's value.
  23329. func (s *BundleTask) SetProgress(v string) *BundleTask {
  23330. s.Progress = &v
  23331. return s
  23332. }
  23333. // SetStartTime sets the StartTime field's value.
  23334. func (s *BundleTask) SetStartTime(v time.Time) *BundleTask {
  23335. s.StartTime = &v
  23336. return s
  23337. }
  23338. // SetState sets the State field's value.
  23339. func (s *BundleTask) SetState(v string) *BundleTask {
  23340. s.State = &v
  23341. return s
  23342. }
  23343. // SetStorage sets the Storage field's value.
  23344. func (s *BundleTask) SetStorage(v *Storage) *BundleTask {
  23345. s.Storage = v
  23346. return s
  23347. }
  23348. // SetUpdateTime sets the UpdateTime field's value.
  23349. func (s *BundleTask) SetUpdateTime(v time.Time) *BundleTask {
  23350. s.UpdateTime = &v
  23351. return s
  23352. }
  23353. // Describes an error for BundleInstance.
  23354. type BundleTaskError struct {
  23355. _ struct{} `type:"structure"`
  23356. // The error code.
  23357. Code *string `locationName:"code" type:"string"`
  23358. // The error message.
  23359. Message *string `locationName:"message" type:"string"`
  23360. }
  23361. // String returns the string representation
  23362. func (s BundleTaskError) String() string {
  23363. return awsutil.Prettify(s)
  23364. }
  23365. // GoString returns the string representation
  23366. func (s BundleTaskError) GoString() string {
  23367. return s.String()
  23368. }
  23369. // SetCode sets the Code field's value.
  23370. func (s *BundleTaskError) SetCode(v string) *BundleTaskError {
  23371. s.Code = &v
  23372. return s
  23373. }
  23374. // SetMessage sets the Message field's value.
  23375. func (s *BundleTaskError) SetMessage(v string) *BundleTaskError {
  23376. s.Message = &v
  23377. return s
  23378. }
  23379. // Contains the parameters for CancelBundleTask.
  23380. type CancelBundleTaskInput struct {
  23381. _ struct{} `type:"structure"`
  23382. // The ID of the bundle task.
  23383. //
  23384. // BundleId is a required field
  23385. BundleId *string `type:"string" required:"true"`
  23386. // Checks whether you have the required permissions for the action, without
  23387. // actually making the request, and provides an error response. If you have
  23388. // the required permissions, the error response is DryRunOperation. Otherwise,
  23389. // it is UnauthorizedOperation.
  23390. DryRun *bool `locationName:"dryRun" type:"boolean"`
  23391. }
  23392. // String returns the string representation
  23393. func (s CancelBundleTaskInput) String() string {
  23394. return awsutil.Prettify(s)
  23395. }
  23396. // GoString returns the string representation
  23397. func (s CancelBundleTaskInput) GoString() string {
  23398. return s.String()
  23399. }
  23400. // Validate inspects the fields of the type to determine if they are valid.
  23401. func (s *CancelBundleTaskInput) Validate() error {
  23402. invalidParams := request.ErrInvalidParams{Context: "CancelBundleTaskInput"}
  23403. if s.BundleId == nil {
  23404. invalidParams.Add(request.NewErrParamRequired("BundleId"))
  23405. }
  23406. if invalidParams.Len() > 0 {
  23407. return invalidParams
  23408. }
  23409. return nil
  23410. }
  23411. // SetBundleId sets the BundleId field's value.
  23412. func (s *CancelBundleTaskInput) SetBundleId(v string) *CancelBundleTaskInput {
  23413. s.BundleId = &v
  23414. return s
  23415. }
  23416. // SetDryRun sets the DryRun field's value.
  23417. func (s *CancelBundleTaskInput) SetDryRun(v bool) *CancelBundleTaskInput {
  23418. s.DryRun = &v
  23419. return s
  23420. }
  23421. // Contains the output of CancelBundleTask.
  23422. type CancelBundleTaskOutput struct {
  23423. _ struct{} `type:"structure"`
  23424. // Information about the bundle task.
  23425. BundleTask *BundleTask `locationName:"bundleInstanceTask" type:"structure"`
  23426. }
  23427. // String returns the string representation
  23428. func (s CancelBundleTaskOutput) String() string {
  23429. return awsutil.Prettify(s)
  23430. }
  23431. // GoString returns the string representation
  23432. func (s CancelBundleTaskOutput) GoString() string {
  23433. return s.String()
  23434. }
  23435. // SetBundleTask sets the BundleTask field's value.
  23436. func (s *CancelBundleTaskOutput) SetBundleTask(v *BundleTask) *CancelBundleTaskOutput {
  23437. s.BundleTask = v
  23438. return s
  23439. }
  23440. // Contains the parameters for CancelConversionTask.
  23441. type CancelConversionTaskInput struct {
  23442. _ struct{} `type:"structure"`
  23443. // The ID of the conversion task.
  23444. //
  23445. // ConversionTaskId is a required field
  23446. ConversionTaskId *string `locationName:"conversionTaskId" type:"string" required:"true"`
  23447. // Checks whether you have the required permissions for the action, without
  23448. // actually making the request, and provides an error response. If you have
  23449. // the required permissions, the error response is DryRunOperation. Otherwise,
  23450. // it is UnauthorizedOperation.
  23451. DryRun *bool `locationName:"dryRun" type:"boolean"`
  23452. // The reason for canceling the conversion task.
  23453. ReasonMessage *string `locationName:"reasonMessage" type:"string"`
  23454. }
  23455. // String returns the string representation
  23456. func (s CancelConversionTaskInput) String() string {
  23457. return awsutil.Prettify(s)
  23458. }
  23459. // GoString returns the string representation
  23460. func (s CancelConversionTaskInput) GoString() string {
  23461. return s.String()
  23462. }
  23463. // Validate inspects the fields of the type to determine if they are valid.
  23464. func (s *CancelConversionTaskInput) Validate() error {
  23465. invalidParams := request.ErrInvalidParams{Context: "CancelConversionTaskInput"}
  23466. if s.ConversionTaskId == nil {
  23467. invalidParams.Add(request.NewErrParamRequired("ConversionTaskId"))
  23468. }
  23469. if invalidParams.Len() > 0 {
  23470. return invalidParams
  23471. }
  23472. return nil
  23473. }
  23474. // SetConversionTaskId sets the ConversionTaskId field's value.
  23475. func (s *CancelConversionTaskInput) SetConversionTaskId(v string) *CancelConversionTaskInput {
  23476. s.ConversionTaskId = &v
  23477. return s
  23478. }
  23479. // SetDryRun sets the DryRun field's value.
  23480. func (s *CancelConversionTaskInput) SetDryRun(v bool) *CancelConversionTaskInput {
  23481. s.DryRun = &v
  23482. return s
  23483. }
  23484. // SetReasonMessage sets the ReasonMessage field's value.
  23485. func (s *CancelConversionTaskInput) SetReasonMessage(v string) *CancelConversionTaskInput {
  23486. s.ReasonMessage = &v
  23487. return s
  23488. }
  23489. type CancelConversionTaskOutput struct {
  23490. _ struct{} `type:"structure"`
  23491. }
  23492. // String returns the string representation
  23493. func (s CancelConversionTaskOutput) String() string {
  23494. return awsutil.Prettify(s)
  23495. }
  23496. // GoString returns the string representation
  23497. func (s CancelConversionTaskOutput) GoString() string {
  23498. return s.String()
  23499. }
  23500. // Contains the parameters for CancelExportTask.
  23501. type CancelExportTaskInput struct {
  23502. _ struct{} `type:"structure"`
  23503. // The ID of the export task. This is the ID returned by CreateInstanceExportTask.
  23504. //
  23505. // ExportTaskId is a required field
  23506. ExportTaskId *string `locationName:"exportTaskId" type:"string" required:"true"`
  23507. }
  23508. // String returns the string representation
  23509. func (s CancelExportTaskInput) String() string {
  23510. return awsutil.Prettify(s)
  23511. }
  23512. // GoString returns the string representation
  23513. func (s CancelExportTaskInput) GoString() string {
  23514. return s.String()
  23515. }
  23516. // Validate inspects the fields of the type to determine if they are valid.
  23517. func (s *CancelExportTaskInput) Validate() error {
  23518. invalidParams := request.ErrInvalidParams{Context: "CancelExportTaskInput"}
  23519. if s.ExportTaskId == nil {
  23520. invalidParams.Add(request.NewErrParamRequired("ExportTaskId"))
  23521. }
  23522. if invalidParams.Len() > 0 {
  23523. return invalidParams
  23524. }
  23525. return nil
  23526. }
  23527. // SetExportTaskId sets the ExportTaskId field's value.
  23528. func (s *CancelExportTaskInput) SetExportTaskId(v string) *CancelExportTaskInput {
  23529. s.ExportTaskId = &v
  23530. return s
  23531. }
  23532. type CancelExportTaskOutput struct {
  23533. _ struct{} `type:"structure"`
  23534. }
  23535. // String returns the string representation
  23536. func (s CancelExportTaskOutput) String() string {
  23537. return awsutil.Prettify(s)
  23538. }
  23539. // GoString returns the string representation
  23540. func (s CancelExportTaskOutput) GoString() string {
  23541. return s.String()
  23542. }
  23543. // Contains the parameters for CancelImportTask.
  23544. type CancelImportTaskInput struct {
  23545. _ struct{} `type:"structure"`
  23546. // The reason for canceling the task.
  23547. CancelReason *string `type:"string"`
  23548. // Checks whether you have the required permissions for the action, without
  23549. // actually making the request, and provides an error response. If you have
  23550. // the required permissions, the error response is DryRunOperation. Otherwise,
  23551. // it is UnauthorizedOperation.
  23552. DryRun *bool `type:"boolean"`
  23553. // The ID of the import image or import snapshot task to be canceled.
  23554. ImportTaskId *string `type:"string"`
  23555. }
  23556. // String returns the string representation
  23557. func (s CancelImportTaskInput) String() string {
  23558. return awsutil.Prettify(s)
  23559. }
  23560. // GoString returns the string representation
  23561. func (s CancelImportTaskInput) GoString() string {
  23562. return s.String()
  23563. }
  23564. // SetCancelReason sets the CancelReason field's value.
  23565. func (s *CancelImportTaskInput) SetCancelReason(v string) *CancelImportTaskInput {
  23566. s.CancelReason = &v
  23567. return s
  23568. }
  23569. // SetDryRun sets the DryRun field's value.
  23570. func (s *CancelImportTaskInput) SetDryRun(v bool) *CancelImportTaskInput {
  23571. s.DryRun = &v
  23572. return s
  23573. }
  23574. // SetImportTaskId sets the ImportTaskId field's value.
  23575. func (s *CancelImportTaskInput) SetImportTaskId(v string) *CancelImportTaskInput {
  23576. s.ImportTaskId = &v
  23577. return s
  23578. }
  23579. // Contains the output for CancelImportTask.
  23580. type CancelImportTaskOutput struct {
  23581. _ struct{} `type:"structure"`
  23582. // The ID of the task being canceled.
  23583. ImportTaskId *string `locationName:"importTaskId" type:"string"`
  23584. // The current state of the task being canceled.
  23585. PreviousState *string `locationName:"previousState" type:"string"`
  23586. // The current state of the task being canceled.
  23587. State *string `locationName:"state" type:"string"`
  23588. }
  23589. // String returns the string representation
  23590. func (s CancelImportTaskOutput) String() string {
  23591. return awsutil.Prettify(s)
  23592. }
  23593. // GoString returns the string representation
  23594. func (s CancelImportTaskOutput) GoString() string {
  23595. return s.String()
  23596. }
  23597. // SetImportTaskId sets the ImportTaskId field's value.
  23598. func (s *CancelImportTaskOutput) SetImportTaskId(v string) *CancelImportTaskOutput {
  23599. s.ImportTaskId = &v
  23600. return s
  23601. }
  23602. // SetPreviousState sets the PreviousState field's value.
  23603. func (s *CancelImportTaskOutput) SetPreviousState(v string) *CancelImportTaskOutput {
  23604. s.PreviousState = &v
  23605. return s
  23606. }
  23607. // SetState sets the State field's value.
  23608. func (s *CancelImportTaskOutput) SetState(v string) *CancelImportTaskOutput {
  23609. s.State = &v
  23610. return s
  23611. }
  23612. // Contains the parameters for CancelReservedInstancesListing.
  23613. type CancelReservedInstancesListingInput struct {
  23614. _ struct{} `type:"structure"`
  23615. // The ID of the Reserved Instance listing.
  23616. //
  23617. // ReservedInstancesListingId is a required field
  23618. ReservedInstancesListingId *string `locationName:"reservedInstancesListingId" type:"string" required:"true"`
  23619. }
  23620. // String returns the string representation
  23621. func (s CancelReservedInstancesListingInput) String() string {
  23622. return awsutil.Prettify(s)
  23623. }
  23624. // GoString returns the string representation
  23625. func (s CancelReservedInstancesListingInput) GoString() string {
  23626. return s.String()
  23627. }
  23628. // Validate inspects the fields of the type to determine if they are valid.
  23629. func (s *CancelReservedInstancesListingInput) Validate() error {
  23630. invalidParams := request.ErrInvalidParams{Context: "CancelReservedInstancesListingInput"}
  23631. if s.ReservedInstancesListingId == nil {
  23632. invalidParams.Add(request.NewErrParamRequired("ReservedInstancesListingId"))
  23633. }
  23634. if invalidParams.Len() > 0 {
  23635. return invalidParams
  23636. }
  23637. return nil
  23638. }
  23639. // SetReservedInstancesListingId sets the ReservedInstancesListingId field's value.
  23640. func (s *CancelReservedInstancesListingInput) SetReservedInstancesListingId(v string) *CancelReservedInstancesListingInput {
  23641. s.ReservedInstancesListingId = &v
  23642. return s
  23643. }
  23644. // Contains the output of CancelReservedInstancesListing.
  23645. type CancelReservedInstancesListingOutput struct {
  23646. _ struct{} `type:"structure"`
  23647. // The Reserved Instance listing.
  23648. ReservedInstancesListings []*ReservedInstancesListing `locationName:"reservedInstancesListingsSet" locationNameList:"item" type:"list"`
  23649. }
  23650. // String returns the string representation
  23651. func (s CancelReservedInstancesListingOutput) String() string {
  23652. return awsutil.Prettify(s)
  23653. }
  23654. // GoString returns the string representation
  23655. func (s CancelReservedInstancesListingOutput) GoString() string {
  23656. return s.String()
  23657. }
  23658. // SetReservedInstancesListings sets the ReservedInstancesListings field's value.
  23659. func (s *CancelReservedInstancesListingOutput) SetReservedInstancesListings(v []*ReservedInstancesListing) *CancelReservedInstancesListingOutput {
  23660. s.ReservedInstancesListings = v
  23661. return s
  23662. }
  23663. // Describes a Spot Fleet error.
  23664. type CancelSpotFleetRequestsError struct {
  23665. _ struct{} `type:"structure"`
  23666. // The error code.
  23667. //
  23668. // Code is a required field
  23669. Code *string `locationName:"code" type:"string" required:"true" enum:"CancelBatchErrorCode"`
  23670. // The description for the error code.
  23671. //
  23672. // Message is a required field
  23673. Message *string `locationName:"message" type:"string" required:"true"`
  23674. }
  23675. // String returns the string representation
  23676. func (s CancelSpotFleetRequestsError) String() string {
  23677. return awsutil.Prettify(s)
  23678. }
  23679. // GoString returns the string representation
  23680. func (s CancelSpotFleetRequestsError) GoString() string {
  23681. return s.String()
  23682. }
  23683. // SetCode sets the Code field's value.
  23684. func (s *CancelSpotFleetRequestsError) SetCode(v string) *CancelSpotFleetRequestsError {
  23685. s.Code = &v
  23686. return s
  23687. }
  23688. // SetMessage sets the Message field's value.
  23689. func (s *CancelSpotFleetRequestsError) SetMessage(v string) *CancelSpotFleetRequestsError {
  23690. s.Message = &v
  23691. return s
  23692. }
  23693. // Describes a Spot Fleet request that was not successfully canceled.
  23694. type CancelSpotFleetRequestsErrorItem struct {
  23695. _ struct{} `type:"structure"`
  23696. // The error.
  23697. //
  23698. // Error is a required field
  23699. Error *CancelSpotFleetRequestsError `locationName:"error" type:"structure" required:"true"`
  23700. // The ID of the Spot Fleet request.
  23701. //
  23702. // SpotFleetRequestId is a required field
  23703. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
  23704. }
  23705. // String returns the string representation
  23706. func (s CancelSpotFleetRequestsErrorItem) String() string {
  23707. return awsutil.Prettify(s)
  23708. }
  23709. // GoString returns the string representation
  23710. func (s CancelSpotFleetRequestsErrorItem) GoString() string {
  23711. return s.String()
  23712. }
  23713. // SetError sets the Error field's value.
  23714. func (s *CancelSpotFleetRequestsErrorItem) SetError(v *CancelSpotFleetRequestsError) *CancelSpotFleetRequestsErrorItem {
  23715. s.Error = v
  23716. return s
  23717. }
  23718. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  23719. func (s *CancelSpotFleetRequestsErrorItem) SetSpotFleetRequestId(v string) *CancelSpotFleetRequestsErrorItem {
  23720. s.SpotFleetRequestId = &v
  23721. return s
  23722. }
  23723. // Contains the parameters for CancelSpotFleetRequests.
  23724. type CancelSpotFleetRequestsInput struct {
  23725. _ struct{} `type:"structure"`
  23726. // Checks whether you have the required permissions for the action, without
  23727. // actually making the request, and provides an error response. If you have
  23728. // the required permissions, the error response is DryRunOperation. Otherwise,
  23729. // it is UnauthorizedOperation.
  23730. DryRun *bool `locationName:"dryRun" type:"boolean"`
  23731. // The IDs of the Spot Fleet requests.
  23732. //
  23733. // SpotFleetRequestIds is a required field
  23734. SpotFleetRequestIds []*string `locationName:"spotFleetRequestId" locationNameList:"item" type:"list" required:"true"`
  23735. // Indicates whether to terminate instances for a Spot Fleet request if it is
  23736. // canceled successfully.
  23737. //
  23738. // TerminateInstances is a required field
  23739. TerminateInstances *bool `locationName:"terminateInstances" type:"boolean" required:"true"`
  23740. }
  23741. // String returns the string representation
  23742. func (s CancelSpotFleetRequestsInput) String() string {
  23743. return awsutil.Prettify(s)
  23744. }
  23745. // GoString returns the string representation
  23746. func (s CancelSpotFleetRequestsInput) GoString() string {
  23747. return s.String()
  23748. }
  23749. // Validate inspects the fields of the type to determine if they are valid.
  23750. func (s *CancelSpotFleetRequestsInput) Validate() error {
  23751. invalidParams := request.ErrInvalidParams{Context: "CancelSpotFleetRequestsInput"}
  23752. if s.SpotFleetRequestIds == nil {
  23753. invalidParams.Add(request.NewErrParamRequired("SpotFleetRequestIds"))
  23754. }
  23755. if s.TerminateInstances == nil {
  23756. invalidParams.Add(request.NewErrParamRequired("TerminateInstances"))
  23757. }
  23758. if invalidParams.Len() > 0 {
  23759. return invalidParams
  23760. }
  23761. return nil
  23762. }
  23763. // SetDryRun sets the DryRun field's value.
  23764. func (s *CancelSpotFleetRequestsInput) SetDryRun(v bool) *CancelSpotFleetRequestsInput {
  23765. s.DryRun = &v
  23766. return s
  23767. }
  23768. // SetSpotFleetRequestIds sets the SpotFleetRequestIds field's value.
  23769. func (s *CancelSpotFleetRequestsInput) SetSpotFleetRequestIds(v []*string) *CancelSpotFleetRequestsInput {
  23770. s.SpotFleetRequestIds = v
  23771. return s
  23772. }
  23773. // SetTerminateInstances sets the TerminateInstances field's value.
  23774. func (s *CancelSpotFleetRequestsInput) SetTerminateInstances(v bool) *CancelSpotFleetRequestsInput {
  23775. s.TerminateInstances = &v
  23776. return s
  23777. }
  23778. // Contains the output of CancelSpotFleetRequests.
  23779. type CancelSpotFleetRequestsOutput struct {
  23780. _ struct{} `type:"structure"`
  23781. // Information about the Spot Fleet requests that are successfully canceled.
  23782. SuccessfulFleetRequests []*CancelSpotFleetRequestsSuccessItem `locationName:"successfulFleetRequestSet" locationNameList:"item" type:"list"`
  23783. // Information about the Spot Fleet requests that are not successfully canceled.
  23784. UnsuccessfulFleetRequests []*CancelSpotFleetRequestsErrorItem `locationName:"unsuccessfulFleetRequestSet" locationNameList:"item" type:"list"`
  23785. }
  23786. // String returns the string representation
  23787. func (s CancelSpotFleetRequestsOutput) String() string {
  23788. return awsutil.Prettify(s)
  23789. }
  23790. // GoString returns the string representation
  23791. func (s CancelSpotFleetRequestsOutput) GoString() string {
  23792. return s.String()
  23793. }
  23794. // SetSuccessfulFleetRequests sets the SuccessfulFleetRequests field's value.
  23795. func (s *CancelSpotFleetRequestsOutput) SetSuccessfulFleetRequests(v []*CancelSpotFleetRequestsSuccessItem) *CancelSpotFleetRequestsOutput {
  23796. s.SuccessfulFleetRequests = v
  23797. return s
  23798. }
  23799. // SetUnsuccessfulFleetRequests sets the UnsuccessfulFleetRequests field's value.
  23800. func (s *CancelSpotFleetRequestsOutput) SetUnsuccessfulFleetRequests(v []*CancelSpotFleetRequestsErrorItem) *CancelSpotFleetRequestsOutput {
  23801. s.UnsuccessfulFleetRequests = v
  23802. return s
  23803. }
  23804. // Describes a Spot Fleet request that was successfully canceled.
  23805. type CancelSpotFleetRequestsSuccessItem struct {
  23806. _ struct{} `type:"structure"`
  23807. // The current state of the Spot Fleet request.
  23808. //
  23809. // CurrentSpotFleetRequestState is a required field
  23810. CurrentSpotFleetRequestState *string `locationName:"currentSpotFleetRequestState" type:"string" required:"true" enum:"BatchState"`
  23811. // The previous state of the Spot Fleet request.
  23812. //
  23813. // PreviousSpotFleetRequestState is a required field
  23814. PreviousSpotFleetRequestState *string `locationName:"previousSpotFleetRequestState" type:"string" required:"true" enum:"BatchState"`
  23815. // The ID of the Spot Fleet request.
  23816. //
  23817. // SpotFleetRequestId is a required field
  23818. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
  23819. }
  23820. // String returns the string representation
  23821. func (s CancelSpotFleetRequestsSuccessItem) String() string {
  23822. return awsutil.Prettify(s)
  23823. }
  23824. // GoString returns the string representation
  23825. func (s CancelSpotFleetRequestsSuccessItem) GoString() string {
  23826. return s.String()
  23827. }
  23828. // SetCurrentSpotFleetRequestState sets the CurrentSpotFleetRequestState field's value.
  23829. func (s *CancelSpotFleetRequestsSuccessItem) SetCurrentSpotFleetRequestState(v string) *CancelSpotFleetRequestsSuccessItem {
  23830. s.CurrentSpotFleetRequestState = &v
  23831. return s
  23832. }
  23833. // SetPreviousSpotFleetRequestState sets the PreviousSpotFleetRequestState field's value.
  23834. func (s *CancelSpotFleetRequestsSuccessItem) SetPreviousSpotFleetRequestState(v string) *CancelSpotFleetRequestsSuccessItem {
  23835. s.PreviousSpotFleetRequestState = &v
  23836. return s
  23837. }
  23838. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  23839. func (s *CancelSpotFleetRequestsSuccessItem) SetSpotFleetRequestId(v string) *CancelSpotFleetRequestsSuccessItem {
  23840. s.SpotFleetRequestId = &v
  23841. return s
  23842. }
  23843. // Contains the parameters for CancelSpotInstanceRequests.
  23844. type CancelSpotInstanceRequestsInput struct {
  23845. _ struct{} `type:"structure"`
  23846. // Checks whether you have the required permissions for the action, without
  23847. // actually making the request, and provides an error response. If you have
  23848. // the required permissions, the error response is DryRunOperation. Otherwise,
  23849. // it is UnauthorizedOperation.
  23850. DryRun *bool `locationName:"dryRun" type:"boolean"`
  23851. // One or more Spot Instance request IDs.
  23852. //
  23853. // SpotInstanceRequestIds is a required field
  23854. SpotInstanceRequestIds []*string `locationName:"SpotInstanceRequestId" locationNameList:"SpotInstanceRequestId" type:"list" required:"true"`
  23855. }
  23856. // String returns the string representation
  23857. func (s CancelSpotInstanceRequestsInput) String() string {
  23858. return awsutil.Prettify(s)
  23859. }
  23860. // GoString returns the string representation
  23861. func (s CancelSpotInstanceRequestsInput) GoString() string {
  23862. return s.String()
  23863. }
  23864. // Validate inspects the fields of the type to determine if they are valid.
  23865. func (s *CancelSpotInstanceRequestsInput) Validate() error {
  23866. invalidParams := request.ErrInvalidParams{Context: "CancelSpotInstanceRequestsInput"}
  23867. if s.SpotInstanceRequestIds == nil {
  23868. invalidParams.Add(request.NewErrParamRequired("SpotInstanceRequestIds"))
  23869. }
  23870. if invalidParams.Len() > 0 {
  23871. return invalidParams
  23872. }
  23873. return nil
  23874. }
  23875. // SetDryRun sets the DryRun field's value.
  23876. func (s *CancelSpotInstanceRequestsInput) SetDryRun(v bool) *CancelSpotInstanceRequestsInput {
  23877. s.DryRun = &v
  23878. return s
  23879. }
  23880. // SetSpotInstanceRequestIds sets the SpotInstanceRequestIds field's value.
  23881. func (s *CancelSpotInstanceRequestsInput) SetSpotInstanceRequestIds(v []*string) *CancelSpotInstanceRequestsInput {
  23882. s.SpotInstanceRequestIds = v
  23883. return s
  23884. }
  23885. // Contains the output of CancelSpotInstanceRequests.
  23886. type CancelSpotInstanceRequestsOutput struct {
  23887. _ struct{} `type:"structure"`
  23888. // One or more Spot Instance requests.
  23889. CancelledSpotInstanceRequests []*CancelledSpotInstanceRequest `locationName:"spotInstanceRequestSet" locationNameList:"item" type:"list"`
  23890. }
  23891. // String returns the string representation
  23892. func (s CancelSpotInstanceRequestsOutput) String() string {
  23893. return awsutil.Prettify(s)
  23894. }
  23895. // GoString returns the string representation
  23896. func (s CancelSpotInstanceRequestsOutput) GoString() string {
  23897. return s.String()
  23898. }
  23899. // SetCancelledSpotInstanceRequests sets the CancelledSpotInstanceRequests field's value.
  23900. func (s *CancelSpotInstanceRequestsOutput) SetCancelledSpotInstanceRequests(v []*CancelledSpotInstanceRequest) *CancelSpotInstanceRequestsOutput {
  23901. s.CancelledSpotInstanceRequests = v
  23902. return s
  23903. }
  23904. // Describes a request to cancel a Spot Instance.
  23905. type CancelledSpotInstanceRequest struct {
  23906. _ struct{} `type:"structure"`
  23907. // The ID of the Spot Instance request.
  23908. SpotInstanceRequestId *string `locationName:"spotInstanceRequestId" type:"string"`
  23909. // The state of the Spot Instance request.
  23910. State *string `locationName:"state" type:"string" enum:"CancelSpotInstanceRequestState"`
  23911. }
  23912. // String returns the string representation
  23913. func (s CancelledSpotInstanceRequest) String() string {
  23914. return awsutil.Prettify(s)
  23915. }
  23916. // GoString returns the string representation
  23917. func (s CancelledSpotInstanceRequest) GoString() string {
  23918. return s.String()
  23919. }
  23920. // SetSpotInstanceRequestId sets the SpotInstanceRequestId field's value.
  23921. func (s *CancelledSpotInstanceRequest) SetSpotInstanceRequestId(v string) *CancelledSpotInstanceRequest {
  23922. s.SpotInstanceRequestId = &v
  23923. return s
  23924. }
  23925. // SetState sets the State field's value.
  23926. func (s *CancelledSpotInstanceRequest) SetState(v string) *CancelledSpotInstanceRequest {
  23927. s.State = &v
  23928. return s
  23929. }
  23930. // Describes an IPv4 CIDR block.
  23931. type CidrBlock struct {
  23932. _ struct{} `type:"structure"`
  23933. // The IPv4 CIDR block.
  23934. CidrBlock *string `locationName:"cidrBlock" type:"string"`
  23935. }
  23936. // String returns the string representation
  23937. func (s CidrBlock) String() string {
  23938. return awsutil.Prettify(s)
  23939. }
  23940. // GoString returns the string representation
  23941. func (s CidrBlock) GoString() string {
  23942. return s.String()
  23943. }
  23944. // SetCidrBlock sets the CidrBlock field's value.
  23945. func (s *CidrBlock) SetCidrBlock(v string) *CidrBlock {
  23946. s.CidrBlock = &v
  23947. return s
  23948. }
  23949. // Describes the ClassicLink DNS support status of a VPC.
  23950. type ClassicLinkDnsSupport struct {
  23951. _ struct{} `type:"structure"`
  23952. // Indicates whether ClassicLink DNS support is enabled for the VPC.
  23953. ClassicLinkDnsSupported *bool `locationName:"classicLinkDnsSupported" type:"boolean"`
  23954. // The ID of the VPC.
  23955. VpcId *string `locationName:"vpcId" type:"string"`
  23956. }
  23957. // String returns the string representation
  23958. func (s ClassicLinkDnsSupport) String() string {
  23959. return awsutil.Prettify(s)
  23960. }
  23961. // GoString returns the string representation
  23962. func (s ClassicLinkDnsSupport) GoString() string {
  23963. return s.String()
  23964. }
  23965. // SetClassicLinkDnsSupported sets the ClassicLinkDnsSupported field's value.
  23966. func (s *ClassicLinkDnsSupport) SetClassicLinkDnsSupported(v bool) *ClassicLinkDnsSupport {
  23967. s.ClassicLinkDnsSupported = &v
  23968. return s
  23969. }
  23970. // SetVpcId sets the VpcId field's value.
  23971. func (s *ClassicLinkDnsSupport) SetVpcId(v string) *ClassicLinkDnsSupport {
  23972. s.VpcId = &v
  23973. return s
  23974. }
  23975. // Describes a linked EC2-Classic instance.
  23976. type ClassicLinkInstance struct {
  23977. _ struct{} `type:"structure"`
  23978. // A list of security groups.
  23979. Groups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  23980. // The ID of the instance.
  23981. InstanceId *string `locationName:"instanceId" type:"string"`
  23982. // Any tags assigned to the instance.
  23983. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  23984. // The ID of the VPC.
  23985. VpcId *string `locationName:"vpcId" type:"string"`
  23986. }
  23987. // String returns the string representation
  23988. func (s ClassicLinkInstance) String() string {
  23989. return awsutil.Prettify(s)
  23990. }
  23991. // GoString returns the string representation
  23992. func (s ClassicLinkInstance) GoString() string {
  23993. return s.String()
  23994. }
  23995. // SetGroups sets the Groups field's value.
  23996. func (s *ClassicLinkInstance) SetGroups(v []*GroupIdentifier) *ClassicLinkInstance {
  23997. s.Groups = v
  23998. return s
  23999. }
  24000. // SetInstanceId sets the InstanceId field's value.
  24001. func (s *ClassicLinkInstance) SetInstanceId(v string) *ClassicLinkInstance {
  24002. s.InstanceId = &v
  24003. return s
  24004. }
  24005. // SetTags sets the Tags field's value.
  24006. func (s *ClassicLinkInstance) SetTags(v []*Tag) *ClassicLinkInstance {
  24007. s.Tags = v
  24008. return s
  24009. }
  24010. // SetVpcId sets the VpcId field's value.
  24011. func (s *ClassicLinkInstance) SetVpcId(v string) *ClassicLinkInstance {
  24012. s.VpcId = &v
  24013. return s
  24014. }
  24015. // Describes a Classic Load Balancer.
  24016. type ClassicLoadBalancer struct {
  24017. _ struct{} `type:"structure"`
  24018. // The name of the load balancer.
  24019. //
  24020. // Name is a required field
  24021. Name *string `locationName:"name" type:"string" required:"true"`
  24022. }
  24023. // String returns the string representation
  24024. func (s ClassicLoadBalancer) String() string {
  24025. return awsutil.Prettify(s)
  24026. }
  24027. // GoString returns the string representation
  24028. func (s ClassicLoadBalancer) GoString() string {
  24029. return s.String()
  24030. }
  24031. // Validate inspects the fields of the type to determine if they are valid.
  24032. func (s *ClassicLoadBalancer) Validate() error {
  24033. invalidParams := request.ErrInvalidParams{Context: "ClassicLoadBalancer"}
  24034. if s.Name == nil {
  24035. invalidParams.Add(request.NewErrParamRequired("Name"))
  24036. }
  24037. if invalidParams.Len() > 0 {
  24038. return invalidParams
  24039. }
  24040. return nil
  24041. }
  24042. // SetName sets the Name field's value.
  24043. func (s *ClassicLoadBalancer) SetName(v string) *ClassicLoadBalancer {
  24044. s.Name = &v
  24045. return s
  24046. }
  24047. // Describes the Classic Load Balancers to attach to a Spot Fleet. Spot Fleet
  24048. // registers the running Spot Instances with these Classic Load Balancers.
  24049. type ClassicLoadBalancersConfig struct {
  24050. _ struct{} `type:"structure"`
  24051. // One or more Classic Load Balancers.
  24052. //
  24053. // ClassicLoadBalancers is a required field
  24054. ClassicLoadBalancers []*ClassicLoadBalancer `locationName:"classicLoadBalancers" locationNameList:"item" min:"1" type:"list" required:"true"`
  24055. }
  24056. // String returns the string representation
  24057. func (s ClassicLoadBalancersConfig) String() string {
  24058. return awsutil.Prettify(s)
  24059. }
  24060. // GoString returns the string representation
  24061. func (s ClassicLoadBalancersConfig) GoString() string {
  24062. return s.String()
  24063. }
  24064. // Validate inspects the fields of the type to determine if they are valid.
  24065. func (s *ClassicLoadBalancersConfig) Validate() error {
  24066. invalidParams := request.ErrInvalidParams{Context: "ClassicLoadBalancersConfig"}
  24067. if s.ClassicLoadBalancers == nil {
  24068. invalidParams.Add(request.NewErrParamRequired("ClassicLoadBalancers"))
  24069. }
  24070. if s.ClassicLoadBalancers != nil && len(s.ClassicLoadBalancers) < 1 {
  24071. invalidParams.Add(request.NewErrParamMinLen("ClassicLoadBalancers", 1))
  24072. }
  24073. if s.ClassicLoadBalancers != nil {
  24074. for i, v := range s.ClassicLoadBalancers {
  24075. if v == nil {
  24076. continue
  24077. }
  24078. if err := v.Validate(); err != nil {
  24079. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ClassicLoadBalancers", i), err.(request.ErrInvalidParams))
  24080. }
  24081. }
  24082. }
  24083. if invalidParams.Len() > 0 {
  24084. return invalidParams
  24085. }
  24086. return nil
  24087. }
  24088. // SetClassicLoadBalancers sets the ClassicLoadBalancers field's value.
  24089. func (s *ClassicLoadBalancersConfig) SetClassicLoadBalancers(v []*ClassicLoadBalancer) *ClassicLoadBalancersConfig {
  24090. s.ClassicLoadBalancers = v
  24091. return s
  24092. }
  24093. // Describes the client-specific data.
  24094. type ClientData struct {
  24095. _ struct{} `type:"structure"`
  24096. // A user-defined comment about the disk upload.
  24097. Comment *string `type:"string"`
  24098. // The time that the disk upload ends.
  24099. UploadEnd *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  24100. // The size of the uploaded disk image, in GiB.
  24101. UploadSize *float64 `type:"double"`
  24102. // The time that the disk upload starts.
  24103. UploadStart *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  24104. }
  24105. // String returns the string representation
  24106. func (s ClientData) String() string {
  24107. return awsutil.Prettify(s)
  24108. }
  24109. // GoString returns the string representation
  24110. func (s ClientData) GoString() string {
  24111. return s.String()
  24112. }
  24113. // SetComment sets the Comment field's value.
  24114. func (s *ClientData) SetComment(v string) *ClientData {
  24115. s.Comment = &v
  24116. return s
  24117. }
  24118. // SetUploadEnd sets the UploadEnd field's value.
  24119. func (s *ClientData) SetUploadEnd(v time.Time) *ClientData {
  24120. s.UploadEnd = &v
  24121. return s
  24122. }
  24123. // SetUploadSize sets the UploadSize field's value.
  24124. func (s *ClientData) SetUploadSize(v float64) *ClientData {
  24125. s.UploadSize = &v
  24126. return s
  24127. }
  24128. // SetUploadStart sets the UploadStart field's value.
  24129. func (s *ClientData) SetUploadStart(v time.Time) *ClientData {
  24130. s.UploadStart = &v
  24131. return s
  24132. }
  24133. // Contains the parameters for ConfirmProductInstance.
  24134. type ConfirmProductInstanceInput struct {
  24135. _ struct{} `type:"structure"`
  24136. // Checks whether you have the required permissions for the action, without
  24137. // actually making the request, and provides an error response. If you have
  24138. // the required permissions, the error response is DryRunOperation. Otherwise,
  24139. // it is UnauthorizedOperation.
  24140. DryRun *bool `locationName:"dryRun" type:"boolean"`
  24141. // The ID of the instance.
  24142. //
  24143. // InstanceId is a required field
  24144. InstanceId *string `type:"string" required:"true"`
  24145. // The product code. This must be a product code that you own.
  24146. //
  24147. // ProductCode is a required field
  24148. ProductCode *string `type:"string" required:"true"`
  24149. }
  24150. // String returns the string representation
  24151. func (s ConfirmProductInstanceInput) String() string {
  24152. return awsutil.Prettify(s)
  24153. }
  24154. // GoString returns the string representation
  24155. func (s ConfirmProductInstanceInput) GoString() string {
  24156. return s.String()
  24157. }
  24158. // Validate inspects the fields of the type to determine if they are valid.
  24159. func (s *ConfirmProductInstanceInput) Validate() error {
  24160. invalidParams := request.ErrInvalidParams{Context: "ConfirmProductInstanceInput"}
  24161. if s.InstanceId == nil {
  24162. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  24163. }
  24164. if s.ProductCode == nil {
  24165. invalidParams.Add(request.NewErrParamRequired("ProductCode"))
  24166. }
  24167. if invalidParams.Len() > 0 {
  24168. return invalidParams
  24169. }
  24170. return nil
  24171. }
  24172. // SetDryRun sets the DryRun field's value.
  24173. func (s *ConfirmProductInstanceInput) SetDryRun(v bool) *ConfirmProductInstanceInput {
  24174. s.DryRun = &v
  24175. return s
  24176. }
  24177. // SetInstanceId sets the InstanceId field's value.
  24178. func (s *ConfirmProductInstanceInput) SetInstanceId(v string) *ConfirmProductInstanceInput {
  24179. s.InstanceId = &v
  24180. return s
  24181. }
  24182. // SetProductCode sets the ProductCode field's value.
  24183. func (s *ConfirmProductInstanceInput) SetProductCode(v string) *ConfirmProductInstanceInput {
  24184. s.ProductCode = &v
  24185. return s
  24186. }
  24187. // Contains the output of ConfirmProductInstance.
  24188. type ConfirmProductInstanceOutput struct {
  24189. _ struct{} `type:"structure"`
  24190. // The AWS account ID of the instance owner. This is only present if the product
  24191. // code is attached to the instance.
  24192. OwnerId *string `locationName:"ownerId" type:"string"`
  24193. // The return value of the request. Returns true if the specified product code
  24194. // is owned by the requester and associated with the specified instance.
  24195. Return *bool `locationName:"return" type:"boolean"`
  24196. }
  24197. // String returns the string representation
  24198. func (s ConfirmProductInstanceOutput) String() string {
  24199. return awsutil.Prettify(s)
  24200. }
  24201. // GoString returns the string representation
  24202. func (s ConfirmProductInstanceOutput) GoString() string {
  24203. return s.String()
  24204. }
  24205. // SetOwnerId sets the OwnerId field's value.
  24206. func (s *ConfirmProductInstanceOutput) SetOwnerId(v string) *ConfirmProductInstanceOutput {
  24207. s.OwnerId = &v
  24208. return s
  24209. }
  24210. // SetReturn sets the Return field's value.
  24211. func (s *ConfirmProductInstanceOutput) SetReturn(v bool) *ConfirmProductInstanceOutput {
  24212. s.Return = &v
  24213. return s
  24214. }
  24215. // Describes a connection notification for a VPC endpoint or VPC endpoint service.
  24216. type ConnectionNotification struct {
  24217. _ struct{} `type:"structure"`
  24218. // The events for the notification. Valid values are Accept, Connect, Delete,
  24219. // and Reject.
  24220. ConnectionEvents []*string `locationName:"connectionEvents" locationNameList:"item" type:"list"`
  24221. // The ARN of the SNS topic for the notification.
  24222. ConnectionNotificationArn *string `locationName:"connectionNotificationArn" type:"string"`
  24223. // The ID of the notification.
  24224. ConnectionNotificationId *string `locationName:"connectionNotificationId" type:"string"`
  24225. // The state of the notification.
  24226. ConnectionNotificationState *string `locationName:"connectionNotificationState" type:"string" enum:"ConnectionNotificationState"`
  24227. // The type of notification.
  24228. ConnectionNotificationType *string `locationName:"connectionNotificationType" type:"string" enum:"ConnectionNotificationType"`
  24229. // The ID of the endpoint service.
  24230. ServiceId *string `locationName:"serviceId" type:"string"`
  24231. // The ID of the VPC endpoint.
  24232. VpcEndpointId *string `locationName:"vpcEndpointId" type:"string"`
  24233. }
  24234. // String returns the string representation
  24235. func (s ConnectionNotification) String() string {
  24236. return awsutil.Prettify(s)
  24237. }
  24238. // GoString returns the string representation
  24239. func (s ConnectionNotification) GoString() string {
  24240. return s.String()
  24241. }
  24242. // SetConnectionEvents sets the ConnectionEvents field's value.
  24243. func (s *ConnectionNotification) SetConnectionEvents(v []*string) *ConnectionNotification {
  24244. s.ConnectionEvents = v
  24245. return s
  24246. }
  24247. // SetConnectionNotificationArn sets the ConnectionNotificationArn field's value.
  24248. func (s *ConnectionNotification) SetConnectionNotificationArn(v string) *ConnectionNotification {
  24249. s.ConnectionNotificationArn = &v
  24250. return s
  24251. }
  24252. // SetConnectionNotificationId sets the ConnectionNotificationId field's value.
  24253. func (s *ConnectionNotification) SetConnectionNotificationId(v string) *ConnectionNotification {
  24254. s.ConnectionNotificationId = &v
  24255. return s
  24256. }
  24257. // SetConnectionNotificationState sets the ConnectionNotificationState field's value.
  24258. func (s *ConnectionNotification) SetConnectionNotificationState(v string) *ConnectionNotification {
  24259. s.ConnectionNotificationState = &v
  24260. return s
  24261. }
  24262. // SetConnectionNotificationType sets the ConnectionNotificationType field's value.
  24263. func (s *ConnectionNotification) SetConnectionNotificationType(v string) *ConnectionNotification {
  24264. s.ConnectionNotificationType = &v
  24265. return s
  24266. }
  24267. // SetServiceId sets the ServiceId field's value.
  24268. func (s *ConnectionNotification) SetServiceId(v string) *ConnectionNotification {
  24269. s.ServiceId = &v
  24270. return s
  24271. }
  24272. // SetVpcEndpointId sets the VpcEndpointId field's value.
  24273. func (s *ConnectionNotification) SetVpcEndpointId(v string) *ConnectionNotification {
  24274. s.VpcEndpointId = &v
  24275. return s
  24276. }
  24277. // Describes a conversion task.
  24278. type ConversionTask struct {
  24279. _ struct{} `type:"structure"`
  24280. // The ID of the conversion task.
  24281. ConversionTaskId *string `locationName:"conversionTaskId" type:"string"`
  24282. // The time when the task expires. If the upload isn't complete before the expiration
  24283. // time, we automatically cancel the task.
  24284. ExpirationTime *string `locationName:"expirationTime" type:"string"`
  24285. // If the task is for importing an instance, this contains information about
  24286. // the import instance task.
  24287. ImportInstance *ImportInstanceTaskDetails `locationName:"importInstance" type:"structure"`
  24288. // If the task is for importing a volume, this contains information about the
  24289. // import volume task.
  24290. ImportVolume *ImportVolumeTaskDetails `locationName:"importVolume" type:"structure"`
  24291. // The state of the conversion task.
  24292. State *string `locationName:"state" type:"string" enum:"ConversionTaskState"`
  24293. // The status message related to the conversion task.
  24294. StatusMessage *string `locationName:"statusMessage" type:"string"`
  24295. // Any tags assigned to the task.
  24296. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  24297. }
  24298. // String returns the string representation
  24299. func (s ConversionTask) String() string {
  24300. return awsutil.Prettify(s)
  24301. }
  24302. // GoString returns the string representation
  24303. func (s ConversionTask) GoString() string {
  24304. return s.String()
  24305. }
  24306. // SetConversionTaskId sets the ConversionTaskId field's value.
  24307. func (s *ConversionTask) SetConversionTaskId(v string) *ConversionTask {
  24308. s.ConversionTaskId = &v
  24309. return s
  24310. }
  24311. // SetExpirationTime sets the ExpirationTime field's value.
  24312. func (s *ConversionTask) SetExpirationTime(v string) *ConversionTask {
  24313. s.ExpirationTime = &v
  24314. return s
  24315. }
  24316. // SetImportInstance sets the ImportInstance field's value.
  24317. func (s *ConversionTask) SetImportInstance(v *ImportInstanceTaskDetails) *ConversionTask {
  24318. s.ImportInstance = v
  24319. return s
  24320. }
  24321. // SetImportVolume sets the ImportVolume field's value.
  24322. func (s *ConversionTask) SetImportVolume(v *ImportVolumeTaskDetails) *ConversionTask {
  24323. s.ImportVolume = v
  24324. return s
  24325. }
  24326. // SetState sets the State field's value.
  24327. func (s *ConversionTask) SetState(v string) *ConversionTask {
  24328. s.State = &v
  24329. return s
  24330. }
  24331. // SetStatusMessage sets the StatusMessage field's value.
  24332. func (s *ConversionTask) SetStatusMessage(v string) *ConversionTask {
  24333. s.StatusMessage = &v
  24334. return s
  24335. }
  24336. // SetTags sets the Tags field's value.
  24337. func (s *ConversionTask) SetTags(v []*Tag) *ConversionTask {
  24338. s.Tags = v
  24339. return s
  24340. }
  24341. type CopyFpgaImageInput struct {
  24342. _ struct{} `type:"structure"`
  24343. // Unique, case-sensitive identifier that you provide to ensure the idempotency
  24344. // of the request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html).
  24345. ClientToken *string `type:"string"`
  24346. // The description for the new AFI.
  24347. Description *string `type:"string"`
  24348. // Checks whether you have the required permissions for the action, without
  24349. // actually making the request, and provides an error response. If you have
  24350. // the required permissions, the error response is DryRunOperation. Otherwise,
  24351. // it is UnauthorizedOperation.
  24352. DryRun *bool `type:"boolean"`
  24353. // The name for the new AFI. The default is the name of the source AFI.
  24354. Name *string `type:"string"`
  24355. // The ID of the source AFI.
  24356. //
  24357. // SourceFpgaImageId is a required field
  24358. SourceFpgaImageId *string `type:"string" required:"true"`
  24359. // The region that contains the source AFI.
  24360. //
  24361. // SourceRegion is a required field
  24362. SourceRegion *string `type:"string" required:"true"`
  24363. }
  24364. // String returns the string representation
  24365. func (s CopyFpgaImageInput) String() string {
  24366. return awsutil.Prettify(s)
  24367. }
  24368. // GoString returns the string representation
  24369. func (s CopyFpgaImageInput) GoString() string {
  24370. return s.String()
  24371. }
  24372. // Validate inspects the fields of the type to determine if they are valid.
  24373. func (s *CopyFpgaImageInput) Validate() error {
  24374. invalidParams := request.ErrInvalidParams{Context: "CopyFpgaImageInput"}
  24375. if s.SourceFpgaImageId == nil {
  24376. invalidParams.Add(request.NewErrParamRequired("SourceFpgaImageId"))
  24377. }
  24378. if s.SourceRegion == nil {
  24379. invalidParams.Add(request.NewErrParamRequired("SourceRegion"))
  24380. }
  24381. if invalidParams.Len() > 0 {
  24382. return invalidParams
  24383. }
  24384. return nil
  24385. }
  24386. // SetClientToken sets the ClientToken field's value.
  24387. func (s *CopyFpgaImageInput) SetClientToken(v string) *CopyFpgaImageInput {
  24388. s.ClientToken = &v
  24389. return s
  24390. }
  24391. // SetDescription sets the Description field's value.
  24392. func (s *CopyFpgaImageInput) SetDescription(v string) *CopyFpgaImageInput {
  24393. s.Description = &v
  24394. return s
  24395. }
  24396. // SetDryRun sets the DryRun field's value.
  24397. func (s *CopyFpgaImageInput) SetDryRun(v bool) *CopyFpgaImageInput {
  24398. s.DryRun = &v
  24399. return s
  24400. }
  24401. // SetName sets the Name field's value.
  24402. func (s *CopyFpgaImageInput) SetName(v string) *CopyFpgaImageInput {
  24403. s.Name = &v
  24404. return s
  24405. }
  24406. // SetSourceFpgaImageId sets the SourceFpgaImageId field's value.
  24407. func (s *CopyFpgaImageInput) SetSourceFpgaImageId(v string) *CopyFpgaImageInput {
  24408. s.SourceFpgaImageId = &v
  24409. return s
  24410. }
  24411. // SetSourceRegion sets the SourceRegion field's value.
  24412. func (s *CopyFpgaImageInput) SetSourceRegion(v string) *CopyFpgaImageInput {
  24413. s.SourceRegion = &v
  24414. return s
  24415. }
  24416. type CopyFpgaImageOutput struct {
  24417. _ struct{} `type:"structure"`
  24418. // The ID of the new AFI.
  24419. FpgaImageId *string `locationName:"fpgaImageId" type:"string"`
  24420. }
  24421. // String returns the string representation
  24422. func (s CopyFpgaImageOutput) String() string {
  24423. return awsutil.Prettify(s)
  24424. }
  24425. // GoString returns the string representation
  24426. func (s CopyFpgaImageOutput) GoString() string {
  24427. return s.String()
  24428. }
  24429. // SetFpgaImageId sets the FpgaImageId field's value.
  24430. func (s *CopyFpgaImageOutput) SetFpgaImageId(v string) *CopyFpgaImageOutput {
  24431. s.FpgaImageId = &v
  24432. return s
  24433. }
  24434. // Contains the parameters for CopyImage.
  24435. type CopyImageInput struct {
  24436. _ struct{} `type:"structure"`
  24437. // Unique, case-sensitive identifier you provide to ensure idempotency of the
  24438. // request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html)
  24439. // in the Amazon Elastic Compute Cloud User Guide.
  24440. ClientToken *string `type:"string"`
  24441. // A description for the new AMI in the destination region.
  24442. Description *string `type:"string"`
  24443. // Checks whether you have the required permissions for the action, without
  24444. // actually making the request, and provides an error response. If you have
  24445. // the required permissions, the error response is DryRunOperation. Otherwise,
  24446. // it is UnauthorizedOperation.
  24447. DryRun *bool `locationName:"dryRun" type:"boolean"`
  24448. // Specifies whether the destination snapshots of the copied image should be
  24449. // encrypted. The default CMK for EBS is used unless a non-default AWS Key Management
  24450. // Service (AWS KMS) CMK is specified with KmsKeyId. For more information, see
  24451. // Amazon EBS Encryption (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html)
  24452. // in the Amazon Elastic Compute Cloud User Guide.
  24453. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  24454. // An identifier for the AWS Key Management Service (AWS KMS) customer master
  24455. // key (CMK) to use when creating the encrypted volume. This parameter is only
  24456. // required if you want to use a non-default CMK; if this parameter is not specified,
  24457. // the default CMK for EBS is used. If a KmsKeyId is specified, the Encrypted
  24458. // flag must also be set.
  24459. //
  24460. // The CMK identifier may be provided in any of the following formats:
  24461. //
  24462. // * Key ID
  24463. //
  24464. // * Key alias, in the form alias/ExampleAlias
  24465. //
  24466. // * ARN using key ID. The ID ARN contains the arn:aws:kms namespace, followed
  24467. // by the region of the CMK, the AWS account ID of the CMK owner, the key
  24468. // namespace, and then the CMK ID. For example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.
  24469. //
  24470. //
  24471. // * ARN using key alias. The alias ARN contains the arn:aws:kms namespace,
  24472. // followed by the region of the CMK, the AWS account ID of the CMK owner,
  24473. // the alias namespace, and then the CMK alias. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
  24474. //
  24475. //
  24476. // AWS parses KmsKeyId asynchronously, meaning that the action you call may
  24477. // appear to complete even though you provided an invalid identifier. This action
  24478. // will eventually report failure.
  24479. //
  24480. // The specified CMK must exist in the region that the snapshot is being copied
  24481. // to.
  24482. KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
  24483. // The name of the new AMI in the destination region.
  24484. //
  24485. // Name is a required field
  24486. Name *string `type:"string" required:"true"`
  24487. // The ID of the AMI to copy.
  24488. //
  24489. // SourceImageId is a required field
  24490. SourceImageId *string `type:"string" required:"true"`
  24491. // The name of the region that contains the AMI to copy.
  24492. //
  24493. // SourceRegion is a required field
  24494. SourceRegion *string `type:"string" required:"true"`
  24495. }
  24496. // String returns the string representation
  24497. func (s CopyImageInput) String() string {
  24498. return awsutil.Prettify(s)
  24499. }
  24500. // GoString returns the string representation
  24501. func (s CopyImageInput) GoString() string {
  24502. return s.String()
  24503. }
  24504. // Validate inspects the fields of the type to determine if they are valid.
  24505. func (s *CopyImageInput) Validate() error {
  24506. invalidParams := request.ErrInvalidParams{Context: "CopyImageInput"}
  24507. if s.Name == nil {
  24508. invalidParams.Add(request.NewErrParamRequired("Name"))
  24509. }
  24510. if s.SourceImageId == nil {
  24511. invalidParams.Add(request.NewErrParamRequired("SourceImageId"))
  24512. }
  24513. if s.SourceRegion == nil {
  24514. invalidParams.Add(request.NewErrParamRequired("SourceRegion"))
  24515. }
  24516. if invalidParams.Len() > 0 {
  24517. return invalidParams
  24518. }
  24519. return nil
  24520. }
  24521. // SetClientToken sets the ClientToken field's value.
  24522. func (s *CopyImageInput) SetClientToken(v string) *CopyImageInput {
  24523. s.ClientToken = &v
  24524. return s
  24525. }
  24526. // SetDescription sets the Description field's value.
  24527. func (s *CopyImageInput) SetDescription(v string) *CopyImageInput {
  24528. s.Description = &v
  24529. return s
  24530. }
  24531. // SetDryRun sets the DryRun field's value.
  24532. func (s *CopyImageInput) SetDryRun(v bool) *CopyImageInput {
  24533. s.DryRun = &v
  24534. return s
  24535. }
  24536. // SetEncrypted sets the Encrypted field's value.
  24537. func (s *CopyImageInput) SetEncrypted(v bool) *CopyImageInput {
  24538. s.Encrypted = &v
  24539. return s
  24540. }
  24541. // SetKmsKeyId sets the KmsKeyId field's value.
  24542. func (s *CopyImageInput) SetKmsKeyId(v string) *CopyImageInput {
  24543. s.KmsKeyId = &v
  24544. return s
  24545. }
  24546. // SetName sets the Name field's value.
  24547. func (s *CopyImageInput) SetName(v string) *CopyImageInput {
  24548. s.Name = &v
  24549. return s
  24550. }
  24551. // SetSourceImageId sets the SourceImageId field's value.
  24552. func (s *CopyImageInput) SetSourceImageId(v string) *CopyImageInput {
  24553. s.SourceImageId = &v
  24554. return s
  24555. }
  24556. // SetSourceRegion sets the SourceRegion field's value.
  24557. func (s *CopyImageInput) SetSourceRegion(v string) *CopyImageInput {
  24558. s.SourceRegion = &v
  24559. return s
  24560. }
  24561. // Contains the output of CopyImage.
  24562. type CopyImageOutput struct {
  24563. _ struct{} `type:"structure"`
  24564. // The ID of the new AMI.
  24565. ImageId *string `locationName:"imageId" type:"string"`
  24566. }
  24567. // String returns the string representation
  24568. func (s CopyImageOutput) String() string {
  24569. return awsutil.Prettify(s)
  24570. }
  24571. // GoString returns the string representation
  24572. func (s CopyImageOutput) GoString() string {
  24573. return s.String()
  24574. }
  24575. // SetImageId sets the ImageId field's value.
  24576. func (s *CopyImageOutput) SetImageId(v string) *CopyImageOutput {
  24577. s.ImageId = &v
  24578. return s
  24579. }
  24580. // Contains the parameters for CopySnapshot.
  24581. type CopySnapshotInput struct {
  24582. _ struct{} `type:"structure"`
  24583. // A description for the EBS snapshot.
  24584. Description *string `type:"string"`
  24585. // The destination region to use in the PresignedUrl parameter of a snapshot
  24586. // copy operation. This parameter is only valid for specifying the destination
  24587. // region in a PresignedUrl parameter, where it is required.
  24588. //
  24589. // CopySnapshot sends the snapshot copy to the regional endpoint that you send
  24590. // the HTTP request to, such as ec2.us-east-1.amazonaws.com (in the AWS CLI,
  24591. // this is specified with the --region parameter or the default region in your
  24592. // AWS configuration file).
  24593. DestinationRegion *string `locationName:"destinationRegion" type:"string"`
  24594. // Checks whether you have the required permissions for the action, without
  24595. // actually making the request, and provides an error response. If you have
  24596. // the required permissions, the error response is DryRunOperation. Otherwise,
  24597. // it is UnauthorizedOperation.
  24598. DryRun *bool `locationName:"dryRun" type:"boolean"`
  24599. // Specifies whether the destination snapshot should be encrypted. You can encrypt
  24600. // a copy of an unencrypted snapshot using this flag, but you cannot use it
  24601. // to create an unencrypted copy from an encrypted snapshot. Your default CMK
  24602. // for EBS is used unless a non-default AWS Key Management Service (AWS KMS)
  24603. // CMK is specified with KmsKeyId. For more information, see Amazon EBS Encryption
  24604. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in
  24605. // the Amazon Elastic Compute Cloud User Guide.
  24606. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  24607. // An identifier for the AWS Key Management Service (AWS KMS) customer master
  24608. // key (CMK) to use when creating the encrypted volume. This parameter is only
  24609. // required if you want to use a non-default CMK; if this parameter is not specified,
  24610. // the default CMK for EBS is used. If a KmsKeyId is specified, the Encrypted
  24611. // flag must also be set.
  24612. //
  24613. // The CMK identifier may be provided in any of the following formats:
  24614. //
  24615. // * Key ID
  24616. //
  24617. // * Key alias
  24618. //
  24619. // * ARN using key ID. The ID ARN contains the arn:aws:kms namespace, followed
  24620. // by the region of the CMK, the AWS account ID of the CMK owner, the key
  24621. // namespace, and then the CMK ID. For example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.
  24622. //
  24623. //
  24624. // * ARN using key alias. The alias ARN contains the arn:aws:kms namespace,
  24625. // followed by the region of the CMK, the AWS account ID of the CMK owner,
  24626. // the alias namespace, and then the CMK alias. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
  24627. //
  24628. //
  24629. // AWS parses KmsKeyId asynchronously, meaning that the action you call may
  24630. // appear to complete even though you provided an invalid identifier. The action
  24631. // will eventually fail.
  24632. KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
  24633. // When you copy an encrypted source snapshot using the Amazon EC2 Query API,
  24634. // you must supply a pre-signed URL. This parameter is optional for unencrypted
  24635. // snapshots. For more information, see Query Requests (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html).
  24636. //
  24637. // The PresignedUrl should use the snapshot source endpoint, the CopySnapshot
  24638. // action, and include the SourceRegion, SourceSnapshotId, and DestinationRegion
  24639. // parameters. The PresignedUrl must be signed using AWS Signature Version 4.
  24640. // Because EBS snapshots are stored in Amazon S3, the signing algorithm for
  24641. // this parameter uses the same logic that is described in Authenticating Requests
  24642. // by Using Query Parameters (AWS Signature Version 4) (http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html)
  24643. // in the Amazon Simple Storage Service API Reference. An invalid or improperly
  24644. // signed PresignedUrl will cause the copy operation to fail asynchronously,
  24645. // and the snapshot will move to an error state.
  24646. PresignedUrl *string `locationName:"presignedUrl" type:"string"`
  24647. // The ID of the region that contains the snapshot to be copied.
  24648. //
  24649. // SourceRegion is a required field
  24650. SourceRegion *string `type:"string" required:"true"`
  24651. // The ID of the EBS snapshot to copy.
  24652. //
  24653. // SourceSnapshotId is a required field
  24654. SourceSnapshotId *string `type:"string" required:"true"`
  24655. }
  24656. // String returns the string representation
  24657. func (s CopySnapshotInput) String() string {
  24658. return awsutil.Prettify(s)
  24659. }
  24660. // GoString returns the string representation
  24661. func (s CopySnapshotInput) GoString() string {
  24662. return s.String()
  24663. }
  24664. // Validate inspects the fields of the type to determine if they are valid.
  24665. func (s *CopySnapshotInput) Validate() error {
  24666. invalidParams := request.ErrInvalidParams{Context: "CopySnapshotInput"}
  24667. if s.SourceRegion == nil {
  24668. invalidParams.Add(request.NewErrParamRequired("SourceRegion"))
  24669. }
  24670. if s.SourceSnapshotId == nil {
  24671. invalidParams.Add(request.NewErrParamRequired("SourceSnapshotId"))
  24672. }
  24673. if invalidParams.Len() > 0 {
  24674. return invalidParams
  24675. }
  24676. return nil
  24677. }
  24678. // SetDescription sets the Description field's value.
  24679. func (s *CopySnapshotInput) SetDescription(v string) *CopySnapshotInput {
  24680. s.Description = &v
  24681. return s
  24682. }
  24683. // SetDestinationRegion sets the DestinationRegion field's value.
  24684. func (s *CopySnapshotInput) SetDestinationRegion(v string) *CopySnapshotInput {
  24685. s.DestinationRegion = &v
  24686. return s
  24687. }
  24688. // SetDryRun sets the DryRun field's value.
  24689. func (s *CopySnapshotInput) SetDryRun(v bool) *CopySnapshotInput {
  24690. s.DryRun = &v
  24691. return s
  24692. }
  24693. // SetEncrypted sets the Encrypted field's value.
  24694. func (s *CopySnapshotInput) SetEncrypted(v bool) *CopySnapshotInput {
  24695. s.Encrypted = &v
  24696. return s
  24697. }
  24698. // SetKmsKeyId sets the KmsKeyId field's value.
  24699. func (s *CopySnapshotInput) SetKmsKeyId(v string) *CopySnapshotInput {
  24700. s.KmsKeyId = &v
  24701. return s
  24702. }
  24703. // SetPresignedUrl sets the PresignedUrl field's value.
  24704. func (s *CopySnapshotInput) SetPresignedUrl(v string) *CopySnapshotInput {
  24705. s.PresignedUrl = &v
  24706. return s
  24707. }
  24708. // SetSourceRegion sets the SourceRegion field's value.
  24709. func (s *CopySnapshotInput) SetSourceRegion(v string) *CopySnapshotInput {
  24710. s.SourceRegion = &v
  24711. return s
  24712. }
  24713. // SetSourceSnapshotId sets the SourceSnapshotId field's value.
  24714. func (s *CopySnapshotInput) SetSourceSnapshotId(v string) *CopySnapshotInput {
  24715. s.SourceSnapshotId = &v
  24716. return s
  24717. }
  24718. // Contains the output of CopySnapshot.
  24719. type CopySnapshotOutput struct {
  24720. _ struct{} `type:"structure"`
  24721. // The ID of the new snapshot.
  24722. SnapshotId *string `locationName:"snapshotId" type:"string"`
  24723. }
  24724. // String returns the string representation
  24725. func (s CopySnapshotOutput) String() string {
  24726. return awsutil.Prettify(s)
  24727. }
  24728. // GoString returns the string representation
  24729. func (s CopySnapshotOutput) GoString() string {
  24730. return s.String()
  24731. }
  24732. // SetSnapshotId sets the SnapshotId field's value.
  24733. func (s *CopySnapshotOutput) SetSnapshotId(v string) *CopySnapshotOutput {
  24734. s.SnapshotId = &v
  24735. return s
  24736. }
  24737. // The CPU options for the instance.
  24738. type CpuOptions struct {
  24739. _ struct{} `type:"structure"`
  24740. // The number of CPU cores for the instance.
  24741. CoreCount *int64 `locationName:"coreCount" type:"integer"`
  24742. // The number of threads per CPU core.
  24743. ThreadsPerCore *int64 `locationName:"threadsPerCore" type:"integer"`
  24744. }
  24745. // String returns the string representation
  24746. func (s CpuOptions) String() string {
  24747. return awsutil.Prettify(s)
  24748. }
  24749. // GoString returns the string representation
  24750. func (s CpuOptions) GoString() string {
  24751. return s.String()
  24752. }
  24753. // SetCoreCount sets the CoreCount field's value.
  24754. func (s *CpuOptions) SetCoreCount(v int64) *CpuOptions {
  24755. s.CoreCount = &v
  24756. return s
  24757. }
  24758. // SetThreadsPerCore sets the ThreadsPerCore field's value.
  24759. func (s *CpuOptions) SetThreadsPerCore(v int64) *CpuOptions {
  24760. s.ThreadsPerCore = &v
  24761. return s
  24762. }
  24763. // The CPU options for the instance. Both the core count and threads per core
  24764. // must be specified in the request.
  24765. type CpuOptionsRequest struct {
  24766. _ struct{} `type:"structure"`
  24767. // The number of CPU cores for the instance.
  24768. CoreCount *int64 `type:"integer"`
  24769. // The number of threads per CPU core. To disable Intel Hyper-Threading Technology
  24770. // for the instance, specify a value of 1. Otherwise, specify the default value
  24771. // of 2.
  24772. ThreadsPerCore *int64 `type:"integer"`
  24773. }
  24774. // String returns the string representation
  24775. func (s CpuOptionsRequest) String() string {
  24776. return awsutil.Prettify(s)
  24777. }
  24778. // GoString returns the string representation
  24779. func (s CpuOptionsRequest) GoString() string {
  24780. return s.String()
  24781. }
  24782. // SetCoreCount sets the CoreCount field's value.
  24783. func (s *CpuOptionsRequest) SetCoreCount(v int64) *CpuOptionsRequest {
  24784. s.CoreCount = &v
  24785. return s
  24786. }
  24787. // SetThreadsPerCore sets the ThreadsPerCore field's value.
  24788. func (s *CpuOptionsRequest) SetThreadsPerCore(v int64) *CpuOptionsRequest {
  24789. s.ThreadsPerCore = &v
  24790. return s
  24791. }
  24792. // Contains the parameters for CreateCustomerGateway.
  24793. type CreateCustomerGatewayInput struct {
  24794. _ struct{} `type:"structure"`
  24795. // For devices that support BGP, the customer gateway's BGP ASN.
  24796. //
  24797. // Default: 65000
  24798. //
  24799. // BgpAsn is a required field
  24800. BgpAsn *int64 `type:"integer" required:"true"`
  24801. // Checks whether you have the required permissions for the action, without
  24802. // actually making the request, and provides an error response. If you have
  24803. // the required permissions, the error response is DryRunOperation. Otherwise,
  24804. // it is UnauthorizedOperation.
  24805. DryRun *bool `locationName:"dryRun" type:"boolean"`
  24806. // The Internet-routable IP address for the customer gateway's outside interface.
  24807. // The address must be static.
  24808. //
  24809. // PublicIp is a required field
  24810. PublicIp *string `locationName:"IpAddress" type:"string" required:"true"`
  24811. // The type of VPN connection that this customer gateway supports (ipsec.1).
  24812. //
  24813. // Type is a required field
  24814. Type *string `type:"string" required:"true" enum:"GatewayType"`
  24815. }
  24816. // String returns the string representation
  24817. func (s CreateCustomerGatewayInput) String() string {
  24818. return awsutil.Prettify(s)
  24819. }
  24820. // GoString returns the string representation
  24821. func (s CreateCustomerGatewayInput) GoString() string {
  24822. return s.String()
  24823. }
  24824. // Validate inspects the fields of the type to determine if they are valid.
  24825. func (s *CreateCustomerGatewayInput) Validate() error {
  24826. invalidParams := request.ErrInvalidParams{Context: "CreateCustomerGatewayInput"}
  24827. if s.BgpAsn == nil {
  24828. invalidParams.Add(request.NewErrParamRequired("BgpAsn"))
  24829. }
  24830. if s.PublicIp == nil {
  24831. invalidParams.Add(request.NewErrParamRequired("PublicIp"))
  24832. }
  24833. if s.Type == nil {
  24834. invalidParams.Add(request.NewErrParamRequired("Type"))
  24835. }
  24836. if invalidParams.Len() > 0 {
  24837. return invalidParams
  24838. }
  24839. return nil
  24840. }
  24841. // SetBgpAsn sets the BgpAsn field's value.
  24842. func (s *CreateCustomerGatewayInput) SetBgpAsn(v int64) *CreateCustomerGatewayInput {
  24843. s.BgpAsn = &v
  24844. return s
  24845. }
  24846. // SetDryRun sets the DryRun field's value.
  24847. func (s *CreateCustomerGatewayInput) SetDryRun(v bool) *CreateCustomerGatewayInput {
  24848. s.DryRun = &v
  24849. return s
  24850. }
  24851. // SetPublicIp sets the PublicIp field's value.
  24852. func (s *CreateCustomerGatewayInput) SetPublicIp(v string) *CreateCustomerGatewayInput {
  24853. s.PublicIp = &v
  24854. return s
  24855. }
  24856. // SetType sets the Type field's value.
  24857. func (s *CreateCustomerGatewayInput) SetType(v string) *CreateCustomerGatewayInput {
  24858. s.Type = &v
  24859. return s
  24860. }
  24861. // Contains the output of CreateCustomerGateway.
  24862. type CreateCustomerGatewayOutput struct {
  24863. _ struct{} `type:"structure"`
  24864. // Information about the customer gateway.
  24865. CustomerGateway *CustomerGateway `locationName:"customerGateway" type:"structure"`
  24866. }
  24867. // String returns the string representation
  24868. func (s CreateCustomerGatewayOutput) String() string {
  24869. return awsutil.Prettify(s)
  24870. }
  24871. // GoString returns the string representation
  24872. func (s CreateCustomerGatewayOutput) GoString() string {
  24873. return s.String()
  24874. }
  24875. // SetCustomerGateway sets the CustomerGateway field's value.
  24876. func (s *CreateCustomerGatewayOutput) SetCustomerGateway(v *CustomerGateway) *CreateCustomerGatewayOutput {
  24877. s.CustomerGateway = v
  24878. return s
  24879. }
  24880. type CreateDefaultSubnetInput struct {
  24881. _ struct{} `type:"structure"`
  24882. // The Availability Zone in which to create the default subnet.
  24883. //
  24884. // AvailabilityZone is a required field
  24885. AvailabilityZone *string `type:"string" required:"true"`
  24886. // Checks whether you have the required permissions for the action, without
  24887. // actually making the request, and provides an error response. If you have
  24888. // the required permissions, the error response is DryRunOperation. Otherwise,
  24889. // it is UnauthorizedOperation.
  24890. DryRun *bool `type:"boolean"`
  24891. }
  24892. // String returns the string representation
  24893. func (s CreateDefaultSubnetInput) String() string {
  24894. return awsutil.Prettify(s)
  24895. }
  24896. // GoString returns the string representation
  24897. func (s CreateDefaultSubnetInput) GoString() string {
  24898. return s.String()
  24899. }
  24900. // Validate inspects the fields of the type to determine if they are valid.
  24901. func (s *CreateDefaultSubnetInput) Validate() error {
  24902. invalidParams := request.ErrInvalidParams{Context: "CreateDefaultSubnetInput"}
  24903. if s.AvailabilityZone == nil {
  24904. invalidParams.Add(request.NewErrParamRequired("AvailabilityZone"))
  24905. }
  24906. if invalidParams.Len() > 0 {
  24907. return invalidParams
  24908. }
  24909. return nil
  24910. }
  24911. // SetAvailabilityZone sets the AvailabilityZone field's value.
  24912. func (s *CreateDefaultSubnetInput) SetAvailabilityZone(v string) *CreateDefaultSubnetInput {
  24913. s.AvailabilityZone = &v
  24914. return s
  24915. }
  24916. // SetDryRun sets the DryRun field's value.
  24917. func (s *CreateDefaultSubnetInput) SetDryRun(v bool) *CreateDefaultSubnetInput {
  24918. s.DryRun = &v
  24919. return s
  24920. }
  24921. type CreateDefaultSubnetOutput struct {
  24922. _ struct{} `type:"structure"`
  24923. // Information about the subnet.
  24924. Subnet *Subnet `locationName:"subnet" type:"structure"`
  24925. }
  24926. // String returns the string representation
  24927. func (s CreateDefaultSubnetOutput) String() string {
  24928. return awsutil.Prettify(s)
  24929. }
  24930. // GoString returns the string representation
  24931. func (s CreateDefaultSubnetOutput) GoString() string {
  24932. return s.String()
  24933. }
  24934. // SetSubnet sets the Subnet field's value.
  24935. func (s *CreateDefaultSubnetOutput) SetSubnet(v *Subnet) *CreateDefaultSubnetOutput {
  24936. s.Subnet = v
  24937. return s
  24938. }
  24939. // Contains the parameters for CreateDefaultVpc.
  24940. type CreateDefaultVpcInput struct {
  24941. _ struct{} `type:"structure"`
  24942. // Checks whether you have the required permissions for the action, without
  24943. // actually making the request, and provides an error response. If you have
  24944. // the required permissions, the error response is DryRunOperation. Otherwise,
  24945. // it is UnauthorizedOperation.
  24946. DryRun *bool `type:"boolean"`
  24947. }
  24948. // String returns the string representation
  24949. func (s CreateDefaultVpcInput) String() string {
  24950. return awsutil.Prettify(s)
  24951. }
  24952. // GoString returns the string representation
  24953. func (s CreateDefaultVpcInput) GoString() string {
  24954. return s.String()
  24955. }
  24956. // SetDryRun sets the DryRun field's value.
  24957. func (s *CreateDefaultVpcInput) SetDryRun(v bool) *CreateDefaultVpcInput {
  24958. s.DryRun = &v
  24959. return s
  24960. }
  24961. // Contains the output of CreateDefaultVpc.
  24962. type CreateDefaultVpcOutput struct {
  24963. _ struct{} `type:"structure"`
  24964. // Information about the VPC.
  24965. Vpc *Vpc `locationName:"vpc" type:"structure"`
  24966. }
  24967. // String returns the string representation
  24968. func (s CreateDefaultVpcOutput) String() string {
  24969. return awsutil.Prettify(s)
  24970. }
  24971. // GoString returns the string representation
  24972. func (s CreateDefaultVpcOutput) GoString() string {
  24973. return s.String()
  24974. }
  24975. // SetVpc sets the Vpc field's value.
  24976. func (s *CreateDefaultVpcOutput) SetVpc(v *Vpc) *CreateDefaultVpcOutput {
  24977. s.Vpc = v
  24978. return s
  24979. }
  24980. // Contains the parameters for CreateDhcpOptions.
  24981. type CreateDhcpOptionsInput struct {
  24982. _ struct{} `type:"structure"`
  24983. // A DHCP configuration option.
  24984. //
  24985. // DhcpConfigurations is a required field
  24986. DhcpConfigurations []*NewDhcpConfiguration `locationName:"dhcpConfiguration" locationNameList:"item" type:"list" required:"true"`
  24987. // Checks whether you have the required permissions for the action, without
  24988. // actually making the request, and provides an error response. If you have
  24989. // the required permissions, the error response is DryRunOperation. Otherwise,
  24990. // it is UnauthorizedOperation.
  24991. DryRun *bool `locationName:"dryRun" type:"boolean"`
  24992. }
  24993. // String returns the string representation
  24994. func (s CreateDhcpOptionsInput) String() string {
  24995. return awsutil.Prettify(s)
  24996. }
  24997. // GoString returns the string representation
  24998. func (s CreateDhcpOptionsInput) GoString() string {
  24999. return s.String()
  25000. }
  25001. // Validate inspects the fields of the type to determine if they are valid.
  25002. func (s *CreateDhcpOptionsInput) Validate() error {
  25003. invalidParams := request.ErrInvalidParams{Context: "CreateDhcpOptionsInput"}
  25004. if s.DhcpConfigurations == nil {
  25005. invalidParams.Add(request.NewErrParamRequired("DhcpConfigurations"))
  25006. }
  25007. if invalidParams.Len() > 0 {
  25008. return invalidParams
  25009. }
  25010. return nil
  25011. }
  25012. // SetDhcpConfigurations sets the DhcpConfigurations field's value.
  25013. func (s *CreateDhcpOptionsInput) SetDhcpConfigurations(v []*NewDhcpConfiguration) *CreateDhcpOptionsInput {
  25014. s.DhcpConfigurations = v
  25015. return s
  25016. }
  25017. // SetDryRun sets the DryRun field's value.
  25018. func (s *CreateDhcpOptionsInput) SetDryRun(v bool) *CreateDhcpOptionsInput {
  25019. s.DryRun = &v
  25020. return s
  25021. }
  25022. // Contains the output of CreateDhcpOptions.
  25023. type CreateDhcpOptionsOutput struct {
  25024. _ struct{} `type:"structure"`
  25025. // A set of DHCP options.
  25026. DhcpOptions *DhcpOptions `locationName:"dhcpOptions" type:"structure"`
  25027. }
  25028. // String returns the string representation
  25029. func (s CreateDhcpOptionsOutput) String() string {
  25030. return awsutil.Prettify(s)
  25031. }
  25032. // GoString returns the string representation
  25033. func (s CreateDhcpOptionsOutput) GoString() string {
  25034. return s.String()
  25035. }
  25036. // SetDhcpOptions sets the DhcpOptions field's value.
  25037. func (s *CreateDhcpOptionsOutput) SetDhcpOptions(v *DhcpOptions) *CreateDhcpOptionsOutput {
  25038. s.DhcpOptions = v
  25039. return s
  25040. }
  25041. type CreateEgressOnlyInternetGatewayInput struct {
  25042. _ struct{} `type:"structure"`
  25043. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  25044. // the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html).
  25045. ClientToken *string `type:"string"`
  25046. // Checks whether you have the required permissions for the action, without
  25047. // actually making the request, and provides an error response. If you have
  25048. // the required permissions, the error response is DryRunOperation. Otherwise,
  25049. // it is UnauthorizedOperation.
  25050. DryRun *bool `type:"boolean"`
  25051. // The ID of the VPC for which to create the egress-only Internet gateway.
  25052. //
  25053. // VpcId is a required field
  25054. VpcId *string `type:"string" required:"true"`
  25055. }
  25056. // String returns the string representation
  25057. func (s CreateEgressOnlyInternetGatewayInput) String() string {
  25058. return awsutil.Prettify(s)
  25059. }
  25060. // GoString returns the string representation
  25061. func (s CreateEgressOnlyInternetGatewayInput) GoString() string {
  25062. return s.String()
  25063. }
  25064. // Validate inspects the fields of the type to determine if they are valid.
  25065. func (s *CreateEgressOnlyInternetGatewayInput) Validate() error {
  25066. invalidParams := request.ErrInvalidParams{Context: "CreateEgressOnlyInternetGatewayInput"}
  25067. if s.VpcId == nil {
  25068. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  25069. }
  25070. if invalidParams.Len() > 0 {
  25071. return invalidParams
  25072. }
  25073. return nil
  25074. }
  25075. // SetClientToken sets the ClientToken field's value.
  25076. func (s *CreateEgressOnlyInternetGatewayInput) SetClientToken(v string) *CreateEgressOnlyInternetGatewayInput {
  25077. s.ClientToken = &v
  25078. return s
  25079. }
  25080. // SetDryRun sets the DryRun field's value.
  25081. func (s *CreateEgressOnlyInternetGatewayInput) SetDryRun(v bool) *CreateEgressOnlyInternetGatewayInput {
  25082. s.DryRun = &v
  25083. return s
  25084. }
  25085. // SetVpcId sets the VpcId field's value.
  25086. func (s *CreateEgressOnlyInternetGatewayInput) SetVpcId(v string) *CreateEgressOnlyInternetGatewayInput {
  25087. s.VpcId = &v
  25088. return s
  25089. }
  25090. type CreateEgressOnlyInternetGatewayOutput struct {
  25091. _ struct{} `type:"structure"`
  25092. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  25093. // the request.
  25094. ClientToken *string `locationName:"clientToken" type:"string"`
  25095. // Information about the egress-only Internet gateway.
  25096. EgressOnlyInternetGateway *EgressOnlyInternetGateway `locationName:"egressOnlyInternetGateway" type:"structure"`
  25097. }
  25098. // String returns the string representation
  25099. func (s CreateEgressOnlyInternetGatewayOutput) String() string {
  25100. return awsutil.Prettify(s)
  25101. }
  25102. // GoString returns the string representation
  25103. func (s CreateEgressOnlyInternetGatewayOutput) GoString() string {
  25104. return s.String()
  25105. }
  25106. // SetClientToken sets the ClientToken field's value.
  25107. func (s *CreateEgressOnlyInternetGatewayOutput) SetClientToken(v string) *CreateEgressOnlyInternetGatewayOutput {
  25108. s.ClientToken = &v
  25109. return s
  25110. }
  25111. // SetEgressOnlyInternetGateway sets the EgressOnlyInternetGateway field's value.
  25112. func (s *CreateEgressOnlyInternetGatewayOutput) SetEgressOnlyInternetGateway(v *EgressOnlyInternetGateway) *CreateEgressOnlyInternetGatewayOutput {
  25113. s.EgressOnlyInternetGateway = v
  25114. return s
  25115. }
  25116. type CreateFleetInput struct {
  25117. _ struct{} `type:"structure"`
  25118. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  25119. // the request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  25120. ClientToken *string `type:"string"`
  25121. // Checks whether you have the required permissions for the action, without
  25122. // actually making the request, and provides an error response. If you have
  25123. // the required permissions, the error response is DryRunOperation. Otherwise,
  25124. // it is UnauthorizedOperation.
  25125. DryRun *bool `type:"boolean"`
  25126. // Indicates whether running instances should be terminated if the total target
  25127. // capacity of the EC2 Fleet is decreased below the current size of the EC2
  25128. // Fleet.
  25129. ExcessCapacityTerminationPolicy *string `type:"string" enum:"FleetExcessCapacityTerminationPolicy"`
  25130. // The configuration for the EC2 Fleet.
  25131. //
  25132. // LaunchTemplateConfigs is a required field
  25133. LaunchTemplateConfigs []*FleetLaunchTemplateConfigRequest `locationNameList:"item" type:"list" required:"true"`
  25134. // Indicates whether EC2 Fleet should replace unhealthy instances.
  25135. ReplaceUnhealthyInstances *bool `type:"boolean"`
  25136. // Includes SpotAllocationStrategy and SpotInstanceInterruptionBehavior inside
  25137. // this structure.
  25138. SpotOptions *SpotOptionsRequest `type:"structure"`
  25139. // The tags for an EC2 Fleet resource.
  25140. TagSpecifications []*TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
  25141. // The TotalTargetCapacity, OnDemandTargetCapacity, SpotTargetCapacity, and
  25142. // DefaultCapacityType structure.
  25143. //
  25144. // TargetCapacitySpecification is a required field
  25145. TargetCapacitySpecification *TargetCapacitySpecificationRequest `type:"structure" required:"true"`
  25146. // Indicates whether running instances should be terminated when the EC2 Fleet
  25147. // expires.
  25148. TerminateInstancesWithExpiration *bool `type:"boolean"`
  25149. // The type of request. Indicates whether the EC2 Fleet only requests the target
  25150. // capacity, or also attempts to maintain it. If you request a certain target
  25151. // capacity, EC2 Fleet only places the required requests. It does not attempt
  25152. // to replenish instances if capacity is diminished, and does not submit requests
  25153. // in alternative capacity pools if capacity is unavailable. To maintain a certain
  25154. // target capacity, EC2 Fleet places the required requests to meet this target
  25155. // capacity. It also automatically replenishes any interrupted Spot Instances.
  25156. // Default: maintain.
  25157. Type *string `type:"string" enum:"FleetType"`
  25158. // The start date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  25159. // The default is to start fulfilling the request immediately.
  25160. ValidFrom *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  25161. // The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  25162. // At this point, no new EC2 Fleet requests are placed or able to fulfill the
  25163. // request. The default end date is 7 days from the current date.
  25164. ValidUntil *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  25165. }
  25166. // String returns the string representation
  25167. func (s CreateFleetInput) String() string {
  25168. return awsutil.Prettify(s)
  25169. }
  25170. // GoString returns the string representation
  25171. func (s CreateFleetInput) GoString() string {
  25172. return s.String()
  25173. }
  25174. // Validate inspects the fields of the type to determine if they are valid.
  25175. func (s *CreateFleetInput) Validate() error {
  25176. invalidParams := request.ErrInvalidParams{Context: "CreateFleetInput"}
  25177. if s.LaunchTemplateConfigs == nil {
  25178. invalidParams.Add(request.NewErrParamRequired("LaunchTemplateConfigs"))
  25179. }
  25180. if s.TargetCapacitySpecification == nil {
  25181. invalidParams.Add(request.NewErrParamRequired("TargetCapacitySpecification"))
  25182. }
  25183. if s.LaunchTemplateConfigs != nil {
  25184. for i, v := range s.LaunchTemplateConfigs {
  25185. if v == nil {
  25186. continue
  25187. }
  25188. if err := v.Validate(); err != nil {
  25189. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "LaunchTemplateConfigs", i), err.(request.ErrInvalidParams))
  25190. }
  25191. }
  25192. }
  25193. if s.TargetCapacitySpecification != nil {
  25194. if err := s.TargetCapacitySpecification.Validate(); err != nil {
  25195. invalidParams.AddNested("TargetCapacitySpecification", err.(request.ErrInvalidParams))
  25196. }
  25197. }
  25198. if invalidParams.Len() > 0 {
  25199. return invalidParams
  25200. }
  25201. return nil
  25202. }
  25203. // SetClientToken sets the ClientToken field's value.
  25204. func (s *CreateFleetInput) SetClientToken(v string) *CreateFleetInput {
  25205. s.ClientToken = &v
  25206. return s
  25207. }
  25208. // SetDryRun sets the DryRun field's value.
  25209. func (s *CreateFleetInput) SetDryRun(v bool) *CreateFleetInput {
  25210. s.DryRun = &v
  25211. return s
  25212. }
  25213. // SetExcessCapacityTerminationPolicy sets the ExcessCapacityTerminationPolicy field's value.
  25214. func (s *CreateFleetInput) SetExcessCapacityTerminationPolicy(v string) *CreateFleetInput {
  25215. s.ExcessCapacityTerminationPolicy = &v
  25216. return s
  25217. }
  25218. // SetLaunchTemplateConfigs sets the LaunchTemplateConfigs field's value.
  25219. func (s *CreateFleetInput) SetLaunchTemplateConfigs(v []*FleetLaunchTemplateConfigRequest) *CreateFleetInput {
  25220. s.LaunchTemplateConfigs = v
  25221. return s
  25222. }
  25223. // SetReplaceUnhealthyInstances sets the ReplaceUnhealthyInstances field's value.
  25224. func (s *CreateFleetInput) SetReplaceUnhealthyInstances(v bool) *CreateFleetInput {
  25225. s.ReplaceUnhealthyInstances = &v
  25226. return s
  25227. }
  25228. // SetSpotOptions sets the SpotOptions field's value.
  25229. func (s *CreateFleetInput) SetSpotOptions(v *SpotOptionsRequest) *CreateFleetInput {
  25230. s.SpotOptions = v
  25231. return s
  25232. }
  25233. // SetTagSpecifications sets the TagSpecifications field's value.
  25234. func (s *CreateFleetInput) SetTagSpecifications(v []*TagSpecification) *CreateFleetInput {
  25235. s.TagSpecifications = v
  25236. return s
  25237. }
  25238. // SetTargetCapacitySpecification sets the TargetCapacitySpecification field's value.
  25239. func (s *CreateFleetInput) SetTargetCapacitySpecification(v *TargetCapacitySpecificationRequest) *CreateFleetInput {
  25240. s.TargetCapacitySpecification = v
  25241. return s
  25242. }
  25243. // SetTerminateInstancesWithExpiration sets the TerminateInstancesWithExpiration field's value.
  25244. func (s *CreateFleetInput) SetTerminateInstancesWithExpiration(v bool) *CreateFleetInput {
  25245. s.TerminateInstancesWithExpiration = &v
  25246. return s
  25247. }
  25248. // SetType sets the Type field's value.
  25249. func (s *CreateFleetInput) SetType(v string) *CreateFleetInput {
  25250. s.Type = &v
  25251. return s
  25252. }
  25253. // SetValidFrom sets the ValidFrom field's value.
  25254. func (s *CreateFleetInput) SetValidFrom(v time.Time) *CreateFleetInput {
  25255. s.ValidFrom = &v
  25256. return s
  25257. }
  25258. // SetValidUntil sets the ValidUntil field's value.
  25259. func (s *CreateFleetInput) SetValidUntil(v time.Time) *CreateFleetInput {
  25260. s.ValidUntil = &v
  25261. return s
  25262. }
  25263. type CreateFleetOutput struct {
  25264. _ struct{} `type:"structure"`
  25265. // The ID of the EC2 Fleet.
  25266. FleetId *string `locationName:"fleetId" type:"string"`
  25267. }
  25268. // String returns the string representation
  25269. func (s CreateFleetOutput) String() string {
  25270. return awsutil.Prettify(s)
  25271. }
  25272. // GoString returns the string representation
  25273. func (s CreateFleetOutput) GoString() string {
  25274. return s.String()
  25275. }
  25276. // SetFleetId sets the FleetId field's value.
  25277. func (s *CreateFleetOutput) SetFleetId(v string) *CreateFleetOutput {
  25278. s.FleetId = &v
  25279. return s
  25280. }
  25281. // Contains the parameters for CreateFlowLogs.
  25282. type CreateFlowLogsInput struct {
  25283. _ struct{} `type:"structure"`
  25284. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  25285. // the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html).
  25286. ClientToken *string `type:"string"`
  25287. // The ARN for the IAM role that's used to post flow logs to a CloudWatch Logs
  25288. // log group.
  25289. //
  25290. // DeliverLogsPermissionArn is a required field
  25291. DeliverLogsPermissionArn *string `type:"string" required:"true"`
  25292. // The name of the CloudWatch log group.
  25293. //
  25294. // LogGroupName is a required field
  25295. LogGroupName *string `type:"string" required:"true"`
  25296. // One or more subnet, network interface, or VPC IDs.
  25297. //
  25298. // Constraints: Maximum of 1000 resources
  25299. //
  25300. // ResourceIds is a required field
  25301. ResourceIds []*string `locationName:"ResourceId" locationNameList:"item" type:"list" required:"true"`
  25302. // The type of resource on which to create the flow log.
  25303. //
  25304. // ResourceType is a required field
  25305. ResourceType *string `type:"string" required:"true" enum:"FlowLogsResourceType"`
  25306. // The type of traffic to log.
  25307. //
  25308. // TrafficType is a required field
  25309. TrafficType *string `type:"string" required:"true" enum:"TrafficType"`
  25310. }
  25311. // String returns the string representation
  25312. func (s CreateFlowLogsInput) String() string {
  25313. return awsutil.Prettify(s)
  25314. }
  25315. // GoString returns the string representation
  25316. func (s CreateFlowLogsInput) GoString() string {
  25317. return s.String()
  25318. }
  25319. // Validate inspects the fields of the type to determine if they are valid.
  25320. func (s *CreateFlowLogsInput) Validate() error {
  25321. invalidParams := request.ErrInvalidParams{Context: "CreateFlowLogsInput"}
  25322. if s.DeliverLogsPermissionArn == nil {
  25323. invalidParams.Add(request.NewErrParamRequired("DeliverLogsPermissionArn"))
  25324. }
  25325. if s.LogGroupName == nil {
  25326. invalidParams.Add(request.NewErrParamRequired("LogGroupName"))
  25327. }
  25328. if s.ResourceIds == nil {
  25329. invalidParams.Add(request.NewErrParamRequired("ResourceIds"))
  25330. }
  25331. if s.ResourceType == nil {
  25332. invalidParams.Add(request.NewErrParamRequired("ResourceType"))
  25333. }
  25334. if s.TrafficType == nil {
  25335. invalidParams.Add(request.NewErrParamRequired("TrafficType"))
  25336. }
  25337. if invalidParams.Len() > 0 {
  25338. return invalidParams
  25339. }
  25340. return nil
  25341. }
  25342. // SetClientToken sets the ClientToken field's value.
  25343. func (s *CreateFlowLogsInput) SetClientToken(v string) *CreateFlowLogsInput {
  25344. s.ClientToken = &v
  25345. return s
  25346. }
  25347. // SetDeliverLogsPermissionArn sets the DeliverLogsPermissionArn field's value.
  25348. func (s *CreateFlowLogsInput) SetDeliverLogsPermissionArn(v string) *CreateFlowLogsInput {
  25349. s.DeliverLogsPermissionArn = &v
  25350. return s
  25351. }
  25352. // SetLogGroupName sets the LogGroupName field's value.
  25353. func (s *CreateFlowLogsInput) SetLogGroupName(v string) *CreateFlowLogsInput {
  25354. s.LogGroupName = &v
  25355. return s
  25356. }
  25357. // SetResourceIds sets the ResourceIds field's value.
  25358. func (s *CreateFlowLogsInput) SetResourceIds(v []*string) *CreateFlowLogsInput {
  25359. s.ResourceIds = v
  25360. return s
  25361. }
  25362. // SetResourceType sets the ResourceType field's value.
  25363. func (s *CreateFlowLogsInput) SetResourceType(v string) *CreateFlowLogsInput {
  25364. s.ResourceType = &v
  25365. return s
  25366. }
  25367. // SetTrafficType sets the TrafficType field's value.
  25368. func (s *CreateFlowLogsInput) SetTrafficType(v string) *CreateFlowLogsInput {
  25369. s.TrafficType = &v
  25370. return s
  25371. }
  25372. // Contains the output of CreateFlowLogs.
  25373. type CreateFlowLogsOutput struct {
  25374. _ struct{} `type:"structure"`
  25375. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  25376. // the request.
  25377. ClientToken *string `locationName:"clientToken" type:"string"`
  25378. // The IDs of the flow logs.
  25379. FlowLogIds []*string `locationName:"flowLogIdSet" locationNameList:"item" type:"list"`
  25380. // Information about the flow logs that could not be created successfully.
  25381. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  25382. }
  25383. // String returns the string representation
  25384. func (s CreateFlowLogsOutput) String() string {
  25385. return awsutil.Prettify(s)
  25386. }
  25387. // GoString returns the string representation
  25388. func (s CreateFlowLogsOutput) GoString() string {
  25389. return s.String()
  25390. }
  25391. // SetClientToken sets the ClientToken field's value.
  25392. func (s *CreateFlowLogsOutput) SetClientToken(v string) *CreateFlowLogsOutput {
  25393. s.ClientToken = &v
  25394. return s
  25395. }
  25396. // SetFlowLogIds sets the FlowLogIds field's value.
  25397. func (s *CreateFlowLogsOutput) SetFlowLogIds(v []*string) *CreateFlowLogsOutput {
  25398. s.FlowLogIds = v
  25399. return s
  25400. }
  25401. // SetUnsuccessful sets the Unsuccessful field's value.
  25402. func (s *CreateFlowLogsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *CreateFlowLogsOutput {
  25403. s.Unsuccessful = v
  25404. return s
  25405. }
  25406. type CreateFpgaImageInput struct {
  25407. _ struct{} `type:"structure"`
  25408. // Unique, case-sensitive identifier that you provide to ensure the idempotency
  25409. // of the request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html).
  25410. ClientToken *string `type:"string"`
  25411. // A description for the AFI.
  25412. Description *string `type:"string"`
  25413. // Checks whether you have the required permissions for the action, without
  25414. // actually making the request, and provides an error response. If you have
  25415. // the required permissions, the error response is DryRunOperation. Otherwise,
  25416. // it is UnauthorizedOperation.
  25417. DryRun *bool `type:"boolean"`
  25418. // The location of the encrypted design checkpoint in Amazon S3. The input must
  25419. // be a tarball.
  25420. //
  25421. // InputStorageLocation is a required field
  25422. InputStorageLocation *StorageLocation `type:"structure" required:"true"`
  25423. // The location in Amazon S3 for the output logs.
  25424. LogsStorageLocation *StorageLocation `type:"structure"`
  25425. // A name for the AFI.
  25426. Name *string `type:"string"`
  25427. }
  25428. // String returns the string representation
  25429. func (s CreateFpgaImageInput) String() string {
  25430. return awsutil.Prettify(s)
  25431. }
  25432. // GoString returns the string representation
  25433. func (s CreateFpgaImageInput) GoString() string {
  25434. return s.String()
  25435. }
  25436. // Validate inspects the fields of the type to determine if they are valid.
  25437. func (s *CreateFpgaImageInput) Validate() error {
  25438. invalidParams := request.ErrInvalidParams{Context: "CreateFpgaImageInput"}
  25439. if s.InputStorageLocation == nil {
  25440. invalidParams.Add(request.NewErrParamRequired("InputStorageLocation"))
  25441. }
  25442. if invalidParams.Len() > 0 {
  25443. return invalidParams
  25444. }
  25445. return nil
  25446. }
  25447. // SetClientToken sets the ClientToken field's value.
  25448. func (s *CreateFpgaImageInput) SetClientToken(v string) *CreateFpgaImageInput {
  25449. s.ClientToken = &v
  25450. return s
  25451. }
  25452. // SetDescription sets the Description field's value.
  25453. func (s *CreateFpgaImageInput) SetDescription(v string) *CreateFpgaImageInput {
  25454. s.Description = &v
  25455. return s
  25456. }
  25457. // SetDryRun sets the DryRun field's value.
  25458. func (s *CreateFpgaImageInput) SetDryRun(v bool) *CreateFpgaImageInput {
  25459. s.DryRun = &v
  25460. return s
  25461. }
  25462. // SetInputStorageLocation sets the InputStorageLocation field's value.
  25463. func (s *CreateFpgaImageInput) SetInputStorageLocation(v *StorageLocation) *CreateFpgaImageInput {
  25464. s.InputStorageLocation = v
  25465. return s
  25466. }
  25467. // SetLogsStorageLocation sets the LogsStorageLocation field's value.
  25468. func (s *CreateFpgaImageInput) SetLogsStorageLocation(v *StorageLocation) *CreateFpgaImageInput {
  25469. s.LogsStorageLocation = v
  25470. return s
  25471. }
  25472. // SetName sets the Name field's value.
  25473. func (s *CreateFpgaImageInput) SetName(v string) *CreateFpgaImageInput {
  25474. s.Name = &v
  25475. return s
  25476. }
  25477. type CreateFpgaImageOutput struct {
  25478. _ struct{} `type:"structure"`
  25479. // The global FPGA image identifier (AGFI ID).
  25480. FpgaImageGlobalId *string `locationName:"fpgaImageGlobalId" type:"string"`
  25481. // The FPGA image identifier (AFI ID).
  25482. FpgaImageId *string `locationName:"fpgaImageId" type:"string"`
  25483. }
  25484. // String returns the string representation
  25485. func (s CreateFpgaImageOutput) String() string {
  25486. return awsutil.Prettify(s)
  25487. }
  25488. // GoString returns the string representation
  25489. func (s CreateFpgaImageOutput) GoString() string {
  25490. return s.String()
  25491. }
  25492. // SetFpgaImageGlobalId sets the FpgaImageGlobalId field's value.
  25493. func (s *CreateFpgaImageOutput) SetFpgaImageGlobalId(v string) *CreateFpgaImageOutput {
  25494. s.FpgaImageGlobalId = &v
  25495. return s
  25496. }
  25497. // SetFpgaImageId sets the FpgaImageId field's value.
  25498. func (s *CreateFpgaImageOutput) SetFpgaImageId(v string) *CreateFpgaImageOutput {
  25499. s.FpgaImageId = &v
  25500. return s
  25501. }
  25502. // Contains the parameters for CreateImage.
  25503. type CreateImageInput struct {
  25504. _ struct{} `type:"structure"`
  25505. // Information about one or more block device mappings.
  25506. BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"BlockDeviceMapping" type:"list"`
  25507. // A description for the new image.
  25508. Description *string `locationName:"description" type:"string"`
  25509. // Checks whether you have the required permissions for the action, without
  25510. // actually making the request, and provides an error response. If you have
  25511. // the required permissions, the error response is DryRunOperation. Otherwise,
  25512. // it is UnauthorizedOperation.
  25513. DryRun *bool `locationName:"dryRun" type:"boolean"`
  25514. // The ID of the instance.
  25515. //
  25516. // InstanceId is a required field
  25517. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  25518. // A name for the new image.
  25519. //
  25520. // Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets
  25521. // ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('),
  25522. // at-signs (@), or underscores(_)
  25523. //
  25524. // Name is a required field
  25525. Name *string `locationName:"name" type:"string" required:"true"`
  25526. // By default, Amazon EC2 attempts to shut down and reboot the instance before
  25527. // creating the image. If the 'No Reboot' option is set, Amazon EC2 doesn't
  25528. // shut down the instance before creating the image. When this option is used,
  25529. // file system integrity on the created image can't be guaranteed.
  25530. NoReboot *bool `locationName:"noReboot" type:"boolean"`
  25531. }
  25532. // String returns the string representation
  25533. func (s CreateImageInput) String() string {
  25534. return awsutil.Prettify(s)
  25535. }
  25536. // GoString returns the string representation
  25537. func (s CreateImageInput) GoString() string {
  25538. return s.String()
  25539. }
  25540. // Validate inspects the fields of the type to determine if they are valid.
  25541. func (s *CreateImageInput) Validate() error {
  25542. invalidParams := request.ErrInvalidParams{Context: "CreateImageInput"}
  25543. if s.InstanceId == nil {
  25544. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  25545. }
  25546. if s.Name == nil {
  25547. invalidParams.Add(request.NewErrParamRequired("Name"))
  25548. }
  25549. if invalidParams.Len() > 0 {
  25550. return invalidParams
  25551. }
  25552. return nil
  25553. }
  25554. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  25555. func (s *CreateImageInput) SetBlockDeviceMappings(v []*BlockDeviceMapping) *CreateImageInput {
  25556. s.BlockDeviceMappings = v
  25557. return s
  25558. }
  25559. // SetDescription sets the Description field's value.
  25560. func (s *CreateImageInput) SetDescription(v string) *CreateImageInput {
  25561. s.Description = &v
  25562. return s
  25563. }
  25564. // SetDryRun sets the DryRun field's value.
  25565. func (s *CreateImageInput) SetDryRun(v bool) *CreateImageInput {
  25566. s.DryRun = &v
  25567. return s
  25568. }
  25569. // SetInstanceId sets the InstanceId field's value.
  25570. func (s *CreateImageInput) SetInstanceId(v string) *CreateImageInput {
  25571. s.InstanceId = &v
  25572. return s
  25573. }
  25574. // SetName sets the Name field's value.
  25575. func (s *CreateImageInput) SetName(v string) *CreateImageInput {
  25576. s.Name = &v
  25577. return s
  25578. }
  25579. // SetNoReboot sets the NoReboot field's value.
  25580. func (s *CreateImageInput) SetNoReboot(v bool) *CreateImageInput {
  25581. s.NoReboot = &v
  25582. return s
  25583. }
  25584. // Contains the output of CreateImage.
  25585. type CreateImageOutput struct {
  25586. _ struct{} `type:"structure"`
  25587. // The ID of the new AMI.
  25588. ImageId *string `locationName:"imageId" type:"string"`
  25589. }
  25590. // String returns the string representation
  25591. func (s CreateImageOutput) String() string {
  25592. return awsutil.Prettify(s)
  25593. }
  25594. // GoString returns the string representation
  25595. func (s CreateImageOutput) GoString() string {
  25596. return s.String()
  25597. }
  25598. // SetImageId sets the ImageId field's value.
  25599. func (s *CreateImageOutput) SetImageId(v string) *CreateImageOutput {
  25600. s.ImageId = &v
  25601. return s
  25602. }
  25603. // Contains the parameters for CreateInstanceExportTask.
  25604. type CreateInstanceExportTaskInput struct {
  25605. _ struct{} `type:"structure"`
  25606. // A description for the conversion task or the resource being exported. The
  25607. // maximum length is 255 bytes.
  25608. Description *string `locationName:"description" type:"string"`
  25609. // The format and location for an instance export task.
  25610. ExportToS3Task *ExportToS3TaskSpecification `locationName:"exportToS3" type:"structure"`
  25611. // The ID of the instance.
  25612. //
  25613. // InstanceId is a required field
  25614. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  25615. // The target virtualization environment.
  25616. TargetEnvironment *string `locationName:"targetEnvironment" type:"string" enum:"ExportEnvironment"`
  25617. }
  25618. // String returns the string representation
  25619. func (s CreateInstanceExportTaskInput) String() string {
  25620. return awsutil.Prettify(s)
  25621. }
  25622. // GoString returns the string representation
  25623. func (s CreateInstanceExportTaskInput) GoString() string {
  25624. return s.String()
  25625. }
  25626. // Validate inspects the fields of the type to determine if they are valid.
  25627. func (s *CreateInstanceExportTaskInput) Validate() error {
  25628. invalidParams := request.ErrInvalidParams{Context: "CreateInstanceExportTaskInput"}
  25629. if s.InstanceId == nil {
  25630. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  25631. }
  25632. if invalidParams.Len() > 0 {
  25633. return invalidParams
  25634. }
  25635. return nil
  25636. }
  25637. // SetDescription sets the Description field's value.
  25638. func (s *CreateInstanceExportTaskInput) SetDescription(v string) *CreateInstanceExportTaskInput {
  25639. s.Description = &v
  25640. return s
  25641. }
  25642. // SetExportToS3Task sets the ExportToS3Task field's value.
  25643. func (s *CreateInstanceExportTaskInput) SetExportToS3Task(v *ExportToS3TaskSpecification) *CreateInstanceExportTaskInput {
  25644. s.ExportToS3Task = v
  25645. return s
  25646. }
  25647. // SetInstanceId sets the InstanceId field's value.
  25648. func (s *CreateInstanceExportTaskInput) SetInstanceId(v string) *CreateInstanceExportTaskInput {
  25649. s.InstanceId = &v
  25650. return s
  25651. }
  25652. // SetTargetEnvironment sets the TargetEnvironment field's value.
  25653. func (s *CreateInstanceExportTaskInput) SetTargetEnvironment(v string) *CreateInstanceExportTaskInput {
  25654. s.TargetEnvironment = &v
  25655. return s
  25656. }
  25657. // Contains the output for CreateInstanceExportTask.
  25658. type CreateInstanceExportTaskOutput struct {
  25659. _ struct{} `type:"structure"`
  25660. // Information about the instance export task.
  25661. ExportTask *ExportTask `locationName:"exportTask" type:"structure"`
  25662. }
  25663. // String returns the string representation
  25664. func (s CreateInstanceExportTaskOutput) String() string {
  25665. return awsutil.Prettify(s)
  25666. }
  25667. // GoString returns the string representation
  25668. func (s CreateInstanceExportTaskOutput) GoString() string {
  25669. return s.String()
  25670. }
  25671. // SetExportTask sets the ExportTask field's value.
  25672. func (s *CreateInstanceExportTaskOutput) SetExportTask(v *ExportTask) *CreateInstanceExportTaskOutput {
  25673. s.ExportTask = v
  25674. return s
  25675. }
  25676. // Contains the parameters for CreateInternetGateway.
  25677. type CreateInternetGatewayInput struct {
  25678. _ struct{} `type:"structure"`
  25679. // Checks whether you have the required permissions for the action, without
  25680. // actually making the request, and provides an error response. If you have
  25681. // the required permissions, the error response is DryRunOperation. Otherwise,
  25682. // it is UnauthorizedOperation.
  25683. DryRun *bool `locationName:"dryRun" type:"boolean"`
  25684. }
  25685. // String returns the string representation
  25686. func (s CreateInternetGatewayInput) String() string {
  25687. return awsutil.Prettify(s)
  25688. }
  25689. // GoString returns the string representation
  25690. func (s CreateInternetGatewayInput) GoString() string {
  25691. return s.String()
  25692. }
  25693. // SetDryRun sets the DryRun field's value.
  25694. func (s *CreateInternetGatewayInput) SetDryRun(v bool) *CreateInternetGatewayInput {
  25695. s.DryRun = &v
  25696. return s
  25697. }
  25698. // Contains the output of CreateInternetGateway.
  25699. type CreateInternetGatewayOutput struct {
  25700. _ struct{} `type:"structure"`
  25701. // Information about the Internet gateway.
  25702. InternetGateway *InternetGateway `locationName:"internetGateway" type:"structure"`
  25703. }
  25704. // String returns the string representation
  25705. func (s CreateInternetGatewayOutput) String() string {
  25706. return awsutil.Prettify(s)
  25707. }
  25708. // GoString returns the string representation
  25709. func (s CreateInternetGatewayOutput) GoString() string {
  25710. return s.String()
  25711. }
  25712. // SetInternetGateway sets the InternetGateway field's value.
  25713. func (s *CreateInternetGatewayOutput) SetInternetGateway(v *InternetGateway) *CreateInternetGatewayOutput {
  25714. s.InternetGateway = v
  25715. return s
  25716. }
  25717. // Contains the parameters for CreateKeyPair.
  25718. type CreateKeyPairInput struct {
  25719. _ struct{} `type:"structure"`
  25720. // Checks whether you have the required permissions for the action, without
  25721. // actually making the request, and provides an error response. If you have
  25722. // the required permissions, the error response is DryRunOperation. Otherwise,
  25723. // it is UnauthorizedOperation.
  25724. DryRun *bool `locationName:"dryRun" type:"boolean"`
  25725. // A unique name for the key pair.
  25726. //
  25727. // Constraints: Up to 255 ASCII characters
  25728. //
  25729. // KeyName is a required field
  25730. KeyName *string `type:"string" required:"true"`
  25731. }
  25732. // String returns the string representation
  25733. func (s CreateKeyPairInput) String() string {
  25734. return awsutil.Prettify(s)
  25735. }
  25736. // GoString returns the string representation
  25737. func (s CreateKeyPairInput) GoString() string {
  25738. return s.String()
  25739. }
  25740. // Validate inspects the fields of the type to determine if they are valid.
  25741. func (s *CreateKeyPairInput) Validate() error {
  25742. invalidParams := request.ErrInvalidParams{Context: "CreateKeyPairInput"}
  25743. if s.KeyName == nil {
  25744. invalidParams.Add(request.NewErrParamRequired("KeyName"))
  25745. }
  25746. if invalidParams.Len() > 0 {
  25747. return invalidParams
  25748. }
  25749. return nil
  25750. }
  25751. // SetDryRun sets the DryRun field's value.
  25752. func (s *CreateKeyPairInput) SetDryRun(v bool) *CreateKeyPairInput {
  25753. s.DryRun = &v
  25754. return s
  25755. }
  25756. // SetKeyName sets the KeyName field's value.
  25757. func (s *CreateKeyPairInput) SetKeyName(v string) *CreateKeyPairInput {
  25758. s.KeyName = &v
  25759. return s
  25760. }
  25761. // Describes a key pair.
  25762. type CreateKeyPairOutput struct {
  25763. _ struct{} `type:"structure"`
  25764. // The SHA-1 digest of the DER encoded private key.
  25765. KeyFingerprint *string `locationName:"keyFingerprint" type:"string"`
  25766. // An unencrypted PEM encoded RSA private key.
  25767. KeyMaterial *string `locationName:"keyMaterial" type:"string"`
  25768. // The name of the key pair.
  25769. KeyName *string `locationName:"keyName" type:"string"`
  25770. }
  25771. // String returns the string representation
  25772. func (s CreateKeyPairOutput) String() string {
  25773. return awsutil.Prettify(s)
  25774. }
  25775. // GoString returns the string representation
  25776. func (s CreateKeyPairOutput) GoString() string {
  25777. return s.String()
  25778. }
  25779. // SetKeyFingerprint sets the KeyFingerprint field's value.
  25780. func (s *CreateKeyPairOutput) SetKeyFingerprint(v string) *CreateKeyPairOutput {
  25781. s.KeyFingerprint = &v
  25782. return s
  25783. }
  25784. // SetKeyMaterial sets the KeyMaterial field's value.
  25785. func (s *CreateKeyPairOutput) SetKeyMaterial(v string) *CreateKeyPairOutput {
  25786. s.KeyMaterial = &v
  25787. return s
  25788. }
  25789. // SetKeyName sets the KeyName field's value.
  25790. func (s *CreateKeyPairOutput) SetKeyName(v string) *CreateKeyPairOutput {
  25791. s.KeyName = &v
  25792. return s
  25793. }
  25794. type CreateLaunchTemplateInput struct {
  25795. _ struct{} `type:"structure"`
  25796. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  25797. // the request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  25798. ClientToken *string `type:"string"`
  25799. // Checks whether you have the required permissions for the action, without
  25800. // actually making the request, and provides an error response. If you have
  25801. // the required permissions, the error response is DryRunOperation. Otherwise,
  25802. // it is UnauthorizedOperation.
  25803. DryRun *bool `type:"boolean"`
  25804. // The information for the launch template.
  25805. //
  25806. // LaunchTemplateData is a required field
  25807. LaunchTemplateData *RequestLaunchTemplateData `type:"structure" required:"true"`
  25808. // A name for the launch template.
  25809. //
  25810. // LaunchTemplateName is a required field
  25811. LaunchTemplateName *string `min:"3" type:"string" required:"true"`
  25812. // A description for the first version of the launch template.
  25813. VersionDescription *string `type:"string"`
  25814. }
  25815. // String returns the string representation
  25816. func (s CreateLaunchTemplateInput) String() string {
  25817. return awsutil.Prettify(s)
  25818. }
  25819. // GoString returns the string representation
  25820. func (s CreateLaunchTemplateInput) GoString() string {
  25821. return s.String()
  25822. }
  25823. // Validate inspects the fields of the type to determine if they are valid.
  25824. func (s *CreateLaunchTemplateInput) Validate() error {
  25825. invalidParams := request.ErrInvalidParams{Context: "CreateLaunchTemplateInput"}
  25826. if s.LaunchTemplateData == nil {
  25827. invalidParams.Add(request.NewErrParamRequired("LaunchTemplateData"))
  25828. }
  25829. if s.LaunchTemplateName == nil {
  25830. invalidParams.Add(request.NewErrParamRequired("LaunchTemplateName"))
  25831. }
  25832. if s.LaunchTemplateName != nil && len(*s.LaunchTemplateName) < 3 {
  25833. invalidParams.Add(request.NewErrParamMinLen("LaunchTemplateName", 3))
  25834. }
  25835. if s.LaunchTemplateData != nil {
  25836. if err := s.LaunchTemplateData.Validate(); err != nil {
  25837. invalidParams.AddNested("LaunchTemplateData", err.(request.ErrInvalidParams))
  25838. }
  25839. }
  25840. if invalidParams.Len() > 0 {
  25841. return invalidParams
  25842. }
  25843. return nil
  25844. }
  25845. // SetClientToken sets the ClientToken field's value.
  25846. func (s *CreateLaunchTemplateInput) SetClientToken(v string) *CreateLaunchTemplateInput {
  25847. s.ClientToken = &v
  25848. return s
  25849. }
  25850. // SetDryRun sets the DryRun field's value.
  25851. func (s *CreateLaunchTemplateInput) SetDryRun(v bool) *CreateLaunchTemplateInput {
  25852. s.DryRun = &v
  25853. return s
  25854. }
  25855. // SetLaunchTemplateData sets the LaunchTemplateData field's value.
  25856. func (s *CreateLaunchTemplateInput) SetLaunchTemplateData(v *RequestLaunchTemplateData) *CreateLaunchTemplateInput {
  25857. s.LaunchTemplateData = v
  25858. return s
  25859. }
  25860. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  25861. func (s *CreateLaunchTemplateInput) SetLaunchTemplateName(v string) *CreateLaunchTemplateInput {
  25862. s.LaunchTemplateName = &v
  25863. return s
  25864. }
  25865. // SetVersionDescription sets the VersionDescription field's value.
  25866. func (s *CreateLaunchTemplateInput) SetVersionDescription(v string) *CreateLaunchTemplateInput {
  25867. s.VersionDescription = &v
  25868. return s
  25869. }
  25870. type CreateLaunchTemplateOutput struct {
  25871. _ struct{} `type:"structure"`
  25872. // Information about the launch template.
  25873. LaunchTemplate *LaunchTemplate `locationName:"launchTemplate" type:"structure"`
  25874. }
  25875. // String returns the string representation
  25876. func (s CreateLaunchTemplateOutput) String() string {
  25877. return awsutil.Prettify(s)
  25878. }
  25879. // GoString returns the string representation
  25880. func (s CreateLaunchTemplateOutput) GoString() string {
  25881. return s.String()
  25882. }
  25883. // SetLaunchTemplate sets the LaunchTemplate field's value.
  25884. func (s *CreateLaunchTemplateOutput) SetLaunchTemplate(v *LaunchTemplate) *CreateLaunchTemplateOutput {
  25885. s.LaunchTemplate = v
  25886. return s
  25887. }
  25888. type CreateLaunchTemplateVersionInput struct {
  25889. _ struct{} `type:"structure"`
  25890. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  25891. // the request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  25892. ClientToken *string `type:"string"`
  25893. // Checks whether you have the required permissions for the action, without
  25894. // actually making the request, and provides an error response. If you have
  25895. // the required permissions, the error response is DryRunOperation. Otherwise,
  25896. // it is UnauthorizedOperation.
  25897. DryRun *bool `type:"boolean"`
  25898. // The information for the launch template.
  25899. //
  25900. // LaunchTemplateData is a required field
  25901. LaunchTemplateData *RequestLaunchTemplateData `type:"structure" required:"true"`
  25902. // The ID of the launch template. You must specify either the launch template
  25903. // ID or launch template name in the request.
  25904. LaunchTemplateId *string `type:"string"`
  25905. // The name of the launch template. You must specify either the launch template
  25906. // ID or launch template name in the request.
  25907. LaunchTemplateName *string `min:"3" type:"string"`
  25908. // The version number of the launch template version on which to base the new
  25909. // version. The new version inherits the same launch parameters as the source
  25910. // version, except for parameters that you specify in LaunchTemplateData.
  25911. SourceVersion *string `type:"string"`
  25912. // A description for the version of the launch template.
  25913. VersionDescription *string `type:"string"`
  25914. }
  25915. // String returns the string representation
  25916. func (s CreateLaunchTemplateVersionInput) String() string {
  25917. return awsutil.Prettify(s)
  25918. }
  25919. // GoString returns the string representation
  25920. func (s CreateLaunchTemplateVersionInput) GoString() string {
  25921. return s.String()
  25922. }
  25923. // Validate inspects the fields of the type to determine if they are valid.
  25924. func (s *CreateLaunchTemplateVersionInput) Validate() error {
  25925. invalidParams := request.ErrInvalidParams{Context: "CreateLaunchTemplateVersionInput"}
  25926. if s.LaunchTemplateData == nil {
  25927. invalidParams.Add(request.NewErrParamRequired("LaunchTemplateData"))
  25928. }
  25929. if s.LaunchTemplateName != nil && len(*s.LaunchTemplateName) < 3 {
  25930. invalidParams.Add(request.NewErrParamMinLen("LaunchTemplateName", 3))
  25931. }
  25932. if s.LaunchTemplateData != nil {
  25933. if err := s.LaunchTemplateData.Validate(); err != nil {
  25934. invalidParams.AddNested("LaunchTemplateData", err.(request.ErrInvalidParams))
  25935. }
  25936. }
  25937. if invalidParams.Len() > 0 {
  25938. return invalidParams
  25939. }
  25940. return nil
  25941. }
  25942. // SetClientToken sets the ClientToken field's value.
  25943. func (s *CreateLaunchTemplateVersionInput) SetClientToken(v string) *CreateLaunchTemplateVersionInput {
  25944. s.ClientToken = &v
  25945. return s
  25946. }
  25947. // SetDryRun sets the DryRun field's value.
  25948. func (s *CreateLaunchTemplateVersionInput) SetDryRun(v bool) *CreateLaunchTemplateVersionInput {
  25949. s.DryRun = &v
  25950. return s
  25951. }
  25952. // SetLaunchTemplateData sets the LaunchTemplateData field's value.
  25953. func (s *CreateLaunchTemplateVersionInput) SetLaunchTemplateData(v *RequestLaunchTemplateData) *CreateLaunchTemplateVersionInput {
  25954. s.LaunchTemplateData = v
  25955. return s
  25956. }
  25957. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  25958. func (s *CreateLaunchTemplateVersionInput) SetLaunchTemplateId(v string) *CreateLaunchTemplateVersionInput {
  25959. s.LaunchTemplateId = &v
  25960. return s
  25961. }
  25962. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  25963. func (s *CreateLaunchTemplateVersionInput) SetLaunchTemplateName(v string) *CreateLaunchTemplateVersionInput {
  25964. s.LaunchTemplateName = &v
  25965. return s
  25966. }
  25967. // SetSourceVersion sets the SourceVersion field's value.
  25968. func (s *CreateLaunchTemplateVersionInput) SetSourceVersion(v string) *CreateLaunchTemplateVersionInput {
  25969. s.SourceVersion = &v
  25970. return s
  25971. }
  25972. // SetVersionDescription sets the VersionDescription field's value.
  25973. func (s *CreateLaunchTemplateVersionInput) SetVersionDescription(v string) *CreateLaunchTemplateVersionInput {
  25974. s.VersionDescription = &v
  25975. return s
  25976. }
  25977. type CreateLaunchTemplateVersionOutput struct {
  25978. _ struct{} `type:"structure"`
  25979. // Information about the launch template version.
  25980. LaunchTemplateVersion *LaunchTemplateVersion `locationName:"launchTemplateVersion" type:"structure"`
  25981. }
  25982. // String returns the string representation
  25983. func (s CreateLaunchTemplateVersionOutput) String() string {
  25984. return awsutil.Prettify(s)
  25985. }
  25986. // GoString returns the string representation
  25987. func (s CreateLaunchTemplateVersionOutput) GoString() string {
  25988. return s.String()
  25989. }
  25990. // SetLaunchTemplateVersion sets the LaunchTemplateVersion field's value.
  25991. func (s *CreateLaunchTemplateVersionOutput) SetLaunchTemplateVersion(v *LaunchTemplateVersion) *CreateLaunchTemplateVersionOutput {
  25992. s.LaunchTemplateVersion = v
  25993. return s
  25994. }
  25995. // Contains the parameters for CreateNatGateway.
  25996. type CreateNatGatewayInput struct {
  25997. _ struct{} `type:"structure"`
  25998. // The allocation ID of an Elastic IP address to associate with the NAT gateway.
  25999. // If the Elastic IP address is associated with another resource, you must first
  26000. // disassociate it.
  26001. //
  26002. // AllocationId is a required field
  26003. AllocationId *string `type:"string" required:"true"`
  26004. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  26005. // the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  26006. //
  26007. // Constraint: Maximum 64 ASCII characters.
  26008. ClientToken *string `type:"string"`
  26009. // The subnet in which to create the NAT gateway.
  26010. //
  26011. // SubnetId is a required field
  26012. SubnetId *string `type:"string" required:"true"`
  26013. }
  26014. // String returns the string representation
  26015. func (s CreateNatGatewayInput) String() string {
  26016. return awsutil.Prettify(s)
  26017. }
  26018. // GoString returns the string representation
  26019. func (s CreateNatGatewayInput) GoString() string {
  26020. return s.String()
  26021. }
  26022. // Validate inspects the fields of the type to determine if they are valid.
  26023. func (s *CreateNatGatewayInput) Validate() error {
  26024. invalidParams := request.ErrInvalidParams{Context: "CreateNatGatewayInput"}
  26025. if s.AllocationId == nil {
  26026. invalidParams.Add(request.NewErrParamRequired("AllocationId"))
  26027. }
  26028. if s.SubnetId == nil {
  26029. invalidParams.Add(request.NewErrParamRequired("SubnetId"))
  26030. }
  26031. if invalidParams.Len() > 0 {
  26032. return invalidParams
  26033. }
  26034. return nil
  26035. }
  26036. // SetAllocationId sets the AllocationId field's value.
  26037. func (s *CreateNatGatewayInput) SetAllocationId(v string) *CreateNatGatewayInput {
  26038. s.AllocationId = &v
  26039. return s
  26040. }
  26041. // SetClientToken sets the ClientToken field's value.
  26042. func (s *CreateNatGatewayInput) SetClientToken(v string) *CreateNatGatewayInput {
  26043. s.ClientToken = &v
  26044. return s
  26045. }
  26046. // SetSubnetId sets the SubnetId field's value.
  26047. func (s *CreateNatGatewayInput) SetSubnetId(v string) *CreateNatGatewayInput {
  26048. s.SubnetId = &v
  26049. return s
  26050. }
  26051. // Contains the output of CreateNatGateway.
  26052. type CreateNatGatewayOutput struct {
  26053. _ struct{} `type:"structure"`
  26054. // Unique, case-sensitive identifier to ensure the idempotency of the request.
  26055. // Only returned if a client token was provided in the request.
  26056. ClientToken *string `locationName:"clientToken" type:"string"`
  26057. // Information about the NAT gateway.
  26058. NatGateway *NatGateway `locationName:"natGateway" type:"structure"`
  26059. }
  26060. // String returns the string representation
  26061. func (s CreateNatGatewayOutput) String() string {
  26062. return awsutil.Prettify(s)
  26063. }
  26064. // GoString returns the string representation
  26065. func (s CreateNatGatewayOutput) GoString() string {
  26066. return s.String()
  26067. }
  26068. // SetClientToken sets the ClientToken field's value.
  26069. func (s *CreateNatGatewayOutput) SetClientToken(v string) *CreateNatGatewayOutput {
  26070. s.ClientToken = &v
  26071. return s
  26072. }
  26073. // SetNatGateway sets the NatGateway field's value.
  26074. func (s *CreateNatGatewayOutput) SetNatGateway(v *NatGateway) *CreateNatGatewayOutput {
  26075. s.NatGateway = v
  26076. return s
  26077. }
  26078. // Contains the parameters for CreateNetworkAclEntry.
  26079. type CreateNetworkAclEntryInput struct {
  26080. _ struct{} `type:"structure"`
  26081. // The IPv4 network range to allow or deny, in CIDR notation (for example 172.16.0.0/24).
  26082. CidrBlock *string `locationName:"cidrBlock" type:"string"`
  26083. // Checks whether you have the required permissions for the action, without
  26084. // actually making the request, and provides an error response. If you have
  26085. // the required permissions, the error response is DryRunOperation. Otherwise,
  26086. // it is UnauthorizedOperation.
  26087. DryRun *bool `locationName:"dryRun" type:"boolean"`
  26088. // Indicates whether this is an egress rule (rule is applied to traffic leaving
  26089. // the subnet).
  26090. //
  26091. // Egress is a required field
  26092. Egress *bool `locationName:"egress" type:"boolean" required:"true"`
  26093. // ICMP protocol: The ICMP or ICMPv6 type and code. Required if specifying the
  26094. // ICMP protocol, or protocol 58 (ICMPv6) with an IPv6 CIDR block.
  26095. IcmpTypeCode *IcmpTypeCode `locationName:"Icmp" type:"structure"`
  26096. // The IPv6 network range to allow or deny, in CIDR notation (for example 2001:db8:1234:1a00::/64).
  26097. Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"`
  26098. // The ID of the network ACL.
  26099. //
  26100. // NetworkAclId is a required field
  26101. NetworkAclId *string `locationName:"networkAclId" type:"string" required:"true"`
  26102. // TCP or UDP protocols: The range of ports the rule applies to.
  26103. PortRange *PortRange `locationName:"portRange" type:"structure"`
  26104. // The protocol. A value of -1 or all means all protocols. If you specify all,
  26105. // -1, or a protocol number other than 6 (tcp), 17 (udp), or 1 (icmp), traffic
  26106. // on all ports is allowed, regardless of any ports or ICMP types or codes you
  26107. // specify. If you specify protocol 58 (ICMPv6) and specify an IPv4 CIDR block,
  26108. // traffic for all ICMP types and codes allowed, regardless of any that you
  26109. // specify. If you specify protocol 58 (ICMPv6) and specify an IPv6 CIDR block,
  26110. // you must specify an ICMP type and code.
  26111. //
  26112. // Protocol is a required field
  26113. Protocol *string `locationName:"protocol" type:"string" required:"true"`
  26114. // Indicates whether to allow or deny the traffic that matches the rule.
  26115. //
  26116. // RuleAction is a required field
  26117. RuleAction *string `locationName:"ruleAction" type:"string" required:"true" enum:"RuleAction"`
  26118. // The rule number for the entry (for example, 100). ACL entries are processed
  26119. // in ascending order by rule number.
  26120. //
  26121. // Constraints: Positive integer from 1 to 32766. The range 32767 to 65535 is
  26122. // reserved for internal use.
  26123. //
  26124. // RuleNumber is a required field
  26125. RuleNumber *int64 `locationName:"ruleNumber" type:"integer" required:"true"`
  26126. }
  26127. // String returns the string representation
  26128. func (s CreateNetworkAclEntryInput) String() string {
  26129. return awsutil.Prettify(s)
  26130. }
  26131. // GoString returns the string representation
  26132. func (s CreateNetworkAclEntryInput) GoString() string {
  26133. return s.String()
  26134. }
  26135. // Validate inspects the fields of the type to determine if they are valid.
  26136. func (s *CreateNetworkAclEntryInput) Validate() error {
  26137. invalidParams := request.ErrInvalidParams{Context: "CreateNetworkAclEntryInput"}
  26138. if s.Egress == nil {
  26139. invalidParams.Add(request.NewErrParamRequired("Egress"))
  26140. }
  26141. if s.NetworkAclId == nil {
  26142. invalidParams.Add(request.NewErrParamRequired("NetworkAclId"))
  26143. }
  26144. if s.Protocol == nil {
  26145. invalidParams.Add(request.NewErrParamRequired("Protocol"))
  26146. }
  26147. if s.RuleAction == nil {
  26148. invalidParams.Add(request.NewErrParamRequired("RuleAction"))
  26149. }
  26150. if s.RuleNumber == nil {
  26151. invalidParams.Add(request.NewErrParamRequired("RuleNumber"))
  26152. }
  26153. if invalidParams.Len() > 0 {
  26154. return invalidParams
  26155. }
  26156. return nil
  26157. }
  26158. // SetCidrBlock sets the CidrBlock field's value.
  26159. func (s *CreateNetworkAclEntryInput) SetCidrBlock(v string) *CreateNetworkAclEntryInput {
  26160. s.CidrBlock = &v
  26161. return s
  26162. }
  26163. // SetDryRun sets the DryRun field's value.
  26164. func (s *CreateNetworkAclEntryInput) SetDryRun(v bool) *CreateNetworkAclEntryInput {
  26165. s.DryRun = &v
  26166. return s
  26167. }
  26168. // SetEgress sets the Egress field's value.
  26169. func (s *CreateNetworkAclEntryInput) SetEgress(v bool) *CreateNetworkAclEntryInput {
  26170. s.Egress = &v
  26171. return s
  26172. }
  26173. // SetIcmpTypeCode sets the IcmpTypeCode field's value.
  26174. func (s *CreateNetworkAclEntryInput) SetIcmpTypeCode(v *IcmpTypeCode) *CreateNetworkAclEntryInput {
  26175. s.IcmpTypeCode = v
  26176. return s
  26177. }
  26178. // SetIpv6CidrBlock sets the Ipv6CidrBlock field's value.
  26179. func (s *CreateNetworkAclEntryInput) SetIpv6CidrBlock(v string) *CreateNetworkAclEntryInput {
  26180. s.Ipv6CidrBlock = &v
  26181. return s
  26182. }
  26183. // SetNetworkAclId sets the NetworkAclId field's value.
  26184. func (s *CreateNetworkAclEntryInput) SetNetworkAclId(v string) *CreateNetworkAclEntryInput {
  26185. s.NetworkAclId = &v
  26186. return s
  26187. }
  26188. // SetPortRange sets the PortRange field's value.
  26189. func (s *CreateNetworkAclEntryInput) SetPortRange(v *PortRange) *CreateNetworkAclEntryInput {
  26190. s.PortRange = v
  26191. return s
  26192. }
  26193. // SetProtocol sets the Protocol field's value.
  26194. func (s *CreateNetworkAclEntryInput) SetProtocol(v string) *CreateNetworkAclEntryInput {
  26195. s.Protocol = &v
  26196. return s
  26197. }
  26198. // SetRuleAction sets the RuleAction field's value.
  26199. func (s *CreateNetworkAclEntryInput) SetRuleAction(v string) *CreateNetworkAclEntryInput {
  26200. s.RuleAction = &v
  26201. return s
  26202. }
  26203. // SetRuleNumber sets the RuleNumber field's value.
  26204. func (s *CreateNetworkAclEntryInput) SetRuleNumber(v int64) *CreateNetworkAclEntryInput {
  26205. s.RuleNumber = &v
  26206. return s
  26207. }
  26208. type CreateNetworkAclEntryOutput struct {
  26209. _ struct{} `type:"structure"`
  26210. }
  26211. // String returns the string representation
  26212. func (s CreateNetworkAclEntryOutput) String() string {
  26213. return awsutil.Prettify(s)
  26214. }
  26215. // GoString returns the string representation
  26216. func (s CreateNetworkAclEntryOutput) GoString() string {
  26217. return s.String()
  26218. }
  26219. // Contains the parameters for CreateNetworkAcl.
  26220. type CreateNetworkAclInput struct {
  26221. _ struct{} `type:"structure"`
  26222. // Checks whether you have the required permissions for the action, without
  26223. // actually making the request, and provides an error response. If you have
  26224. // the required permissions, the error response is DryRunOperation. Otherwise,
  26225. // it is UnauthorizedOperation.
  26226. DryRun *bool `locationName:"dryRun" type:"boolean"`
  26227. // The ID of the VPC.
  26228. //
  26229. // VpcId is a required field
  26230. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  26231. }
  26232. // String returns the string representation
  26233. func (s CreateNetworkAclInput) String() string {
  26234. return awsutil.Prettify(s)
  26235. }
  26236. // GoString returns the string representation
  26237. func (s CreateNetworkAclInput) GoString() string {
  26238. return s.String()
  26239. }
  26240. // Validate inspects the fields of the type to determine if they are valid.
  26241. func (s *CreateNetworkAclInput) Validate() error {
  26242. invalidParams := request.ErrInvalidParams{Context: "CreateNetworkAclInput"}
  26243. if s.VpcId == nil {
  26244. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  26245. }
  26246. if invalidParams.Len() > 0 {
  26247. return invalidParams
  26248. }
  26249. return nil
  26250. }
  26251. // SetDryRun sets the DryRun field's value.
  26252. func (s *CreateNetworkAclInput) SetDryRun(v bool) *CreateNetworkAclInput {
  26253. s.DryRun = &v
  26254. return s
  26255. }
  26256. // SetVpcId sets the VpcId field's value.
  26257. func (s *CreateNetworkAclInput) SetVpcId(v string) *CreateNetworkAclInput {
  26258. s.VpcId = &v
  26259. return s
  26260. }
  26261. // Contains the output of CreateNetworkAcl.
  26262. type CreateNetworkAclOutput struct {
  26263. _ struct{} `type:"structure"`
  26264. // Information about the network ACL.
  26265. NetworkAcl *NetworkAcl `locationName:"networkAcl" type:"structure"`
  26266. }
  26267. // String returns the string representation
  26268. func (s CreateNetworkAclOutput) String() string {
  26269. return awsutil.Prettify(s)
  26270. }
  26271. // GoString returns the string representation
  26272. func (s CreateNetworkAclOutput) GoString() string {
  26273. return s.String()
  26274. }
  26275. // SetNetworkAcl sets the NetworkAcl field's value.
  26276. func (s *CreateNetworkAclOutput) SetNetworkAcl(v *NetworkAcl) *CreateNetworkAclOutput {
  26277. s.NetworkAcl = v
  26278. return s
  26279. }
  26280. // Contains the parameters for CreateNetworkInterface.
  26281. type CreateNetworkInterfaceInput struct {
  26282. _ struct{} `type:"structure"`
  26283. // A description for the network interface.
  26284. Description *string `locationName:"description" type:"string"`
  26285. // Checks whether you have the required permissions for the action, without
  26286. // actually making the request, and provides an error response. If you have
  26287. // the required permissions, the error response is DryRunOperation. Otherwise,
  26288. // it is UnauthorizedOperation.
  26289. DryRun *bool `locationName:"dryRun" type:"boolean"`
  26290. // The IDs of one or more security groups.
  26291. Groups []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`
  26292. // The number of IPv6 addresses to assign to a network interface. Amazon EC2
  26293. // automatically selects the IPv6 addresses from the subnet range. You can't
  26294. // use this option if specifying specific IPv6 addresses. If your subnet has
  26295. // the AssignIpv6AddressOnCreation attribute set to true, you can specify 0
  26296. // to override this setting.
  26297. Ipv6AddressCount *int64 `locationName:"ipv6AddressCount" type:"integer"`
  26298. // One or more specific IPv6 addresses from the IPv6 CIDR block range of your
  26299. // subnet. You can't use this option if you're specifying a number of IPv6 addresses.
  26300. Ipv6Addresses []*InstanceIpv6Address `locationName:"ipv6Addresses" locationNameList:"item" type:"list"`
  26301. // The primary private IPv4 address of the network interface. If you don't specify
  26302. // an IPv4 address, Amazon EC2 selects one for you from the subnet's IPv4 CIDR
  26303. // range. If you specify an IP address, you cannot indicate any IP addresses
  26304. // specified in privateIpAddresses as primary (only one IP address can be designated
  26305. // as primary).
  26306. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  26307. // One or more private IPv4 addresses.
  26308. PrivateIpAddresses []*PrivateIpAddressSpecification `locationName:"privateIpAddresses" locationNameList:"item" type:"list"`
  26309. // The number of secondary private IPv4 addresses to assign to a network interface.
  26310. // When you specify a number of secondary IPv4 addresses, Amazon EC2 selects
  26311. // these IP addresses within the subnet's IPv4 CIDR range. You can't specify
  26312. // this option and specify more than one private IP address using privateIpAddresses.
  26313. //
  26314. // The number of IP addresses you can assign to a network interface varies by
  26315. // instance type. For more information, see IP Addresses Per ENI Per Instance
  26316. // Type (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html#AvailableIpPerENI)
  26317. // in the Amazon Virtual Private Cloud User Guide.
  26318. SecondaryPrivateIpAddressCount *int64 `locationName:"secondaryPrivateIpAddressCount" type:"integer"`
  26319. // The ID of the subnet to associate with the network interface.
  26320. //
  26321. // SubnetId is a required field
  26322. SubnetId *string `locationName:"subnetId" type:"string" required:"true"`
  26323. }
  26324. // String returns the string representation
  26325. func (s CreateNetworkInterfaceInput) String() string {
  26326. return awsutil.Prettify(s)
  26327. }
  26328. // GoString returns the string representation
  26329. func (s CreateNetworkInterfaceInput) GoString() string {
  26330. return s.String()
  26331. }
  26332. // Validate inspects the fields of the type to determine if they are valid.
  26333. func (s *CreateNetworkInterfaceInput) Validate() error {
  26334. invalidParams := request.ErrInvalidParams{Context: "CreateNetworkInterfaceInput"}
  26335. if s.SubnetId == nil {
  26336. invalidParams.Add(request.NewErrParamRequired("SubnetId"))
  26337. }
  26338. if s.PrivateIpAddresses != nil {
  26339. for i, v := range s.PrivateIpAddresses {
  26340. if v == nil {
  26341. continue
  26342. }
  26343. if err := v.Validate(); err != nil {
  26344. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PrivateIpAddresses", i), err.(request.ErrInvalidParams))
  26345. }
  26346. }
  26347. }
  26348. if invalidParams.Len() > 0 {
  26349. return invalidParams
  26350. }
  26351. return nil
  26352. }
  26353. // SetDescription sets the Description field's value.
  26354. func (s *CreateNetworkInterfaceInput) SetDescription(v string) *CreateNetworkInterfaceInput {
  26355. s.Description = &v
  26356. return s
  26357. }
  26358. // SetDryRun sets the DryRun field's value.
  26359. func (s *CreateNetworkInterfaceInput) SetDryRun(v bool) *CreateNetworkInterfaceInput {
  26360. s.DryRun = &v
  26361. return s
  26362. }
  26363. // SetGroups sets the Groups field's value.
  26364. func (s *CreateNetworkInterfaceInput) SetGroups(v []*string) *CreateNetworkInterfaceInput {
  26365. s.Groups = v
  26366. return s
  26367. }
  26368. // SetIpv6AddressCount sets the Ipv6AddressCount field's value.
  26369. func (s *CreateNetworkInterfaceInput) SetIpv6AddressCount(v int64) *CreateNetworkInterfaceInput {
  26370. s.Ipv6AddressCount = &v
  26371. return s
  26372. }
  26373. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  26374. func (s *CreateNetworkInterfaceInput) SetIpv6Addresses(v []*InstanceIpv6Address) *CreateNetworkInterfaceInput {
  26375. s.Ipv6Addresses = v
  26376. return s
  26377. }
  26378. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  26379. func (s *CreateNetworkInterfaceInput) SetPrivateIpAddress(v string) *CreateNetworkInterfaceInput {
  26380. s.PrivateIpAddress = &v
  26381. return s
  26382. }
  26383. // SetPrivateIpAddresses sets the PrivateIpAddresses field's value.
  26384. func (s *CreateNetworkInterfaceInput) SetPrivateIpAddresses(v []*PrivateIpAddressSpecification) *CreateNetworkInterfaceInput {
  26385. s.PrivateIpAddresses = v
  26386. return s
  26387. }
  26388. // SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value.
  26389. func (s *CreateNetworkInterfaceInput) SetSecondaryPrivateIpAddressCount(v int64) *CreateNetworkInterfaceInput {
  26390. s.SecondaryPrivateIpAddressCount = &v
  26391. return s
  26392. }
  26393. // SetSubnetId sets the SubnetId field's value.
  26394. func (s *CreateNetworkInterfaceInput) SetSubnetId(v string) *CreateNetworkInterfaceInput {
  26395. s.SubnetId = &v
  26396. return s
  26397. }
  26398. // Contains the output of CreateNetworkInterface.
  26399. type CreateNetworkInterfaceOutput struct {
  26400. _ struct{} `type:"structure"`
  26401. // Information about the network interface.
  26402. NetworkInterface *NetworkInterface `locationName:"networkInterface" type:"structure"`
  26403. }
  26404. // String returns the string representation
  26405. func (s CreateNetworkInterfaceOutput) String() string {
  26406. return awsutil.Prettify(s)
  26407. }
  26408. // GoString returns the string representation
  26409. func (s CreateNetworkInterfaceOutput) GoString() string {
  26410. return s.String()
  26411. }
  26412. // SetNetworkInterface sets the NetworkInterface field's value.
  26413. func (s *CreateNetworkInterfaceOutput) SetNetworkInterface(v *NetworkInterface) *CreateNetworkInterfaceOutput {
  26414. s.NetworkInterface = v
  26415. return s
  26416. }
  26417. // Contains the parameters for CreateNetworkInterfacePermission.
  26418. type CreateNetworkInterfacePermissionInput struct {
  26419. _ struct{} `type:"structure"`
  26420. // The AWS account ID.
  26421. AwsAccountId *string `type:"string"`
  26422. // The AWS service. Currently not supported.
  26423. AwsService *string `type:"string"`
  26424. // Checks whether you have the required permissions for the action, without
  26425. // actually making the request, and provides an error response. If you have
  26426. // the required permissions, the error response is DryRunOperation. Otherwise,
  26427. // it is UnauthorizedOperation.
  26428. DryRun *bool `type:"boolean"`
  26429. // The ID of the network interface.
  26430. //
  26431. // NetworkInterfaceId is a required field
  26432. NetworkInterfaceId *string `type:"string" required:"true"`
  26433. // The type of permission to grant.
  26434. //
  26435. // Permission is a required field
  26436. Permission *string `type:"string" required:"true" enum:"InterfacePermissionType"`
  26437. }
  26438. // String returns the string representation
  26439. func (s CreateNetworkInterfacePermissionInput) String() string {
  26440. return awsutil.Prettify(s)
  26441. }
  26442. // GoString returns the string representation
  26443. func (s CreateNetworkInterfacePermissionInput) GoString() string {
  26444. return s.String()
  26445. }
  26446. // Validate inspects the fields of the type to determine if they are valid.
  26447. func (s *CreateNetworkInterfacePermissionInput) Validate() error {
  26448. invalidParams := request.ErrInvalidParams{Context: "CreateNetworkInterfacePermissionInput"}
  26449. if s.NetworkInterfaceId == nil {
  26450. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  26451. }
  26452. if s.Permission == nil {
  26453. invalidParams.Add(request.NewErrParamRequired("Permission"))
  26454. }
  26455. if invalidParams.Len() > 0 {
  26456. return invalidParams
  26457. }
  26458. return nil
  26459. }
  26460. // SetAwsAccountId sets the AwsAccountId field's value.
  26461. func (s *CreateNetworkInterfacePermissionInput) SetAwsAccountId(v string) *CreateNetworkInterfacePermissionInput {
  26462. s.AwsAccountId = &v
  26463. return s
  26464. }
  26465. // SetAwsService sets the AwsService field's value.
  26466. func (s *CreateNetworkInterfacePermissionInput) SetAwsService(v string) *CreateNetworkInterfacePermissionInput {
  26467. s.AwsService = &v
  26468. return s
  26469. }
  26470. // SetDryRun sets the DryRun field's value.
  26471. func (s *CreateNetworkInterfacePermissionInput) SetDryRun(v bool) *CreateNetworkInterfacePermissionInput {
  26472. s.DryRun = &v
  26473. return s
  26474. }
  26475. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  26476. func (s *CreateNetworkInterfacePermissionInput) SetNetworkInterfaceId(v string) *CreateNetworkInterfacePermissionInput {
  26477. s.NetworkInterfaceId = &v
  26478. return s
  26479. }
  26480. // SetPermission sets the Permission field's value.
  26481. func (s *CreateNetworkInterfacePermissionInput) SetPermission(v string) *CreateNetworkInterfacePermissionInput {
  26482. s.Permission = &v
  26483. return s
  26484. }
  26485. // Contains the output of CreateNetworkInterfacePermission.
  26486. type CreateNetworkInterfacePermissionOutput struct {
  26487. _ struct{} `type:"structure"`
  26488. // Information about the permission for the network interface.
  26489. InterfacePermission *NetworkInterfacePermission `locationName:"interfacePermission" type:"structure"`
  26490. }
  26491. // String returns the string representation
  26492. func (s CreateNetworkInterfacePermissionOutput) String() string {
  26493. return awsutil.Prettify(s)
  26494. }
  26495. // GoString returns the string representation
  26496. func (s CreateNetworkInterfacePermissionOutput) GoString() string {
  26497. return s.String()
  26498. }
  26499. // SetInterfacePermission sets the InterfacePermission field's value.
  26500. func (s *CreateNetworkInterfacePermissionOutput) SetInterfacePermission(v *NetworkInterfacePermission) *CreateNetworkInterfacePermissionOutput {
  26501. s.InterfacePermission = v
  26502. return s
  26503. }
  26504. // Contains the parameters for CreatePlacementGroup.
  26505. type CreatePlacementGroupInput struct {
  26506. _ struct{} `type:"structure"`
  26507. // Checks whether you have the required permissions for the action, without
  26508. // actually making the request, and provides an error response. If you have
  26509. // the required permissions, the error response is DryRunOperation. Otherwise,
  26510. // it is UnauthorizedOperation.
  26511. DryRun *bool `locationName:"dryRun" type:"boolean"`
  26512. // A name for the placement group. Must be unique within the scope of your account
  26513. // for the region.
  26514. //
  26515. // Constraints: Up to 255 ASCII characters
  26516. //
  26517. // GroupName is a required field
  26518. GroupName *string `locationName:"groupName" type:"string" required:"true"`
  26519. // The placement strategy.
  26520. //
  26521. // Strategy is a required field
  26522. Strategy *string `locationName:"strategy" type:"string" required:"true" enum:"PlacementStrategy"`
  26523. }
  26524. // String returns the string representation
  26525. func (s CreatePlacementGroupInput) String() string {
  26526. return awsutil.Prettify(s)
  26527. }
  26528. // GoString returns the string representation
  26529. func (s CreatePlacementGroupInput) GoString() string {
  26530. return s.String()
  26531. }
  26532. // Validate inspects the fields of the type to determine if they are valid.
  26533. func (s *CreatePlacementGroupInput) Validate() error {
  26534. invalidParams := request.ErrInvalidParams{Context: "CreatePlacementGroupInput"}
  26535. if s.GroupName == nil {
  26536. invalidParams.Add(request.NewErrParamRequired("GroupName"))
  26537. }
  26538. if s.Strategy == nil {
  26539. invalidParams.Add(request.NewErrParamRequired("Strategy"))
  26540. }
  26541. if invalidParams.Len() > 0 {
  26542. return invalidParams
  26543. }
  26544. return nil
  26545. }
  26546. // SetDryRun sets the DryRun field's value.
  26547. func (s *CreatePlacementGroupInput) SetDryRun(v bool) *CreatePlacementGroupInput {
  26548. s.DryRun = &v
  26549. return s
  26550. }
  26551. // SetGroupName sets the GroupName field's value.
  26552. func (s *CreatePlacementGroupInput) SetGroupName(v string) *CreatePlacementGroupInput {
  26553. s.GroupName = &v
  26554. return s
  26555. }
  26556. // SetStrategy sets the Strategy field's value.
  26557. func (s *CreatePlacementGroupInput) SetStrategy(v string) *CreatePlacementGroupInput {
  26558. s.Strategy = &v
  26559. return s
  26560. }
  26561. type CreatePlacementGroupOutput struct {
  26562. _ struct{} `type:"structure"`
  26563. }
  26564. // String returns the string representation
  26565. func (s CreatePlacementGroupOutput) String() string {
  26566. return awsutil.Prettify(s)
  26567. }
  26568. // GoString returns the string representation
  26569. func (s CreatePlacementGroupOutput) GoString() string {
  26570. return s.String()
  26571. }
  26572. // Contains the parameters for CreateReservedInstancesListing.
  26573. type CreateReservedInstancesListingInput struct {
  26574. _ struct{} `type:"structure"`
  26575. // Unique, case-sensitive identifier you provide to ensure idempotency of your
  26576. // listings. This helps avoid duplicate listings. For more information, see
  26577. // Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  26578. //
  26579. // ClientToken is a required field
  26580. ClientToken *string `locationName:"clientToken" type:"string" required:"true"`
  26581. // The number of instances that are a part of a Reserved Instance account to
  26582. // be listed in the Reserved Instance Marketplace. This number should be less
  26583. // than or equal to the instance count associated with the Reserved Instance
  26584. // ID specified in this call.
  26585. //
  26586. // InstanceCount is a required field
  26587. InstanceCount *int64 `locationName:"instanceCount" type:"integer" required:"true"`
  26588. // A list specifying the price of the Standard Reserved Instance for each month
  26589. // remaining in the Reserved Instance term.
  26590. //
  26591. // PriceSchedules is a required field
  26592. PriceSchedules []*PriceScheduleSpecification `locationName:"priceSchedules" locationNameList:"item" type:"list" required:"true"`
  26593. // The ID of the active Standard Reserved Instance.
  26594. //
  26595. // ReservedInstancesId is a required field
  26596. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string" required:"true"`
  26597. }
  26598. // String returns the string representation
  26599. func (s CreateReservedInstancesListingInput) String() string {
  26600. return awsutil.Prettify(s)
  26601. }
  26602. // GoString returns the string representation
  26603. func (s CreateReservedInstancesListingInput) GoString() string {
  26604. return s.String()
  26605. }
  26606. // Validate inspects the fields of the type to determine if they are valid.
  26607. func (s *CreateReservedInstancesListingInput) Validate() error {
  26608. invalidParams := request.ErrInvalidParams{Context: "CreateReservedInstancesListingInput"}
  26609. if s.ClientToken == nil {
  26610. invalidParams.Add(request.NewErrParamRequired("ClientToken"))
  26611. }
  26612. if s.InstanceCount == nil {
  26613. invalidParams.Add(request.NewErrParamRequired("InstanceCount"))
  26614. }
  26615. if s.PriceSchedules == nil {
  26616. invalidParams.Add(request.NewErrParamRequired("PriceSchedules"))
  26617. }
  26618. if s.ReservedInstancesId == nil {
  26619. invalidParams.Add(request.NewErrParamRequired("ReservedInstancesId"))
  26620. }
  26621. if invalidParams.Len() > 0 {
  26622. return invalidParams
  26623. }
  26624. return nil
  26625. }
  26626. // SetClientToken sets the ClientToken field's value.
  26627. func (s *CreateReservedInstancesListingInput) SetClientToken(v string) *CreateReservedInstancesListingInput {
  26628. s.ClientToken = &v
  26629. return s
  26630. }
  26631. // SetInstanceCount sets the InstanceCount field's value.
  26632. func (s *CreateReservedInstancesListingInput) SetInstanceCount(v int64) *CreateReservedInstancesListingInput {
  26633. s.InstanceCount = &v
  26634. return s
  26635. }
  26636. // SetPriceSchedules sets the PriceSchedules field's value.
  26637. func (s *CreateReservedInstancesListingInput) SetPriceSchedules(v []*PriceScheduleSpecification) *CreateReservedInstancesListingInput {
  26638. s.PriceSchedules = v
  26639. return s
  26640. }
  26641. // SetReservedInstancesId sets the ReservedInstancesId field's value.
  26642. func (s *CreateReservedInstancesListingInput) SetReservedInstancesId(v string) *CreateReservedInstancesListingInput {
  26643. s.ReservedInstancesId = &v
  26644. return s
  26645. }
  26646. // Contains the output of CreateReservedInstancesListing.
  26647. type CreateReservedInstancesListingOutput struct {
  26648. _ struct{} `type:"structure"`
  26649. // Information about the Standard Reserved Instance listing.
  26650. ReservedInstancesListings []*ReservedInstancesListing `locationName:"reservedInstancesListingsSet" locationNameList:"item" type:"list"`
  26651. }
  26652. // String returns the string representation
  26653. func (s CreateReservedInstancesListingOutput) String() string {
  26654. return awsutil.Prettify(s)
  26655. }
  26656. // GoString returns the string representation
  26657. func (s CreateReservedInstancesListingOutput) GoString() string {
  26658. return s.String()
  26659. }
  26660. // SetReservedInstancesListings sets the ReservedInstancesListings field's value.
  26661. func (s *CreateReservedInstancesListingOutput) SetReservedInstancesListings(v []*ReservedInstancesListing) *CreateReservedInstancesListingOutput {
  26662. s.ReservedInstancesListings = v
  26663. return s
  26664. }
  26665. // Contains the parameters for CreateRoute.
  26666. type CreateRouteInput struct {
  26667. _ struct{} `type:"structure"`
  26668. // The IPv4 CIDR address block used for the destination match. Routing decisions
  26669. // are based on the most specific match.
  26670. DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"`
  26671. // The IPv6 CIDR block used for the destination match. Routing decisions are
  26672. // based on the most specific match.
  26673. DestinationIpv6CidrBlock *string `locationName:"destinationIpv6CidrBlock" type:"string"`
  26674. // Checks whether you have the required permissions for the action, without
  26675. // actually making the request, and provides an error response. If you have
  26676. // the required permissions, the error response is DryRunOperation. Otherwise,
  26677. // it is UnauthorizedOperation.
  26678. DryRun *bool `locationName:"dryRun" type:"boolean"`
  26679. // [IPv6 traffic only] The ID of an egress-only Internet gateway.
  26680. EgressOnlyInternetGatewayId *string `locationName:"egressOnlyInternetGatewayId" type:"string"`
  26681. // The ID of an Internet gateway or virtual private gateway attached to your
  26682. // VPC.
  26683. GatewayId *string `locationName:"gatewayId" type:"string"`
  26684. // The ID of a NAT instance in your VPC. The operation fails if you specify
  26685. // an instance ID unless exactly one network interface is attached.
  26686. InstanceId *string `locationName:"instanceId" type:"string"`
  26687. // [IPv4 traffic only] The ID of a NAT gateway.
  26688. NatGatewayId *string `locationName:"natGatewayId" type:"string"`
  26689. // The ID of a network interface.
  26690. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  26691. // The ID of the route table for the route.
  26692. //
  26693. // RouteTableId is a required field
  26694. RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"`
  26695. // The ID of a VPC peering connection.
  26696. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
  26697. }
  26698. // String returns the string representation
  26699. func (s CreateRouteInput) String() string {
  26700. return awsutil.Prettify(s)
  26701. }
  26702. // GoString returns the string representation
  26703. func (s CreateRouteInput) GoString() string {
  26704. return s.String()
  26705. }
  26706. // Validate inspects the fields of the type to determine if they are valid.
  26707. func (s *CreateRouteInput) Validate() error {
  26708. invalidParams := request.ErrInvalidParams{Context: "CreateRouteInput"}
  26709. if s.RouteTableId == nil {
  26710. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  26711. }
  26712. if invalidParams.Len() > 0 {
  26713. return invalidParams
  26714. }
  26715. return nil
  26716. }
  26717. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  26718. func (s *CreateRouteInput) SetDestinationCidrBlock(v string) *CreateRouteInput {
  26719. s.DestinationCidrBlock = &v
  26720. return s
  26721. }
  26722. // SetDestinationIpv6CidrBlock sets the DestinationIpv6CidrBlock field's value.
  26723. func (s *CreateRouteInput) SetDestinationIpv6CidrBlock(v string) *CreateRouteInput {
  26724. s.DestinationIpv6CidrBlock = &v
  26725. return s
  26726. }
  26727. // SetDryRun sets the DryRun field's value.
  26728. func (s *CreateRouteInput) SetDryRun(v bool) *CreateRouteInput {
  26729. s.DryRun = &v
  26730. return s
  26731. }
  26732. // SetEgressOnlyInternetGatewayId sets the EgressOnlyInternetGatewayId field's value.
  26733. func (s *CreateRouteInput) SetEgressOnlyInternetGatewayId(v string) *CreateRouteInput {
  26734. s.EgressOnlyInternetGatewayId = &v
  26735. return s
  26736. }
  26737. // SetGatewayId sets the GatewayId field's value.
  26738. func (s *CreateRouteInput) SetGatewayId(v string) *CreateRouteInput {
  26739. s.GatewayId = &v
  26740. return s
  26741. }
  26742. // SetInstanceId sets the InstanceId field's value.
  26743. func (s *CreateRouteInput) SetInstanceId(v string) *CreateRouteInput {
  26744. s.InstanceId = &v
  26745. return s
  26746. }
  26747. // SetNatGatewayId sets the NatGatewayId field's value.
  26748. func (s *CreateRouteInput) SetNatGatewayId(v string) *CreateRouteInput {
  26749. s.NatGatewayId = &v
  26750. return s
  26751. }
  26752. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  26753. func (s *CreateRouteInput) SetNetworkInterfaceId(v string) *CreateRouteInput {
  26754. s.NetworkInterfaceId = &v
  26755. return s
  26756. }
  26757. // SetRouteTableId sets the RouteTableId field's value.
  26758. func (s *CreateRouteInput) SetRouteTableId(v string) *CreateRouteInput {
  26759. s.RouteTableId = &v
  26760. return s
  26761. }
  26762. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  26763. func (s *CreateRouteInput) SetVpcPeeringConnectionId(v string) *CreateRouteInput {
  26764. s.VpcPeeringConnectionId = &v
  26765. return s
  26766. }
  26767. // Contains the output of CreateRoute.
  26768. type CreateRouteOutput struct {
  26769. _ struct{} `type:"structure"`
  26770. // Returns true if the request succeeds; otherwise, it returns an error.
  26771. Return *bool `locationName:"return" type:"boolean"`
  26772. }
  26773. // String returns the string representation
  26774. func (s CreateRouteOutput) String() string {
  26775. return awsutil.Prettify(s)
  26776. }
  26777. // GoString returns the string representation
  26778. func (s CreateRouteOutput) GoString() string {
  26779. return s.String()
  26780. }
  26781. // SetReturn sets the Return field's value.
  26782. func (s *CreateRouteOutput) SetReturn(v bool) *CreateRouteOutput {
  26783. s.Return = &v
  26784. return s
  26785. }
  26786. // Contains the parameters for CreateRouteTable.
  26787. type CreateRouteTableInput struct {
  26788. _ struct{} `type:"structure"`
  26789. // Checks whether you have the required permissions for the action, without
  26790. // actually making the request, and provides an error response. If you have
  26791. // the required permissions, the error response is DryRunOperation. Otherwise,
  26792. // it is UnauthorizedOperation.
  26793. DryRun *bool `locationName:"dryRun" type:"boolean"`
  26794. // The ID of the VPC.
  26795. //
  26796. // VpcId is a required field
  26797. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  26798. }
  26799. // String returns the string representation
  26800. func (s CreateRouteTableInput) String() string {
  26801. return awsutil.Prettify(s)
  26802. }
  26803. // GoString returns the string representation
  26804. func (s CreateRouteTableInput) GoString() string {
  26805. return s.String()
  26806. }
  26807. // Validate inspects the fields of the type to determine if they are valid.
  26808. func (s *CreateRouteTableInput) Validate() error {
  26809. invalidParams := request.ErrInvalidParams{Context: "CreateRouteTableInput"}
  26810. if s.VpcId == nil {
  26811. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  26812. }
  26813. if invalidParams.Len() > 0 {
  26814. return invalidParams
  26815. }
  26816. return nil
  26817. }
  26818. // SetDryRun sets the DryRun field's value.
  26819. func (s *CreateRouteTableInput) SetDryRun(v bool) *CreateRouteTableInput {
  26820. s.DryRun = &v
  26821. return s
  26822. }
  26823. // SetVpcId sets the VpcId field's value.
  26824. func (s *CreateRouteTableInput) SetVpcId(v string) *CreateRouteTableInput {
  26825. s.VpcId = &v
  26826. return s
  26827. }
  26828. // Contains the output of CreateRouteTable.
  26829. type CreateRouteTableOutput struct {
  26830. _ struct{} `type:"structure"`
  26831. // Information about the route table.
  26832. RouteTable *RouteTable `locationName:"routeTable" type:"structure"`
  26833. }
  26834. // String returns the string representation
  26835. func (s CreateRouteTableOutput) String() string {
  26836. return awsutil.Prettify(s)
  26837. }
  26838. // GoString returns the string representation
  26839. func (s CreateRouteTableOutput) GoString() string {
  26840. return s.String()
  26841. }
  26842. // SetRouteTable sets the RouteTable field's value.
  26843. func (s *CreateRouteTableOutput) SetRouteTable(v *RouteTable) *CreateRouteTableOutput {
  26844. s.RouteTable = v
  26845. return s
  26846. }
  26847. // Contains the parameters for CreateSecurityGroup.
  26848. type CreateSecurityGroupInput struct {
  26849. _ struct{} `type:"structure"`
  26850. // A description for the security group. This is informational only.
  26851. //
  26852. // Constraints: Up to 255 characters in length
  26853. //
  26854. // Constraints for EC2-Classic: ASCII characters
  26855. //
  26856. // Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
  26857. //
  26858. // Description is a required field
  26859. Description *string `locationName:"GroupDescription" type:"string" required:"true"`
  26860. // Checks whether you have the required permissions for the action, without
  26861. // actually making the request, and provides an error response. If you have
  26862. // the required permissions, the error response is DryRunOperation. Otherwise,
  26863. // it is UnauthorizedOperation.
  26864. DryRun *bool `locationName:"dryRun" type:"boolean"`
  26865. // The name of the security group.
  26866. //
  26867. // Constraints: Up to 255 characters in length. Cannot start with sg-.
  26868. //
  26869. // Constraints for EC2-Classic: ASCII characters
  26870. //
  26871. // Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
  26872. //
  26873. // GroupName is a required field
  26874. GroupName *string `type:"string" required:"true"`
  26875. // [EC2-VPC] The ID of the VPC. Required for EC2-VPC.
  26876. VpcId *string `type:"string"`
  26877. }
  26878. // String returns the string representation
  26879. func (s CreateSecurityGroupInput) String() string {
  26880. return awsutil.Prettify(s)
  26881. }
  26882. // GoString returns the string representation
  26883. func (s CreateSecurityGroupInput) GoString() string {
  26884. return s.String()
  26885. }
  26886. // Validate inspects the fields of the type to determine if they are valid.
  26887. func (s *CreateSecurityGroupInput) Validate() error {
  26888. invalidParams := request.ErrInvalidParams{Context: "CreateSecurityGroupInput"}
  26889. if s.Description == nil {
  26890. invalidParams.Add(request.NewErrParamRequired("Description"))
  26891. }
  26892. if s.GroupName == nil {
  26893. invalidParams.Add(request.NewErrParamRequired("GroupName"))
  26894. }
  26895. if invalidParams.Len() > 0 {
  26896. return invalidParams
  26897. }
  26898. return nil
  26899. }
  26900. // SetDescription sets the Description field's value.
  26901. func (s *CreateSecurityGroupInput) SetDescription(v string) *CreateSecurityGroupInput {
  26902. s.Description = &v
  26903. return s
  26904. }
  26905. // SetDryRun sets the DryRun field's value.
  26906. func (s *CreateSecurityGroupInput) SetDryRun(v bool) *CreateSecurityGroupInput {
  26907. s.DryRun = &v
  26908. return s
  26909. }
  26910. // SetGroupName sets the GroupName field's value.
  26911. func (s *CreateSecurityGroupInput) SetGroupName(v string) *CreateSecurityGroupInput {
  26912. s.GroupName = &v
  26913. return s
  26914. }
  26915. // SetVpcId sets the VpcId field's value.
  26916. func (s *CreateSecurityGroupInput) SetVpcId(v string) *CreateSecurityGroupInput {
  26917. s.VpcId = &v
  26918. return s
  26919. }
  26920. // Contains the output of CreateSecurityGroup.
  26921. type CreateSecurityGroupOutput struct {
  26922. _ struct{} `type:"structure"`
  26923. // The ID of the security group.
  26924. GroupId *string `locationName:"groupId" type:"string"`
  26925. }
  26926. // String returns the string representation
  26927. func (s CreateSecurityGroupOutput) String() string {
  26928. return awsutil.Prettify(s)
  26929. }
  26930. // GoString returns the string representation
  26931. func (s CreateSecurityGroupOutput) GoString() string {
  26932. return s.String()
  26933. }
  26934. // SetGroupId sets the GroupId field's value.
  26935. func (s *CreateSecurityGroupOutput) SetGroupId(v string) *CreateSecurityGroupOutput {
  26936. s.GroupId = &v
  26937. return s
  26938. }
  26939. // Contains the parameters for CreateSnapshot.
  26940. type CreateSnapshotInput struct {
  26941. _ struct{} `type:"structure"`
  26942. // A description for the snapshot.
  26943. Description *string `type:"string"`
  26944. // Checks whether you have the required permissions for the action, without
  26945. // actually making the request, and provides an error response. If you have
  26946. // the required permissions, the error response is DryRunOperation. Otherwise,
  26947. // it is UnauthorizedOperation.
  26948. DryRun *bool `locationName:"dryRun" type:"boolean"`
  26949. // The tags to apply to the snapshot during creation.
  26950. TagSpecifications []*TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
  26951. // The ID of the EBS volume.
  26952. //
  26953. // VolumeId is a required field
  26954. VolumeId *string `type:"string" required:"true"`
  26955. }
  26956. // String returns the string representation
  26957. func (s CreateSnapshotInput) String() string {
  26958. return awsutil.Prettify(s)
  26959. }
  26960. // GoString returns the string representation
  26961. func (s CreateSnapshotInput) GoString() string {
  26962. return s.String()
  26963. }
  26964. // Validate inspects the fields of the type to determine if they are valid.
  26965. func (s *CreateSnapshotInput) Validate() error {
  26966. invalidParams := request.ErrInvalidParams{Context: "CreateSnapshotInput"}
  26967. if s.VolumeId == nil {
  26968. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  26969. }
  26970. if invalidParams.Len() > 0 {
  26971. return invalidParams
  26972. }
  26973. return nil
  26974. }
  26975. // SetDescription sets the Description field's value.
  26976. func (s *CreateSnapshotInput) SetDescription(v string) *CreateSnapshotInput {
  26977. s.Description = &v
  26978. return s
  26979. }
  26980. // SetDryRun sets the DryRun field's value.
  26981. func (s *CreateSnapshotInput) SetDryRun(v bool) *CreateSnapshotInput {
  26982. s.DryRun = &v
  26983. return s
  26984. }
  26985. // SetTagSpecifications sets the TagSpecifications field's value.
  26986. func (s *CreateSnapshotInput) SetTagSpecifications(v []*TagSpecification) *CreateSnapshotInput {
  26987. s.TagSpecifications = v
  26988. return s
  26989. }
  26990. // SetVolumeId sets the VolumeId field's value.
  26991. func (s *CreateSnapshotInput) SetVolumeId(v string) *CreateSnapshotInput {
  26992. s.VolumeId = &v
  26993. return s
  26994. }
  26995. // Contains the parameters for CreateSpotDatafeedSubscription.
  26996. type CreateSpotDatafeedSubscriptionInput struct {
  26997. _ struct{} `type:"structure"`
  26998. // The Amazon S3 bucket in which to store the Spot Instance data feed.
  26999. //
  27000. // Bucket is a required field
  27001. Bucket *string `locationName:"bucket" type:"string" required:"true"`
  27002. // Checks whether you have the required permissions for the action, without
  27003. // actually making the request, and provides an error response. If you have
  27004. // the required permissions, the error response is DryRunOperation. Otherwise,
  27005. // it is UnauthorizedOperation.
  27006. DryRun *bool `locationName:"dryRun" type:"boolean"`
  27007. // A prefix for the data feed file names.
  27008. Prefix *string `locationName:"prefix" type:"string"`
  27009. }
  27010. // String returns the string representation
  27011. func (s CreateSpotDatafeedSubscriptionInput) String() string {
  27012. return awsutil.Prettify(s)
  27013. }
  27014. // GoString returns the string representation
  27015. func (s CreateSpotDatafeedSubscriptionInput) GoString() string {
  27016. return s.String()
  27017. }
  27018. // Validate inspects the fields of the type to determine if they are valid.
  27019. func (s *CreateSpotDatafeedSubscriptionInput) Validate() error {
  27020. invalidParams := request.ErrInvalidParams{Context: "CreateSpotDatafeedSubscriptionInput"}
  27021. if s.Bucket == nil {
  27022. invalidParams.Add(request.NewErrParamRequired("Bucket"))
  27023. }
  27024. if invalidParams.Len() > 0 {
  27025. return invalidParams
  27026. }
  27027. return nil
  27028. }
  27029. // SetBucket sets the Bucket field's value.
  27030. func (s *CreateSpotDatafeedSubscriptionInput) SetBucket(v string) *CreateSpotDatafeedSubscriptionInput {
  27031. s.Bucket = &v
  27032. return s
  27033. }
  27034. // SetDryRun sets the DryRun field's value.
  27035. func (s *CreateSpotDatafeedSubscriptionInput) SetDryRun(v bool) *CreateSpotDatafeedSubscriptionInput {
  27036. s.DryRun = &v
  27037. return s
  27038. }
  27039. // SetPrefix sets the Prefix field's value.
  27040. func (s *CreateSpotDatafeedSubscriptionInput) SetPrefix(v string) *CreateSpotDatafeedSubscriptionInput {
  27041. s.Prefix = &v
  27042. return s
  27043. }
  27044. // Contains the output of CreateSpotDatafeedSubscription.
  27045. type CreateSpotDatafeedSubscriptionOutput struct {
  27046. _ struct{} `type:"structure"`
  27047. // The Spot Instance data feed subscription.
  27048. SpotDatafeedSubscription *SpotDatafeedSubscription `locationName:"spotDatafeedSubscription" type:"structure"`
  27049. }
  27050. // String returns the string representation
  27051. func (s CreateSpotDatafeedSubscriptionOutput) String() string {
  27052. return awsutil.Prettify(s)
  27053. }
  27054. // GoString returns the string representation
  27055. func (s CreateSpotDatafeedSubscriptionOutput) GoString() string {
  27056. return s.String()
  27057. }
  27058. // SetSpotDatafeedSubscription sets the SpotDatafeedSubscription field's value.
  27059. func (s *CreateSpotDatafeedSubscriptionOutput) SetSpotDatafeedSubscription(v *SpotDatafeedSubscription) *CreateSpotDatafeedSubscriptionOutput {
  27060. s.SpotDatafeedSubscription = v
  27061. return s
  27062. }
  27063. // Contains the parameters for CreateSubnet.
  27064. type CreateSubnetInput struct {
  27065. _ struct{} `type:"structure"`
  27066. // The Availability Zone for the subnet.
  27067. //
  27068. // Default: AWS selects one for you. If you create more than one subnet in your
  27069. // VPC, we may not necessarily select a different zone for each subnet.
  27070. AvailabilityZone *string `type:"string"`
  27071. // The IPv4 network range for the subnet, in CIDR notation. For example, 10.0.0.0/24.
  27072. //
  27073. // CidrBlock is a required field
  27074. CidrBlock *string `type:"string" required:"true"`
  27075. // Checks whether you have the required permissions for the action, without
  27076. // actually making the request, and provides an error response. If you have
  27077. // the required permissions, the error response is DryRunOperation. Otherwise,
  27078. // it is UnauthorizedOperation.
  27079. DryRun *bool `locationName:"dryRun" type:"boolean"`
  27080. // The IPv6 network range for the subnet, in CIDR notation. The subnet size
  27081. // must use a /64 prefix length.
  27082. Ipv6CidrBlock *string `type:"string"`
  27083. // The ID of the VPC.
  27084. //
  27085. // VpcId is a required field
  27086. VpcId *string `type:"string" required:"true"`
  27087. }
  27088. // String returns the string representation
  27089. func (s CreateSubnetInput) String() string {
  27090. return awsutil.Prettify(s)
  27091. }
  27092. // GoString returns the string representation
  27093. func (s CreateSubnetInput) GoString() string {
  27094. return s.String()
  27095. }
  27096. // Validate inspects the fields of the type to determine if they are valid.
  27097. func (s *CreateSubnetInput) Validate() error {
  27098. invalidParams := request.ErrInvalidParams{Context: "CreateSubnetInput"}
  27099. if s.CidrBlock == nil {
  27100. invalidParams.Add(request.NewErrParamRequired("CidrBlock"))
  27101. }
  27102. if s.VpcId == nil {
  27103. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  27104. }
  27105. if invalidParams.Len() > 0 {
  27106. return invalidParams
  27107. }
  27108. return nil
  27109. }
  27110. // SetAvailabilityZone sets the AvailabilityZone field's value.
  27111. func (s *CreateSubnetInput) SetAvailabilityZone(v string) *CreateSubnetInput {
  27112. s.AvailabilityZone = &v
  27113. return s
  27114. }
  27115. // SetCidrBlock sets the CidrBlock field's value.
  27116. func (s *CreateSubnetInput) SetCidrBlock(v string) *CreateSubnetInput {
  27117. s.CidrBlock = &v
  27118. return s
  27119. }
  27120. // SetDryRun sets the DryRun field's value.
  27121. func (s *CreateSubnetInput) SetDryRun(v bool) *CreateSubnetInput {
  27122. s.DryRun = &v
  27123. return s
  27124. }
  27125. // SetIpv6CidrBlock sets the Ipv6CidrBlock field's value.
  27126. func (s *CreateSubnetInput) SetIpv6CidrBlock(v string) *CreateSubnetInput {
  27127. s.Ipv6CidrBlock = &v
  27128. return s
  27129. }
  27130. // SetVpcId sets the VpcId field's value.
  27131. func (s *CreateSubnetInput) SetVpcId(v string) *CreateSubnetInput {
  27132. s.VpcId = &v
  27133. return s
  27134. }
  27135. // Contains the output of CreateSubnet.
  27136. type CreateSubnetOutput struct {
  27137. _ struct{} `type:"structure"`
  27138. // Information about the subnet.
  27139. Subnet *Subnet `locationName:"subnet" type:"structure"`
  27140. }
  27141. // String returns the string representation
  27142. func (s CreateSubnetOutput) String() string {
  27143. return awsutil.Prettify(s)
  27144. }
  27145. // GoString returns the string representation
  27146. func (s CreateSubnetOutput) GoString() string {
  27147. return s.String()
  27148. }
  27149. // SetSubnet sets the Subnet field's value.
  27150. func (s *CreateSubnetOutput) SetSubnet(v *Subnet) *CreateSubnetOutput {
  27151. s.Subnet = v
  27152. return s
  27153. }
  27154. // Contains the parameters for CreateTags.
  27155. type CreateTagsInput struct {
  27156. _ struct{} `type:"structure"`
  27157. // Checks whether you have the required permissions for the action, without
  27158. // actually making the request, and provides an error response. If you have
  27159. // the required permissions, the error response is DryRunOperation. Otherwise,
  27160. // it is UnauthorizedOperation.
  27161. DryRun *bool `locationName:"dryRun" type:"boolean"`
  27162. // The IDs of one or more resources to tag. For example, ami-1a2b3c4d.
  27163. //
  27164. // Resources is a required field
  27165. Resources []*string `locationName:"ResourceId" type:"list" required:"true"`
  27166. // One or more tags. The value parameter is required, but if you don't want
  27167. // the tag to have a value, specify the parameter with no value, and we set
  27168. // the value to an empty string.
  27169. //
  27170. // Tags is a required field
  27171. Tags []*Tag `locationName:"Tag" locationNameList:"item" type:"list" required:"true"`
  27172. }
  27173. // String returns the string representation
  27174. func (s CreateTagsInput) String() string {
  27175. return awsutil.Prettify(s)
  27176. }
  27177. // GoString returns the string representation
  27178. func (s CreateTagsInput) GoString() string {
  27179. return s.String()
  27180. }
  27181. // Validate inspects the fields of the type to determine if they are valid.
  27182. func (s *CreateTagsInput) Validate() error {
  27183. invalidParams := request.ErrInvalidParams{Context: "CreateTagsInput"}
  27184. if s.Resources == nil {
  27185. invalidParams.Add(request.NewErrParamRequired("Resources"))
  27186. }
  27187. if s.Tags == nil {
  27188. invalidParams.Add(request.NewErrParamRequired("Tags"))
  27189. }
  27190. if invalidParams.Len() > 0 {
  27191. return invalidParams
  27192. }
  27193. return nil
  27194. }
  27195. // SetDryRun sets the DryRun field's value.
  27196. func (s *CreateTagsInput) SetDryRun(v bool) *CreateTagsInput {
  27197. s.DryRun = &v
  27198. return s
  27199. }
  27200. // SetResources sets the Resources field's value.
  27201. func (s *CreateTagsInput) SetResources(v []*string) *CreateTagsInput {
  27202. s.Resources = v
  27203. return s
  27204. }
  27205. // SetTags sets the Tags field's value.
  27206. func (s *CreateTagsInput) SetTags(v []*Tag) *CreateTagsInput {
  27207. s.Tags = v
  27208. return s
  27209. }
  27210. type CreateTagsOutput struct {
  27211. _ struct{} `type:"structure"`
  27212. }
  27213. // String returns the string representation
  27214. func (s CreateTagsOutput) String() string {
  27215. return awsutil.Prettify(s)
  27216. }
  27217. // GoString returns the string representation
  27218. func (s CreateTagsOutput) GoString() string {
  27219. return s.String()
  27220. }
  27221. // Contains the parameters for CreateVolume.
  27222. type CreateVolumeInput struct {
  27223. _ struct{} `type:"structure"`
  27224. // The Availability Zone in which to create the volume. Use DescribeAvailabilityZones
  27225. // to list the Availability Zones that are currently available to you.
  27226. //
  27227. // AvailabilityZone is a required field
  27228. AvailabilityZone *string `type:"string" required:"true"`
  27229. // Checks whether you have the required permissions for the action, without
  27230. // actually making the request, and provides an error response. If you have
  27231. // the required permissions, the error response is DryRunOperation. Otherwise,
  27232. // it is UnauthorizedOperation.
  27233. DryRun *bool `locationName:"dryRun" type:"boolean"`
  27234. // Specifies whether the volume should be encrypted. Encrypted Amazon EBS volumes
  27235. // may only be attached to instances that support Amazon EBS encryption. Volumes
  27236. // that are created from encrypted snapshots are automatically encrypted. There
  27237. // is no way to create an encrypted volume from an unencrypted snapshot or vice
  27238. // versa. If your AMI uses encrypted volumes, you can only launch it on supported
  27239. // instance types. For more information, see Amazon EBS Encryption (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html)
  27240. // in the Amazon Elastic Compute Cloud User Guide.
  27241. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  27242. // The number of I/O operations per second (IOPS) to provision for the volume,
  27243. // with a maximum ratio of 50 IOPS/GiB. Range is 100 to 32000 IOPS for volumes
  27244. // in most regions. For exceptions, see Amazon EBS Volume Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html).
  27245. //
  27246. // This parameter is valid only for Provisioned IOPS SSD (io1) volumes.
  27247. Iops *int64 `type:"integer"`
  27248. // An identifier for the AWS Key Management Service (AWS KMS) customer master
  27249. // key (CMK) to use when creating the encrypted volume. This parameter is only
  27250. // required if you want to use a non-default CMK; if this parameter is not specified,
  27251. // the default CMK for EBS is used. If a KmsKeyId is specified, the Encrypted
  27252. // flag must also be set.
  27253. //
  27254. // The CMK identifier may be provided in any of the following formats:
  27255. //
  27256. // * Key ID
  27257. //
  27258. // * Key alias
  27259. //
  27260. // * ARN using key ID. The ID ARN contains the arn:aws:kms namespace, followed
  27261. // by the region of the CMK, the AWS account ID of the CMK owner, the key
  27262. // namespace, and then the CMK ID. For example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.
  27263. //
  27264. //
  27265. // * ARN using key alias. The alias ARN contains the arn:aws:kms namespace,
  27266. // followed by the region of the CMK, the AWS account ID of the CMK owner,
  27267. // the alias namespace, and then the CMK alias. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
  27268. //
  27269. //
  27270. // AWS parses KmsKeyId asynchronously, meaning that the action you call may
  27271. // appear to complete even though you provided an invalid identifier. The action
  27272. // will eventually fail.
  27273. KmsKeyId *string `type:"string"`
  27274. // The size of the volume, in GiBs.
  27275. //
  27276. // Constraints: 1-16384 for gp2, 4-16384 for io1, 500-16384 for st1, 500-16384
  27277. // for sc1, and 1-1024 for standard. If you specify a snapshot, the volume size
  27278. // must be equal to or larger than the snapshot size.
  27279. //
  27280. // Default: If you're creating the volume from a snapshot and don't specify
  27281. // a volume size, the default is the snapshot size.
  27282. Size *int64 `type:"integer"`
  27283. // The snapshot from which to create the volume.
  27284. SnapshotId *string `type:"string"`
  27285. // The tags to apply to the volume during creation.
  27286. TagSpecifications []*TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
  27287. // The volume type. This can be gp2 for General Purpose SSD, io1 for Provisioned
  27288. // IOPS SSD, st1 for Throughput Optimized HDD, sc1 for Cold HDD, or standard
  27289. // for Magnetic volumes.
  27290. //
  27291. // Defaults: If no volume type is specified, the default is standard in us-east-1,
  27292. // eu-west-1, eu-central-1, us-west-2, us-west-1, sa-east-1, ap-northeast-1,
  27293. // ap-northeast-2, ap-southeast-1, ap-southeast-2, ap-south-1, us-gov-west-1,
  27294. // and cn-north-1. In all other regions, EBS defaults to gp2.
  27295. VolumeType *string `type:"string" enum:"VolumeType"`
  27296. }
  27297. // String returns the string representation
  27298. func (s CreateVolumeInput) String() string {
  27299. return awsutil.Prettify(s)
  27300. }
  27301. // GoString returns the string representation
  27302. func (s CreateVolumeInput) GoString() string {
  27303. return s.String()
  27304. }
  27305. // Validate inspects the fields of the type to determine if they are valid.
  27306. func (s *CreateVolumeInput) Validate() error {
  27307. invalidParams := request.ErrInvalidParams{Context: "CreateVolumeInput"}
  27308. if s.AvailabilityZone == nil {
  27309. invalidParams.Add(request.NewErrParamRequired("AvailabilityZone"))
  27310. }
  27311. if invalidParams.Len() > 0 {
  27312. return invalidParams
  27313. }
  27314. return nil
  27315. }
  27316. // SetAvailabilityZone sets the AvailabilityZone field's value.
  27317. func (s *CreateVolumeInput) SetAvailabilityZone(v string) *CreateVolumeInput {
  27318. s.AvailabilityZone = &v
  27319. return s
  27320. }
  27321. // SetDryRun sets the DryRun field's value.
  27322. func (s *CreateVolumeInput) SetDryRun(v bool) *CreateVolumeInput {
  27323. s.DryRun = &v
  27324. return s
  27325. }
  27326. // SetEncrypted sets the Encrypted field's value.
  27327. func (s *CreateVolumeInput) SetEncrypted(v bool) *CreateVolumeInput {
  27328. s.Encrypted = &v
  27329. return s
  27330. }
  27331. // SetIops sets the Iops field's value.
  27332. func (s *CreateVolumeInput) SetIops(v int64) *CreateVolumeInput {
  27333. s.Iops = &v
  27334. return s
  27335. }
  27336. // SetKmsKeyId sets the KmsKeyId field's value.
  27337. func (s *CreateVolumeInput) SetKmsKeyId(v string) *CreateVolumeInput {
  27338. s.KmsKeyId = &v
  27339. return s
  27340. }
  27341. // SetSize sets the Size field's value.
  27342. func (s *CreateVolumeInput) SetSize(v int64) *CreateVolumeInput {
  27343. s.Size = &v
  27344. return s
  27345. }
  27346. // SetSnapshotId sets the SnapshotId field's value.
  27347. func (s *CreateVolumeInput) SetSnapshotId(v string) *CreateVolumeInput {
  27348. s.SnapshotId = &v
  27349. return s
  27350. }
  27351. // SetTagSpecifications sets the TagSpecifications field's value.
  27352. func (s *CreateVolumeInput) SetTagSpecifications(v []*TagSpecification) *CreateVolumeInput {
  27353. s.TagSpecifications = v
  27354. return s
  27355. }
  27356. // SetVolumeType sets the VolumeType field's value.
  27357. func (s *CreateVolumeInput) SetVolumeType(v string) *CreateVolumeInput {
  27358. s.VolumeType = &v
  27359. return s
  27360. }
  27361. // Describes the user or group to be added or removed from the permissions for
  27362. // a volume.
  27363. type CreateVolumePermission struct {
  27364. _ struct{} `type:"structure"`
  27365. // The specific group that is to be added or removed from a volume's list of
  27366. // create volume permissions.
  27367. Group *string `locationName:"group" type:"string" enum:"PermissionGroup"`
  27368. // The specific AWS account ID that is to be added or removed from a volume's
  27369. // list of create volume permissions.
  27370. UserId *string `locationName:"userId" type:"string"`
  27371. }
  27372. // String returns the string representation
  27373. func (s CreateVolumePermission) String() string {
  27374. return awsutil.Prettify(s)
  27375. }
  27376. // GoString returns the string representation
  27377. func (s CreateVolumePermission) GoString() string {
  27378. return s.String()
  27379. }
  27380. // SetGroup sets the Group field's value.
  27381. func (s *CreateVolumePermission) SetGroup(v string) *CreateVolumePermission {
  27382. s.Group = &v
  27383. return s
  27384. }
  27385. // SetUserId sets the UserId field's value.
  27386. func (s *CreateVolumePermission) SetUserId(v string) *CreateVolumePermission {
  27387. s.UserId = &v
  27388. return s
  27389. }
  27390. // Describes modifications to the permissions for a volume.
  27391. type CreateVolumePermissionModifications struct {
  27392. _ struct{} `type:"structure"`
  27393. // Adds a specific AWS account ID or group to a volume's list of create volume
  27394. // permissions.
  27395. Add []*CreateVolumePermission `locationNameList:"item" type:"list"`
  27396. // Removes a specific AWS account ID or group from a volume's list of create
  27397. // volume permissions.
  27398. Remove []*CreateVolumePermission `locationNameList:"item" type:"list"`
  27399. }
  27400. // String returns the string representation
  27401. func (s CreateVolumePermissionModifications) String() string {
  27402. return awsutil.Prettify(s)
  27403. }
  27404. // GoString returns the string representation
  27405. func (s CreateVolumePermissionModifications) GoString() string {
  27406. return s.String()
  27407. }
  27408. // SetAdd sets the Add field's value.
  27409. func (s *CreateVolumePermissionModifications) SetAdd(v []*CreateVolumePermission) *CreateVolumePermissionModifications {
  27410. s.Add = v
  27411. return s
  27412. }
  27413. // SetRemove sets the Remove field's value.
  27414. func (s *CreateVolumePermissionModifications) SetRemove(v []*CreateVolumePermission) *CreateVolumePermissionModifications {
  27415. s.Remove = v
  27416. return s
  27417. }
  27418. type CreateVpcEndpointConnectionNotificationInput struct {
  27419. _ struct{} `type:"structure"`
  27420. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  27421. // the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  27422. ClientToken *string `type:"string"`
  27423. // One or more endpoint events for which to receive notifications. Valid values
  27424. // are Accept, Connect, Delete, and Reject.
  27425. //
  27426. // ConnectionEvents is a required field
  27427. ConnectionEvents []*string `locationNameList:"item" type:"list" required:"true"`
  27428. // The ARN of the SNS topic for the notifications.
  27429. //
  27430. // ConnectionNotificationArn is a required field
  27431. ConnectionNotificationArn *string `type:"string" required:"true"`
  27432. // Checks whether you have the required permissions for the action, without
  27433. // actually making the request, and provides an error response. If you have
  27434. // the required permissions, the error response is DryRunOperation. Otherwise,
  27435. // it is UnauthorizedOperation.
  27436. DryRun *bool `type:"boolean"`
  27437. // The ID of the endpoint service.
  27438. ServiceId *string `type:"string"`
  27439. // The ID of the endpoint.
  27440. VpcEndpointId *string `type:"string"`
  27441. }
  27442. // String returns the string representation
  27443. func (s CreateVpcEndpointConnectionNotificationInput) String() string {
  27444. return awsutil.Prettify(s)
  27445. }
  27446. // GoString returns the string representation
  27447. func (s CreateVpcEndpointConnectionNotificationInput) GoString() string {
  27448. return s.String()
  27449. }
  27450. // Validate inspects the fields of the type to determine if they are valid.
  27451. func (s *CreateVpcEndpointConnectionNotificationInput) Validate() error {
  27452. invalidParams := request.ErrInvalidParams{Context: "CreateVpcEndpointConnectionNotificationInput"}
  27453. if s.ConnectionEvents == nil {
  27454. invalidParams.Add(request.NewErrParamRequired("ConnectionEvents"))
  27455. }
  27456. if s.ConnectionNotificationArn == nil {
  27457. invalidParams.Add(request.NewErrParamRequired("ConnectionNotificationArn"))
  27458. }
  27459. if invalidParams.Len() > 0 {
  27460. return invalidParams
  27461. }
  27462. return nil
  27463. }
  27464. // SetClientToken sets the ClientToken field's value.
  27465. func (s *CreateVpcEndpointConnectionNotificationInput) SetClientToken(v string) *CreateVpcEndpointConnectionNotificationInput {
  27466. s.ClientToken = &v
  27467. return s
  27468. }
  27469. // SetConnectionEvents sets the ConnectionEvents field's value.
  27470. func (s *CreateVpcEndpointConnectionNotificationInput) SetConnectionEvents(v []*string) *CreateVpcEndpointConnectionNotificationInput {
  27471. s.ConnectionEvents = v
  27472. return s
  27473. }
  27474. // SetConnectionNotificationArn sets the ConnectionNotificationArn field's value.
  27475. func (s *CreateVpcEndpointConnectionNotificationInput) SetConnectionNotificationArn(v string) *CreateVpcEndpointConnectionNotificationInput {
  27476. s.ConnectionNotificationArn = &v
  27477. return s
  27478. }
  27479. // SetDryRun sets the DryRun field's value.
  27480. func (s *CreateVpcEndpointConnectionNotificationInput) SetDryRun(v bool) *CreateVpcEndpointConnectionNotificationInput {
  27481. s.DryRun = &v
  27482. return s
  27483. }
  27484. // SetServiceId sets the ServiceId field's value.
  27485. func (s *CreateVpcEndpointConnectionNotificationInput) SetServiceId(v string) *CreateVpcEndpointConnectionNotificationInput {
  27486. s.ServiceId = &v
  27487. return s
  27488. }
  27489. // SetVpcEndpointId sets the VpcEndpointId field's value.
  27490. func (s *CreateVpcEndpointConnectionNotificationInput) SetVpcEndpointId(v string) *CreateVpcEndpointConnectionNotificationInput {
  27491. s.VpcEndpointId = &v
  27492. return s
  27493. }
  27494. type CreateVpcEndpointConnectionNotificationOutput struct {
  27495. _ struct{} `type:"structure"`
  27496. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  27497. // the request.
  27498. ClientToken *string `locationName:"clientToken" type:"string"`
  27499. // Information about the notification.
  27500. ConnectionNotification *ConnectionNotification `locationName:"connectionNotification" type:"structure"`
  27501. }
  27502. // String returns the string representation
  27503. func (s CreateVpcEndpointConnectionNotificationOutput) String() string {
  27504. return awsutil.Prettify(s)
  27505. }
  27506. // GoString returns the string representation
  27507. func (s CreateVpcEndpointConnectionNotificationOutput) GoString() string {
  27508. return s.String()
  27509. }
  27510. // SetClientToken sets the ClientToken field's value.
  27511. func (s *CreateVpcEndpointConnectionNotificationOutput) SetClientToken(v string) *CreateVpcEndpointConnectionNotificationOutput {
  27512. s.ClientToken = &v
  27513. return s
  27514. }
  27515. // SetConnectionNotification sets the ConnectionNotification field's value.
  27516. func (s *CreateVpcEndpointConnectionNotificationOutput) SetConnectionNotification(v *ConnectionNotification) *CreateVpcEndpointConnectionNotificationOutput {
  27517. s.ConnectionNotification = v
  27518. return s
  27519. }
  27520. // Contains the parameters for CreateVpcEndpoint.
  27521. type CreateVpcEndpointInput struct {
  27522. _ struct{} `type:"structure"`
  27523. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  27524. // the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  27525. ClientToken *string `type:"string"`
  27526. // Checks whether you have the required permissions for the action, without
  27527. // actually making the request, and provides an error response. If you have
  27528. // the required permissions, the error response is DryRunOperation. Otherwise,
  27529. // it is UnauthorizedOperation.
  27530. DryRun *bool `type:"boolean"`
  27531. // (Gateway endpoint) A policy to attach to the endpoint that controls access
  27532. // to the service. The policy must be in valid JSON format. If this parameter
  27533. // is not specified, we attach a default policy that allows full access to the
  27534. // service.
  27535. PolicyDocument *string `type:"string"`
  27536. // (Interface endpoint) Indicate whether to associate a private hosted zone
  27537. // with the specified VPC. The private hosted zone contains a record set for
  27538. // the default public DNS name for the service for the region (for example,
  27539. // kinesis.us-east-1.amazonaws.com) which resolves to the private IP addresses
  27540. // of the endpoint network interfaces in the VPC. This enables you to make requests
  27541. // to the default public DNS name for the service instead of the public DNS
  27542. // names that are automatically generated by the VPC endpoint service.
  27543. //
  27544. // To use a private hosted zone, you must set the following VPC attributes to
  27545. // true: enableDnsHostnames and enableDnsSupport. Use ModifyVpcAttribute to
  27546. // set the VPC attributes.
  27547. //
  27548. // Default: true
  27549. PrivateDnsEnabled *bool `type:"boolean"`
  27550. // (Gateway endpoint) One or more route table IDs.
  27551. RouteTableIds []*string `locationName:"RouteTableId" locationNameList:"item" type:"list"`
  27552. // (Interface endpoint) The ID of one or more security groups to associate with
  27553. // the endpoint network interface.
  27554. SecurityGroupIds []*string `locationName:"SecurityGroupId" locationNameList:"item" type:"list"`
  27555. // The service name. To get a list of available services, use the DescribeVpcEndpointServices
  27556. // request, or get the name from the service provider.
  27557. //
  27558. // ServiceName is a required field
  27559. ServiceName *string `type:"string" required:"true"`
  27560. // (Interface endpoint) The ID of one or more subnets in which to create an
  27561. // endpoint network interface.
  27562. SubnetIds []*string `locationName:"SubnetId" locationNameList:"item" type:"list"`
  27563. // The type of endpoint.
  27564. //
  27565. // Default: Gateway
  27566. VpcEndpointType *string `type:"string" enum:"VpcEndpointType"`
  27567. // The ID of the VPC in which the endpoint will be used.
  27568. //
  27569. // VpcId is a required field
  27570. VpcId *string `type:"string" required:"true"`
  27571. }
  27572. // String returns the string representation
  27573. func (s CreateVpcEndpointInput) String() string {
  27574. return awsutil.Prettify(s)
  27575. }
  27576. // GoString returns the string representation
  27577. func (s CreateVpcEndpointInput) GoString() string {
  27578. return s.String()
  27579. }
  27580. // Validate inspects the fields of the type to determine if they are valid.
  27581. func (s *CreateVpcEndpointInput) Validate() error {
  27582. invalidParams := request.ErrInvalidParams{Context: "CreateVpcEndpointInput"}
  27583. if s.ServiceName == nil {
  27584. invalidParams.Add(request.NewErrParamRequired("ServiceName"))
  27585. }
  27586. if s.VpcId == nil {
  27587. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  27588. }
  27589. if invalidParams.Len() > 0 {
  27590. return invalidParams
  27591. }
  27592. return nil
  27593. }
  27594. // SetClientToken sets the ClientToken field's value.
  27595. func (s *CreateVpcEndpointInput) SetClientToken(v string) *CreateVpcEndpointInput {
  27596. s.ClientToken = &v
  27597. return s
  27598. }
  27599. // SetDryRun sets the DryRun field's value.
  27600. func (s *CreateVpcEndpointInput) SetDryRun(v bool) *CreateVpcEndpointInput {
  27601. s.DryRun = &v
  27602. return s
  27603. }
  27604. // SetPolicyDocument sets the PolicyDocument field's value.
  27605. func (s *CreateVpcEndpointInput) SetPolicyDocument(v string) *CreateVpcEndpointInput {
  27606. s.PolicyDocument = &v
  27607. return s
  27608. }
  27609. // SetPrivateDnsEnabled sets the PrivateDnsEnabled field's value.
  27610. func (s *CreateVpcEndpointInput) SetPrivateDnsEnabled(v bool) *CreateVpcEndpointInput {
  27611. s.PrivateDnsEnabled = &v
  27612. return s
  27613. }
  27614. // SetRouteTableIds sets the RouteTableIds field's value.
  27615. func (s *CreateVpcEndpointInput) SetRouteTableIds(v []*string) *CreateVpcEndpointInput {
  27616. s.RouteTableIds = v
  27617. return s
  27618. }
  27619. // SetSecurityGroupIds sets the SecurityGroupIds field's value.
  27620. func (s *CreateVpcEndpointInput) SetSecurityGroupIds(v []*string) *CreateVpcEndpointInput {
  27621. s.SecurityGroupIds = v
  27622. return s
  27623. }
  27624. // SetServiceName sets the ServiceName field's value.
  27625. func (s *CreateVpcEndpointInput) SetServiceName(v string) *CreateVpcEndpointInput {
  27626. s.ServiceName = &v
  27627. return s
  27628. }
  27629. // SetSubnetIds sets the SubnetIds field's value.
  27630. func (s *CreateVpcEndpointInput) SetSubnetIds(v []*string) *CreateVpcEndpointInput {
  27631. s.SubnetIds = v
  27632. return s
  27633. }
  27634. // SetVpcEndpointType sets the VpcEndpointType field's value.
  27635. func (s *CreateVpcEndpointInput) SetVpcEndpointType(v string) *CreateVpcEndpointInput {
  27636. s.VpcEndpointType = &v
  27637. return s
  27638. }
  27639. // SetVpcId sets the VpcId field's value.
  27640. func (s *CreateVpcEndpointInput) SetVpcId(v string) *CreateVpcEndpointInput {
  27641. s.VpcId = &v
  27642. return s
  27643. }
  27644. // Contains the output of CreateVpcEndpoint.
  27645. type CreateVpcEndpointOutput struct {
  27646. _ struct{} `type:"structure"`
  27647. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  27648. // the request.
  27649. ClientToken *string `locationName:"clientToken" type:"string"`
  27650. // Information about the endpoint.
  27651. VpcEndpoint *VpcEndpoint `locationName:"vpcEndpoint" type:"structure"`
  27652. }
  27653. // String returns the string representation
  27654. func (s CreateVpcEndpointOutput) String() string {
  27655. return awsutil.Prettify(s)
  27656. }
  27657. // GoString returns the string representation
  27658. func (s CreateVpcEndpointOutput) GoString() string {
  27659. return s.String()
  27660. }
  27661. // SetClientToken sets the ClientToken field's value.
  27662. func (s *CreateVpcEndpointOutput) SetClientToken(v string) *CreateVpcEndpointOutput {
  27663. s.ClientToken = &v
  27664. return s
  27665. }
  27666. // SetVpcEndpoint sets the VpcEndpoint field's value.
  27667. func (s *CreateVpcEndpointOutput) SetVpcEndpoint(v *VpcEndpoint) *CreateVpcEndpointOutput {
  27668. s.VpcEndpoint = v
  27669. return s
  27670. }
  27671. type CreateVpcEndpointServiceConfigurationInput struct {
  27672. _ struct{} `type:"structure"`
  27673. // Indicate whether requests from service consumers to create an endpoint to
  27674. // your service must be accepted. To accept a request, use AcceptVpcEndpointConnections.
  27675. AcceptanceRequired *bool `type:"boolean"`
  27676. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  27677. // the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html).
  27678. ClientToken *string `type:"string"`
  27679. // Checks whether you have the required permissions for the action, without
  27680. // actually making the request, and provides an error response. If you have
  27681. // the required permissions, the error response is DryRunOperation. Otherwise,
  27682. // it is UnauthorizedOperation.
  27683. DryRun *bool `type:"boolean"`
  27684. // The Amazon Resource Names (ARNs) of one or more Network Load Balancers for
  27685. // your service.
  27686. //
  27687. // NetworkLoadBalancerArns is a required field
  27688. NetworkLoadBalancerArns []*string `locationName:"NetworkLoadBalancerArn" locationNameList:"item" type:"list" required:"true"`
  27689. }
  27690. // String returns the string representation
  27691. func (s CreateVpcEndpointServiceConfigurationInput) String() string {
  27692. return awsutil.Prettify(s)
  27693. }
  27694. // GoString returns the string representation
  27695. func (s CreateVpcEndpointServiceConfigurationInput) GoString() string {
  27696. return s.String()
  27697. }
  27698. // Validate inspects the fields of the type to determine if they are valid.
  27699. func (s *CreateVpcEndpointServiceConfigurationInput) Validate() error {
  27700. invalidParams := request.ErrInvalidParams{Context: "CreateVpcEndpointServiceConfigurationInput"}
  27701. if s.NetworkLoadBalancerArns == nil {
  27702. invalidParams.Add(request.NewErrParamRequired("NetworkLoadBalancerArns"))
  27703. }
  27704. if invalidParams.Len() > 0 {
  27705. return invalidParams
  27706. }
  27707. return nil
  27708. }
  27709. // SetAcceptanceRequired sets the AcceptanceRequired field's value.
  27710. func (s *CreateVpcEndpointServiceConfigurationInput) SetAcceptanceRequired(v bool) *CreateVpcEndpointServiceConfigurationInput {
  27711. s.AcceptanceRequired = &v
  27712. return s
  27713. }
  27714. // SetClientToken sets the ClientToken field's value.
  27715. func (s *CreateVpcEndpointServiceConfigurationInput) SetClientToken(v string) *CreateVpcEndpointServiceConfigurationInput {
  27716. s.ClientToken = &v
  27717. return s
  27718. }
  27719. // SetDryRun sets the DryRun field's value.
  27720. func (s *CreateVpcEndpointServiceConfigurationInput) SetDryRun(v bool) *CreateVpcEndpointServiceConfigurationInput {
  27721. s.DryRun = &v
  27722. return s
  27723. }
  27724. // SetNetworkLoadBalancerArns sets the NetworkLoadBalancerArns field's value.
  27725. func (s *CreateVpcEndpointServiceConfigurationInput) SetNetworkLoadBalancerArns(v []*string) *CreateVpcEndpointServiceConfigurationInput {
  27726. s.NetworkLoadBalancerArns = v
  27727. return s
  27728. }
  27729. type CreateVpcEndpointServiceConfigurationOutput struct {
  27730. _ struct{} `type:"structure"`
  27731. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  27732. // the request.
  27733. ClientToken *string `locationName:"clientToken" type:"string"`
  27734. // Information about the service configuration.
  27735. ServiceConfiguration *ServiceConfiguration `locationName:"serviceConfiguration" type:"structure"`
  27736. }
  27737. // String returns the string representation
  27738. func (s CreateVpcEndpointServiceConfigurationOutput) String() string {
  27739. return awsutil.Prettify(s)
  27740. }
  27741. // GoString returns the string representation
  27742. func (s CreateVpcEndpointServiceConfigurationOutput) GoString() string {
  27743. return s.String()
  27744. }
  27745. // SetClientToken sets the ClientToken field's value.
  27746. func (s *CreateVpcEndpointServiceConfigurationOutput) SetClientToken(v string) *CreateVpcEndpointServiceConfigurationOutput {
  27747. s.ClientToken = &v
  27748. return s
  27749. }
  27750. // SetServiceConfiguration sets the ServiceConfiguration field's value.
  27751. func (s *CreateVpcEndpointServiceConfigurationOutput) SetServiceConfiguration(v *ServiceConfiguration) *CreateVpcEndpointServiceConfigurationOutput {
  27752. s.ServiceConfiguration = v
  27753. return s
  27754. }
  27755. // Contains the parameters for CreateVpc.
  27756. type CreateVpcInput struct {
  27757. _ struct{} `type:"structure"`
  27758. // Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for
  27759. // the VPC. You cannot specify the range of IP addresses, or the size of the
  27760. // CIDR block.
  27761. AmazonProvidedIpv6CidrBlock *bool `locationName:"amazonProvidedIpv6CidrBlock" type:"boolean"`
  27762. // The IPv4 network range for the VPC, in CIDR notation. For example, 10.0.0.0/16.
  27763. //
  27764. // CidrBlock is a required field
  27765. CidrBlock *string `type:"string" required:"true"`
  27766. // Checks whether you have the required permissions for the action, without
  27767. // actually making the request, and provides an error response. If you have
  27768. // the required permissions, the error response is DryRunOperation. Otherwise,
  27769. // it is UnauthorizedOperation.
  27770. DryRun *bool `locationName:"dryRun" type:"boolean"`
  27771. // The tenancy options for instances launched into the VPC. For default, instances
  27772. // are launched with shared tenancy by default. You can launch instances with
  27773. // any tenancy into a shared tenancy VPC. For dedicated, instances are launched
  27774. // as dedicated tenancy instances by default. You can only launch instances
  27775. // with a tenancy of dedicated or host into a dedicated tenancy VPC.
  27776. //
  27777. // Important: The host value cannot be used with this parameter. Use the default
  27778. // or dedicated values only.
  27779. //
  27780. // Default: default
  27781. InstanceTenancy *string `locationName:"instanceTenancy" type:"string" enum:"Tenancy"`
  27782. }
  27783. // String returns the string representation
  27784. func (s CreateVpcInput) String() string {
  27785. return awsutil.Prettify(s)
  27786. }
  27787. // GoString returns the string representation
  27788. func (s CreateVpcInput) GoString() string {
  27789. return s.String()
  27790. }
  27791. // Validate inspects the fields of the type to determine if they are valid.
  27792. func (s *CreateVpcInput) Validate() error {
  27793. invalidParams := request.ErrInvalidParams{Context: "CreateVpcInput"}
  27794. if s.CidrBlock == nil {
  27795. invalidParams.Add(request.NewErrParamRequired("CidrBlock"))
  27796. }
  27797. if invalidParams.Len() > 0 {
  27798. return invalidParams
  27799. }
  27800. return nil
  27801. }
  27802. // SetAmazonProvidedIpv6CidrBlock sets the AmazonProvidedIpv6CidrBlock field's value.
  27803. func (s *CreateVpcInput) SetAmazonProvidedIpv6CidrBlock(v bool) *CreateVpcInput {
  27804. s.AmazonProvidedIpv6CidrBlock = &v
  27805. return s
  27806. }
  27807. // SetCidrBlock sets the CidrBlock field's value.
  27808. func (s *CreateVpcInput) SetCidrBlock(v string) *CreateVpcInput {
  27809. s.CidrBlock = &v
  27810. return s
  27811. }
  27812. // SetDryRun sets the DryRun field's value.
  27813. func (s *CreateVpcInput) SetDryRun(v bool) *CreateVpcInput {
  27814. s.DryRun = &v
  27815. return s
  27816. }
  27817. // SetInstanceTenancy sets the InstanceTenancy field's value.
  27818. func (s *CreateVpcInput) SetInstanceTenancy(v string) *CreateVpcInput {
  27819. s.InstanceTenancy = &v
  27820. return s
  27821. }
  27822. // Contains the output of CreateVpc.
  27823. type CreateVpcOutput struct {
  27824. _ struct{} `type:"structure"`
  27825. // Information about the VPC.
  27826. Vpc *Vpc `locationName:"vpc" type:"structure"`
  27827. }
  27828. // String returns the string representation
  27829. func (s CreateVpcOutput) String() string {
  27830. return awsutil.Prettify(s)
  27831. }
  27832. // GoString returns the string representation
  27833. func (s CreateVpcOutput) GoString() string {
  27834. return s.String()
  27835. }
  27836. // SetVpc sets the Vpc field's value.
  27837. func (s *CreateVpcOutput) SetVpc(v *Vpc) *CreateVpcOutput {
  27838. s.Vpc = v
  27839. return s
  27840. }
  27841. // Contains the parameters for CreateVpcPeeringConnection.
  27842. type CreateVpcPeeringConnectionInput struct {
  27843. _ struct{} `type:"structure"`
  27844. // Checks whether you have the required permissions for the action, without
  27845. // actually making the request, and provides an error response. If you have
  27846. // the required permissions, the error response is DryRunOperation. Otherwise,
  27847. // it is UnauthorizedOperation.
  27848. DryRun *bool `locationName:"dryRun" type:"boolean"`
  27849. // The AWS account ID of the owner of the accepter VPC.
  27850. //
  27851. // Default: Your AWS account ID
  27852. PeerOwnerId *string `locationName:"peerOwnerId" type:"string"`
  27853. // The region code for the accepter VPC, if the accepter VPC is located in a
  27854. // region other than the region in which you make the request.
  27855. //
  27856. // Default: The region in which you make the request.
  27857. PeerRegion *string `type:"string"`
  27858. // The ID of the VPC with which you are creating the VPC peering connection.
  27859. // You must specify this parameter in the request.
  27860. PeerVpcId *string `locationName:"peerVpcId" type:"string"`
  27861. // The ID of the requester VPC. You must specify this parameter in the request.
  27862. VpcId *string `locationName:"vpcId" type:"string"`
  27863. }
  27864. // String returns the string representation
  27865. func (s CreateVpcPeeringConnectionInput) String() string {
  27866. return awsutil.Prettify(s)
  27867. }
  27868. // GoString returns the string representation
  27869. func (s CreateVpcPeeringConnectionInput) GoString() string {
  27870. return s.String()
  27871. }
  27872. // SetDryRun sets the DryRun field's value.
  27873. func (s *CreateVpcPeeringConnectionInput) SetDryRun(v bool) *CreateVpcPeeringConnectionInput {
  27874. s.DryRun = &v
  27875. return s
  27876. }
  27877. // SetPeerOwnerId sets the PeerOwnerId field's value.
  27878. func (s *CreateVpcPeeringConnectionInput) SetPeerOwnerId(v string) *CreateVpcPeeringConnectionInput {
  27879. s.PeerOwnerId = &v
  27880. return s
  27881. }
  27882. // SetPeerRegion sets the PeerRegion field's value.
  27883. func (s *CreateVpcPeeringConnectionInput) SetPeerRegion(v string) *CreateVpcPeeringConnectionInput {
  27884. s.PeerRegion = &v
  27885. return s
  27886. }
  27887. // SetPeerVpcId sets the PeerVpcId field's value.
  27888. func (s *CreateVpcPeeringConnectionInput) SetPeerVpcId(v string) *CreateVpcPeeringConnectionInput {
  27889. s.PeerVpcId = &v
  27890. return s
  27891. }
  27892. // SetVpcId sets the VpcId field's value.
  27893. func (s *CreateVpcPeeringConnectionInput) SetVpcId(v string) *CreateVpcPeeringConnectionInput {
  27894. s.VpcId = &v
  27895. return s
  27896. }
  27897. // Contains the output of CreateVpcPeeringConnection.
  27898. type CreateVpcPeeringConnectionOutput struct {
  27899. _ struct{} `type:"structure"`
  27900. // Information about the VPC peering connection.
  27901. VpcPeeringConnection *VpcPeeringConnection `locationName:"vpcPeeringConnection" type:"structure"`
  27902. }
  27903. // String returns the string representation
  27904. func (s CreateVpcPeeringConnectionOutput) String() string {
  27905. return awsutil.Prettify(s)
  27906. }
  27907. // GoString returns the string representation
  27908. func (s CreateVpcPeeringConnectionOutput) GoString() string {
  27909. return s.String()
  27910. }
  27911. // SetVpcPeeringConnection sets the VpcPeeringConnection field's value.
  27912. func (s *CreateVpcPeeringConnectionOutput) SetVpcPeeringConnection(v *VpcPeeringConnection) *CreateVpcPeeringConnectionOutput {
  27913. s.VpcPeeringConnection = v
  27914. return s
  27915. }
  27916. // Contains the parameters for CreateVpnConnection.
  27917. type CreateVpnConnectionInput struct {
  27918. _ struct{} `type:"structure"`
  27919. // The ID of the customer gateway.
  27920. //
  27921. // CustomerGatewayId is a required field
  27922. CustomerGatewayId *string `type:"string" required:"true"`
  27923. // Checks whether you have the required permissions for the action, without
  27924. // actually making the request, and provides an error response. If you have
  27925. // the required permissions, the error response is DryRunOperation. Otherwise,
  27926. // it is UnauthorizedOperation.
  27927. DryRun *bool `locationName:"dryRun" type:"boolean"`
  27928. // The options for the VPN connection.
  27929. Options *VpnConnectionOptionsSpecification `locationName:"options" type:"structure"`
  27930. // The type of VPN connection (ipsec.1).
  27931. //
  27932. // Type is a required field
  27933. Type *string `type:"string" required:"true"`
  27934. // The ID of the virtual private gateway.
  27935. //
  27936. // VpnGatewayId is a required field
  27937. VpnGatewayId *string `type:"string" required:"true"`
  27938. }
  27939. // String returns the string representation
  27940. func (s CreateVpnConnectionInput) String() string {
  27941. return awsutil.Prettify(s)
  27942. }
  27943. // GoString returns the string representation
  27944. func (s CreateVpnConnectionInput) GoString() string {
  27945. return s.String()
  27946. }
  27947. // Validate inspects the fields of the type to determine if they are valid.
  27948. func (s *CreateVpnConnectionInput) Validate() error {
  27949. invalidParams := request.ErrInvalidParams{Context: "CreateVpnConnectionInput"}
  27950. if s.CustomerGatewayId == nil {
  27951. invalidParams.Add(request.NewErrParamRequired("CustomerGatewayId"))
  27952. }
  27953. if s.Type == nil {
  27954. invalidParams.Add(request.NewErrParamRequired("Type"))
  27955. }
  27956. if s.VpnGatewayId == nil {
  27957. invalidParams.Add(request.NewErrParamRequired("VpnGatewayId"))
  27958. }
  27959. if invalidParams.Len() > 0 {
  27960. return invalidParams
  27961. }
  27962. return nil
  27963. }
  27964. // SetCustomerGatewayId sets the CustomerGatewayId field's value.
  27965. func (s *CreateVpnConnectionInput) SetCustomerGatewayId(v string) *CreateVpnConnectionInput {
  27966. s.CustomerGatewayId = &v
  27967. return s
  27968. }
  27969. // SetDryRun sets the DryRun field's value.
  27970. func (s *CreateVpnConnectionInput) SetDryRun(v bool) *CreateVpnConnectionInput {
  27971. s.DryRun = &v
  27972. return s
  27973. }
  27974. // SetOptions sets the Options field's value.
  27975. func (s *CreateVpnConnectionInput) SetOptions(v *VpnConnectionOptionsSpecification) *CreateVpnConnectionInput {
  27976. s.Options = v
  27977. return s
  27978. }
  27979. // SetType sets the Type field's value.
  27980. func (s *CreateVpnConnectionInput) SetType(v string) *CreateVpnConnectionInput {
  27981. s.Type = &v
  27982. return s
  27983. }
  27984. // SetVpnGatewayId sets the VpnGatewayId field's value.
  27985. func (s *CreateVpnConnectionInput) SetVpnGatewayId(v string) *CreateVpnConnectionInput {
  27986. s.VpnGatewayId = &v
  27987. return s
  27988. }
  27989. // Contains the output of CreateVpnConnection.
  27990. type CreateVpnConnectionOutput struct {
  27991. _ struct{} `type:"structure"`
  27992. // Information about the VPN connection.
  27993. VpnConnection *VpnConnection `locationName:"vpnConnection" type:"structure"`
  27994. }
  27995. // String returns the string representation
  27996. func (s CreateVpnConnectionOutput) String() string {
  27997. return awsutil.Prettify(s)
  27998. }
  27999. // GoString returns the string representation
  28000. func (s CreateVpnConnectionOutput) GoString() string {
  28001. return s.String()
  28002. }
  28003. // SetVpnConnection sets the VpnConnection field's value.
  28004. func (s *CreateVpnConnectionOutput) SetVpnConnection(v *VpnConnection) *CreateVpnConnectionOutput {
  28005. s.VpnConnection = v
  28006. return s
  28007. }
  28008. // Contains the parameters for CreateVpnConnectionRoute.
  28009. type CreateVpnConnectionRouteInput struct {
  28010. _ struct{} `type:"structure"`
  28011. // The CIDR block associated with the local subnet of the customer network.
  28012. //
  28013. // DestinationCidrBlock is a required field
  28014. DestinationCidrBlock *string `type:"string" required:"true"`
  28015. // The ID of the VPN connection.
  28016. //
  28017. // VpnConnectionId is a required field
  28018. VpnConnectionId *string `type:"string" required:"true"`
  28019. }
  28020. // String returns the string representation
  28021. func (s CreateVpnConnectionRouteInput) String() string {
  28022. return awsutil.Prettify(s)
  28023. }
  28024. // GoString returns the string representation
  28025. func (s CreateVpnConnectionRouteInput) GoString() string {
  28026. return s.String()
  28027. }
  28028. // Validate inspects the fields of the type to determine if they are valid.
  28029. func (s *CreateVpnConnectionRouteInput) Validate() error {
  28030. invalidParams := request.ErrInvalidParams{Context: "CreateVpnConnectionRouteInput"}
  28031. if s.DestinationCidrBlock == nil {
  28032. invalidParams.Add(request.NewErrParamRequired("DestinationCidrBlock"))
  28033. }
  28034. if s.VpnConnectionId == nil {
  28035. invalidParams.Add(request.NewErrParamRequired("VpnConnectionId"))
  28036. }
  28037. if invalidParams.Len() > 0 {
  28038. return invalidParams
  28039. }
  28040. return nil
  28041. }
  28042. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  28043. func (s *CreateVpnConnectionRouteInput) SetDestinationCidrBlock(v string) *CreateVpnConnectionRouteInput {
  28044. s.DestinationCidrBlock = &v
  28045. return s
  28046. }
  28047. // SetVpnConnectionId sets the VpnConnectionId field's value.
  28048. func (s *CreateVpnConnectionRouteInput) SetVpnConnectionId(v string) *CreateVpnConnectionRouteInput {
  28049. s.VpnConnectionId = &v
  28050. return s
  28051. }
  28052. type CreateVpnConnectionRouteOutput struct {
  28053. _ struct{} `type:"structure"`
  28054. }
  28055. // String returns the string representation
  28056. func (s CreateVpnConnectionRouteOutput) String() string {
  28057. return awsutil.Prettify(s)
  28058. }
  28059. // GoString returns the string representation
  28060. func (s CreateVpnConnectionRouteOutput) GoString() string {
  28061. return s.String()
  28062. }
  28063. // Contains the parameters for CreateVpnGateway.
  28064. type CreateVpnGatewayInput struct {
  28065. _ struct{} `type:"structure"`
  28066. // A private Autonomous System Number (ASN) for the Amazon side of a BGP session.
  28067. // If you're using a 16-bit ASN, it must be in the 64512 to 65534 range. If
  28068. // you're using a 32-bit ASN, it must be in the 4200000000 to 4294967294 range.
  28069. //
  28070. // Default: 64512
  28071. AmazonSideAsn *int64 `type:"long"`
  28072. // The Availability Zone for the virtual private gateway.
  28073. AvailabilityZone *string `type:"string"`
  28074. // Checks whether you have the required permissions for the action, without
  28075. // actually making the request, and provides an error response. If you have
  28076. // the required permissions, the error response is DryRunOperation. Otherwise,
  28077. // it is UnauthorizedOperation.
  28078. DryRun *bool `locationName:"dryRun" type:"boolean"`
  28079. // The type of VPN connection this virtual private gateway supports.
  28080. //
  28081. // Type is a required field
  28082. Type *string `type:"string" required:"true" enum:"GatewayType"`
  28083. }
  28084. // String returns the string representation
  28085. func (s CreateVpnGatewayInput) String() string {
  28086. return awsutil.Prettify(s)
  28087. }
  28088. // GoString returns the string representation
  28089. func (s CreateVpnGatewayInput) GoString() string {
  28090. return s.String()
  28091. }
  28092. // Validate inspects the fields of the type to determine if they are valid.
  28093. func (s *CreateVpnGatewayInput) Validate() error {
  28094. invalidParams := request.ErrInvalidParams{Context: "CreateVpnGatewayInput"}
  28095. if s.Type == nil {
  28096. invalidParams.Add(request.NewErrParamRequired("Type"))
  28097. }
  28098. if invalidParams.Len() > 0 {
  28099. return invalidParams
  28100. }
  28101. return nil
  28102. }
  28103. // SetAmazonSideAsn sets the AmazonSideAsn field's value.
  28104. func (s *CreateVpnGatewayInput) SetAmazonSideAsn(v int64) *CreateVpnGatewayInput {
  28105. s.AmazonSideAsn = &v
  28106. return s
  28107. }
  28108. // SetAvailabilityZone sets the AvailabilityZone field's value.
  28109. func (s *CreateVpnGatewayInput) SetAvailabilityZone(v string) *CreateVpnGatewayInput {
  28110. s.AvailabilityZone = &v
  28111. return s
  28112. }
  28113. // SetDryRun sets the DryRun field's value.
  28114. func (s *CreateVpnGatewayInput) SetDryRun(v bool) *CreateVpnGatewayInput {
  28115. s.DryRun = &v
  28116. return s
  28117. }
  28118. // SetType sets the Type field's value.
  28119. func (s *CreateVpnGatewayInput) SetType(v string) *CreateVpnGatewayInput {
  28120. s.Type = &v
  28121. return s
  28122. }
  28123. // Contains the output of CreateVpnGateway.
  28124. type CreateVpnGatewayOutput struct {
  28125. _ struct{} `type:"structure"`
  28126. // Information about the virtual private gateway.
  28127. VpnGateway *VpnGateway `locationName:"vpnGateway" type:"structure"`
  28128. }
  28129. // String returns the string representation
  28130. func (s CreateVpnGatewayOutput) String() string {
  28131. return awsutil.Prettify(s)
  28132. }
  28133. // GoString returns the string representation
  28134. func (s CreateVpnGatewayOutput) GoString() string {
  28135. return s.String()
  28136. }
  28137. // SetVpnGateway sets the VpnGateway field's value.
  28138. func (s *CreateVpnGatewayOutput) SetVpnGateway(v *VpnGateway) *CreateVpnGatewayOutput {
  28139. s.VpnGateway = v
  28140. return s
  28141. }
  28142. // Describes the credit option for CPU usage of a T2 instance.
  28143. type CreditSpecification struct {
  28144. _ struct{} `type:"structure"`
  28145. // The credit option for CPU usage of a T2 instance.
  28146. CpuCredits *string `locationName:"cpuCredits" type:"string"`
  28147. }
  28148. // String returns the string representation
  28149. func (s CreditSpecification) String() string {
  28150. return awsutil.Prettify(s)
  28151. }
  28152. // GoString returns the string representation
  28153. func (s CreditSpecification) GoString() string {
  28154. return s.String()
  28155. }
  28156. // SetCpuCredits sets the CpuCredits field's value.
  28157. func (s *CreditSpecification) SetCpuCredits(v string) *CreditSpecification {
  28158. s.CpuCredits = &v
  28159. return s
  28160. }
  28161. // The credit option for CPU usage of a T2 instance.
  28162. type CreditSpecificationRequest struct {
  28163. _ struct{} `type:"structure"`
  28164. // The credit option for CPU usage of a T2 instance. Valid values are standard
  28165. // and unlimited.
  28166. //
  28167. // CpuCredits is a required field
  28168. CpuCredits *string `type:"string" required:"true"`
  28169. }
  28170. // String returns the string representation
  28171. func (s CreditSpecificationRequest) String() string {
  28172. return awsutil.Prettify(s)
  28173. }
  28174. // GoString returns the string representation
  28175. func (s CreditSpecificationRequest) GoString() string {
  28176. return s.String()
  28177. }
  28178. // Validate inspects the fields of the type to determine if they are valid.
  28179. func (s *CreditSpecificationRequest) Validate() error {
  28180. invalidParams := request.ErrInvalidParams{Context: "CreditSpecificationRequest"}
  28181. if s.CpuCredits == nil {
  28182. invalidParams.Add(request.NewErrParamRequired("CpuCredits"))
  28183. }
  28184. if invalidParams.Len() > 0 {
  28185. return invalidParams
  28186. }
  28187. return nil
  28188. }
  28189. // SetCpuCredits sets the CpuCredits field's value.
  28190. func (s *CreditSpecificationRequest) SetCpuCredits(v string) *CreditSpecificationRequest {
  28191. s.CpuCredits = &v
  28192. return s
  28193. }
  28194. // Describes a customer gateway.
  28195. type CustomerGateway struct {
  28196. _ struct{} `type:"structure"`
  28197. // The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number
  28198. // (ASN).
  28199. BgpAsn *string `locationName:"bgpAsn" type:"string"`
  28200. // The ID of the customer gateway.
  28201. CustomerGatewayId *string `locationName:"customerGatewayId" type:"string"`
  28202. // The Internet-routable IP address of the customer gateway's outside interface.
  28203. IpAddress *string `locationName:"ipAddress" type:"string"`
  28204. // The current state of the customer gateway (pending | available | deleting
  28205. // | deleted).
  28206. State *string `locationName:"state" type:"string"`
  28207. // Any tags assigned to the customer gateway.
  28208. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  28209. // The type of VPN connection the customer gateway supports (ipsec.1).
  28210. Type *string `locationName:"type" type:"string"`
  28211. }
  28212. // String returns the string representation
  28213. func (s CustomerGateway) String() string {
  28214. return awsutil.Prettify(s)
  28215. }
  28216. // GoString returns the string representation
  28217. func (s CustomerGateway) GoString() string {
  28218. return s.String()
  28219. }
  28220. // SetBgpAsn sets the BgpAsn field's value.
  28221. func (s *CustomerGateway) SetBgpAsn(v string) *CustomerGateway {
  28222. s.BgpAsn = &v
  28223. return s
  28224. }
  28225. // SetCustomerGatewayId sets the CustomerGatewayId field's value.
  28226. func (s *CustomerGateway) SetCustomerGatewayId(v string) *CustomerGateway {
  28227. s.CustomerGatewayId = &v
  28228. return s
  28229. }
  28230. // SetIpAddress sets the IpAddress field's value.
  28231. func (s *CustomerGateway) SetIpAddress(v string) *CustomerGateway {
  28232. s.IpAddress = &v
  28233. return s
  28234. }
  28235. // SetState sets the State field's value.
  28236. func (s *CustomerGateway) SetState(v string) *CustomerGateway {
  28237. s.State = &v
  28238. return s
  28239. }
  28240. // SetTags sets the Tags field's value.
  28241. func (s *CustomerGateway) SetTags(v []*Tag) *CustomerGateway {
  28242. s.Tags = v
  28243. return s
  28244. }
  28245. // SetType sets the Type field's value.
  28246. func (s *CustomerGateway) SetType(v string) *CustomerGateway {
  28247. s.Type = &v
  28248. return s
  28249. }
  28250. // Contains the parameters for DeleteCustomerGateway.
  28251. type DeleteCustomerGatewayInput struct {
  28252. _ struct{} `type:"structure"`
  28253. // The ID of the customer gateway.
  28254. //
  28255. // CustomerGatewayId is a required field
  28256. CustomerGatewayId *string `type:"string" required:"true"`
  28257. // Checks whether you have the required permissions for the action, without
  28258. // actually making the request, and provides an error response. If you have
  28259. // the required permissions, the error response is DryRunOperation. Otherwise,
  28260. // it is UnauthorizedOperation.
  28261. DryRun *bool `locationName:"dryRun" type:"boolean"`
  28262. }
  28263. // String returns the string representation
  28264. func (s DeleteCustomerGatewayInput) String() string {
  28265. return awsutil.Prettify(s)
  28266. }
  28267. // GoString returns the string representation
  28268. func (s DeleteCustomerGatewayInput) GoString() string {
  28269. return s.String()
  28270. }
  28271. // Validate inspects the fields of the type to determine if they are valid.
  28272. func (s *DeleteCustomerGatewayInput) Validate() error {
  28273. invalidParams := request.ErrInvalidParams{Context: "DeleteCustomerGatewayInput"}
  28274. if s.CustomerGatewayId == nil {
  28275. invalidParams.Add(request.NewErrParamRequired("CustomerGatewayId"))
  28276. }
  28277. if invalidParams.Len() > 0 {
  28278. return invalidParams
  28279. }
  28280. return nil
  28281. }
  28282. // SetCustomerGatewayId sets the CustomerGatewayId field's value.
  28283. func (s *DeleteCustomerGatewayInput) SetCustomerGatewayId(v string) *DeleteCustomerGatewayInput {
  28284. s.CustomerGatewayId = &v
  28285. return s
  28286. }
  28287. // SetDryRun sets the DryRun field's value.
  28288. func (s *DeleteCustomerGatewayInput) SetDryRun(v bool) *DeleteCustomerGatewayInput {
  28289. s.DryRun = &v
  28290. return s
  28291. }
  28292. type DeleteCustomerGatewayOutput struct {
  28293. _ struct{} `type:"structure"`
  28294. }
  28295. // String returns the string representation
  28296. func (s DeleteCustomerGatewayOutput) String() string {
  28297. return awsutil.Prettify(s)
  28298. }
  28299. // GoString returns the string representation
  28300. func (s DeleteCustomerGatewayOutput) GoString() string {
  28301. return s.String()
  28302. }
  28303. // Contains the parameters for DeleteDhcpOptions.
  28304. type DeleteDhcpOptionsInput struct {
  28305. _ struct{} `type:"structure"`
  28306. // The ID of the DHCP options set.
  28307. //
  28308. // DhcpOptionsId is a required field
  28309. DhcpOptionsId *string `type:"string" required:"true"`
  28310. // Checks whether you have the required permissions for the action, without
  28311. // actually making the request, and provides an error response. If you have
  28312. // the required permissions, the error response is DryRunOperation. Otherwise,
  28313. // it is UnauthorizedOperation.
  28314. DryRun *bool `locationName:"dryRun" type:"boolean"`
  28315. }
  28316. // String returns the string representation
  28317. func (s DeleteDhcpOptionsInput) String() string {
  28318. return awsutil.Prettify(s)
  28319. }
  28320. // GoString returns the string representation
  28321. func (s DeleteDhcpOptionsInput) GoString() string {
  28322. return s.String()
  28323. }
  28324. // Validate inspects the fields of the type to determine if they are valid.
  28325. func (s *DeleteDhcpOptionsInput) Validate() error {
  28326. invalidParams := request.ErrInvalidParams{Context: "DeleteDhcpOptionsInput"}
  28327. if s.DhcpOptionsId == nil {
  28328. invalidParams.Add(request.NewErrParamRequired("DhcpOptionsId"))
  28329. }
  28330. if invalidParams.Len() > 0 {
  28331. return invalidParams
  28332. }
  28333. return nil
  28334. }
  28335. // SetDhcpOptionsId sets the DhcpOptionsId field's value.
  28336. func (s *DeleteDhcpOptionsInput) SetDhcpOptionsId(v string) *DeleteDhcpOptionsInput {
  28337. s.DhcpOptionsId = &v
  28338. return s
  28339. }
  28340. // SetDryRun sets the DryRun field's value.
  28341. func (s *DeleteDhcpOptionsInput) SetDryRun(v bool) *DeleteDhcpOptionsInput {
  28342. s.DryRun = &v
  28343. return s
  28344. }
  28345. type DeleteDhcpOptionsOutput struct {
  28346. _ struct{} `type:"structure"`
  28347. }
  28348. // String returns the string representation
  28349. func (s DeleteDhcpOptionsOutput) String() string {
  28350. return awsutil.Prettify(s)
  28351. }
  28352. // GoString returns the string representation
  28353. func (s DeleteDhcpOptionsOutput) GoString() string {
  28354. return s.String()
  28355. }
  28356. type DeleteEgressOnlyInternetGatewayInput struct {
  28357. _ struct{} `type:"structure"`
  28358. // Checks whether you have the required permissions for the action, without
  28359. // actually making the request, and provides an error response. If you have
  28360. // the required permissions, the error response is DryRunOperation. Otherwise,
  28361. // it is UnauthorizedOperation.
  28362. DryRun *bool `type:"boolean"`
  28363. // The ID of the egress-only Internet gateway.
  28364. //
  28365. // EgressOnlyInternetGatewayId is a required field
  28366. EgressOnlyInternetGatewayId *string `type:"string" required:"true"`
  28367. }
  28368. // String returns the string representation
  28369. func (s DeleteEgressOnlyInternetGatewayInput) String() string {
  28370. return awsutil.Prettify(s)
  28371. }
  28372. // GoString returns the string representation
  28373. func (s DeleteEgressOnlyInternetGatewayInput) GoString() string {
  28374. return s.String()
  28375. }
  28376. // Validate inspects the fields of the type to determine if they are valid.
  28377. func (s *DeleteEgressOnlyInternetGatewayInput) Validate() error {
  28378. invalidParams := request.ErrInvalidParams{Context: "DeleteEgressOnlyInternetGatewayInput"}
  28379. if s.EgressOnlyInternetGatewayId == nil {
  28380. invalidParams.Add(request.NewErrParamRequired("EgressOnlyInternetGatewayId"))
  28381. }
  28382. if invalidParams.Len() > 0 {
  28383. return invalidParams
  28384. }
  28385. return nil
  28386. }
  28387. // SetDryRun sets the DryRun field's value.
  28388. func (s *DeleteEgressOnlyInternetGatewayInput) SetDryRun(v bool) *DeleteEgressOnlyInternetGatewayInput {
  28389. s.DryRun = &v
  28390. return s
  28391. }
  28392. // SetEgressOnlyInternetGatewayId sets the EgressOnlyInternetGatewayId field's value.
  28393. func (s *DeleteEgressOnlyInternetGatewayInput) SetEgressOnlyInternetGatewayId(v string) *DeleteEgressOnlyInternetGatewayInput {
  28394. s.EgressOnlyInternetGatewayId = &v
  28395. return s
  28396. }
  28397. type DeleteEgressOnlyInternetGatewayOutput struct {
  28398. _ struct{} `type:"structure"`
  28399. // Returns true if the request succeeds; otherwise, it returns an error.
  28400. ReturnCode *bool `locationName:"returnCode" type:"boolean"`
  28401. }
  28402. // String returns the string representation
  28403. func (s DeleteEgressOnlyInternetGatewayOutput) String() string {
  28404. return awsutil.Prettify(s)
  28405. }
  28406. // GoString returns the string representation
  28407. func (s DeleteEgressOnlyInternetGatewayOutput) GoString() string {
  28408. return s.String()
  28409. }
  28410. // SetReturnCode sets the ReturnCode field's value.
  28411. func (s *DeleteEgressOnlyInternetGatewayOutput) SetReturnCode(v bool) *DeleteEgressOnlyInternetGatewayOutput {
  28412. s.ReturnCode = &v
  28413. return s
  28414. }
  28415. // Describes an EC2 Fleet error.
  28416. type DeleteFleetError struct {
  28417. _ struct{} `type:"structure"`
  28418. // The error code.
  28419. Code *string `locationName:"code" type:"string" enum:"DeleteFleetErrorCode"`
  28420. // The description for the error code.
  28421. Message *string `locationName:"message" type:"string"`
  28422. }
  28423. // String returns the string representation
  28424. func (s DeleteFleetError) String() string {
  28425. return awsutil.Prettify(s)
  28426. }
  28427. // GoString returns the string representation
  28428. func (s DeleteFleetError) GoString() string {
  28429. return s.String()
  28430. }
  28431. // SetCode sets the Code field's value.
  28432. func (s *DeleteFleetError) SetCode(v string) *DeleteFleetError {
  28433. s.Code = &v
  28434. return s
  28435. }
  28436. // SetMessage sets the Message field's value.
  28437. func (s *DeleteFleetError) SetMessage(v string) *DeleteFleetError {
  28438. s.Message = &v
  28439. return s
  28440. }
  28441. // Describes an EC2 Fleet that was not successfully deleted.
  28442. type DeleteFleetErrorItem struct {
  28443. _ struct{} `type:"structure"`
  28444. // The error.
  28445. Error *DeleteFleetError `locationName:"error" type:"structure"`
  28446. // The ID of the EC2 Fleet.
  28447. FleetId *string `locationName:"fleetId" type:"string"`
  28448. }
  28449. // String returns the string representation
  28450. func (s DeleteFleetErrorItem) String() string {
  28451. return awsutil.Prettify(s)
  28452. }
  28453. // GoString returns the string representation
  28454. func (s DeleteFleetErrorItem) GoString() string {
  28455. return s.String()
  28456. }
  28457. // SetError sets the Error field's value.
  28458. func (s *DeleteFleetErrorItem) SetError(v *DeleteFleetError) *DeleteFleetErrorItem {
  28459. s.Error = v
  28460. return s
  28461. }
  28462. // SetFleetId sets the FleetId field's value.
  28463. func (s *DeleteFleetErrorItem) SetFleetId(v string) *DeleteFleetErrorItem {
  28464. s.FleetId = &v
  28465. return s
  28466. }
  28467. // Describes an EC2 Fleet that was successfully deleted.
  28468. type DeleteFleetSuccessItem struct {
  28469. _ struct{} `type:"structure"`
  28470. // The current state of the EC2 Fleet.
  28471. CurrentFleetState *string `locationName:"currentFleetState" type:"string" enum:"FleetStateCode"`
  28472. // The ID of the EC2 Fleet.
  28473. FleetId *string `locationName:"fleetId" type:"string"`
  28474. // The previous state of the EC2 Fleet.
  28475. PreviousFleetState *string `locationName:"previousFleetState" type:"string" enum:"FleetStateCode"`
  28476. }
  28477. // String returns the string representation
  28478. func (s DeleteFleetSuccessItem) String() string {
  28479. return awsutil.Prettify(s)
  28480. }
  28481. // GoString returns the string representation
  28482. func (s DeleteFleetSuccessItem) GoString() string {
  28483. return s.String()
  28484. }
  28485. // SetCurrentFleetState sets the CurrentFleetState field's value.
  28486. func (s *DeleteFleetSuccessItem) SetCurrentFleetState(v string) *DeleteFleetSuccessItem {
  28487. s.CurrentFleetState = &v
  28488. return s
  28489. }
  28490. // SetFleetId sets the FleetId field's value.
  28491. func (s *DeleteFleetSuccessItem) SetFleetId(v string) *DeleteFleetSuccessItem {
  28492. s.FleetId = &v
  28493. return s
  28494. }
  28495. // SetPreviousFleetState sets the PreviousFleetState field's value.
  28496. func (s *DeleteFleetSuccessItem) SetPreviousFleetState(v string) *DeleteFleetSuccessItem {
  28497. s.PreviousFleetState = &v
  28498. return s
  28499. }
  28500. type DeleteFleetsInput struct {
  28501. _ struct{} `type:"structure"`
  28502. // Checks whether you have the required permissions for the action, without
  28503. // actually making the request, and provides an error response. If you have
  28504. // the required permissions, the error response is DryRunOperation. Otherwise,
  28505. // it is UnauthorizedOperation.
  28506. DryRun *bool `type:"boolean"`
  28507. // The IDs of the EC2 Fleets.
  28508. //
  28509. // FleetIds is a required field
  28510. FleetIds []*string `locationName:"FleetId" type:"list" required:"true"`
  28511. // Indicates whether to terminate instances for an EC2 Fleet if it is deleted
  28512. // successfully.
  28513. //
  28514. // TerminateInstances is a required field
  28515. TerminateInstances *bool `type:"boolean" required:"true"`
  28516. }
  28517. // String returns the string representation
  28518. func (s DeleteFleetsInput) String() string {
  28519. return awsutil.Prettify(s)
  28520. }
  28521. // GoString returns the string representation
  28522. func (s DeleteFleetsInput) GoString() string {
  28523. return s.String()
  28524. }
  28525. // Validate inspects the fields of the type to determine if they are valid.
  28526. func (s *DeleteFleetsInput) Validate() error {
  28527. invalidParams := request.ErrInvalidParams{Context: "DeleteFleetsInput"}
  28528. if s.FleetIds == nil {
  28529. invalidParams.Add(request.NewErrParamRequired("FleetIds"))
  28530. }
  28531. if s.TerminateInstances == nil {
  28532. invalidParams.Add(request.NewErrParamRequired("TerminateInstances"))
  28533. }
  28534. if invalidParams.Len() > 0 {
  28535. return invalidParams
  28536. }
  28537. return nil
  28538. }
  28539. // SetDryRun sets the DryRun field's value.
  28540. func (s *DeleteFleetsInput) SetDryRun(v bool) *DeleteFleetsInput {
  28541. s.DryRun = &v
  28542. return s
  28543. }
  28544. // SetFleetIds sets the FleetIds field's value.
  28545. func (s *DeleteFleetsInput) SetFleetIds(v []*string) *DeleteFleetsInput {
  28546. s.FleetIds = v
  28547. return s
  28548. }
  28549. // SetTerminateInstances sets the TerminateInstances field's value.
  28550. func (s *DeleteFleetsInput) SetTerminateInstances(v bool) *DeleteFleetsInput {
  28551. s.TerminateInstances = &v
  28552. return s
  28553. }
  28554. type DeleteFleetsOutput struct {
  28555. _ struct{} `type:"structure"`
  28556. // Information about the EC2 Fleets that are successfully deleted.
  28557. SuccessfulFleetDeletions []*DeleteFleetSuccessItem `locationName:"successfulFleetDeletionSet" locationNameList:"item" type:"list"`
  28558. // Information about the EC2 Fleets that are not successfully deleted.
  28559. UnsuccessfulFleetDeletions []*DeleteFleetErrorItem `locationName:"unsuccessfulFleetDeletionSet" locationNameList:"item" type:"list"`
  28560. }
  28561. // String returns the string representation
  28562. func (s DeleteFleetsOutput) String() string {
  28563. return awsutil.Prettify(s)
  28564. }
  28565. // GoString returns the string representation
  28566. func (s DeleteFleetsOutput) GoString() string {
  28567. return s.String()
  28568. }
  28569. // SetSuccessfulFleetDeletions sets the SuccessfulFleetDeletions field's value.
  28570. func (s *DeleteFleetsOutput) SetSuccessfulFleetDeletions(v []*DeleteFleetSuccessItem) *DeleteFleetsOutput {
  28571. s.SuccessfulFleetDeletions = v
  28572. return s
  28573. }
  28574. // SetUnsuccessfulFleetDeletions sets the UnsuccessfulFleetDeletions field's value.
  28575. func (s *DeleteFleetsOutput) SetUnsuccessfulFleetDeletions(v []*DeleteFleetErrorItem) *DeleteFleetsOutput {
  28576. s.UnsuccessfulFleetDeletions = v
  28577. return s
  28578. }
  28579. // Contains the parameters for DeleteFlowLogs.
  28580. type DeleteFlowLogsInput struct {
  28581. _ struct{} `type:"structure"`
  28582. // One or more flow log IDs.
  28583. //
  28584. // FlowLogIds is a required field
  28585. FlowLogIds []*string `locationName:"FlowLogId" locationNameList:"item" type:"list" required:"true"`
  28586. }
  28587. // String returns the string representation
  28588. func (s DeleteFlowLogsInput) String() string {
  28589. return awsutil.Prettify(s)
  28590. }
  28591. // GoString returns the string representation
  28592. func (s DeleteFlowLogsInput) GoString() string {
  28593. return s.String()
  28594. }
  28595. // Validate inspects the fields of the type to determine if they are valid.
  28596. func (s *DeleteFlowLogsInput) Validate() error {
  28597. invalidParams := request.ErrInvalidParams{Context: "DeleteFlowLogsInput"}
  28598. if s.FlowLogIds == nil {
  28599. invalidParams.Add(request.NewErrParamRequired("FlowLogIds"))
  28600. }
  28601. if invalidParams.Len() > 0 {
  28602. return invalidParams
  28603. }
  28604. return nil
  28605. }
  28606. // SetFlowLogIds sets the FlowLogIds field's value.
  28607. func (s *DeleteFlowLogsInput) SetFlowLogIds(v []*string) *DeleteFlowLogsInput {
  28608. s.FlowLogIds = v
  28609. return s
  28610. }
  28611. // Contains the output of DeleteFlowLogs.
  28612. type DeleteFlowLogsOutput struct {
  28613. _ struct{} `type:"structure"`
  28614. // Information about the flow logs that could not be deleted successfully.
  28615. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  28616. }
  28617. // String returns the string representation
  28618. func (s DeleteFlowLogsOutput) String() string {
  28619. return awsutil.Prettify(s)
  28620. }
  28621. // GoString returns the string representation
  28622. func (s DeleteFlowLogsOutput) GoString() string {
  28623. return s.String()
  28624. }
  28625. // SetUnsuccessful sets the Unsuccessful field's value.
  28626. func (s *DeleteFlowLogsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *DeleteFlowLogsOutput {
  28627. s.Unsuccessful = v
  28628. return s
  28629. }
  28630. type DeleteFpgaImageInput struct {
  28631. _ struct{} `type:"structure"`
  28632. // Checks whether you have the required permissions for the action, without
  28633. // actually making the request, and provides an error response. If you have
  28634. // the required permissions, the error response is DryRunOperation. Otherwise,
  28635. // it is UnauthorizedOperation.
  28636. DryRun *bool `type:"boolean"`
  28637. // The ID of the AFI.
  28638. //
  28639. // FpgaImageId is a required field
  28640. FpgaImageId *string `type:"string" required:"true"`
  28641. }
  28642. // String returns the string representation
  28643. func (s DeleteFpgaImageInput) String() string {
  28644. return awsutil.Prettify(s)
  28645. }
  28646. // GoString returns the string representation
  28647. func (s DeleteFpgaImageInput) GoString() string {
  28648. return s.String()
  28649. }
  28650. // Validate inspects the fields of the type to determine if they are valid.
  28651. func (s *DeleteFpgaImageInput) Validate() error {
  28652. invalidParams := request.ErrInvalidParams{Context: "DeleteFpgaImageInput"}
  28653. if s.FpgaImageId == nil {
  28654. invalidParams.Add(request.NewErrParamRequired("FpgaImageId"))
  28655. }
  28656. if invalidParams.Len() > 0 {
  28657. return invalidParams
  28658. }
  28659. return nil
  28660. }
  28661. // SetDryRun sets the DryRun field's value.
  28662. func (s *DeleteFpgaImageInput) SetDryRun(v bool) *DeleteFpgaImageInput {
  28663. s.DryRun = &v
  28664. return s
  28665. }
  28666. // SetFpgaImageId sets the FpgaImageId field's value.
  28667. func (s *DeleteFpgaImageInput) SetFpgaImageId(v string) *DeleteFpgaImageInput {
  28668. s.FpgaImageId = &v
  28669. return s
  28670. }
  28671. type DeleteFpgaImageOutput struct {
  28672. _ struct{} `type:"structure"`
  28673. // Is true if the request succeeds, and an error otherwise.
  28674. Return *bool `locationName:"return" type:"boolean"`
  28675. }
  28676. // String returns the string representation
  28677. func (s DeleteFpgaImageOutput) String() string {
  28678. return awsutil.Prettify(s)
  28679. }
  28680. // GoString returns the string representation
  28681. func (s DeleteFpgaImageOutput) GoString() string {
  28682. return s.String()
  28683. }
  28684. // SetReturn sets the Return field's value.
  28685. func (s *DeleteFpgaImageOutput) SetReturn(v bool) *DeleteFpgaImageOutput {
  28686. s.Return = &v
  28687. return s
  28688. }
  28689. // Contains the parameters for DeleteInternetGateway.
  28690. type DeleteInternetGatewayInput struct {
  28691. _ struct{} `type:"structure"`
  28692. // Checks whether you have the required permissions for the action, without
  28693. // actually making the request, and provides an error response. If you have
  28694. // the required permissions, the error response is DryRunOperation. Otherwise,
  28695. // it is UnauthorizedOperation.
  28696. DryRun *bool `locationName:"dryRun" type:"boolean"`
  28697. // The ID of the Internet gateway.
  28698. //
  28699. // InternetGatewayId is a required field
  28700. InternetGatewayId *string `locationName:"internetGatewayId" type:"string" required:"true"`
  28701. }
  28702. // String returns the string representation
  28703. func (s DeleteInternetGatewayInput) String() string {
  28704. return awsutil.Prettify(s)
  28705. }
  28706. // GoString returns the string representation
  28707. func (s DeleteInternetGatewayInput) GoString() string {
  28708. return s.String()
  28709. }
  28710. // Validate inspects the fields of the type to determine if they are valid.
  28711. func (s *DeleteInternetGatewayInput) Validate() error {
  28712. invalidParams := request.ErrInvalidParams{Context: "DeleteInternetGatewayInput"}
  28713. if s.InternetGatewayId == nil {
  28714. invalidParams.Add(request.NewErrParamRequired("InternetGatewayId"))
  28715. }
  28716. if invalidParams.Len() > 0 {
  28717. return invalidParams
  28718. }
  28719. return nil
  28720. }
  28721. // SetDryRun sets the DryRun field's value.
  28722. func (s *DeleteInternetGatewayInput) SetDryRun(v bool) *DeleteInternetGatewayInput {
  28723. s.DryRun = &v
  28724. return s
  28725. }
  28726. // SetInternetGatewayId sets the InternetGatewayId field's value.
  28727. func (s *DeleteInternetGatewayInput) SetInternetGatewayId(v string) *DeleteInternetGatewayInput {
  28728. s.InternetGatewayId = &v
  28729. return s
  28730. }
  28731. type DeleteInternetGatewayOutput struct {
  28732. _ struct{} `type:"structure"`
  28733. }
  28734. // String returns the string representation
  28735. func (s DeleteInternetGatewayOutput) String() string {
  28736. return awsutil.Prettify(s)
  28737. }
  28738. // GoString returns the string representation
  28739. func (s DeleteInternetGatewayOutput) GoString() string {
  28740. return s.String()
  28741. }
  28742. // Contains the parameters for DeleteKeyPair.
  28743. type DeleteKeyPairInput struct {
  28744. _ struct{} `type:"structure"`
  28745. // Checks whether you have the required permissions for the action, without
  28746. // actually making the request, and provides an error response. If you have
  28747. // the required permissions, the error response is DryRunOperation. Otherwise,
  28748. // it is UnauthorizedOperation.
  28749. DryRun *bool `locationName:"dryRun" type:"boolean"`
  28750. // The name of the key pair.
  28751. //
  28752. // KeyName is a required field
  28753. KeyName *string `type:"string" required:"true"`
  28754. }
  28755. // String returns the string representation
  28756. func (s DeleteKeyPairInput) String() string {
  28757. return awsutil.Prettify(s)
  28758. }
  28759. // GoString returns the string representation
  28760. func (s DeleteKeyPairInput) GoString() string {
  28761. return s.String()
  28762. }
  28763. // Validate inspects the fields of the type to determine if they are valid.
  28764. func (s *DeleteKeyPairInput) Validate() error {
  28765. invalidParams := request.ErrInvalidParams{Context: "DeleteKeyPairInput"}
  28766. if s.KeyName == nil {
  28767. invalidParams.Add(request.NewErrParamRequired("KeyName"))
  28768. }
  28769. if invalidParams.Len() > 0 {
  28770. return invalidParams
  28771. }
  28772. return nil
  28773. }
  28774. // SetDryRun sets the DryRun field's value.
  28775. func (s *DeleteKeyPairInput) SetDryRun(v bool) *DeleteKeyPairInput {
  28776. s.DryRun = &v
  28777. return s
  28778. }
  28779. // SetKeyName sets the KeyName field's value.
  28780. func (s *DeleteKeyPairInput) SetKeyName(v string) *DeleteKeyPairInput {
  28781. s.KeyName = &v
  28782. return s
  28783. }
  28784. type DeleteKeyPairOutput struct {
  28785. _ struct{} `type:"structure"`
  28786. }
  28787. // String returns the string representation
  28788. func (s DeleteKeyPairOutput) String() string {
  28789. return awsutil.Prettify(s)
  28790. }
  28791. // GoString returns the string representation
  28792. func (s DeleteKeyPairOutput) GoString() string {
  28793. return s.String()
  28794. }
  28795. type DeleteLaunchTemplateInput struct {
  28796. _ struct{} `type:"structure"`
  28797. // Checks whether you have the required permissions for the action, without
  28798. // actually making the request, and provides an error response. If you have
  28799. // the required permissions, the error response is DryRunOperation. Otherwise,
  28800. // it is UnauthorizedOperation.
  28801. DryRun *bool `type:"boolean"`
  28802. // The ID of the launch template. You must specify either the launch template
  28803. // ID or launch template name in the request.
  28804. LaunchTemplateId *string `type:"string"`
  28805. // The name of the launch template. You must specify either the launch template
  28806. // ID or launch template name in the request.
  28807. LaunchTemplateName *string `min:"3" type:"string"`
  28808. }
  28809. // String returns the string representation
  28810. func (s DeleteLaunchTemplateInput) String() string {
  28811. return awsutil.Prettify(s)
  28812. }
  28813. // GoString returns the string representation
  28814. func (s DeleteLaunchTemplateInput) GoString() string {
  28815. return s.String()
  28816. }
  28817. // Validate inspects the fields of the type to determine if they are valid.
  28818. func (s *DeleteLaunchTemplateInput) Validate() error {
  28819. invalidParams := request.ErrInvalidParams{Context: "DeleteLaunchTemplateInput"}
  28820. if s.LaunchTemplateName != nil && len(*s.LaunchTemplateName) < 3 {
  28821. invalidParams.Add(request.NewErrParamMinLen("LaunchTemplateName", 3))
  28822. }
  28823. if invalidParams.Len() > 0 {
  28824. return invalidParams
  28825. }
  28826. return nil
  28827. }
  28828. // SetDryRun sets the DryRun field's value.
  28829. func (s *DeleteLaunchTemplateInput) SetDryRun(v bool) *DeleteLaunchTemplateInput {
  28830. s.DryRun = &v
  28831. return s
  28832. }
  28833. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  28834. func (s *DeleteLaunchTemplateInput) SetLaunchTemplateId(v string) *DeleteLaunchTemplateInput {
  28835. s.LaunchTemplateId = &v
  28836. return s
  28837. }
  28838. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  28839. func (s *DeleteLaunchTemplateInput) SetLaunchTemplateName(v string) *DeleteLaunchTemplateInput {
  28840. s.LaunchTemplateName = &v
  28841. return s
  28842. }
  28843. type DeleteLaunchTemplateOutput struct {
  28844. _ struct{} `type:"structure"`
  28845. // Information about the launch template.
  28846. LaunchTemplate *LaunchTemplate `locationName:"launchTemplate" type:"structure"`
  28847. }
  28848. // String returns the string representation
  28849. func (s DeleteLaunchTemplateOutput) String() string {
  28850. return awsutil.Prettify(s)
  28851. }
  28852. // GoString returns the string representation
  28853. func (s DeleteLaunchTemplateOutput) GoString() string {
  28854. return s.String()
  28855. }
  28856. // SetLaunchTemplate sets the LaunchTemplate field's value.
  28857. func (s *DeleteLaunchTemplateOutput) SetLaunchTemplate(v *LaunchTemplate) *DeleteLaunchTemplateOutput {
  28858. s.LaunchTemplate = v
  28859. return s
  28860. }
  28861. type DeleteLaunchTemplateVersionsInput struct {
  28862. _ struct{} `type:"structure"`
  28863. // Checks whether you have the required permissions for the action, without
  28864. // actually making the request, and provides an error response. If you have
  28865. // the required permissions, the error response is DryRunOperation. Otherwise,
  28866. // it is UnauthorizedOperation.
  28867. DryRun *bool `type:"boolean"`
  28868. // The ID of the launch template. You must specify either the launch template
  28869. // ID or launch template name in the request.
  28870. LaunchTemplateId *string `type:"string"`
  28871. // The name of the launch template. You must specify either the launch template
  28872. // ID or launch template name in the request.
  28873. LaunchTemplateName *string `min:"3" type:"string"`
  28874. // The version numbers of one or more launch template versions to delete.
  28875. //
  28876. // Versions is a required field
  28877. Versions []*string `locationName:"LaunchTemplateVersion" locationNameList:"item" type:"list" required:"true"`
  28878. }
  28879. // String returns the string representation
  28880. func (s DeleteLaunchTemplateVersionsInput) String() string {
  28881. return awsutil.Prettify(s)
  28882. }
  28883. // GoString returns the string representation
  28884. func (s DeleteLaunchTemplateVersionsInput) GoString() string {
  28885. return s.String()
  28886. }
  28887. // Validate inspects the fields of the type to determine if they are valid.
  28888. func (s *DeleteLaunchTemplateVersionsInput) Validate() error {
  28889. invalidParams := request.ErrInvalidParams{Context: "DeleteLaunchTemplateVersionsInput"}
  28890. if s.LaunchTemplateName != nil && len(*s.LaunchTemplateName) < 3 {
  28891. invalidParams.Add(request.NewErrParamMinLen("LaunchTemplateName", 3))
  28892. }
  28893. if s.Versions == nil {
  28894. invalidParams.Add(request.NewErrParamRequired("Versions"))
  28895. }
  28896. if invalidParams.Len() > 0 {
  28897. return invalidParams
  28898. }
  28899. return nil
  28900. }
  28901. // SetDryRun sets the DryRun field's value.
  28902. func (s *DeleteLaunchTemplateVersionsInput) SetDryRun(v bool) *DeleteLaunchTemplateVersionsInput {
  28903. s.DryRun = &v
  28904. return s
  28905. }
  28906. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  28907. func (s *DeleteLaunchTemplateVersionsInput) SetLaunchTemplateId(v string) *DeleteLaunchTemplateVersionsInput {
  28908. s.LaunchTemplateId = &v
  28909. return s
  28910. }
  28911. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  28912. func (s *DeleteLaunchTemplateVersionsInput) SetLaunchTemplateName(v string) *DeleteLaunchTemplateVersionsInput {
  28913. s.LaunchTemplateName = &v
  28914. return s
  28915. }
  28916. // SetVersions sets the Versions field's value.
  28917. func (s *DeleteLaunchTemplateVersionsInput) SetVersions(v []*string) *DeleteLaunchTemplateVersionsInput {
  28918. s.Versions = v
  28919. return s
  28920. }
  28921. type DeleteLaunchTemplateVersionsOutput struct {
  28922. _ struct{} `type:"structure"`
  28923. // Information about the launch template versions that were successfully deleted.
  28924. SuccessfullyDeletedLaunchTemplateVersions []*DeleteLaunchTemplateVersionsResponseSuccessItem `locationName:"successfullyDeletedLaunchTemplateVersionSet" locationNameList:"item" type:"list"`
  28925. // Information about the launch template versions that could not be deleted.
  28926. UnsuccessfullyDeletedLaunchTemplateVersions []*DeleteLaunchTemplateVersionsResponseErrorItem `locationName:"unsuccessfullyDeletedLaunchTemplateVersionSet" locationNameList:"item" type:"list"`
  28927. }
  28928. // String returns the string representation
  28929. func (s DeleteLaunchTemplateVersionsOutput) String() string {
  28930. return awsutil.Prettify(s)
  28931. }
  28932. // GoString returns the string representation
  28933. func (s DeleteLaunchTemplateVersionsOutput) GoString() string {
  28934. return s.String()
  28935. }
  28936. // SetSuccessfullyDeletedLaunchTemplateVersions sets the SuccessfullyDeletedLaunchTemplateVersions field's value.
  28937. func (s *DeleteLaunchTemplateVersionsOutput) SetSuccessfullyDeletedLaunchTemplateVersions(v []*DeleteLaunchTemplateVersionsResponseSuccessItem) *DeleteLaunchTemplateVersionsOutput {
  28938. s.SuccessfullyDeletedLaunchTemplateVersions = v
  28939. return s
  28940. }
  28941. // SetUnsuccessfullyDeletedLaunchTemplateVersions sets the UnsuccessfullyDeletedLaunchTemplateVersions field's value.
  28942. func (s *DeleteLaunchTemplateVersionsOutput) SetUnsuccessfullyDeletedLaunchTemplateVersions(v []*DeleteLaunchTemplateVersionsResponseErrorItem) *DeleteLaunchTemplateVersionsOutput {
  28943. s.UnsuccessfullyDeletedLaunchTemplateVersions = v
  28944. return s
  28945. }
  28946. // Describes a launch template version that could not be deleted.
  28947. type DeleteLaunchTemplateVersionsResponseErrorItem struct {
  28948. _ struct{} `type:"structure"`
  28949. // The ID of the launch template.
  28950. LaunchTemplateId *string `locationName:"launchTemplateId" type:"string"`
  28951. // The name of the launch template.
  28952. LaunchTemplateName *string `locationName:"launchTemplateName" type:"string"`
  28953. // Information about the error.
  28954. ResponseError *ResponseError `locationName:"responseError" type:"structure"`
  28955. // The version number of the launch template.
  28956. VersionNumber *int64 `locationName:"versionNumber" type:"long"`
  28957. }
  28958. // String returns the string representation
  28959. func (s DeleteLaunchTemplateVersionsResponseErrorItem) String() string {
  28960. return awsutil.Prettify(s)
  28961. }
  28962. // GoString returns the string representation
  28963. func (s DeleteLaunchTemplateVersionsResponseErrorItem) GoString() string {
  28964. return s.String()
  28965. }
  28966. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  28967. func (s *DeleteLaunchTemplateVersionsResponseErrorItem) SetLaunchTemplateId(v string) *DeleteLaunchTemplateVersionsResponseErrorItem {
  28968. s.LaunchTemplateId = &v
  28969. return s
  28970. }
  28971. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  28972. func (s *DeleteLaunchTemplateVersionsResponseErrorItem) SetLaunchTemplateName(v string) *DeleteLaunchTemplateVersionsResponseErrorItem {
  28973. s.LaunchTemplateName = &v
  28974. return s
  28975. }
  28976. // SetResponseError sets the ResponseError field's value.
  28977. func (s *DeleteLaunchTemplateVersionsResponseErrorItem) SetResponseError(v *ResponseError) *DeleteLaunchTemplateVersionsResponseErrorItem {
  28978. s.ResponseError = v
  28979. return s
  28980. }
  28981. // SetVersionNumber sets the VersionNumber field's value.
  28982. func (s *DeleteLaunchTemplateVersionsResponseErrorItem) SetVersionNumber(v int64) *DeleteLaunchTemplateVersionsResponseErrorItem {
  28983. s.VersionNumber = &v
  28984. return s
  28985. }
  28986. // Describes a launch template version that was successfully deleted.
  28987. type DeleteLaunchTemplateVersionsResponseSuccessItem struct {
  28988. _ struct{} `type:"structure"`
  28989. // The ID of the launch template.
  28990. LaunchTemplateId *string `locationName:"launchTemplateId" type:"string"`
  28991. // The name of the launch template.
  28992. LaunchTemplateName *string `locationName:"launchTemplateName" type:"string"`
  28993. // The version number of the launch template.
  28994. VersionNumber *int64 `locationName:"versionNumber" type:"long"`
  28995. }
  28996. // String returns the string representation
  28997. func (s DeleteLaunchTemplateVersionsResponseSuccessItem) String() string {
  28998. return awsutil.Prettify(s)
  28999. }
  29000. // GoString returns the string representation
  29001. func (s DeleteLaunchTemplateVersionsResponseSuccessItem) GoString() string {
  29002. return s.String()
  29003. }
  29004. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  29005. func (s *DeleteLaunchTemplateVersionsResponseSuccessItem) SetLaunchTemplateId(v string) *DeleteLaunchTemplateVersionsResponseSuccessItem {
  29006. s.LaunchTemplateId = &v
  29007. return s
  29008. }
  29009. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  29010. func (s *DeleteLaunchTemplateVersionsResponseSuccessItem) SetLaunchTemplateName(v string) *DeleteLaunchTemplateVersionsResponseSuccessItem {
  29011. s.LaunchTemplateName = &v
  29012. return s
  29013. }
  29014. // SetVersionNumber sets the VersionNumber field's value.
  29015. func (s *DeleteLaunchTemplateVersionsResponseSuccessItem) SetVersionNumber(v int64) *DeleteLaunchTemplateVersionsResponseSuccessItem {
  29016. s.VersionNumber = &v
  29017. return s
  29018. }
  29019. // Contains the parameters for DeleteNatGateway.
  29020. type DeleteNatGatewayInput struct {
  29021. _ struct{} `type:"structure"`
  29022. // The ID of the NAT gateway.
  29023. //
  29024. // NatGatewayId is a required field
  29025. NatGatewayId *string `type:"string" required:"true"`
  29026. }
  29027. // String returns the string representation
  29028. func (s DeleteNatGatewayInput) String() string {
  29029. return awsutil.Prettify(s)
  29030. }
  29031. // GoString returns the string representation
  29032. func (s DeleteNatGatewayInput) GoString() string {
  29033. return s.String()
  29034. }
  29035. // Validate inspects the fields of the type to determine if they are valid.
  29036. func (s *DeleteNatGatewayInput) Validate() error {
  29037. invalidParams := request.ErrInvalidParams{Context: "DeleteNatGatewayInput"}
  29038. if s.NatGatewayId == nil {
  29039. invalidParams.Add(request.NewErrParamRequired("NatGatewayId"))
  29040. }
  29041. if invalidParams.Len() > 0 {
  29042. return invalidParams
  29043. }
  29044. return nil
  29045. }
  29046. // SetNatGatewayId sets the NatGatewayId field's value.
  29047. func (s *DeleteNatGatewayInput) SetNatGatewayId(v string) *DeleteNatGatewayInput {
  29048. s.NatGatewayId = &v
  29049. return s
  29050. }
  29051. // Contains the output of DeleteNatGateway.
  29052. type DeleteNatGatewayOutput struct {
  29053. _ struct{} `type:"structure"`
  29054. // The ID of the NAT gateway.
  29055. NatGatewayId *string `locationName:"natGatewayId" type:"string"`
  29056. }
  29057. // String returns the string representation
  29058. func (s DeleteNatGatewayOutput) String() string {
  29059. return awsutil.Prettify(s)
  29060. }
  29061. // GoString returns the string representation
  29062. func (s DeleteNatGatewayOutput) GoString() string {
  29063. return s.String()
  29064. }
  29065. // SetNatGatewayId sets the NatGatewayId field's value.
  29066. func (s *DeleteNatGatewayOutput) SetNatGatewayId(v string) *DeleteNatGatewayOutput {
  29067. s.NatGatewayId = &v
  29068. return s
  29069. }
  29070. // Contains the parameters for DeleteNetworkAclEntry.
  29071. type DeleteNetworkAclEntryInput struct {
  29072. _ struct{} `type:"structure"`
  29073. // Checks whether you have the required permissions for the action, without
  29074. // actually making the request, and provides an error response. If you have
  29075. // the required permissions, the error response is DryRunOperation. Otherwise,
  29076. // it is UnauthorizedOperation.
  29077. DryRun *bool `locationName:"dryRun" type:"boolean"`
  29078. // Indicates whether the rule is an egress rule.
  29079. //
  29080. // Egress is a required field
  29081. Egress *bool `locationName:"egress" type:"boolean" required:"true"`
  29082. // The ID of the network ACL.
  29083. //
  29084. // NetworkAclId is a required field
  29085. NetworkAclId *string `locationName:"networkAclId" type:"string" required:"true"`
  29086. // The rule number of the entry to delete.
  29087. //
  29088. // RuleNumber is a required field
  29089. RuleNumber *int64 `locationName:"ruleNumber" type:"integer" required:"true"`
  29090. }
  29091. // String returns the string representation
  29092. func (s DeleteNetworkAclEntryInput) String() string {
  29093. return awsutil.Prettify(s)
  29094. }
  29095. // GoString returns the string representation
  29096. func (s DeleteNetworkAclEntryInput) GoString() string {
  29097. return s.String()
  29098. }
  29099. // Validate inspects the fields of the type to determine if they are valid.
  29100. func (s *DeleteNetworkAclEntryInput) Validate() error {
  29101. invalidParams := request.ErrInvalidParams{Context: "DeleteNetworkAclEntryInput"}
  29102. if s.Egress == nil {
  29103. invalidParams.Add(request.NewErrParamRequired("Egress"))
  29104. }
  29105. if s.NetworkAclId == nil {
  29106. invalidParams.Add(request.NewErrParamRequired("NetworkAclId"))
  29107. }
  29108. if s.RuleNumber == nil {
  29109. invalidParams.Add(request.NewErrParamRequired("RuleNumber"))
  29110. }
  29111. if invalidParams.Len() > 0 {
  29112. return invalidParams
  29113. }
  29114. return nil
  29115. }
  29116. // SetDryRun sets the DryRun field's value.
  29117. func (s *DeleteNetworkAclEntryInput) SetDryRun(v bool) *DeleteNetworkAclEntryInput {
  29118. s.DryRun = &v
  29119. return s
  29120. }
  29121. // SetEgress sets the Egress field's value.
  29122. func (s *DeleteNetworkAclEntryInput) SetEgress(v bool) *DeleteNetworkAclEntryInput {
  29123. s.Egress = &v
  29124. return s
  29125. }
  29126. // SetNetworkAclId sets the NetworkAclId field's value.
  29127. func (s *DeleteNetworkAclEntryInput) SetNetworkAclId(v string) *DeleteNetworkAclEntryInput {
  29128. s.NetworkAclId = &v
  29129. return s
  29130. }
  29131. // SetRuleNumber sets the RuleNumber field's value.
  29132. func (s *DeleteNetworkAclEntryInput) SetRuleNumber(v int64) *DeleteNetworkAclEntryInput {
  29133. s.RuleNumber = &v
  29134. return s
  29135. }
  29136. type DeleteNetworkAclEntryOutput struct {
  29137. _ struct{} `type:"structure"`
  29138. }
  29139. // String returns the string representation
  29140. func (s DeleteNetworkAclEntryOutput) String() string {
  29141. return awsutil.Prettify(s)
  29142. }
  29143. // GoString returns the string representation
  29144. func (s DeleteNetworkAclEntryOutput) GoString() string {
  29145. return s.String()
  29146. }
  29147. // Contains the parameters for DeleteNetworkAcl.
  29148. type DeleteNetworkAclInput struct {
  29149. _ struct{} `type:"structure"`
  29150. // Checks whether you have the required permissions for the action, without
  29151. // actually making the request, and provides an error response. If you have
  29152. // the required permissions, the error response is DryRunOperation. Otherwise,
  29153. // it is UnauthorizedOperation.
  29154. DryRun *bool `locationName:"dryRun" type:"boolean"`
  29155. // The ID of the network ACL.
  29156. //
  29157. // NetworkAclId is a required field
  29158. NetworkAclId *string `locationName:"networkAclId" type:"string" required:"true"`
  29159. }
  29160. // String returns the string representation
  29161. func (s DeleteNetworkAclInput) String() string {
  29162. return awsutil.Prettify(s)
  29163. }
  29164. // GoString returns the string representation
  29165. func (s DeleteNetworkAclInput) GoString() string {
  29166. return s.String()
  29167. }
  29168. // Validate inspects the fields of the type to determine if they are valid.
  29169. func (s *DeleteNetworkAclInput) Validate() error {
  29170. invalidParams := request.ErrInvalidParams{Context: "DeleteNetworkAclInput"}
  29171. if s.NetworkAclId == nil {
  29172. invalidParams.Add(request.NewErrParamRequired("NetworkAclId"))
  29173. }
  29174. if invalidParams.Len() > 0 {
  29175. return invalidParams
  29176. }
  29177. return nil
  29178. }
  29179. // SetDryRun sets the DryRun field's value.
  29180. func (s *DeleteNetworkAclInput) SetDryRun(v bool) *DeleteNetworkAclInput {
  29181. s.DryRun = &v
  29182. return s
  29183. }
  29184. // SetNetworkAclId sets the NetworkAclId field's value.
  29185. func (s *DeleteNetworkAclInput) SetNetworkAclId(v string) *DeleteNetworkAclInput {
  29186. s.NetworkAclId = &v
  29187. return s
  29188. }
  29189. type DeleteNetworkAclOutput struct {
  29190. _ struct{} `type:"structure"`
  29191. }
  29192. // String returns the string representation
  29193. func (s DeleteNetworkAclOutput) String() string {
  29194. return awsutil.Prettify(s)
  29195. }
  29196. // GoString returns the string representation
  29197. func (s DeleteNetworkAclOutput) GoString() string {
  29198. return s.String()
  29199. }
  29200. // Contains the parameters for DeleteNetworkInterface.
  29201. type DeleteNetworkInterfaceInput struct {
  29202. _ struct{} `type:"structure"`
  29203. // Checks whether you have the required permissions for the action, without
  29204. // actually making the request, and provides an error response. If you have
  29205. // the required permissions, the error response is DryRunOperation. Otherwise,
  29206. // it is UnauthorizedOperation.
  29207. DryRun *bool `locationName:"dryRun" type:"boolean"`
  29208. // The ID of the network interface.
  29209. //
  29210. // NetworkInterfaceId is a required field
  29211. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  29212. }
  29213. // String returns the string representation
  29214. func (s DeleteNetworkInterfaceInput) String() string {
  29215. return awsutil.Prettify(s)
  29216. }
  29217. // GoString returns the string representation
  29218. func (s DeleteNetworkInterfaceInput) GoString() string {
  29219. return s.String()
  29220. }
  29221. // Validate inspects the fields of the type to determine if they are valid.
  29222. func (s *DeleteNetworkInterfaceInput) Validate() error {
  29223. invalidParams := request.ErrInvalidParams{Context: "DeleteNetworkInterfaceInput"}
  29224. if s.NetworkInterfaceId == nil {
  29225. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  29226. }
  29227. if invalidParams.Len() > 0 {
  29228. return invalidParams
  29229. }
  29230. return nil
  29231. }
  29232. // SetDryRun sets the DryRun field's value.
  29233. func (s *DeleteNetworkInterfaceInput) SetDryRun(v bool) *DeleteNetworkInterfaceInput {
  29234. s.DryRun = &v
  29235. return s
  29236. }
  29237. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  29238. func (s *DeleteNetworkInterfaceInput) SetNetworkInterfaceId(v string) *DeleteNetworkInterfaceInput {
  29239. s.NetworkInterfaceId = &v
  29240. return s
  29241. }
  29242. type DeleteNetworkInterfaceOutput struct {
  29243. _ struct{} `type:"structure"`
  29244. }
  29245. // String returns the string representation
  29246. func (s DeleteNetworkInterfaceOutput) String() string {
  29247. return awsutil.Prettify(s)
  29248. }
  29249. // GoString returns the string representation
  29250. func (s DeleteNetworkInterfaceOutput) GoString() string {
  29251. return s.String()
  29252. }
  29253. // Contains the parameters for DeleteNetworkInterfacePermission.
  29254. type DeleteNetworkInterfacePermissionInput struct {
  29255. _ struct{} `type:"structure"`
  29256. // Checks whether you have the required permissions for the action, without
  29257. // actually making the request, and provides an error response. If you have
  29258. // the required permissions, the error response is DryRunOperation. Otherwise,
  29259. // it is UnauthorizedOperation.
  29260. DryRun *bool `type:"boolean"`
  29261. // Specify true to remove the permission even if the network interface is attached
  29262. // to an instance.
  29263. Force *bool `type:"boolean"`
  29264. // The ID of the network interface permission.
  29265. //
  29266. // NetworkInterfacePermissionId is a required field
  29267. NetworkInterfacePermissionId *string `type:"string" required:"true"`
  29268. }
  29269. // String returns the string representation
  29270. func (s DeleteNetworkInterfacePermissionInput) String() string {
  29271. return awsutil.Prettify(s)
  29272. }
  29273. // GoString returns the string representation
  29274. func (s DeleteNetworkInterfacePermissionInput) GoString() string {
  29275. return s.String()
  29276. }
  29277. // Validate inspects the fields of the type to determine if they are valid.
  29278. func (s *DeleteNetworkInterfacePermissionInput) Validate() error {
  29279. invalidParams := request.ErrInvalidParams{Context: "DeleteNetworkInterfacePermissionInput"}
  29280. if s.NetworkInterfacePermissionId == nil {
  29281. invalidParams.Add(request.NewErrParamRequired("NetworkInterfacePermissionId"))
  29282. }
  29283. if invalidParams.Len() > 0 {
  29284. return invalidParams
  29285. }
  29286. return nil
  29287. }
  29288. // SetDryRun sets the DryRun field's value.
  29289. func (s *DeleteNetworkInterfacePermissionInput) SetDryRun(v bool) *DeleteNetworkInterfacePermissionInput {
  29290. s.DryRun = &v
  29291. return s
  29292. }
  29293. // SetForce sets the Force field's value.
  29294. func (s *DeleteNetworkInterfacePermissionInput) SetForce(v bool) *DeleteNetworkInterfacePermissionInput {
  29295. s.Force = &v
  29296. return s
  29297. }
  29298. // SetNetworkInterfacePermissionId sets the NetworkInterfacePermissionId field's value.
  29299. func (s *DeleteNetworkInterfacePermissionInput) SetNetworkInterfacePermissionId(v string) *DeleteNetworkInterfacePermissionInput {
  29300. s.NetworkInterfacePermissionId = &v
  29301. return s
  29302. }
  29303. // Contains the output for DeleteNetworkInterfacePermission.
  29304. type DeleteNetworkInterfacePermissionOutput struct {
  29305. _ struct{} `type:"structure"`
  29306. // Returns true if the request succeeds, otherwise returns an error.
  29307. Return *bool `locationName:"return" type:"boolean"`
  29308. }
  29309. // String returns the string representation
  29310. func (s DeleteNetworkInterfacePermissionOutput) String() string {
  29311. return awsutil.Prettify(s)
  29312. }
  29313. // GoString returns the string representation
  29314. func (s DeleteNetworkInterfacePermissionOutput) GoString() string {
  29315. return s.String()
  29316. }
  29317. // SetReturn sets the Return field's value.
  29318. func (s *DeleteNetworkInterfacePermissionOutput) SetReturn(v bool) *DeleteNetworkInterfacePermissionOutput {
  29319. s.Return = &v
  29320. return s
  29321. }
  29322. // Contains the parameters for DeletePlacementGroup.
  29323. type DeletePlacementGroupInput struct {
  29324. _ struct{} `type:"structure"`
  29325. // Checks whether you have the required permissions for the action, without
  29326. // actually making the request, and provides an error response. If you have
  29327. // the required permissions, the error response is DryRunOperation. Otherwise,
  29328. // it is UnauthorizedOperation.
  29329. DryRun *bool `locationName:"dryRun" type:"boolean"`
  29330. // The name of the placement group.
  29331. //
  29332. // GroupName is a required field
  29333. GroupName *string `locationName:"groupName" type:"string" required:"true"`
  29334. }
  29335. // String returns the string representation
  29336. func (s DeletePlacementGroupInput) String() string {
  29337. return awsutil.Prettify(s)
  29338. }
  29339. // GoString returns the string representation
  29340. func (s DeletePlacementGroupInput) GoString() string {
  29341. return s.String()
  29342. }
  29343. // Validate inspects the fields of the type to determine if they are valid.
  29344. func (s *DeletePlacementGroupInput) Validate() error {
  29345. invalidParams := request.ErrInvalidParams{Context: "DeletePlacementGroupInput"}
  29346. if s.GroupName == nil {
  29347. invalidParams.Add(request.NewErrParamRequired("GroupName"))
  29348. }
  29349. if invalidParams.Len() > 0 {
  29350. return invalidParams
  29351. }
  29352. return nil
  29353. }
  29354. // SetDryRun sets the DryRun field's value.
  29355. func (s *DeletePlacementGroupInput) SetDryRun(v bool) *DeletePlacementGroupInput {
  29356. s.DryRun = &v
  29357. return s
  29358. }
  29359. // SetGroupName sets the GroupName field's value.
  29360. func (s *DeletePlacementGroupInput) SetGroupName(v string) *DeletePlacementGroupInput {
  29361. s.GroupName = &v
  29362. return s
  29363. }
  29364. type DeletePlacementGroupOutput struct {
  29365. _ struct{} `type:"structure"`
  29366. }
  29367. // String returns the string representation
  29368. func (s DeletePlacementGroupOutput) String() string {
  29369. return awsutil.Prettify(s)
  29370. }
  29371. // GoString returns the string representation
  29372. func (s DeletePlacementGroupOutput) GoString() string {
  29373. return s.String()
  29374. }
  29375. // Contains the parameters for DeleteRoute.
  29376. type DeleteRouteInput struct {
  29377. _ struct{} `type:"structure"`
  29378. // The IPv4 CIDR range for the route. The value you specify must match the CIDR
  29379. // for the route exactly.
  29380. DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"`
  29381. // The IPv6 CIDR range for the route. The value you specify must match the CIDR
  29382. // for the route exactly.
  29383. DestinationIpv6CidrBlock *string `locationName:"destinationIpv6CidrBlock" type:"string"`
  29384. // Checks whether you have the required permissions for the action, without
  29385. // actually making the request, and provides an error response. If you have
  29386. // the required permissions, the error response is DryRunOperation. Otherwise,
  29387. // it is UnauthorizedOperation.
  29388. DryRun *bool `locationName:"dryRun" type:"boolean"`
  29389. // The ID of the route table.
  29390. //
  29391. // RouteTableId is a required field
  29392. RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"`
  29393. }
  29394. // String returns the string representation
  29395. func (s DeleteRouteInput) String() string {
  29396. return awsutil.Prettify(s)
  29397. }
  29398. // GoString returns the string representation
  29399. func (s DeleteRouteInput) GoString() string {
  29400. return s.String()
  29401. }
  29402. // Validate inspects the fields of the type to determine if they are valid.
  29403. func (s *DeleteRouteInput) Validate() error {
  29404. invalidParams := request.ErrInvalidParams{Context: "DeleteRouteInput"}
  29405. if s.RouteTableId == nil {
  29406. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  29407. }
  29408. if invalidParams.Len() > 0 {
  29409. return invalidParams
  29410. }
  29411. return nil
  29412. }
  29413. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  29414. func (s *DeleteRouteInput) SetDestinationCidrBlock(v string) *DeleteRouteInput {
  29415. s.DestinationCidrBlock = &v
  29416. return s
  29417. }
  29418. // SetDestinationIpv6CidrBlock sets the DestinationIpv6CidrBlock field's value.
  29419. func (s *DeleteRouteInput) SetDestinationIpv6CidrBlock(v string) *DeleteRouteInput {
  29420. s.DestinationIpv6CidrBlock = &v
  29421. return s
  29422. }
  29423. // SetDryRun sets the DryRun field's value.
  29424. func (s *DeleteRouteInput) SetDryRun(v bool) *DeleteRouteInput {
  29425. s.DryRun = &v
  29426. return s
  29427. }
  29428. // SetRouteTableId sets the RouteTableId field's value.
  29429. func (s *DeleteRouteInput) SetRouteTableId(v string) *DeleteRouteInput {
  29430. s.RouteTableId = &v
  29431. return s
  29432. }
  29433. type DeleteRouteOutput struct {
  29434. _ struct{} `type:"structure"`
  29435. }
  29436. // String returns the string representation
  29437. func (s DeleteRouteOutput) String() string {
  29438. return awsutil.Prettify(s)
  29439. }
  29440. // GoString returns the string representation
  29441. func (s DeleteRouteOutput) GoString() string {
  29442. return s.String()
  29443. }
  29444. // Contains the parameters for DeleteRouteTable.
  29445. type DeleteRouteTableInput struct {
  29446. _ struct{} `type:"structure"`
  29447. // Checks whether you have the required permissions for the action, without
  29448. // actually making the request, and provides an error response. If you have
  29449. // the required permissions, the error response is DryRunOperation. Otherwise,
  29450. // it is UnauthorizedOperation.
  29451. DryRun *bool `locationName:"dryRun" type:"boolean"`
  29452. // The ID of the route table.
  29453. //
  29454. // RouteTableId is a required field
  29455. RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"`
  29456. }
  29457. // String returns the string representation
  29458. func (s DeleteRouteTableInput) String() string {
  29459. return awsutil.Prettify(s)
  29460. }
  29461. // GoString returns the string representation
  29462. func (s DeleteRouteTableInput) GoString() string {
  29463. return s.String()
  29464. }
  29465. // Validate inspects the fields of the type to determine if they are valid.
  29466. func (s *DeleteRouteTableInput) Validate() error {
  29467. invalidParams := request.ErrInvalidParams{Context: "DeleteRouteTableInput"}
  29468. if s.RouteTableId == nil {
  29469. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  29470. }
  29471. if invalidParams.Len() > 0 {
  29472. return invalidParams
  29473. }
  29474. return nil
  29475. }
  29476. // SetDryRun sets the DryRun field's value.
  29477. func (s *DeleteRouteTableInput) SetDryRun(v bool) *DeleteRouteTableInput {
  29478. s.DryRun = &v
  29479. return s
  29480. }
  29481. // SetRouteTableId sets the RouteTableId field's value.
  29482. func (s *DeleteRouteTableInput) SetRouteTableId(v string) *DeleteRouteTableInput {
  29483. s.RouteTableId = &v
  29484. return s
  29485. }
  29486. type DeleteRouteTableOutput struct {
  29487. _ struct{} `type:"structure"`
  29488. }
  29489. // String returns the string representation
  29490. func (s DeleteRouteTableOutput) String() string {
  29491. return awsutil.Prettify(s)
  29492. }
  29493. // GoString returns the string representation
  29494. func (s DeleteRouteTableOutput) GoString() string {
  29495. return s.String()
  29496. }
  29497. // Contains the parameters for DeleteSecurityGroup.
  29498. type DeleteSecurityGroupInput struct {
  29499. _ struct{} `type:"structure"`
  29500. // Checks whether you have the required permissions for the action, without
  29501. // actually making the request, and provides an error response. If you have
  29502. // the required permissions, the error response is DryRunOperation. Otherwise,
  29503. // it is UnauthorizedOperation.
  29504. DryRun *bool `locationName:"dryRun" type:"boolean"`
  29505. // The ID of the security group. Required for a nondefault VPC.
  29506. GroupId *string `type:"string"`
  29507. // [EC2-Classic, default VPC] The name of the security group. You can specify
  29508. // either the security group name or the security group ID.
  29509. GroupName *string `type:"string"`
  29510. }
  29511. // String returns the string representation
  29512. func (s DeleteSecurityGroupInput) String() string {
  29513. return awsutil.Prettify(s)
  29514. }
  29515. // GoString returns the string representation
  29516. func (s DeleteSecurityGroupInput) GoString() string {
  29517. return s.String()
  29518. }
  29519. // SetDryRun sets the DryRun field's value.
  29520. func (s *DeleteSecurityGroupInput) SetDryRun(v bool) *DeleteSecurityGroupInput {
  29521. s.DryRun = &v
  29522. return s
  29523. }
  29524. // SetGroupId sets the GroupId field's value.
  29525. func (s *DeleteSecurityGroupInput) SetGroupId(v string) *DeleteSecurityGroupInput {
  29526. s.GroupId = &v
  29527. return s
  29528. }
  29529. // SetGroupName sets the GroupName field's value.
  29530. func (s *DeleteSecurityGroupInput) SetGroupName(v string) *DeleteSecurityGroupInput {
  29531. s.GroupName = &v
  29532. return s
  29533. }
  29534. type DeleteSecurityGroupOutput struct {
  29535. _ struct{} `type:"structure"`
  29536. }
  29537. // String returns the string representation
  29538. func (s DeleteSecurityGroupOutput) String() string {
  29539. return awsutil.Prettify(s)
  29540. }
  29541. // GoString returns the string representation
  29542. func (s DeleteSecurityGroupOutput) GoString() string {
  29543. return s.String()
  29544. }
  29545. // Contains the parameters for DeleteSnapshot.
  29546. type DeleteSnapshotInput struct {
  29547. _ struct{} `type:"structure"`
  29548. // Checks whether you have the required permissions for the action, without
  29549. // actually making the request, and provides an error response. If you have
  29550. // the required permissions, the error response is DryRunOperation. Otherwise,
  29551. // it is UnauthorizedOperation.
  29552. DryRun *bool `locationName:"dryRun" type:"boolean"`
  29553. // The ID of the EBS snapshot.
  29554. //
  29555. // SnapshotId is a required field
  29556. SnapshotId *string `type:"string" required:"true"`
  29557. }
  29558. // String returns the string representation
  29559. func (s DeleteSnapshotInput) String() string {
  29560. return awsutil.Prettify(s)
  29561. }
  29562. // GoString returns the string representation
  29563. func (s DeleteSnapshotInput) GoString() string {
  29564. return s.String()
  29565. }
  29566. // Validate inspects the fields of the type to determine if they are valid.
  29567. func (s *DeleteSnapshotInput) Validate() error {
  29568. invalidParams := request.ErrInvalidParams{Context: "DeleteSnapshotInput"}
  29569. if s.SnapshotId == nil {
  29570. invalidParams.Add(request.NewErrParamRequired("SnapshotId"))
  29571. }
  29572. if invalidParams.Len() > 0 {
  29573. return invalidParams
  29574. }
  29575. return nil
  29576. }
  29577. // SetDryRun sets the DryRun field's value.
  29578. func (s *DeleteSnapshotInput) SetDryRun(v bool) *DeleteSnapshotInput {
  29579. s.DryRun = &v
  29580. return s
  29581. }
  29582. // SetSnapshotId sets the SnapshotId field's value.
  29583. func (s *DeleteSnapshotInput) SetSnapshotId(v string) *DeleteSnapshotInput {
  29584. s.SnapshotId = &v
  29585. return s
  29586. }
  29587. type DeleteSnapshotOutput struct {
  29588. _ struct{} `type:"structure"`
  29589. }
  29590. // String returns the string representation
  29591. func (s DeleteSnapshotOutput) String() string {
  29592. return awsutil.Prettify(s)
  29593. }
  29594. // GoString returns the string representation
  29595. func (s DeleteSnapshotOutput) GoString() string {
  29596. return s.String()
  29597. }
  29598. // Contains the parameters for DeleteSpotDatafeedSubscription.
  29599. type DeleteSpotDatafeedSubscriptionInput struct {
  29600. _ struct{} `type:"structure"`
  29601. // Checks whether you have the required permissions for the action, without
  29602. // actually making the request, and provides an error response. If you have
  29603. // the required permissions, the error response is DryRunOperation. Otherwise,
  29604. // it is UnauthorizedOperation.
  29605. DryRun *bool `locationName:"dryRun" type:"boolean"`
  29606. }
  29607. // String returns the string representation
  29608. func (s DeleteSpotDatafeedSubscriptionInput) String() string {
  29609. return awsutil.Prettify(s)
  29610. }
  29611. // GoString returns the string representation
  29612. func (s DeleteSpotDatafeedSubscriptionInput) GoString() string {
  29613. return s.String()
  29614. }
  29615. // SetDryRun sets the DryRun field's value.
  29616. func (s *DeleteSpotDatafeedSubscriptionInput) SetDryRun(v bool) *DeleteSpotDatafeedSubscriptionInput {
  29617. s.DryRun = &v
  29618. return s
  29619. }
  29620. type DeleteSpotDatafeedSubscriptionOutput struct {
  29621. _ struct{} `type:"structure"`
  29622. }
  29623. // String returns the string representation
  29624. func (s DeleteSpotDatafeedSubscriptionOutput) String() string {
  29625. return awsutil.Prettify(s)
  29626. }
  29627. // GoString returns the string representation
  29628. func (s DeleteSpotDatafeedSubscriptionOutput) GoString() string {
  29629. return s.String()
  29630. }
  29631. // Contains the parameters for DeleteSubnet.
  29632. type DeleteSubnetInput struct {
  29633. _ struct{} `type:"structure"`
  29634. // Checks whether you have the required permissions for the action, without
  29635. // actually making the request, and provides an error response. If you have
  29636. // the required permissions, the error response is DryRunOperation. Otherwise,
  29637. // it is UnauthorizedOperation.
  29638. DryRun *bool `locationName:"dryRun" type:"boolean"`
  29639. // The ID of the subnet.
  29640. //
  29641. // SubnetId is a required field
  29642. SubnetId *string `type:"string" required:"true"`
  29643. }
  29644. // String returns the string representation
  29645. func (s DeleteSubnetInput) String() string {
  29646. return awsutil.Prettify(s)
  29647. }
  29648. // GoString returns the string representation
  29649. func (s DeleteSubnetInput) GoString() string {
  29650. return s.String()
  29651. }
  29652. // Validate inspects the fields of the type to determine if they are valid.
  29653. func (s *DeleteSubnetInput) Validate() error {
  29654. invalidParams := request.ErrInvalidParams{Context: "DeleteSubnetInput"}
  29655. if s.SubnetId == nil {
  29656. invalidParams.Add(request.NewErrParamRequired("SubnetId"))
  29657. }
  29658. if invalidParams.Len() > 0 {
  29659. return invalidParams
  29660. }
  29661. return nil
  29662. }
  29663. // SetDryRun sets the DryRun field's value.
  29664. func (s *DeleteSubnetInput) SetDryRun(v bool) *DeleteSubnetInput {
  29665. s.DryRun = &v
  29666. return s
  29667. }
  29668. // SetSubnetId sets the SubnetId field's value.
  29669. func (s *DeleteSubnetInput) SetSubnetId(v string) *DeleteSubnetInput {
  29670. s.SubnetId = &v
  29671. return s
  29672. }
  29673. type DeleteSubnetOutput struct {
  29674. _ struct{} `type:"structure"`
  29675. }
  29676. // String returns the string representation
  29677. func (s DeleteSubnetOutput) String() string {
  29678. return awsutil.Prettify(s)
  29679. }
  29680. // GoString returns the string representation
  29681. func (s DeleteSubnetOutput) GoString() string {
  29682. return s.String()
  29683. }
  29684. // Contains the parameters for DeleteTags.
  29685. type DeleteTagsInput struct {
  29686. _ struct{} `type:"structure"`
  29687. // Checks whether you have the required permissions for the action, without
  29688. // actually making the request, and provides an error response. If you have
  29689. // the required permissions, the error response is DryRunOperation. Otherwise,
  29690. // it is UnauthorizedOperation.
  29691. DryRun *bool `locationName:"dryRun" type:"boolean"`
  29692. // The IDs of one or more resources.
  29693. //
  29694. // Resources is a required field
  29695. Resources []*string `locationName:"resourceId" type:"list" required:"true"`
  29696. // One or more tags to delete. Specify a tag key and an optional tag value to
  29697. // delete specific tags. If you specify a tag key without a tag value, we delete
  29698. // any tag with this key regardless of its value. If you specify a tag key with
  29699. // an empty string as the tag value, we delete the tag only if its value is
  29700. // an empty string.
  29701. //
  29702. // If you omit this parameter, we delete all user-defined tags for the specified
  29703. // resources. We do not delete AWS-generated tags (tags that have the aws: prefix).
  29704. Tags []*Tag `locationName:"tag" locationNameList:"item" type:"list"`
  29705. }
  29706. // String returns the string representation
  29707. func (s DeleteTagsInput) String() string {
  29708. return awsutil.Prettify(s)
  29709. }
  29710. // GoString returns the string representation
  29711. func (s DeleteTagsInput) GoString() string {
  29712. return s.String()
  29713. }
  29714. // Validate inspects the fields of the type to determine if they are valid.
  29715. func (s *DeleteTagsInput) Validate() error {
  29716. invalidParams := request.ErrInvalidParams{Context: "DeleteTagsInput"}
  29717. if s.Resources == nil {
  29718. invalidParams.Add(request.NewErrParamRequired("Resources"))
  29719. }
  29720. if invalidParams.Len() > 0 {
  29721. return invalidParams
  29722. }
  29723. return nil
  29724. }
  29725. // SetDryRun sets the DryRun field's value.
  29726. func (s *DeleteTagsInput) SetDryRun(v bool) *DeleteTagsInput {
  29727. s.DryRun = &v
  29728. return s
  29729. }
  29730. // SetResources sets the Resources field's value.
  29731. func (s *DeleteTagsInput) SetResources(v []*string) *DeleteTagsInput {
  29732. s.Resources = v
  29733. return s
  29734. }
  29735. // SetTags sets the Tags field's value.
  29736. func (s *DeleteTagsInput) SetTags(v []*Tag) *DeleteTagsInput {
  29737. s.Tags = v
  29738. return s
  29739. }
  29740. type DeleteTagsOutput struct {
  29741. _ struct{} `type:"structure"`
  29742. }
  29743. // String returns the string representation
  29744. func (s DeleteTagsOutput) String() string {
  29745. return awsutil.Prettify(s)
  29746. }
  29747. // GoString returns the string representation
  29748. func (s DeleteTagsOutput) GoString() string {
  29749. return s.String()
  29750. }
  29751. // Contains the parameters for DeleteVolume.
  29752. type DeleteVolumeInput struct {
  29753. _ struct{} `type:"structure"`
  29754. // Checks whether you have the required permissions for the action, without
  29755. // actually making the request, and provides an error response. If you have
  29756. // the required permissions, the error response is DryRunOperation. Otherwise,
  29757. // it is UnauthorizedOperation.
  29758. DryRun *bool `locationName:"dryRun" type:"boolean"`
  29759. // The ID of the volume.
  29760. //
  29761. // VolumeId is a required field
  29762. VolumeId *string `type:"string" required:"true"`
  29763. }
  29764. // String returns the string representation
  29765. func (s DeleteVolumeInput) String() string {
  29766. return awsutil.Prettify(s)
  29767. }
  29768. // GoString returns the string representation
  29769. func (s DeleteVolumeInput) GoString() string {
  29770. return s.String()
  29771. }
  29772. // Validate inspects the fields of the type to determine if they are valid.
  29773. func (s *DeleteVolumeInput) Validate() error {
  29774. invalidParams := request.ErrInvalidParams{Context: "DeleteVolumeInput"}
  29775. if s.VolumeId == nil {
  29776. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  29777. }
  29778. if invalidParams.Len() > 0 {
  29779. return invalidParams
  29780. }
  29781. return nil
  29782. }
  29783. // SetDryRun sets the DryRun field's value.
  29784. func (s *DeleteVolumeInput) SetDryRun(v bool) *DeleteVolumeInput {
  29785. s.DryRun = &v
  29786. return s
  29787. }
  29788. // SetVolumeId sets the VolumeId field's value.
  29789. func (s *DeleteVolumeInput) SetVolumeId(v string) *DeleteVolumeInput {
  29790. s.VolumeId = &v
  29791. return s
  29792. }
  29793. type DeleteVolumeOutput struct {
  29794. _ struct{} `type:"structure"`
  29795. }
  29796. // String returns the string representation
  29797. func (s DeleteVolumeOutput) String() string {
  29798. return awsutil.Prettify(s)
  29799. }
  29800. // GoString returns the string representation
  29801. func (s DeleteVolumeOutput) GoString() string {
  29802. return s.String()
  29803. }
  29804. type DeleteVpcEndpointConnectionNotificationsInput struct {
  29805. _ struct{} `type:"structure"`
  29806. // One or more notification IDs.
  29807. //
  29808. // ConnectionNotificationIds is a required field
  29809. ConnectionNotificationIds []*string `locationName:"ConnectionNotificationId" locationNameList:"item" type:"list" required:"true"`
  29810. // Checks whether you have the required permissions for the action, without
  29811. // actually making the request, and provides an error response. If you have
  29812. // the required permissions, the error response is DryRunOperation. Otherwise,
  29813. // it is UnauthorizedOperation.
  29814. DryRun *bool `type:"boolean"`
  29815. }
  29816. // String returns the string representation
  29817. func (s DeleteVpcEndpointConnectionNotificationsInput) String() string {
  29818. return awsutil.Prettify(s)
  29819. }
  29820. // GoString returns the string representation
  29821. func (s DeleteVpcEndpointConnectionNotificationsInput) GoString() string {
  29822. return s.String()
  29823. }
  29824. // Validate inspects the fields of the type to determine if they are valid.
  29825. func (s *DeleteVpcEndpointConnectionNotificationsInput) Validate() error {
  29826. invalidParams := request.ErrInvalidParams{Context: "DeleteVpcEndpointConnectionNotificationsInput"}
  29827. if s.ConnectionNotificationIds == nil {
  29828. invalidParams.Add(request.NewErrParamRequired("ConnectionNotificationIds"))
  29829. }
  29830. if invalidParams.Len() > 0 {
  29831. return invalidParams
  29832. }
  29833. return nil
  29834. }
  29835. // SetConnectionNotificationIds sets the ConnectionNotificationIds field's value.
  29836. func (s *DeleteVpcEndpointConnectionNotificationsInput) SetConnectionNotificationIds(v []*string) *DeleteVpcEndpointConnectionNotificationsInput {
  29837. s.ConnectionNotificationIds = v
  29838. return s
  29839. }
  29840. // SetDryRun sets the DryRun field's value.
  29841. func (s *DeleteVpcEndpointConnectionNotificationsInput) SetDryRun(v bool) *DeleteVpcEndpointConnectionNotificationsInput {
  29842. s.DryRun = &v
  29843. return s
  29844. }
  29845. type DeleteVpcEndpointConnectionNotificationsOutput struct {
  29846. _ struct{} `type:"structure"`
  29847. // Information about the notifications that could not be deleted successfully.
  29848. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  29849. }
  29850. // String returns the string representation
  29851. func (s DeleteVpcEndpointConnectionNotificationsOutput) String() string {
  29852. return awsutil.Prettify(s)
  29853. }
  29854. // GoString returns the string representation
  29855. func (s DeleteVpcEndpointConnectionNotificationsOutput) GoString() string {
  29856. return s.String()
  29857. }
  29858. // SetUnsuccessful sets the Unsuccessful field's value.
  29859. func (s *DeleteVpcEndpointConnectionNotificationsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *DeleteVpcEndpointConnectionNotificationsOutput {
  29860. s.Unsuccessful = v
  29861. return s
  29862. }
  29863. type DeleteVpcEndpointServiceConfigurationsInput struct {
  29864. _ struct{} `type:"structure"`
  29865. // Checks whether you have the required permissions for the action, without
  29866. // actually making the request, and provides an error response. If you have
  29867. // the required permissions, the error response is DryRunOperation. Otherwise,
  29868. // it is UnauthorizedOperation.
  29869. DryRun *bool `type:"boolean"`
  29870. // The IDs of one or more services.
  29871. //
  29872. // ServiceIds is a required field
  29873. ServiceIds []*string `locationName:"ServiceId" locationNameList:"item" type:"list" required:"true"`
  29874. }
  29875. // String returns the string representation
  29876. func (s DeleteVpcEndpointServiceConfigurationsInput) String() string {
  29877. return awsutil.Prettify(s)
  29878. }
  29879. // GoString returns the string representation
  29880. func (s DeleteVpcEndpointServiceConfigurationsInput) GoString() string {
  29881. return s.String()
  29882. }
  29883. // Validate inspects the fields of the type to determine if they are valid.
  29884. func (s *DeleteVpcEndpointServiceConfigurationsInput) Validate() error {
  29885. invalidParams := request.ErrInvalidParams{Context: "DeleteVpcEndpointServiceConfigurationsInput"}
  29886. if s.ServiceIds == nil {
  29887. invalidParams.Add(request.NewErrParamRequired("ServiceIds"))
  29888. }
  29889. if invalidParams.Len() > 0 {
  29890. return invalidParams
  29891. }
  29892. return nil
  29893. }
  29894. // SetDryRun sets the DryRun field's value.
  29895. func (s *DeleteVpcEndpointServiceConfigurationsInput) SetDryRun(v bool) *DeleteVpcEndpointServiceConfigurationsInput {
  29896. s.DryRun = &v
  29897. return s
  29898. }
  29899. // SetServiceIds sets the ServiceIds field's value.
  29900. func (s *DeleteVpcEndpointServiceConfigurationsInput) SetServiceIds(v []*string) *DeleteVpcEndpointServiceConfigurationsInput {
  29901. s.ServiceIds = v
  29902. return s
  29903. }
  29904. type DeleteVpcEndpointServiceConfigurationsOutput struct {
  29905. _ struct{} `type:"structure"`
  29906. // Information about the service configurations that were not deleted, if applicable.
  29907. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  29908. }
  29909. // String returns the string representation
  29910. func (s DeleteVpcEndpointServiceConfigurationsOutput) String() string {
  29911. return awsutil.Prettify(s)
  29912. }
  29913. // GoString returns the string representation
  29914. func (s DeleteVpcEndpointServiceConfigurationsOutput) GoString() string {
  29915. return s.String()
  29916. }
  29917. // SetUnsuccessful sets the Unsuccessful field's value.
  29918. func (s *DeleteVpcEndpointServiceConfigurationsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *DeleteVpcEndpointServiceConfigurationsOutput {
  29919. s.Unsuccessful = v
  29920. return s
  29921. }
  29922. // Contains the parameters for DeleteVpcEndpoints.
  29923. type DeleteVpcEndpointsInput struct {
  29924. _ struct{} `type:"structure"`
  29925. // Checks whether you have the required permissions for the action, without
  29926. // actually making the request, and provides an error response. If you have
  29927. // the required permissions, the error response is DryRunOperation. Otherwise,
  29928. // it is UnauthorizedOperation.
  29929. DryRun *bool `type:"boolean"`
  29930. // One or more VPC endpoint IDs.
  29931. //
  29932. // VpcEndpointIds is a required field
  29933. VpcEndpointIds []*string `locationName:"VpcEndpointId" locationNameList:"item" type:"list" required:"true"`
  29934. }
  29935. // String returns the string representation
  29936. func (s DeleteVpcEndpointsInput) String() string {
  29937. return awsutil.Prettify(s)
  29938. }
  29939. // GoString returns the string representation
  29940. func (s DeleteVpcEndpointsInput) GoString() string {
  29941. return s.String()
  29942. }
  29943. // Validate inspects the fields of the type to determine if they are valid.
  29944. func (s *DeleteVpcEndpointsInput) Validate() error {
  29945. invalidParams := request.ErrInvalidParams{Context: "DeleteVpcEndpointsInput"}
  29946. if s.VpcEndpointIds == nil {
  29947. invalidParams.Add(request.NewErrParamRequired("VpcEndpointIds"))
  29948. }
  29949. if invalidParams.Len() > 0 {
  29950. return invalidParams
  29951. }
  29952. return nil
  29953. }
  29954. // SetDryRun sets the DryRun field's value.
  29955. func (s *DeleteVpcEndpointsInput) SetDryRun(v bool) *DeleteVpcEndpointsInput {
  29956. s.DryRun = &v
  29957. return s
  29958. }
  29959. // SetVpcEndpointIds sets the VpcEndpointIds field's value.
  29960. func (s *DeleteVpcEndpointsInput) SetVpcEndpointIds(v []*string) *DeleteVpcEndpointsInput {
  29961. s.VpcEndpointIds = v
  29962. return s
  29963. }
  29964. // Contains the output of DeleteVpcEndpoints.
  29965. type DeleteVpcEndpointsOutput struct {
  29966. _ struct{} `type:"structure"`
  29967. // Information about the VPC endpoints that were not successfully deleted.
  29968. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  29969. }
  29970. // String returns the string representation
  29971. func (s DeleteVpcEndpointsOutput) String() string {
  29972. return awsutil.Prettify(s)
  29973. }
  29974. // GoString returns the string representation
  29975. func (s DeleteVpcEndpointsOutput) GoString() string {
  29976. return s.String()
  29977. }
  29978. // SetUnsuccessful sets the Unsuccessful field's value.
  29979. func (s *DeleteVpcEndpointsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *DeleteVpcEndpointsOutput {
  29980. s.Unsuccessful = v
  29981. return s
  29982. }
  29983. // Contains the parameters for DeleteVpc.
  29984. type DeleteVpcInput struct {
  29985. _ struct{} `type:"structure"`
  29986. // Checks whether you have the required permissions for the action, without
  29987. // actually making the request, and provides an error response. If you have
  29988. // the required permissions, the error response is DryRunOperation. Otherwise,
  29989. // it is UnauthorizedOperation.
  29990. DryRun *bool `locationName:"dryRun" type:"boolean"`
  29991. // The ID of the VPC.
  29992. //
  29993. // VpcId is a required field
  29994. VpcId *string `type:"string" required:"true"`
  29995. }
  29996. // String returns the string representation
  29997. func (s DeleteVpcInput) String() string {
  29998. return awsutil.Prettify(s)
  29999. }
  30000. // GoString returns the string representation
  30001. func (s DeleteVpcInput) GoString() string {
  30002. return s.String()
  30003. }
  30004. // Validate inspects the fields of the type to determine if they are valid.
  30005. func (s *DeleteVpcInput) Validate() error {
  30006. invalidParams := request.ErrInvalidParams{Context: "DeleteVpcInput"}
  30007. if s.VpcId == nil {
  30008. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  30009. }
  30010. if invalidParams.Len() > 0 {
  30011. return invalidParams
  30012. }
  30013. return nil
  30014. }
  30015. // SetDryRun sets the DryRun field's value.
  30016. func (s *DeleteVpcInput) SetDryRun(v bool) *DeleteVpcInput {
  30017. s.DryRun = &v
  30018. return s
  30019. }
  30020. // SetVpcId sets the VpcId field's value.
  30021. func (s *DeleteVpcInput) SetVpcId(v string) *DeleteVpcInput {
  30022. s.VpcId = &v
  30023. return s
  30024. }
  30025. type DeleteVpcOutput struct {
  30026. _ struct{} `type:"structure"`
  30027. }
  30028. // String returns the string representation
  30029. func (s DeleteVpcOutput) String() string {
  30030. return awsutil.Prettify(s)
  30031. }
  30032. // GoString returns the string representation
  30033. func (s DeleteVpcOutput) GoString() string {
  30034. return s.String()
  30035. }
  30036. // Contains the parameters for DeleteVpcPeeringConnection.
  30037. type DeleteVpcPeeringConnectionInput struct {
  30038. _ struct{} `type:"structure"`
  30039. // Checks whether you have the required permissions for the action, without
  30040. // actually making the request, and provides an error response. If you have
  30041. // the required permissions, the error response is DryRunOperation. Otherwise,
  30042. // it is UnauthorizedOperation.
  30043. DryRun *bool `locationName:"dryRun" type:"boolean"`
  30044. // The ID of the VPC peering connection.
  30045. //
  30046. // VpcPeeringConnectionId is a required field
  30047. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string" required:"true"`
  30048. }
  30049. // String returns the string representation
  30050. func (s DeleteVpcPeeringConnectionInput) String() string {
  30051. return awsutil.Prettify(s)
  30052. }
  30053. // GoString returns the string representation
  30054. func (s DeleteVpcPeeringConnectionInput) GoString() string {
  30055. return s.String()
  30056. }
  30057. // Validate inspects the fields of the type to determine if they are valid.
  30058. func (s *DeleteVpcPeeringConnectionInput) Validate() error {
  30059. invalidParams := request.ErrInvalidParams{Context: "DeleteVpcPeeringConnectionInput"}
  30060. if s.VpcPeeringConnectionId == nil {
  30061. invalidParams.Add(request.NewErrParamRequired("VpcPeeringConnectionId"))
  30062. }
  30063. if invalidParams.Len() > 0 {
  30064. return invalidParams
  30065. }
  30066. return nil
  30067. }
  30068. // SetDryRun sets the DryRun field's value.
  30069. func (s *DeleteVpcPeeringConnectionInput) SetDryRun(v bool) *DeleteVpcPeeringConnectionInput {
  30070. s.DryRun = &v
  30071. return s
  30072. }
  30073. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  30074. func (s *DeleteVpcPeeringConnectionInput) SetVpcPeeringConnectionId(v string) *DeleteVpcPeeringConnectionInput {
  30075. s.VpcPeeringConnectionId = &v
  30076. return s
  30077. }
  30078. // Contains the output of DeleteVpcPeeringConnection.
  30079. type DeleteVpcPeeringConnectionOutput struct {
  30080. _ struct{} `type:"structure"`
  30081. // Returns true if the request succeeds; otherwise, it returns an error.
  30082. Return *bool `locationName:"return" type:"boolean"`
  30083. }
  30084. // String returns the string representation
  30085. func (s DeleteVpcPeeringConnectionOutput) String() string {
  30086. return awsutil.Prettify(s)
  30087. }
  30088. // GoString returns the string representation
  30089. func (s DeleteVpcPeeringConnectionOutput) GoString() string {
  30090. return s.String()
  30091. }
  30092. // SetReturn sets the Return field's value.
  30093. func (s *DeleteVpcPeeringConnectionOutput) SetReturn(v bool) *DeleteVpcPeeringConnectionOutput {
  30094. s.Return = &v
  30095. return s
  30096. }
  30097. // Contains the parameters for DeleteVpnConnection.
  30098. type DeleteVpnConnectionInput struct {
  30099. _ struct{} `type:"structure"`
  30100. // Checks whether you have the required permissions for the action, without
  30101. // actually making the request, and provides an error response. If you have
  30102. // the required permissions, the error response is DryRunOperation. Otherwise,
  30103. // it is UnauthorizedOperation.
  30104. DryRun *bool `locationName:"dryRun" type:"boolean"`
  30105. // The ID of the VPN connection.
  30106. //
  30107. // VpnConnectionId is a required field
  30108. VpnConnectionId *string `type:"string" required:"true"`
  30109. }
  30110. // String returns the string representation
  30111. func (s DeleteVpnConnectionInput) String() string {
  30112. return awsutil.Prettify(s)
  30113. }
  30114. // GoString returns the string representation
  30115. func (s DeleteVpnConnectionInput) GoString() string {
  30116. return s.String()
  30117. }
  30118. // Validate inspects the fields of the type to determine if they are valid.
  30119. func (s *DeleteVpnConnectionInput) Validate() error {
  30120. invalidParams := request.ErrInvalidParams{Context: "DeleteVpnConnectionInput"}
  30121. if s.VpnConnectionId == nil {
  30122. invalidParams.Add(request.NewErrParamRequired("VpnConnectionId"))
  30123. }
  30124. if invalidParams.Len() > 0 {
  30125. return invalidParams
  30126. }
  30127. return nil
  30128. }
  30129. // SetDryRun sets the DryRun field's value.
  30130. func (s *DeleteVpnConnectionInput) SetDryRun(v bool) *DeleteVpnConnectionInput {
  30131. s.DryRun = &v
  30132. return s
  30133. }
  30134. // SetVpnConnectionId sets the VpnConnectionId field's value.
  30135. func (s *DeleteVpnConnectionInput) SetVpnConnectionId(v string) *DeleteVpnConnectionInput {
  30136. s.VpnConnectionId = &v
  30137. return s
  30138. }
  30139. type DeleteVpnConnectionOutput struct {
  30140. _ struct{} `type:"structure"`
  30141. }
  30142. // String returns the string representation
  30143. func (s DeleteVpnConnectionOutput) String() string {
  30144. return awsutil.Prettify(s)
  30145. }
  30146. // GoString returns the string representation
  30147. func (s DeleteVpnConnectionOutput) GoString() string {
  30148. return s.String()
  30149. }
  30150. // Contains the parameters for DeleteVpnConnectionRoute.
  30151. type DeleteVpnConnectionRouteInput struct {
  30152. _ struct{} `type:"structure"`
  30153. // The CIDR block associated with the local subnet of the customer network.
  30154. //
  30155. // DestinationCidrBlock is a required field
  30156. DestinationCidrBlock *string `type:"string" required:"true"`
  30157. // The ID of the VPN connection.
  30158. //
  30159. // VpnConnectionId is a required field
  30160. VpnConnectionId *string `type:"string" required:"true"`
  30161. }
  30162. // String returns the string representation
  30163. func (s DeleteVpnConnectionRouteInput) String() string {
  30164. return awsutil.Prettify(s)
  30165. }
  30166. // GoString returns the string representation
  30167. func (s DeleteVpnConnectionRouteInput) GoString() string {
  30168. return s.String()
  30169. }
  30170. // Validate inspects the fields of the type to determine if they are valid.
  30171. func (s *DeleteVpnConnectionRouteInput) Validate() error {
  30172. invalidParams := request.ErrInvalidParams{Context: "DeleteVpnConnectionRouteInput"}
  30173. if s.DestinationCidrBlock == nil {
  30174. invalidParams.Add(request.NewErrParamRequired("DestinationCidrBlock"))
  30175. }
  30176. if s.VpnConnectionId == nil {
  30177. invalidParams.Add(request.NewErrParamRequired("VpnConnectionId"))
  30178. }
  30179. if invalidParams.Len() > 0 {
  30180. return invalidParams
  30181. }
  30182. return nil
  30183. }
  30184. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  30185. func (s *DeleteVpnConnectionRouteInput) SetDestinationCidrBlock(v string) *DeleteVpnConnectionRouteInput {
  30186. s.DestinationCidrBlock = &v
  30187. return s
  30188. }
  30189. // SetVpnConnectionId sets the VpnConnectionId field's value.
  30190. func (s *DeleteVpnConnectionRouteInput) SetVpnConnectionId(v string) *DeleteVpnConnectionRouteInput {
  30191. s.VpnConnectionId = &v
  30192. return s
  30193. }
  30194. type DeleteVpnConnectionRouteOutput struct {
  30195. _ struct{} `type:"structure"`
  30196. }
  30197. // String returns the string representation
  30198. func (s DeleteVpnConnectionRouteOutput) String() string {
  30199. return awsutil.Prettify(s)
  30200. }
  30201. // GoString returns the string representation
  30202. func (s DeleteVpnConnectionRouteOutput) GoString() string {
  30203. return s.String()
  30204. }
  30205. // Contains the parameters for DeleteVpnGateway.
  30206. type DeleteVpnGatewayInput struct {
  30207. _ struct{} `type:"structure"`
  30208. // Checks whether you have the required permissions for the action, without
  30209. // actually making the request, and provides an error response. If you have
  30210. // the required permissions, the error response is DryRunOperation. Otherwise,
  30211. // it is UnauthorizedOperation.
  30212. DryRun *bool `locationName:"dryRun" type:"boolean"`
  30213. // The ID of the virtual private gateway.
  30214. //
  30215. // VpnGatewayId is a required field
  30216. VpnGatewayId *string `type:"string" required:"true"`
  30217. }
  30218. // String returns the string representation
  30219. func (s DeleteVpnGatewayInput) String() string {
  30220. return awsutil.Prettify(s)
  30221. }
  30222. // GoString returns the string representation
  30223. func (s DeleteVpnGatewayInput) GoString() string {
  30224. return s.String()
  30225. }
  30226. // Validate inspects the fields of the type to determine if they are valid.
  30227. func (s *DeleteVpnGatewayInput) Validate() error {
  30228. invalidParams := request.ErrInvalidParams{Context: "DeleteVpnGatewayInput"}
  30229. if s.VpnGatewayId == nil {
  30230. invalidParams.Add(request.NewErrParamRequired("VpnGatewayId"))
  30231. }
  30232. if invalidParams.Len() > 0 {
  30233. return invalidParams
  30234. }
  30235. return nil
  30236. }
  30237. // SetDryRun sets the DryRun field's value.
  30238. func (s *DeleteVpnGatewayInput) SetDryRun(v bool) *DeleteVpnGatewayInput {
  30239. s.DryRun = &v
  30240. return s
  30241. }
  30242. // SetVpnGatewayId sets the VpnGatewayId field's value.
  30243. func (s *DeleteVpnGatewayInput) SetVpnGatewayId(v string) *DeleteVpnGatewayInput {
  30244. s.VpnGatewayId = &v
  30245. return s
  30246. }
  30247. type DeleteVpnGatewayOutput struct {
  30248. _ struct{} `type:"structure"`
  30249. }
  30250. // String returns the string representation
  30251. func (s DeleteVpnGatewayOutput) String() string {
  30252. return awsutil.Prettify(s)
  30253. }
  30254. // GoString returns the string representation
  30255. func (s DeleteVpnGatewayOutput) GoString() string {
  30256. return s.String()
  30257. }
  30258. // Contains the parameters for DeregisterImage.
  30259. type DeregisterImageInput struct {
  30260. _ struct{} `type:"structure"`
  30261. // Checks whether you have the required permissions for the action, without
  30262. // actually making the request, and provides an error response. If you have
  30263. // the required permissions, the error response is DryRunOperation. Otherwise,
  30264. // it is UnauthorizedOperation.
  30265. DryRun *bool `locationName:"dryRun" type:"boolean"`
  30266. // The ID of the AMI.
  30267. //
  30268. // ImageId is a required field
  30269. ImageId *string `type:"string" required:"true"`
  30270. }
  30271. // String returns the string representation
  30272. func (s DeregisterImageInput) String() string {
  30273. return awsutil.Prettify(s)
  30274. }
  30275. // GoString returns the string representation
  30276. func (s DeregisterImageInput) GoString() string {
  30277. return s.String()
  30278. }
  30279. // Validate inspects the fields of the type to determine if they are valid.
  30280. func (s *DeregisterImageInput) Validate() error {
  30281. invalidParams := request.ErrInvalidParams{Context: "DeregisterImageInput"}
  30282. if s.ImageId == nil {
  30283. invalidParams.Add(request.NewErrParamRequired("ImageId"))
  30284. }
  30285. if invalidParams.Len() > 0 {
  30286. return invalidParams
  30287. }
  30288. return nil
  30289. }
  30290. // SetDryRun sets the DryRun field's value.
  30291. func (s *DeregisterImageInput) SetDryRun(v bool) *DeregisterImageInput {
  30292. s.DryRun = &v
  30293. return s
  30294. }
  30295. // SetImageId sets the ImageId field's value.
  30296. func (s *DeregisterImageInput) SetImageId(v string) *DeregisterImageInput {
  30297. s.ImageId = &v
  30298. return s
  30299. }
  30300. type DeregisterImageOutput struct {
  30301. _ struct{} `type:"structure"`
  30302. }
  30303. // String returns the string representation
  30304. func (s DeregisterImageOutput) String() string {
  30305. return awsutil.Prettify(s)
  30306. }
  30307. // GoString returns the string representation
  30308. func (s DeregisterImageOutput) GoString() string {
  30309. return s.String()
  30310. }
  30311. // Contains the parameters for DescribeAccountAttributes.
  30312. type DescribeAccountAttributesInput struct {
  30313. _ struct{} `type:"structure"`
  30314. // One or more account attribute names.
  30315. AttributeNames []*string `locationName:"attributeName" locationNameList:"attributeName" type:"list"`
  30316. // Checks whether you have the required permissions for the action, without
  30317. // actually making the request, and provides an error response. If you have
  30318. // the required permissions, the error response is DryRunOperation. Otherwise,
  30319. // it is UnauthorizedOperation.
  30320. DryRun *bool `locationName:"dryRun" type:"boolean"`
  30321. }
  30322. // String returns the string representation
  30323. func (s DescribeAccountAttributesInput) String() string {
  30324. return awsutil.Prettify(s)
  30325. }
  30326. // GoString returns the string representation
  30327. func (s DescribeAccountAttributesInput) GoString() string {
  30328. return s.String()
  30329. }
  30330. // SetAttributeNames sets the AttributeNames field's value.
  30331. func (s *DescribeAccountAttributesInput) SetAttributeNames(v []*string) *DescribeAccountAttributesInput {
  30332. s.AttributeNames = v
  30333. return s
  30334. }
  30335. // SetDryRun sets the DryRun field's value.
  30336. func (s *DescribeAccountAttributesInput) SetDryRun(v bool) *DescribeAccountAttributesInput {
  30337. s.DryRun = &v
  30338. return s
  30339. }
  30340. // Contains the output of DescribeAccountAttributes.
  30341. type DescribeAccountAttributesOutput struct {
  30342. _ struct{} `type:"structure"`
  30343. // Information about one or more account attributes.
  30344. AccountAttributes []*AccountAttribute `locationName:"accountAttributeSet" locationNameList:"item" type:"list"`
  30345. }
  30346. // String returns the string representation
  30347. func (s DescribeAccountAttributesOutput) String() string {
  30348. return awsutil.Prettify(s)
  30349. }
  30350. // GoString returns the string representation
  30351. func (s DescribeAccountAttributesOutput) GoString() string {
  30352. return s.String()
  30353. }
  30354. // SetAccountAttributes sets the AccountAttributes field's value.
  30355. func (s *DescribeAccountAttributesOutput) SetAccountAttributes(v []*AccountAttribute) *DescribeAccountAttributesOutput {
  30356. s.AccountAttributes = v
  30357. return s
  30358. }
  30359. // Contains the parameters for DescribeAddresses.
  30360. type DescribeAddressesInput struct {
  30361. _ struct{} `type:"structure"`
  30362. // [EC2-VPC] One or more allocation IDs.
  30363. //
  30364. // Default: Describes all your Elastic IP addresses.
  30365. AllocationIds []*string `locationName:"AllocationId" locationNameList:"AllocationId" type:"list"`
  30366. // Checks whether you have the required permissions for the action, without
  30367. // actually making the request, and provides an error response. If you have
  30368. // the required permissions, the error response is DryRunOperation. Otherwise,
  30369. // it is UnauthorizedOperation.
  30370. DryRun *bool `locationName:"dryRun" type:"boolean"`
  30371. // One or more filters. Filter names and values are case-sensitive.
  30372. //
  30373. // * allocation-id - [EC2-VPC] The allocation ID for the address.
  30374. //
  30375. // * association-id - [EC2-VPC] The association ID for the address.
  30376. //
  30377. // * domain - Indicates whether the address is for use in EC2-Classic (standard)
  30378. // or in a VPC (vpc).
  30379. //
  30380. // * instance-id - The ID of the instance the address is associated with,
  30381. // if any.
  30382. //
  30383. // * network-interface-id - [EC2-VPC] The ID of the network interface that
  30384. // the address is associated with, if any.
  30385. //
  30386. // * network-interface-owner-id - The AWS account ID of the owner.
  30387. //
  30388. // * private-ip-address - [EC2-VPC] The private IP address associated with
  30389. // the Elastic IP address.
  30390. //
  30391. // * public-ip - The Elastic IP address.
  30392. //
  30393. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  30394. // Specify the key of the tag in the filter name and the value of the tag
  30395. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  30396. // for the filter name and X for the filter value.
  30397. //
  30398. // * tag-key - The key of a tag assigned to the resource. This filter is
  30399. // independent of the tag-value filter. For example, if you use both the
  30400. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  30401. // assigned both the tag key Purpose (regardless of what the tag's value
  30402. // is), and the tag value X (regardless of the tag's key). If you want to
  30403. // list only resources where Purpose is X, see the tag:key=value filter.
  30404. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  30405. // [EC2-Classic] One or more Elastic IP addresses.
  30406. //
  30407. // Default: Describes all your Elastic IP addresses.
  30408. PublicIps []*string `locationName:"PublicIp" locationNameList:"PublicIp" type:"list"`
  30409. }
  30410. // String returns the string representation
  30411. func (s DescribeAddressesInput) String() string {
  30412. return awsutil.Prettify(s)
  30413. }
  30414. // GoString returns the string representation
  30415. func (s DescribeAddressesInput) GoString() string {
  30416. return s.String()
  30417. }
  30418. // SetAllocationIds sets the AllocationIds field's value.
  30419. func (s *DescribeAddressesInput) SetAllocationIds(v []*string) *DescribeAddressesInput {
  30420. s.AllocationIds = v
  30421. return s
  30422. }
  30423. // SetDryRun sets the DryRun field's value.
  30424. func (s *DescribeAddressesInput) SetDryRun(v bool) *DescribeAddressesInput {
  30425. s.DryRun = &v
  30426. return s
  30427. }
  30428. // SetFilters sets the Filters field's value.
  30429. func (s *DescribeAddressesInput) SetFilters(v []*Filter) *DescribeAddressesInput {
  30430. s.Filters = v
  30431. return s
  30432. }
  30433. // SetPublicIps sets the PublicIps field's value.
  30434. func (s *DescribeAddressesInput) SetPublicIps(v []*string) *DescribeAddressesInput {
  30435. s.PublicIps = v
  30436. return s
  30437. }
  30438. // Contains the output of DescribeAddresses.
  30439. type DescribeAddressesOutput struct {
  30440. _ struct{} `type:"structure"`
  30441. // Information about one or more Elastic IP addresses.
  30442. Addresses []*Address `locationName:"addressesSet" locationNameList:"item" type:"list"`
  30443. }
  30444. // String returns the string representation
  30445. func (s DescribeAddressesOutput) String() string {
  30446. return awsutil.Prettify(s)
  30447. }
  30448. // GoString returns the string representation
  30449. func (s DescribeAddressesOutput) GoString() string {
  30450. return s.String()
  30451. }
  30452. // SetAddresses sets the Addresses field's value.
  30453. func (s *DescribeAddressesOutput) SetAddresses(v []*Address) *DescribeAddressesOutput {
  30454. s.Addresses = v
  30455. return s
  30456. }
  30457. type DescribeAggregateIdFormatInput struct {
  30458. _ struct{} `type:"structure"`
  30459. // Checks whether you have the required permissions for the action, without
  30460. // actually making the request, and provides an error response. If you have
  30461. // the required permissions, the error response is DryRunOperation. Otherwise,
  30462. // it is UnauthorizedOperation.
  30463. DryRun *bool `type:"boolean"`
  30464. }
  30465. // String returns the string representation
  30466. func (s DescribeAggregateIdFormatInput) String() string {
  30467. return awsutil.Prettify(s)
  30468. }
  30469. // GoString returns the string representation
  30470. func (s DescribeAggregateIdFormatInput) GoString() string {
  30471. return s.String()
  30472. }
  30473. // SetDryRun sets the DryRun field's value.
  30474. func (s *DescribeAggregateIdFormatInput) SetDryRun(v bool) *DescribeAggregateIdFormatInput {
  30475. s.DryRun = &v
  30476. return s
  30477. }
  30478. type DescribeAggregateIdFormatOutput struct {
  30479. _ struct{} `type:"structure"`
  30480. // Information about each resource's ID format.
  30481. Statuses []*IdFormat `locationName:"statusSet" locationNameList:"item" type:"list"`
  30482. // Indicates whether all resource types in the region are configured to use
  30483. // longer IDs. This value is only true if all users are configured to use longer
  30484. // IDs for all resources types in the region.
  30485. UseLongIdsAggregated *bool `locationName:"useLongIdsAggregated" type:"boolean"`
  30486. }
  30487. // String returns the string representation
  30488. func (s DescribeAggregateIdFormatOutput) String() string {
  30489. return awsutil.Prettify(s)
  30490. }
  30491. // GoString returns the string representation
  30492. func (s DescribeAggregateIdFormatOutput) GoString() string {
  30493. return s.String()
  30494. }
  30495. // SetStatuses sets the Statuses field's value.
  30496. func (s *DescribeAggregateIdFormatOutput) SetStatuses(v []*IdFormat) *DescribeAggregateIdFormatOutput {
  30497. s.Statuses = v
  30498. return s
  30499. }
  30500. // SetUseLongIdsAggregated sets the UseLongIdsAggregated field's value.
  30501. func (s *DescribeAggregateIdFormatOutput) SetUseLongIdsAggregated(v bool) *DescribeAggregateIdFormatOutput {
  30502. s.UseLongIdsAggregated = &v
  30503. return s
  30504. }
  30505. // Contains the parameters for DescribeAvailabilityZones.
  30506. type DescribeAvailabilityZonesInput struct {
  30507. _ struct{} `type:"structure"`
  30508. // Checks whether you have the required permissions for the action, without
  30509. // actually making the request, and provides an error response. If you have
  30510. // the required permissions, the error response is DryRunOperation. Otherwise,
  30511. // it is UnauthorizedOperation.
  30512. DryRun *bool `locationName:"dryRun" type:"boolean"`
  30513. // One or more filters.
  30514. //
  30515. // * message - Information about the Availability Zone.
  30516. //
  30517. // * region-name - The name of the region for the Availability Zone (for
  30518. // example, us-east-1).
  30519. //
  30520. // * state - The state of the Availability Zone (available | information
  30521. // | impaired | unavailable).
  30522. //
  30523. // * zone-name - The name of the Availability Zone (for example, us-east-1a).
  30524. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  30525. // The names of one or more Availability Zones.
  30526. ZoneNames []*string `locationName:"ZoneName" locationNameList:"ZoneName" type:"list"`
  30527. }
  30528. // String returns the string representation
  30529. func (s DescribeAvailabilityZonesInput) String() string {
  30530. return awsutil.Prettify(s)
  30531. }
  30532. // GoString returns the string representation
  30533. func (s DescribeAvailabilityZonesInput) GoString() string {
  30534. return s.String()
  30535. }
  30536. // SetDryRun sets the DryRun field's value.
  30537. func (s *DescribeAvailabilityZonesInput) SetDryRun(v bool) *DescribeAvailabilityZonesInput {
  30538. s.DryRun = &v
  30539. return s
  30540. }
  30541. // SetFilters sets the Filters field's value.
  30542. func (s *DescribeAvailabilityZonesInput) SetFilters(v []*Filter) *DescribeAvailabilityZonesInput {
  30543. s.Filters = v
  30544. return s
  30545. }
  30546. // SetZoneNames sets the ZoneNames field's value.
  30547. func (s *DescribeAvailabilityZonesInput) SetZoneNames(v []*string) *DescribeAvailabilityZonesInput {
  30548. s.ZoneNames = v
  30549. return s
  30550. }
  30551. // Contains the output of DescribeAvailabiltyZones.
  30552. type DescribeAvailabilityZonesOutput struct {
  30553. _ struct{} `type:"structure"`
  30554. // Information about one or more Availability Zones.
  30555. AvailabilityZones []*AvailabilityZone `locationName:"availabilityZoneInfo" locationNameList:"item" type:"list"`
  30556. }
  30557. // String returns the string representation
  30558. func (s DescribeAvailabilityZonesOutput) String() string {
  30559. return awsutil.Prettify(s)
  30560. }
  30561. // GoString returns the string representation
  30562. func (s DescribeAvailabilityZonesOutput) GoString() string {
  30563. return s.String()
  30564. }
  30565. // SetAvailabilityZones sets the AvailabilityZones field's value.
  30566. func (s *DescribeAvailabilityZonesOutput) SetAvailabilityZones(v []*AvailabilityZone) *DescribeAvailabilityZonesOutput {
  30567. s.AvailabilityZones = v
  30568. return s
  30569. }
  30570. // Contains the parameters for DescribeBundleTasks.
  30571. type DescribeBundleTasksInput struct {
  30572. _ struct{} `type:"structure"`
  30573. // One or more bundle task IDs.
  30574. //
  30575. // Default: Describes all your bundle tasks.
  30576. BundleIds []*string `locationName:"BundleId" locationNameList:"BundleId" type:"list"`
  30577. // Checks whether you have the required permissions for the action, without
  30578. // actually making the request, and provides an error response. If you have
  30579. // the required permissions, the error response is DryRunOperation. Otherwise,
  30580. // it is UnauthorizedOperation.
  30581. DryRun *bool `locationName:"dryRun" type:"boolean"`
  30582. // One or more filters.
  30583. //
  30584. // * bundle-id - The ID of the bundle task.
  30585. //
  30586. // * error-code - If the task failed, the error code returned.
  30587. //
  30588. // * error-message - If the task failed, the error message returned.
  30589. //
  30590. // * instance-id - The ID of the instance.
  30591. //
  30592. // * progress - The level of task completion, as a percentage (for example,
  30593. // 20%).
  30594. //
  30595. // * s3-bucket - The Amazon S3 bucket to store the AMI.
  30596. //
  30597. // * s3-prefix - The beginning of the AMI name.
  30598. //
  30599. // * start-time - The time the task started (for example, 2013-09-15T17:15:20.000Z).
  30600. //
  30601. // * state - The state of the task (pending | waiting-for-shutdown | bundling
  30602. // | storing | cancelling | complete | failed).
  30603. //
  30604. // * update-time - The time of the most recent update for the task.
  30605. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  30606. }
  30607. // String returns the string representation
  30608. func (s DescribeBundleTasksInput) String() string {
  30609. return awsutil.Prettify(s)
  30610. }
  30611. // GoString returns the string representation
  30612. func (s DescribeBundleTasksInput) GoString() string {
  30613. return s.String()
  30614. }
  30615. // SetBundleIds sets the BundleIds field's value.
  30616. func (s *DescribeBundleTasksInput) SetBundleIds(v []*string) *DescribeBundleTasksInput {
  30617. s.BundleIds = v
  30618. return s
  30619. }
  30620. // SetDryRun sets the DryRun field's value.
  30621. func (s *DescribeBundleTasksInput) SetDryRun(v bool) *DescribeBundleTasksInput {
  30622. s.DryRun = &v
  30623. return s
  30624. }
  30625. // SetFilters sets the Filters field's value.
  30626. func (s *DescribeBundleTasksInput) SetFilters(v []*Filter) *DescribeBundleTasksInput {
  30627. s.Filters = v
  30628. return s
  30629. }
  30630. // Contains the output of DescribeBundleTasks.
  30631. type DescribeBundleTasksOutput struct {
  30632. _ struct{} `type:"structure"`
  30633. // Information about one or more bundle tasks.
  30634. BundleTasks []*BundleTask `locationName:"bundleInstanceTasksSet" locationNameList:"item" type:"list"`
  30635. }
  30636. // String returns the string representation
  30637. func (s DescribeBundleTasksOutput) String() string {
  30638. return awsutil.Prettify(s)
  30639. }
  30640. // GoString returns the string representation
  30641. func (s DescribeBundleTasksOutput) GoString() string {
  30642. return s.String()
  30643. }
  30644. // SetBundleTasks sets the BundleTasks field's value.
  30645. func (s *DescribeBundleTasksOutput) SetBundleTasks(v []*BundleTask) *DescribeBundleTasksOutput {
  30646. s.BundleTasks = v
  30647. return s
  30648. }
  30649. // Contains the parameters for DescribeClassicLinkInstances.
  30650. type DescribeClassicLinkInstancesInput struct {
  30651. _ struct{} `type:"structure"`
  30652. // Checks whether you have the required permissions for the action, without
  30653. // actually making the request, and provides an error response. If you have
  30654. // the required permissions, the error response is DryRunOperation. Otherwise,
  30655. // it is UnauthorizedOperation.
  30656. DryRun *bool `locationName:"dryRun" type:"boolean"`
  30657. // One or more filters.
  30658. //
  30659. // * group-id - The ID of a VPC security group that's associated with the
  30660. // instance.
  30661. //
  30662. // * instance-id - The ID of the instance.
  30663. //
  30664. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  30665. //
  30666. // * tag-key - The key of a tag assigned to the resource. This filter is
  30667. // independent of the tag-value filter. For example, if you use both the
  30668. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  30669. // assigned both the tag key Purpose (regardless of what the tag's value
  30670. // is), and the tag value X (regardless of what the tag's key is). If you
  30671. // want to list only resources where Purpose is X, see the tag:key=value
  30672. // filter.
  30673. //
  30674. // * tag-value - The value of a tag assigned to the resource. This filter
  30675. // is independent of the tag-key filter.
  30676. //
  30677. // * vpc-id - The ID of the VPC that the instance is linked to.
  30678. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  30679. // One or more instance IDs. Must be instances linked to a VPC through ClassicLink.
  30680. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list"`
  30681. // The maximum number of results to return for the request in a single page.
  30682. // The remaining results of the initial request can be seen by sending another
  30683. // request with the returned NextToken value. This value can be between 5 and
  30684. // 1000; if MaxResults is given a value larger than 1000, only 1000 results
  30685. // are returned. You cannot specify this parameter and the instance IDs parameter
  30686. // in the same request.
  30687. //
  30688. // Constraint: If the value is greater than 1000, we return only 1000 items.
  30689. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  30690. // The token to retrieve the next page of results.
  30691. NextToken *string `locationName:"nextToken" type:"string"`
  30692. }
  30693. // String returns the string representation
  30694. func (s DescribeClassicLinkInstancesInput) String() string {
  30695. return awsutil.Prettify(s)
  30696. }
  30697. // GoString returns the string representation
  30698. func (s DescribeClassicLinkInstancesInput) GoString() string {
  30699. return s.String()
  30700. }
  30701. // SetDryRun sets the DryRun field's value.
  30702. func (s *DescribeClassicLinkInstancesInput) SetDryRun(v bool) *DescribeClassicLinkInstancesInput {
  30703. s.DryRun = &v
  30704. return s
  30705. }
  30706. // SetFilters sets the Filters field's value.
  30707. func (s *DescribeClassicLinkInstancesInput) SetFilters(v []*Filter) *DescribeClassicLinkInstancesInput {
  30708. s.Filters = v
  30709. return s
  30710. }
  30711. // SetInstanceIds sets the InstanceIds field's value.
  30712. func (s *DescribeClassicLinkInstancesInput) SetInstanceIds(v []*string) *DescribeClassicLinkInstancesInput {
  30713. s.InstanceIds = v
  30714. return s
  30715. }
  30716. // SetMaxResults sets the MaxResults field's value.
  30717. func (s *DescribeClassicLinkInstancesInput) SetMaxResults(v int64) *DescribeClassicLinkInstancesInput {
  30718. s.MaxResults = &v
  30719. return s
  30720. }
  30721. // SetNextToken sets the NextToken field's value.
  30722. func (s *DescribeClassicLinkInstancesInput) SetNextToken(v string) *DescribeClassicLinkInstancesInput {
  30723. s.NextToken = &v
  30724. return s
  30725. }
  30726. // Contains the output of DescribeClassicLinkInstances.
  30727. type DescribeClassicLinkInstancesOutput struct {
  30728. _ struct{} `type:"structure"`
  30729. // Information about one or more linked EC2-Classic instances.
  30730. Instances []*ClassicLinkInstance `locationName:"instancesSet" locationNameList:"item" type:"list"`
  30731. // The token to use to retrieve the next page of results. This value is null
  30732. // when there are no more results to return.
  30733. NextToken *string `locationName:"nextToken" type:"string"`
  30734. }
  30735. // String returns the string representation
  30736. func (s DescribeClassicLinkInstancesOutput) String() string {
  30737. return awsutil.Prettify(s)
  30738. }
  30739. // GoString returns the string representation
  30740. func (s DescribeClassicLinkInstancesOutput) GoString() string {
  30741. return s.String()
  30742. }
  30743. // SetInstances sets the Instances field's value.
  30744. func (s *DescribeClassicLinkInstancesOutput) SetInstances(v []*ClassicLinkInstance) *DescribeClassicLinkInstancesOutput {
  30745. s.Instances = v
  30746. return s
  30747. }
  30748. // SetNextToken sets the NextToken field's value.
  30749. func (s *DescribeClassicLinkInstancesOutput) SetNextToken(v string) *DescribeClassicLinkInstancesOutput {
  30750. s.NextToken = &v
  30751. return s
  30752. }
  30753. // Contains the parameters for DescribeConversionTasks.
  30754. type DescribeConversionTasksInput struct {
  30755. _ struct{} `type:"structure"`
  30756. // One or more conversion task IDs.
  30757. ConversionTaskIds []*string `locationName:"conversionTaskId" locationNameList:"item" type:"list"`
  30758. // Checks whether you have the required permissions for the action, without
  30759. // actually making the request, and provides an error response. If you have
  30760. // the required permissions, the error response is DryRunOperation. Otherwise,
  30761. // it is UnauthorizedOperation.
  30762. DryRun *bool `locationName:"dryRun" type:"boolean"`
  30763. }
  30764. // String returns the string representation
  30765. func (s DescribeConversionTasksInput) String() string {
  30766. return awsutil.Prettify(s)
  30767. }
  30768. // GoString returns the string representation
  30769. func (s DescribeConversionTasksInput) GoString() string {
  30770. return s.String()
  30771. }
  30772. // SetConversionTaskIds sets the ConversionTaskIds field's value.
  30773. func (s *DescribeConversionTasksInput) SetConversionTaskIds(v []*string) *DescribeConversionTasksInput {
  30774. s.ConversionTaskIds = v
  30775. return s
  30776. }
  30777. // SetDryRun sets the DryRun field's value.
  30778. func (s *DescribeConversionTasksInput) SetDryRun(v bool) *DescribeConversionTasksInput {
  30779. s.DryRun = &v
  30780. return s
  30781. }
  30782. // Contains the output for DescribeConversionTasks.
  30783. type DescribeConversionTasksOutput struct {
  30784. _ struct{} `type:"structure"`
  30785. // Information about the conversion tasks.
  30786. ConversionTasks []*ConversionTask `locationName:"conversionTasks" locationNameList:"item" type:"list"`
  30787. }
  30788. // String returns the string representation
  30789. func (s DescribeConversionTasksOutput) String() string {
  30790. return awsutil.Prettify(s)
  30791. }
  30792. // GoString returns the string representation
  30793. func (s DescribeConversionTasksOutput) GoString() string {
  30794. return s.String()
  30795. }
  30796. // SetConversionTasks sets the ConversionTasks field's value.
  30797. func (s *DescribeConversionTasksOutput) SetConversionTasks(v []*ConversionTask) *DescribeConversionTasksOutput {
  30798. s.ConversionTasks = v
  30799. return s
  30800. }
  30801. // Contains the parameters for DescribeCustomerGateways.
  30802. type DescribeCustomerGatewaysInput struct {
  30803. _ struct{} `type:"structure"`
  30804. // One or more customer gateway IDs.
  30805. //
  30806. // Default: Describes all your customer gateways.
  30807. CustomerGatewayIds []*string `locationName:"CustomerGatewayId" locationNameList:"CustomerGatewayId" type:"list"`
  30808. // Checks whether you have the required permissions for the action, without
  30809. // actually making the request, and provides an error response. If you have
  30810. // the required permissions, the error response is DryRunOperation. Otherwise,
  30811. // it is UnauthorizedOperation.
  30812. DryRun *bool `locationName:"dryRun" type:"boolean"`
  30813. // One or more filters.
  30814. //
  30815. // * bgp-asn - The customer gateway's Border Gateway Protocol (BGP) Autonomous
  30816. // System Number (ASN).
  30817. //
  30818. // * customer-gateway-id - The ID of the customer gateway.
  30819. //
  30820. // * ip-address - The IP address of the customer gateway's Internet-routable
  30821. // external interface.
  30822. //
  30823. // * state - The state of the customer gateway (pending | available | deleting
  30824. // | deleted).
  30825. //
  30826. // * type - The type of customer gateway. Currently, the only supported type
  30827. // is ipsec.1.
  30828. //
  30829. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  30830. // Specify the key of the tag in the filter name and the value of the tag
  30831. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  30832. // for the filter name and X for the filter value.
  30833. //
  30834. // * tag-key - The key of a tag assigned to the resource. This filter is
  30835. // independent of the tag-value filter. For example, if you use both the
  30836. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  30837. // assigned both the tag key Purpose (regardless of what the tag's value
  30838. // is), and the tag value X (regardless of what the tag's key is). If you
  30839. // want to list only resources where Purpose is X, see the tag:key=value
  30840. // filter.
  30841. //
  30842. // * tag-value - The value of a tag assigned to the resource. This filter
  30843. // is independent of the tag-key filter.
  30844. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  30845. }
  30846. // String returns the string representation
  30847. func (s DescribeCustomerGatewaysInput) String() string {
  30848. return awsutil.Prettify(s)
  30849. }
  30850. // GoString returns the string representation
  30851. func (s DescribeCustomerGatewaysInput) GoString() string {
  30852. return s.String()
  30853. }
  30854. // SetCustomerGatewayIds sets the CustomerGatewayIds field's value.
  30855. func (s *DescribeCustomerGatewaysInput) SetCustomerGatewayIds(v []*string) *DescribeCustomerGatewaysInput {
  30856. s.CustomerGatewayIds = v
  30857. return s
  30858. }
  30859. // SetDryRun sets the DryRun field's value.
  30860. func (s *DescribeCustomerGatewaysInput) SetDryRun(v bool) *DescribeCustomerGatewaysInput {
  30861. s.DryRun = &v
  30862. return s
  30863. }
  30864. // SetFilters sets the Filters field's value.
  30865. func (s *DescribeCustomerGatewaysInput) SetFilters(v []*Filter) *DescribeCustomerGatewaysInput {
  30866. s.Filters = v
  30867. return s
  30868. }
  30869. // Contains the output of DescribeCustomerGateways.
  30870. type DescribeCustomerGatewaysOutput struct {
  30871. _ struct{} `type:"structure"`
  30872. // Information about one or more customer gateways.
  30873. CustomerGateways []*CustomerGateway `locationName:"customerGatewaySet" locationNameList:"item" type:"list"`
  30874. }
  30875. // String returns the string representation
  30876. func (s DescribeCustomerGatewaysOutput) String() string {
  30877. return awsutil.Prettify(s)
  30878. }
  30879. // GoString returns the string representation
  30880. func (s DescribeCustomerGatewaysOutput) GoString() string {
  30881. return s.String()
  30882. }
  30883. // SetCustomerGateways sets the CustomerGateways field's value.
  30884. func (s *DescribeCustomerGatewaysOutput) SetCustomerGateways(v []*CustomerGateway) *DescribeCustomerGatewaysOutput {
  30885. s.CustomerGateways = v
  30886. return s
  30887. }
  30888. // Contains the parameters for DescribeDhcpOptions.
  30889. type DescribeDhcpOptionsInput struct {
  30890. _ struct{} `type:"structure"`
  30891. // The IDs of one or more DHCP options sets.
  30892. //
  30893. // Default: Describes all your DHCP options sets.
  30894. DhcpOptionsIds []*string `locationName:"DhcpOptionsId" locationNameList:"DhcpOptionsId" type:"list"`
  30895. // Checks whether you have the required permissions for the action, without
  30896. // actually making the request, and provides an error response. If you have
  30897. // the required permissions, the error response is DryRunOperation. Otherwise,
  30898. // it is UnauthorizedOperation.
  30899. DryRun *bool `locationName:"dryRun" type:"boolean"`
  30900. // One or more filters.
  30901. //
  30902. // * dhcp-options-id - The ID of a set of DHCP options.
  30903. //
  30904. // * key - The key for one of the options (for example, domain-name).
  30905. //
  30906. // * value - The value for one of the options.
  30907. //
  30908. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  30909. // Specify the key of the tag in the filter name and the value of the tag
  30910. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  30911. // for the filter name and X for the filter value.
  30912. //
  30913. // * tag-key - The key of a tag assigned to the resource. This filter is
  30914. // independent of the tag-value filter. For example, if you use both the
  30915. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  30916. // assigned both the tag key Purpose (regardless of what the tag's value
  30917. // is), and the tag value X (regardless of what the tag's key is). If you
  30918. // want to list only resources where Purpose is X, see the tag:key=value
  30919. // filter.
  30920. //
  30921. // * tag-value - The value of a tag assigned to the resource. This filter
  30922. // is independent of the tag-key filter.
  30923. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  30924. }
  30925. // String returns the string representation
  30926. func (s DescribeDhcpOptionsInput) String() string {
  30927. return awsutil.Prettify(s)
  30928. }
  30929. // GoString returns the string representation
  30930. func (s DescribeDhcpOptionsInput) GoString() string {
  30931. return s.String()
  30932. }
  30933. // SetDhcpOptionsIds sets the DhcpOptionsIds field's value.
  30934. func (s *DescribeDhcpOptionsInput) SetDhcpOptionsIds(v []*string) *DescribeDhcpOptionsInput {
  30935. s.DhcpOptionsIds = v
  30936. return s
  30937. }
  30938. // SetDryRun sets the DryRun field's value.
  30939. func (s *DescribeDhcpOptionsInput) SetDryRun(v bool) *DescribeDhcpOptionsInput {
  30940. s.DryRun = &v
  30941. return s
  30942. }
  30943. // SetFilters sets the Filters field's value.
  30944. func (s *DescribeDhcpOptionsInput) SetFilters(v []*Filter) *DescribeDhcpOptionsInput {
  30945. s.Filters = v
  30946. return s
  30947. }
  30948. // Contains the output of DescribeDhcpOptions.
  30949. type DescribeDhcpOptionsOutput struct {
  30950. _ struct{} `type:"structure"`
  30951. // Information about one or more DHCP options sets.
  30952. DhcpOptions []*DhcpOptions `locationName:"dhcpOptionsSet" locationNameList:"item" type:"list"`
  30953. }
  30954. // String returns the string representation
  30955. func (s DescribeDhcpOptionsOutput) String() string {
  30956. return awsutil.Prettify(s)
  30957. }
  30958. // GoString returns the string representation
  30959. func (s DescribeDhcpOptionsOutput) GoString() string {
  30960. return s.String()
  30961. }
  30962. // SetDhcpOptions sets the DhcpOptions field's value.
  30963. func (s *DescribeDhcpOptionsOutput) SetDhcpOptions(v []*DhcpOptions) *DescribeDhcpOptionsOutput {
  30964. s.DhcpOptions = v
  30965. return s
  30966. }
  30967. type DescribeEgressOnlyInternetGatewaysInput struct {
  30968. _ struct{} `type:"structure"`
  30969. // Checks whether you have the required permissions for the action, without
  30970. // actually making the request, and provides an error response. If you have
  30971. // the required permissions, the error response is DryRunOperation. Otherwise,
  30972. // it is UnauthorizedOperation.
  30973. DryRun *bool `type:"boolean"`
  30974. // One or more egress-only Internet gateway IDs.
  30975. EgressOnlyInternetGatewayIds []*string `locationName:"EgressOnlyInternetGatewayId" locationNameList:"item" type:"list"`
  30976. // The maximum number of results to return for the request in a single page.
  30977. // The remaining results can be seen by sending another request with the returned
  30978. // NextToken value. This value can be between 5 and 1000; if MaxResults is given
  30979. // a value larger than 1000, only 1000 results are returned.
  30980. MaxResults *int64 `type:"integer"`
  30981. // The token to retrieve the next page of results.
  30982. NextToken *string `type:"string"`
  30983. }
  30984. // String returns the string representation
  30985. func (s DescribeEgressOnlyInternetGatewaysInput) String() string {
  30986. return awsutil.Prettify(s)
  30987. }
  30988. // GoString returns the string representation
  30989. func (s DescribeEgressOnlyInternetGatewaysInput) GoString() string {
  30990. return s.String()
  30991. }
  30992. // SetDryRun sets the DryRun field's value.
  30993. func (s *DescribeEgressOnlyInternetGatewaysInput) SetDryRun(v bool) *DescribeEgressOnlyInternetGatewaysInput {
  30994. s.DryRun = &v
  30995. return s
  30996. }
  30997. // SetEgressOnlyInternetGatewayIds sets the EgressOnlyInternetGatewayIds field's value.
  30998. func (s *DescribeEgressOnlyInternetGatewaysInput) SetEgressOnlyInternetGatewayIds(v []*string) *DescribeEgressOnlyInternetGatewaysInput {
  30999. s.EgressOnlyInternetGatewayIds = v
  31000. return s
  31001. }
  31002. // SetMaxResults sets the MaxResults field's value.
  31003. func (s *DescribeEgressOnlyInternetGatewaysInput) SetMaxResults(v int64) *DescribeEgressOnlyInternetGatewaysInput {
  31004. s.MaxResults = &v
  31005. return s
  31006. }
  31007. // SetNextToken sets the NextToken field's value.
  31008. func (s *DescribeEgressOnlyInternetGatewaysInput) SetNextToken(v string) *DescribeEgressOnlyInternetGatewaysInput {
  31009. s.NextToken = &v
  31010. return s
  31011. }
  31012. type DescribeEgressOnlyInternetGatewaysOutput struct {
  31013. _ struct{} `type:"structure"`
  31014. // Information about the egress-only Internet gateways.
  31015. EgressOnlyInternetGateways []*EgressOnlyInternetGateway `locationName:"egressOnlyInternetGatewaySet" locationNameList:"item" type:"list"`
  31016. // The token to use to retrieve the next page of results.
  31017. NextToken *string `locationName:"nextToken" type:"string"`
  31018. }
  31019. // String returns the string representation
  31020. func (s DescribeEgressOnlyInternetGatewaysOutput) String() string {
  31021. return awsutil.Prettify(s)
  31022. }
  31023. // GoString returns the string representation
  31024. func (s DescribeEgressOnlyInternetGatewaysOutput) GoString() string {
  31025. return s.String()
  31026. }
  31027. // SetEgressOnlyInternetGateways sets the EgressOnlyInternetGateways field's value.
  31028. func (s *DescribeEgressOnlyInternetGatewaysOutput) SetEgressOnlyInternetGateways(v []*EgressOnlyInternetGateway) *DescribeEgressOnlyInternetGatewaysOutput {
  31029. s.EgressOnlyInternetGateways = v
  31030. return s
  31031. }
  31032. // SetNextToken sets the NextToken field's value.
  31033. func (s *DescribeEgressOnlyInternetGatewaysOutput) SetNextToken(v string) *DescribeEgressOnlyInternetGatewaysOutput {
  31034. s.NextToken = &v
  31035. return s
  31036. }
  31037. type DescribeElasticGpusInput struct {
  31038. _ struct{} `type:"structure"`
  31039. // Checks whether you have the required permissions for the action, without
  31040. // actually making the request, and provides an error response. If you have
  31041. // the required permissions, the error response is DryRunOperation. Otherwise,
  31042. // it is UnauthorizedOperation.
  31043. DryRun *bool `type:"boolean"`
  31044. // One or more Elastic GPU IDs.
  31045. ElasticGpuIds []*string `locationName:"ElasticGpuId" locationNameList:"item" type:"list"`
  31046. // One or more filters.
  31047. //
  31048. // * availability-zone - The Availability Zone in which the Elastic GPU resides.
  31049. //
  31050. // * elastic-gpu-health - The status of the Elastic GPU (OK | IMPAIRED).
  31051. //
  31052. // * elastic-gpu-state - The state of the Elastic GPU (ATTACHED).
  31053. //
  31054. // * elastic-gpu-type - The type of Elastic GPU; for example, eg1.medium.
  31055. //
  31056. // * instance-id - The ID of the instance to which the Elastic GPU is associated.
  31057. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  31058. // The maximum number of results to return in a single call. To retrieve the
  31059. // remaining results, make another call with the returned NextToken value. This
  31060. // value can be between 5 and 1000.
  31061. MaxResults *int64 `type:"integer"`
  31062. // The token to request the next page of results.
  31063. NextToken *string `type:"string"`
  31064. }
  31065. // String returns the string representation
  31066. func (s DescribeElasticGpusInput) String() string {
  31067. return awsutil.Prettify(s)
  31068. }
  31069. // GoString returns the string representation
  31070. func (s DescribeElasticGpusInput) GoString() string {
  31071. return s.String()
  31072. }
  31073. // SetDryRun sets the DryRun field's value.
  31074. func (s *DescribeElasticGpusInput) SetDryRun(v bool) *DescribeElasticGpusInput {
  31075. s.DryRun = &v
  31076. return s
  31077. }
  31078. // SetElasticGpuIds sets the ElasticGpuIds field's value.
  31079. func (s *DescribeElasticGpusInput) SetElasticGpuIds(v []*string) *DescribeElasticGpusInput {
  31080. s.ElasticGpuIds = v
  31081. return s
  31082. }
  31083. // SetFilters sets the Filters field's value.
  31084. func (s *DescribeElasticGpusInput) SetFilters(v []*Filter) *DescribeElasticGpusInput {
  31085. s.Filters = v
  31086. return s
  31087. }
  31088. // SetMaxResults sets the MaxResults field's value.
  31089. func (s *DescribeElasticGpusInput) SetMaxResults(v int64) *DescribeElasticGpusInput {
  31090. s.MaxResults = &v
  31091. return s
  31092. }
  31093. // SetNextToken sets the NextToken field's value.
  31094. func (s *DescribeElasticGpusInput) SetNextToken(v string) *DescribeElasticGpusInput {
  31095. s.NextToken = &v
  31096. return s
  31097. }
  31098. type DescribeElasticGpusOutput struct {
  31099. _ struct{} `type:"structure"`
  31100. // Information about the Elastic GPUs.
  31101. ElasticGpuSet []*ElasticGpus `locationName:"elasticGpuSet" locationNameList:"item" type:"list"`
  31102. // The total number of items to return. If the total number of items available
  31103. // is more than the value specified in max-items then a Next-Token will be provided
  31104. // in the output that you can use to resume pagination.
  31105. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  31106. // The token to use to retrieve the next page of results. This value is null
  31107. // when there are no more results to return.
  31108. NextToken *string `locationName:"nextToken" type:"string"`
  31109. }
  31110. // String returns the string representation
  31111. func (s DescribeElasticGpusOutput) String() string {
  31112. return awsutil.Prettify(s)
  31113. }
  31114. // GoString returns the string representation
  31115. func (s DescribeElasticGpusOutput) GoString() string {
  31116. return s.String()
  31117. }
  31118. // SetElasticGpuSet sets the ElasticGpuSet field's value.
  31119. func (s *DescribeElasticGpusOutput) SetElasticGpuSet(v []*ElasticGpus) *DescribeElasticGpusOutput {
  31120. s.ElasticGpuSet = v
  31121. return s
  31122. }
  31123. // SetMaxResults sets the MaxResults field's value.
  31124. func (s *DescribeElasticGpusOutput) SetMaxResults(v int64) *DescribeElasticGpusOutput {
  31125. s.MaxResults = &v
  31126. return s
  31127. }
  31128. // SetNextToken sets the NextToken field's value.
  31129. func (s *DescribeElasticGpusOutput) SetNextToken(v string) *DescribeElasticGpusOutput {
  31130. s.NextToken = &v
  31131. return s
  31132. }
  31133. // Contains the parameters for DescribeExportTasks.
  31134. type DescribeExportTasksInput struct {
  31135. _ struct{} `type:"structure"`
  31136. // One or more export task IDs.
  31137. ExportTaskIds []*string `locationName:"exportTaskId" locationNameList:"ExportTaskId" type:"list"`
  31138. }
  31139. // String returns the string representation
  31140. func (s DescribeExportTasksInput) String() string {
  31141. return awsutil.Prettify(s)
  31142. }
  31143. // GoString returns the string representation
  31144. func (s DescribeExportTasksInput) GoString() string {
  31145. return s.String()
  31146. }
  31147. // SetExportTaskIds sets the ExportTaskIds field's value.
  31148. func (s *DescribeExportTasksInput) SetExportTaskIds(v []*string) *DescribeExportTasksInput {
  31149. s.ExportTaskIds = v
  31150. return s
  31151. }
  31152. // Contains the output for DescribeExportTasks.
  31153. type DescribeExportTasksOutput struct {
  31154. _ struct{} `type:"structure"`
  31155. // Information about the export tasks.
  31156. ExportTasks []*ExportTask `locationName:"exportTaskSet" locationNameList:"item" type:"list"`
  31157. }
  31158. // String returns the string representation
  31159. func (s DescribeExportTasksOutput) String() string {
  31160. return awsutil.Prettify(s)
  31161. }
  31162. // GoString returns the string representation
  31163. func (s DescribeExportTasksOutput) GoString() string {
  31164. return s.String()
  31165. }
  31166. // SetExportTasks sets the ExportTasks field's value.
  31167. func (s *DescribeExportTasksOutput) SetExportTasks(v []*ExportTask) *DescribeExportTasksOutput {
  31168. s.ExportTasks = v
  31169. return s
  31170. }
  31171. type DescribeFleetHistoryInput struct {
  31172. _ struct{} `type:"structure"`
  31173. // Checks whether you have the required permissions for the action, without
  31174. // actually making the request, and provides an error response. If you have
  31175. // the required permissions, the error response is DryRunOperation. Otherwise,
  31176. // it is UnauthorizedOperation.
  31177. DryRun *bool `type:"boolean"`
  31178. // The type of events to describe. By default, all events are described.
  31179. EventType *string `type:"string" enum:"FleetEventType"`
  31180. // The ID of the EC2 Fleet.
  31181. //
  31182. // FleetId is a required field
  31183. FleetId *string `type:"string" required:"true"`
  31184. // The maximum number of results to return in a single call. Specify a value
  31185. // between 1 and 1000. The default value is 1000. To retrieve the remaining
  31186. // results, make another call with the returned NextToken value.
  31187. MaxResults *int64 `type:"integer"`
  31188. // The token for the next set of results.
  31189. NextToken *string `type:"string"`
  31190. // The start date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  31191. //
  31192. // StartTime is a required field
  31193. StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
  31194. }
  31195. // String returns the string representation
  31196. func (s DescribeFleetHistoryInput) String() string {
  31197. return awsutil.Prettify(s)
  31198. }
  31199. // GoString returns the string representation
  31200. func (s DescribeFleetHistoryInput) GoString() string {
  31201. return s.String()
  31202. }
  31203. // Validate inspects the fields of the type to determine if they are valid.
  31204. func (s *DescribeFleetHistoryInput) Validate() error {
  31205. invalidParams := request.ErrInvalidParams{Context: "DescribeFleetHistoryInput"}
  31206. if s.FleetId == nil {
  31207. invalidParams.Add(request.NewErrParamRequired("FleetId"))
  31208. }
  31209. if s.StartTime == nil {
  31210. invalidParams.Add(request.NewErrParamRequired("StartTime"))
  31211. }
  31212. if invalidParams.Len() > 0 {
  31213. return invalidParams
  31214. }
  31215. return nil
  31216. }
  31217. // SetDryRun sets the DryRun field's value.
  31218. func (s *DescribeFleetHistoryInput) SetDryRun(v bool) *DescribeFleetHistoryInput {
  31219. s.DryRun = &v
  31220. return s
  31221. }
  31222. // SetEventType sets the EventType field's value.
  31223. func (s *DescribeFleetHistoryInput) SetEventType(v string) *DescribeFleetHistoryInput {
  31224. s.EventType = &v
  31225. return s
  31226. }
  31227. // SetFleetId sets the FleetId field's value.
  31228. func (s *DescribeFleetHistoryInput) SetFleetId(v string) *DescribeFleetHistoryInput {
  31229. s.FleetId = &v
  31230. return s
  31231. }
  31232. // SetMaxResults sets the MaxResults field's value.
  31233. func (s *DescribeFleetHistoryInput) SetMaxResults(v int64) *DescribeFleetHistoryInput {
  31234. s.MaxResults = &v
  31235. return s
  31236. }
  31237. // SetNextToken sets the NextToken field's value.
  31238. func (s *DescribeFleetHistoryInput) SetNextToken(v string) *DescribeFleetHistoryInput {
  31239. s.NextToken = &v
  31240. return s
  31241. }
  31242. // SetStartTime sets the StartTime field's value.
  31243. func (s *DescribeFleetHistoryInput) SetStartTime(v time.Time) *DescribeFleetHistoryInput {
  31244. s.StartTime = &v
  31245. return s
  31246. }
  31247. type DescribeFleetHistoryOutput struct {
  31248. _ struct{} `type:"structure"`
  31249. // The ID of the EC Fleet.
  31250. FleetId *string `locationName:"fleetId" type:"string"`
  31251. // Information about the events in the history of the EC2 Fleet.
  31252. HistoryRecords []*HistoryRecordEntry `locationName:"historyRecordSet" locationNameList:"item" type:"list"`
  31253. // The last date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  31254. // All records up to this time were retrieved.
  31255. //
  31256. // If nextToken indicates that there are more results, this value is not present.
  31257. LastEvaluatedTime *time.Time `locationName:"lastEvaluatedTime" type:"timestamp" timestampFormat:"iso8601"`
  31258. // The token for the next set of results.
  31259. NextToken *string `locationName:"nextToken" type:"string"`
  31260. // The start date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  31261. StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601"`
  31262. }
  31263. // String returns the string representation
  31264. func (s DescribeFleetHistoryOutput) String() string {
  31265. return awsutil.Prettify(s)
  31266. }
  31267. // GoString returns the string representation
  31268. func (s DescribeFleetHistoryOutput) GoString() string {
  31269. return s.String()
  31270. }
  31271. // SetFleetId sets the FleetId field's value.
  31272. func (s *DescribeFleetHistoryOutput) SetFleetId(v string) *DescribeFleetHistoryOutput {
  31273. s.FleetId = &v
  31274. return s
  31275. }
  31276. // SetHistoryRecords sets the HistoryRecords field's value.
  31277. func (s *DescribeFleetHistoryOutput) SetHistoryRecords(v []*HistoryRecordEntry) *DescribeFleetHistoryOutput {
  31278. s.HistoryRecords = v
  31279. return s
  31280. }
  31281. // SetLastEvaluatedTime sets the LastEvaluatedTime field's value.
  31282. func (s *DescribeFleetHistoryOutput) SetLastEvaluatedTime(v time.Time) *DescribeFleetHistoryOutput {
  31283. s.LastEvaluatedTime = &v
  31284. return s
  31285. }
  31286. // SetNextToken sets the NextToken field's value.
  31287. func (s *DescribeFleetHistoryOutput) SetNextToken(v string) *DescribeFleetHistoryOutput {
  31288. s.NextToken = &v
  31289. return s
  31290. }
  31291. // SetStartTime sets the StartTime field's value.
  31292. func (s *DescribeFleetHistoryOutput) SetStartTime(v time.Time) *DescribeFleetHistoryOutput {
  31293. s.StartTime = &v
  31294. return s
  31295. }
  31296. type DescribeFleetInstancesInput struct {
  31297. _ struct{} `type:"structure"`
  31298. // Checks whether you have the required permissions for the action, without
  31299. // actually making the request, and provides an error response. If you have
  31300. // the required permissions, the error response is DryRunOperation. Otherwise,
  31301. // it is UnauthorizedOperation.
  31302. DryRun *bool `type:"boolean"`
  31303. // One or more filters.
  31304. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  31305. // The ID of the EC2 Fleet.
  31306. //
  31307. // FleetId is a required field
  31308. FleetId *string `type:"string" required:"true"`
  31309. // The maximum number of results to return in a single call. Specify a value
  31310. // between 1 and 1000. The default value is 1000. To retrieve the remaining
  31311. // results, make another call with the returned NextToken value.
  31312. MaxResults *int64 `type:"integer"`
  31313. // The token for the next set of results.
  31314. NextToken *string `type:"string"`
  31315. }
  31316. // String returns the string representation
  31317. func (s DescribeFleetInstancesInput) String() string {
  31318. return awsutil.Prettify(s)
  31319. }
  31320. // GoString returns the string representation
  31321. func (s DescribeFleetInstancesInput) GoString() string {
  31322. return s.String()
  31323. }
  31324. // Validate inspects the fields of the type to determine if they are valid.
  31325. func (s *DescribeFleetInstancesInput) Validate() error {
  31326. invalidParams := request.ErrInvalidParams{Context: "DescribeFleetInstancesInput"}
  31327. if s.FleetId == nil {
  31328. invalidParams.Add(request.NewErrParamRequired("FleetId"))
  31329. }
  31330. if invalidParams.Len() > 0 {
  31331. return invalidParams
  31332. }
  31333. return nil
  31334. }
  31335. // SetDryRun sets the DryRun field's value.
  31336. func (s *DescribeFleetInstancesInput) SetDryRun(v bool) *DescribeFleetInstancesInput {
  31337. s.DryRun = &v
  31338. return s
  31339. }
  31340. // SetFilters sets the Filters field's value.
  31341. func (s *DescribeFleetInstancesInput) SetFilters(v []*Filter) *DescribeFleetInstancesInput {
  31342. s.Filters = v
  31343. return s
  31344. }
  31345. // SetFleetId sets the FleetId field's value.
  31346. func (s *DescribeFleetInstancesInput) SetFleetId(v string) *DescribeFleetInstancesInput {
  31347. s.FleetId = &v
  31348. return s
  31349. }
  31350. // SetMaxResults sets the MaxResults field's value.
  31351. func (s *DescribeFleetInstancesInput) SetMaxResults(v int64) *DescribeFleetInstancesInput {
  31352. s.MaxResults = &v
  31353. return s
  31354. }
  31355. // SetNextToken sets the NextToken field's value.
  31356. func (s *DescribeFleetInstancesInput) SetNextToken(v string) *DescribeFleetInstancesInput {
  31357. s.NextToken = &v
  31358. return s
  31359. }
  31360. type DescribeFleetInstancesOutput struct {
  31361. _ struct{} `type:"structure"`
  31362. // The running instances. This list is refreshed periodically and might be out
  31363. // of date.
  31364. ActiveInstances []*ActiveInstance `locationName:"activeInstanceSet" locationNameList:"item" type:"list"`
  31365. // The ID of the EC2 Fleet.
  31366. FleetId *string `locationName:"fleetId" type:"string"`
  31367. // The token for the next set of results.
  31368. NextToken *string `locationName:"nextToken" type:"string"`
  31369. }
  31370. // String returns the string representation
  31371. func (s DescribeFleetInstancesOutput) String() string {
  31372. return awsutil.Prettify(s)
  31373. }
  31374. // GoString returns the string representation
  31375. func (s DescribeFleetInstancesOutput) GoString() string {
  31376. return s.String()
  31377. }
  31378. // SetActiveInstances sets the ActiveInstances field's value.
  31379. func (s *DescribeFleetInstancesOutput) SetActiveInstances(v []*ActiveInstance) *DescribeFleetInstancesOutput {
  31380. s.ActiveInstances = v
  31381. return s
  31382. }
  31383. // SetFleetId sets the FleetId field's value.
  31384. func (s *DescribeFleetInstancesOutput) SetFleetId(v string) *DescribeFleetInstancesOutput {
  31385. s.FleetId = &v
  31386. return s
  31387. }
  31388. // SetNextToken sets the NextToken field's value.
  31389. func (s *DescribeFleetInstancesOutput) SetNextToken(v string) *DescribeFleetInstancesOutput {
  31390. s.NextToken = &v
  31391. return s
  31392. }
  31393. type DescribeFleetsInput struct {
  31394. _ struct{} `type:"structure"`
  31395. // Checks whether you have the required permissions for the action, without
  31396. // actually making the request, and provides an error response. If you have
  31397. // the required permissions, the error response is DryRunOperation. Otherwise,
  31398. // it is UnauthorizedOperation.
  31399. DryRun *bool `type:"boolean"`
  31400. // One or more filters.
  31401. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  31402. // The ID of the EC2 Fleets.
  31403. FleetIds []*string `locationName:"FleetId" type:"list"`
  31404. // The maximum number of results to return in a single call. Specify a value
  31405. // between 1 and 1000. The default value is 1000. To retrieve the remaining
  31406. // results, make another call with the returned NextToken value.
  31407. MaxResults *int64 `type:"integer"`
  31408. // The token for the next set of results.
  31409. NextToken *string `type:"string"`
  31410. }
  31411. // String returns the string representation
  31412. func (s DescribeFleetsInput) String() string {
  31413. return awsutil.Prettify(s)
  31414. }
  31415. // GoString returns the string representation
  31416. func (s DescribeFleetsInput) GoString() string {
  31417. return s.String()
  31418. }
  31419. // SetDryRun sets the DryRun field's value.
  31420. func (s *DescribeFleetsInput) SetDryRun(v bool) *DescribeFleetsInput {
  31421. s.DryRun = &v
  31422. return s
  31423. }
  31424. // SetFilters sets the Filters field's value.
  31425. func (s *DescribeFleetsInput) SetFilters(v []*Filter) *DescribeFleetsInput {
  31426. s.Filters = v
  31427. return s
  31428. }
  31429. // SetFleetIds sets the FleetIds field's value.
  31430. func (s *DescribeFleetsInput) SetFleetIds(v []*string) *DescribeFleetsInput {
  31431. s.FleetIds = v
  31432. return s
  31433. }
  31434. // SetMaxResults sets the MaxResults field's value.
  31435. func (s *DescribeFleetsInput) SetMaxResults(v int64) *DescribeFleetsInput {
  31436. s.MaxResults = &v
  31437. return s
  31438. }
  31439. // SetNextToken sets the NextToken field's value.
  31440. func (s *DescribeFleetsInput) SetNextToken(v string) *DescribeFleetsInput {
  31441. s.NextToken = &v
  31442. return s
  31443. }
  31444. type DescribeFleetsOutput struct {
  31445. _ struct{} `type:"structure"`
  31446. // The EC2 Fleets.
  31447. Fleets []*FleetData `locationName:"fleetSet" locationNameList:"item" type:"list"`
  31448. // The token for the next set of results.
  31449. NextToken *string `locationName:"nextToken" type:"string"`
  31450. }
  31451. // String returns the string representation
  31452. func (s DescribeFleetsOutput) String() string {
  31453. return awsutil.Prettify(s)
  31454. }
  31455. // GoString returns the string representation
  31456. func (s DescribeFleetsOutput) GoString() string {
  31457. return s.String()
  31458. }
  31459. // SetFleets sets the Fleets field's value.
  31460. func (s *DescribeFleetsOutput) SetFleets(v []*FleetData) *DescribeFleetsOutput {
  31461. s.Fleets = v
  31462. return s
  31463. }
  31464. // SetNextToken sets the NextToken field's value.
  31465. func (s *DescribeFleetsOutput) SetNextToken(v string) *DescribeFleetsOutput {
  31466. s.NextToken = &v
  31467. return s
  31468. }
  31469. // Contains the parameters for DescribeFlowLogs.
  31470. type DescribeFlowLogsInput struct {
  31471. _ struct{} `type:"structure"`
  31472. // One or more filters.
  31473. //
  31474. // * deliver-log-status - The status of the logs delivery (SUCCESS | FAILED).
  31475. //
  31476. // * flow-log-id - The ID of the flow log.
  31477. //
  31478. // * log-group-name - The name of the log group.
  31479. //
  31480. // * resource-id - The ID of the VPC, subnet, or network interface.
  31481. //
  31482. // * traffic-type - The type of traffic (ACCEPT | REJECT | ALL)
  31483. Filter []*Filter `locationNameList:"Filter" type:"list"`
  31484. // One or more flow log IDs.
  31485. FlowLogIds []*string `locationName:"FlowLogId" locationNameList:"item" type:"list"`
  31486. // The maximum number of results to return for the request in a single page.
  31487. // The remaining results can be seen by sending another request with the returned
  31488. // NextToken value. This value can be between 5 and 1000; if MaxResults is given
  31489. // a value larger than 1000, only 1000 results are returned. You cannot specify
  31490. // this parameter and the flow log IDs parameter in the same request.
  31491. MaxResults *int64 `type:"integer"`
  31492. // The token to retrieve the next page of results.
  31493. NextToken *string `type:"string"`
  31494. }
  31495. // String returns the string representation
  31496. func (s DescribeFlowLogsInput) String() string {
  31497. return awsutil.Prettify(s)
  31498. }
  31499. // GoString returns the string representation
  31500. func (s DescribeFlowLogsInput) GoString() string {
  31501. return s.String()
  31502. }
  31503. // SetFilter sets the Filter field's value.
  31504. func (s *DescribeFlowLogsInput) SetFilter(v []*Filter) *DescribeFlowLogsInput {
  31505. s.Filter = v
  31506. return s
  31507. }
  31508. // SetFlowLogIds sets the FlowLogIds field's value.
  31509. func (s *DescribeFlowLogsInput) SetFlowLogIds(v []*string) *DescribeFlowLogsInput {
  31510. s.FlowLogIds = v
  31511. return s
  31512. }
  31513. // SetMaxResults sets the MaxResults field's value.
  31514. func (s *DescribeFlowLogsInput) SetMaxResults(v int64) *DescribeFlowLogsInput {
  31515. s.MaxResults = &v
  31516. return s
  31517. }
  31518. // SetNextToken sets the NextToken field's value.
  31519. func (s *DescribeFlowLogsInput) SetNextToken(v string) *DescribeFlowLogsInput {
  31520. s.NextToken = &v
  31521. return s
  31522. }
  31523. // Contains the output of DescribeFlowLogs.
  31524. type DescribeFlowLogsOutput struct {
  31525. _ struct{} `type:"structure"`
  31526. // Information about the flow logs.
  31527. FlowLogs []*FlowLog `locationName:"flowLogSet" locationNameList:"item" type:"list"`
  31528. // The token to use to retrieve the next page of results. This value is null
  31529. // when there are no more results to return.
  31530. NextToken *string `locationName:"nextToken" type:"string"`
  31531. }
  31532. // String returns the string representation
  31533. func (s DescribeFlowLogsOutput) String() string {
  31534. return awsutil.Prettify(s)
  31535. }
  31536. // GoString returns the string representation
  31537. func (s DescribeFlowLogsOutput) GoString() string {
  31538. return s.String()
  31539. }
  31540. // SetFlowLogs sets the FlowLogs field's value.
  31541. func (s *DescribeFlowLogsOutput) SetFlowLogs(v []*FlowLog) *DescribeFlowLogsOutput {
  31542. s.FlowLogs = v
  31543. return s
  31544. }
  31545. // SetNextToken sets the NextToken field's value.
  31546. func (s *DescribeFlowLogsOutput) SetNextToken(v string) *DescribeFlowLogsOutput {
  31547. s.NextToken = &v
  31548. return s
  31549. }
  31550. type DescribeFpgaImageAttributeInput struct {
  31551. _ struct{} `type:"structure"`
  31552. // The AFI attribute.
  31553. //
  31554. // Attribute is a required field
  31555. Attribute *string `type:"string" required:"true" enum:"FpgaImageAttributeName"`
  31556. // Checks whether you have the required permissions for the action, without
  31557. // actually making the request, and provides an error response. If you have
  31558. // the required permissions, the error response is DryRunOperation. Otherwise,
  31559. // it is UnauthorizedOperation.
  31560. DryRun *bool `type:"boolean"`
  31561. // The ID of the AFI.
  31562. //
  31563. // FpgaImageId is a required field
  31564. FpgaImageId *string `type:"string" required:"true"`
  31565. }
  31566. // String returns the string representation
  31567. func (s DescribeFpgaImageAttributeInput) String() string {
  31568. return awsutil.Prettify(s)
  31569. }
  31570. // GoString returns the string representation
  31571. func (s DescribeFpgaImageAttributeInput) GoString() string {
  31572. return s.String()
  31573. }
  31574. // Validate inspects the fields of the type to determine if they are valid.
  31575. func (s *DescribeFpgaImageAttributeInput) Validate() error {
  31576. invalidParams := request.ErrInvalidParams{Context: "DescribeFpgaImageAttributeInput"}
  31577. if s.Attribute == nil {
  31578. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  31579. }
  31580. if s.FpgaImageId == nil {
  31581. invalidParams.Add(request.NewErrParamRequired("FpgaImageId"))
  31582. }
  31583. if invalidParams.Len() > 0 {
  31584. return invalidParams
  31585. }
  31586. return nil
  31587. }
  31588. // SetAttribute sets the Attribute field's value.
  31589. func (s *DescribeFpgaImageAttributeInput) SetAttribute(v string) *DescribeFpgaImageAttributeInput {
  31590. s.Attribute = &v
  31591. return s
  31592. }
  31593. // SetDryRun sets the DryRun field's value.
  31594. func (s *DescribeFpgaImageAttributeInput) SetDryRun(v bool) *DescribeFpgaImageAttributeInput {
  31595. s.DryRun = &v
  31596. return s
  31597. }
  31598. // SetFpgaImageId sets the FpgaImageId field's value.
  31599. func (s *DescribeFpgaImageAttributeInput) SetFpgaImageId(v string) *DescribeFpgaImageAttributeInput {
  31600. s.FpgaImageId = &v
  31601. return s
  31602. }
  31603. type DescribeFpgaImageAttributeOutput struct {
  31604. _ struct{} `type:"structure"`
  31605. // Information about the attribute.
  31606. FpgaImageAttribute *FpgaImageAttribute `locationName:"fpgaImageAttribute" type:"structure"`
  31607. }
  31608. // String returns the string representation
  31609. func (s DescribeFpgaImageAttributeOutput) String() string {
  31610. return awsutil.Prettify(s)
  31611. }
  31612. // GoString returns the string representation
  31613. func (s DescribeFpgaImageAttributeOutput) GoString() string {
  31614. return s.String()
  31615. }
  31616. // SetFpgaImageAttribute sets the FpgaImageAttribute field's value.
  31617. func (s *DescribeFpgaImageAttributeOutput) SetFpgaImageAttribute(v *FpgaImageAttribute) *DescribeFpgaImageAttributeOutput {
  31618. s.FpgaImageAttribute = v
  31619. return s
  31620. }
  31621. type DescribeFpgaImagesInput struct {
  31622. _ struct{} `type:"structure"`
  31623. // Checks whether you have the required permissions for the action, without
  31624. // actually making the request, and provides an error response. If you have
  31625. // the required permissions, the error response is DryRunOperation. Otherwise,
  31626. // it is UnauthorizedOperation.
  31627. DryRun *bool `type:"boolean"`
  31628. // One or more filters.
  31629. //
  31630. // * create-time - The creation time of the AFI.
  31631. //
  31632. // * fpga-image-id - The FPGA image identifier (AFI ID).
  31633. //
  31634. // * fpga-image-global-id - The global FPGA image identifier (AGFI ID).
  31635. //
  31636. // * name - The name of the AFI.
  31637. //
  31638. // * owner-id - The AWS account ID of the AFI owner.
  31639. //
  31640. // * product-code - The product code.
  31641. //
  31642. // * shell-version - The version of the AWS Shell that was used to create
  31643. // the bitstream.
  31644. //
  31645. // * state - The state of the AFI (pending | failed | available | unavailable).
  31646. //
  31647. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  31648. // Specify the key of the tag in the filter name and the value of the tag
  31649. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  31650. // for the filter name and X for the filter value.
  31651. //
  31652. // * tag-key - The key of a tag assigned to the resource. This filter is
  31653. // independent of the tag-value filter. For example, if you use both the
  31654. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  31655. // assigned both the tag key Purpose (regardless of what the tag's value
  31656. // is), and the tag value X (regardless of what the tag's key is). If you
  31657. // want to list only resources where Purpose is X, see the tag:key=value
  31658. // filter.
  31659. //
  31660. // * tag-value - The value of a tag assigned to the resource. This filter
  31661. // is independent of the tag-key filter.
  31662. //
  31663. // * update-time - The time of the most recent update.
  31664. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  31665. // One or more AFI IDs.
  31666. FpgaImageIds []*string `locationName:"FpgaImageId" locationNameList:"item" type:"list"`
  31667. // The maximum number of results to return in a single call.
  31668. MaxResults *int64 `min:"5" type:"integer"`
  31669. // The token to retrieve the next page of results.
  31670. NextToken *string `min:"1" type:"string"`
  31671. // Filters the AFI by owner. Specify an AWS account ID, self (owner is the sender
  31672. // of the request), or an AWS owner alias (valid values are amazon | aws-marketplace).
  31673. Owners []*string `locationName:"Owner" locationNameList:"Owner" type:"list"`
  31674. }
  31675. // String returns the string representation
  31676. func (s DescribeFpgaImagesInput) String() string {
  31677. return awsutil.Prettify(s)
  31678. }
  31679. // GoString returns the string representation
  31680. func (s DescribeFpgaImagesInput) GoString() string {
  31681. return s.String()
  31682. }
  31683. // Validate inspects the fields of the type to determine if they are valid.
  31684. func (s *DescribeFpgaImagesInput) Validate() error {
  31685. invalidParams := request.ErrInvalidParams{Context: "DescribeFpgaImagesInput"}
  31686. if s.MaxResults != nil && *s.MaxResults < 5 {
  31687. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  31688. }
  31689. if s.NextToken != nil && len(*s.NextToken) < 1 {
  31690. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  31691. }
  31692. if invalidParams.Len() > 0 {
  31693. return invalidParams
  31694. }
  31695. return nil
  31696. }
  31697. // SetDryRun sets the DryRun field's value.
  31698. func (s *DescribeFpgaImagesInput) SetDryRun(v bool) *DescribeFpgaImagesInput {
  31699. s.DryRun = &v
  31700. return s
  31701. }
  31702. // SetFilters sets the Filters field's value.
  31703. func (s *DescribeFpgaImagesInput) SetFilters(v []*Filter) *DescribeFpgaImagesInput {
  31704. s.Filters = v
  31705. return s
  31706. }
  31707. // SetFpgaImageIds sets the FpgaImageIds field's value.
  31708. func (s *DescribeFpgaImagesInput) SetFpgaImageIds(v []*string) *DescribeFpgaImagesInput {
  31709. s.FpgaImageIds = v
  31710. return s
  31711. }
  31712. // SetMaxResults sets the MaxResults field's value.
  31713. func (s *DescribeFpgaImagesInput) SetMaxResults(v int64) *DescribeFpgaImagesInput {
  31714. s.MaxResults = &v
  31715. return s
  31716. }
  31717. // SetNextToken sets the NextToken field's value.
  31718. func (s *DescribeFpgaImagesInput) SetNextToken(v string) *DescribeFpgaImagesInput {
  31719. s.NextToken = &v
  31720. return s
  31721. }
  31722. // SetOwners sets the Owners field's value.
  31723. func (s *DescribeFpgaImagesInput) SetOwners(v []*string) *DescribeFpgaImagesInput {
  31724. s.Owners = v
  31725. return s
  31726. }
  31727. type DescribeFpgaImagesOutput struct {
  31728. _ struct{} `type:"structure"`
  31729. // Information about one or more FPGA images.
  31730. FpgaImages []*FpgaImage `locationName:"fpgaImageSet" locationNameList:"item" type:"list"`
  31731. // The token to use to retrieve the next page of results. This value is null
  31732. // when there are no more results to return.
  31733. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  31734. }
  31735. // String returns the string representation
  31736. func (s DescribeFpgaImagesOutput) String() string {
  31737. return awsutil.Prettify(s)
  31738. }
  31739. // GoString returns the string representation
  31740. func (s DescribeFpgaImagesOutput) GoString() string {
  31741. return s.String()
  31742. }
  31743. // SetFpgaImages sets the FpgaImages field's value.
  31744. func (s *DescribeFpgaImagesOutput) SetFpgaImages(v []*FpgaImage) *DescribeFpgaImagesOutput {
  31745. s.FpgaImages = v
  31746. return s
  31747. }
  31748. // SetNextToken sets the NextToken field's value.
  31749. func (s *DescribeFpgaImagesOutput) SetNextToken(v string) *DescribeFpgaImagesOutput {
  31750. s.NextToken = &v
  31751. return s
  31752. }
  31753. type DescribeHostReservationOfferingsInput struct {
  31754. _ struct{} `type:"structure"`
  31755. // One or more filters.
  31756. //
  31757. // * instance-family - The instance family of the offering (e.g., m4).
  31758. //
  31759. // * payment-option - The payment option (NoUpfront | PartialUpfront | AllUpfront).
  31760. Filter []*Filter `locationNameList:"Filter" type:"list"`
  31761. // This is the maximum duration of the reservation you'd like to purchase, specified
  31762. // in seconds. Reservations are available in one-year and three-year terms.
  31763. // The number of seconds specified must be the number of seconds in a year (365x24x60x60)
  31764. // times one of the supported durations (1 or 3). For example, specify 94608000
  31765. // for three years.
  31766. MaxDuration *int64 `type:"integer"`
  31767. // The maximum number of results to return for the request in a single page.
  31768. // The remaining results can be seen by sending another request with the returned
  31769. // nextToken value. This value can be between 5 and 500; if maxResults is given
  31770. // a larger value than 500, you will receive an error.
  31771. MaxResults *int64 `type:"integer"`
  31772. // This is the minimum duration of the reservation you'd like to purchase, specified
  31773. // in seconds. Reservations are available in one-year and three-year terms.
  31774. // The number of seconds specified must be the number of seconds in a year (365x24x60x60)
  31775. // times one of the supported durations (1 or 3). For example, specify 31536000
  31776. // for one year.
  31777. MinDuration *int64 `type:"integer"`
  31778. // The token to use to retrieve the next page of results.
  31779. NextToken *string `type:"string"`
  31780. // The ID of the reservation offering.
  31781. OfferingId *string `type:"string"`
  31782. }
  31783. // String returns the string representation
  31784. func (s DescribeHostReservationOfferingsInput) String() string {
  31785. return awsutil.Prettify(s)
  31786. }
  31787. // GoString returns the string representation
  31788. func (s DescribeHostReservationOfferingsInput) GoString() string {
  31789. return s.String()
  31790. }
  31791. // SetFilter sets the Filter field's value.
  31792. func (s *DescribeHostReservationOfferingsInput) SetFilter(v []*Filter) *DescribeHostReservationOfferingsInput {
  31793. s.Filter = v
  31794. return s
  31795. }
  31796. // SetMaxDuration sets the MaxDuration field's value.
  31797. func (s *DescribeHostReservationOfferingsInput) SetMaxDuration(v int64) *DescribeHostReservationOfferingsInput {
  31798. s.MaxDuration = &v
  31799. return s
  31800. }
  31801. // SetMaxResults sets the MaxResults field's value.
  31802. func (s *DescribeHostReservationOfferingsInput) SetMaxResults(v int64) *DescribeHostReservationOfferingsInput {
  31803. s.MaxResults = &v
  31804. return s
  31805. }
  31806. // SetMinDuration sets the MinDuration field's value.
  31807. func (s *DescribeHostReservationOfferingsInput) SetMinDuration(v int64) *DescribeHostReservationOfferingsInput {
  31808. s.MinDuration = &v
  31809. return s
  31810. }
  31811. // SetNextToken sets the NextToken field's value.
  31812. func (s *DescribeHostReservationOfferingsInput) SetNextToken(v string) *DescribeHostReservationOfferingsInput {
  31813. s.NextToken = &v
  31814. return s
  31815. }
  31816. // SetOfferingId sets the OfferingId field's value.
  31817. func (s *DescribeHostReservationOfferingsInput) SetOfferingId(v string) *DescribeHostReservationOfferingsInput {
  31818. s.OfferingId = &v
  31819. return s
  31820. }
  31821. type DescribeHostReservationOfferingsOutput struct {
  31822. _ struct{} `type:"structure"`
  31823. // The token to use to retrieve the next page of results. This value is null
  31824. // when there are no more results to return.
  31825. NextToken *string `locationName:"nextToken" type:"string"`
  31826. // Information about the offerings.
  31827. OfferingSet []*HostOffering `locationName:"offeringSet" locationNameList:"item" type:"list"`
  31828. }
  31829. // String returns the string representation
  31830. func (s DescribeHostReservationOfferingsOutput) String() string {
  31831. return awsutil.Prettify(s)
  31832. }
  31833. // GoString returns the string representation
  31834. func (s DescribeHostReservationOfferingsOutput) GoString() string {
  31835. return s.String()
  31836. }
  31837. // SetNextToken sets the NextToken field's value.
  31838. func (s *DescribeHostReservationOfferingsOutput) SetNextToken(v string) *DescribeHostReservationOfferingsOutput {
  31839. s.NextToken = &v
  31840. return s
  31841. }
  31842. // SetOfferingSet sets the OfferingSet field's value.
  31843. func (s *DescribeHostReservationOfferingsOutput) SetOfferingSet(v []*HostOffering) *DescribeHostReservationOfferingsOutput {
  31844. s.OfferingSet = v
  31845. return s
  31846. }
  31847. type DescribeHostReservationsInput struct {
  31848. _ struct{} `type:"structure"`
  31849. // One or more filters.
  31850. //
  31851. // * instance-family - The instance family (e.g., m4).
  31852. //
  31853. // * payment-option - The payment option (NoUpfront | PartialUpfront | AllUpfront).
  31854. //
  31855. // * state - The state of the reservation (payment-pending | payment-failed
  31856. // | active | retired).
  31857. Filter []*Filter `locationNameList:"Filter" type:"list"`
  31858. // One or more host reservation IDs.
  31859. HostReservationIdSet []*string `locationNameList:"item" type:"list"`
  31860. // The maximum number of results to return for the request in a single page.
  31861. // The remaining results can be seen by sending another request with the returned
  31862. // nextToken value. This value can be between 5 and 500; if maxResults is given
  31863. // a larger value than 500, you will receive an error.
  31864. MaxResults *int64 `type:"integer"`
  31865. // The token to use to retrieve the next page of results.
  31866. NextToken *string `type:"string"`
  31867. }
  31868. // String returns the string representation
  31869. func (s DescribeHostReservationsInput) String() string {
  31870. return awsutil.Prettify(s)
  31871. }
  31872. // GoString returns the string representation
  31873. func (s DescribeHostReservationsInput) GoString() string {
  31874. return s.String()
  31875. }
  31876. // SetFilter sets the Filter field's value.
  31877. func (s *DescribeHostReservationsInput) SetFilter(v []*Filter) *DescribeHostReservationsInput {
  31878. s.Filter = v
  31879. return s
  31880. }
  31881. // SetHostReservationIdSet sets the HostReservationIdSet field's value.
  31882. func (s *DescribeHostReservationsInput) SetHostReservationIdSet(v []*string) *DescribeHostReservationsInput {
  31883. s.HostReservationIdSet = v
  31884. return s
  31885. }
  31886. // SetMaxResults sets the MaxResults field's value.
  31887. func (s *DescribeHostReservationsInput) SetMaxResults(v int64) *DescribeHostReservationsInput {
  31888. s.MaxResults = &v
  31889. return s
  31890. }
  31891. // SetNextToken sets the NextToken field's value.
  31892. func (s *DescribeHostReservationsInput) SetNextToken(v string) *DescribeHostReservationsInput {
  31893. s.NextToken = &v
  31894. return s
  31895. }
  31896. type DescribeHostReservationsOutput struct {
  31897. _ struct{} `type:"structure"`
  31898. // Details about the reservation's configuration.
  31899. HostReservationSet []*HostReservation `locationName:"hostReservationSet" locationNameList:"item" type:"list"`
  31900. // The token to use to retrieve the next page of results. This value is null
  31901. // when there are no more results to return.
  31902. NextToken *string `locationName:"nextToken" type:"string"`
  31903. }
  31904. // String returns the string representation
  31905. func (s DescribeHostReservationsOutput) String() string {
  31906. return awsutil.Prettify(s)
  31907. }
  31908. // GoString returns the string representation
  31909. func (s DescribeHostReservationsOutput) GoString() string {
  31910. return s.String()
  31911. }
  31912. // SetHostReservationSet sets the HostReservationSet field's value.
  31913. func (s *DescribeHostReservationsOutput) SetHostReservationSet(v []*HostReservation) *DescribeHostReservationsOutput {
  31914. s.HostReservationSet = v
  31915. return s
  31916. }
  31917. // SetNextToken sets the NextToken field's value.
  31918. func (s *DescribeHostReservationsOutput) SetNextToken(v string) *DescribeHostReservationsOutput {
  31919. s.NextToken = &v
  31920. return s
  31921. }
  31922. // Contains the parameters for DescribeHosts.
  31923. type DescribeHostsInput struct {
  31924. _ struct{} `type:"structure"`
  31925. // One or more filters.
  31926. //
  31927. // * auto-placement - Whether auto-placement is enabled or disabled (on |
  31928. // off).
  31929. //
  31930. // * availability-zone - The Availability Zone of the host.
  31931. //
  31932. // * client-token - The idempotency token you provided when you allocated
  31933. // the host.
  31934. //
  31935. // * host-reservation-id - The ID of the reservation assigned to this host.
  31936. //
  31937. // * instance-type - The instance type size that the Dedicated Host is configured
  31938. // to support.
  31939. //
  31940. // * state - The allocation state of the Dedicated Host (available | under-assessment
  31941. // | permanent-failure | released | released-permanent-failure).
  31942. Filter []*Filter `locationName:"filter" locationNameList:"Filter" type:"list"`
  31943. // The IDs of the Dedicated Hosts. The IDs are used for targeted instance launches.
  31944. HostIds []*string `locationName:"hostId" locationNameList:"item" type:"list"`
  31945. // The maximum number of results to return for the request in a single page.
  31946. // The remaining results can be seen by sending another request with the returned
  31947. // nextToken value. This value can be between 5 and 500; if maxResults is given
  31948. // a larger value than 500, you will receive an error. You cannot specify this
  31949. // parameter and the host IDs parameter in the same request.
  31950. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  31951. // The token to retrieve the next page of results.
  31952. NextToken *string `locationName:"nextToken" type:"string"`
  31953. }
  31954. // String returns the string representation
  31955. func (s DescribeHostsInput) String() string {
  31956. return awsutil.Prettify(s)
  31957. }
  31958. // GoString returns the string representation
  31959. func (s DescribeHostsInput) GoString() string {
  31960. return s.String()
  31961. }
  31962. // SetFilter sets the Filter field's value.
  31963. func (s *DescribeHostsInput) SetFilter(v []*Filter) *DescribeHostsInput {
  31964. s.Filter = v
  31965. return s
  31966. }
  31967. // SetHostIds sets the HostIds field's value.
  31968. func (s *DescribeHostsInput) SetHostIds(v []*string) *DescribeHostsInput {
  31969. s.HostIds = v
  31970. return s
  31971. }
  31972. // SetMaxResults sets the MaxResults field's value.
  31973. func (s *DescribeHostsInput) SetMaxResults(v int64) *DescribeHostsInput {
  31974. s.MaxResults = &v
  31975. return s
  31976. }
  31977. // SetNextToken sets the NextToken field's value.
  31978. func (s *DescribeHostsInput) SetNextToken(v string) *DescribeHostsInput {
  31979. s.NextToken = &v
  31980. return s
  31981. }
  31982. // Contains the output of DescribeHosts.
  31983. type DescribeHostsOutput struct {
  31984. _ struct{} `type:"structure"`
  31985. // Information about the Dedicated Hosts.
  31986. Hosts []*Host `locationName:"hostSet" locationNameList:"item" type:"list"`
  31987. // The token to use to retrieve the next page of results. This value is null
  31988. // when there are no more results to return.
  31989. NextToken *string `locationName:"nextToken" type:"string"`
  31990. }
  31991. // String returns the string representation
  31992. func (s DescribeHostsOutput) String() string {
  31993. return awsutil.Prettify(s)
  31994. }
  31995. // GoString returns the string representation
  31996. func (s DescribeHostsOutput) GoString() string {
  31997. return s.String()
  31998. }
  31999. // SetHosts sets the Hosts field's value.
  32000. func (s *DescribeHostsOutput) SetHosts(v []*Host) *DescribeHostsOutput {
  32001. s.Hosts = v
  32002. return s
  32003. }
  32004. // SetNextToken sets the NextToken field's value.
  32005. func (s *DescribeHostsOutput) SetNextToken(v string) *DescribeHostsOutput {
  32006. s.NextToken = &v
  32007. return s
  32008. }
  32009. type DescribeIamInstanceProfileAssociationsInput struct {
  32010. _ struct{} `type:"structure"`
  32011. // One or more IAM instance profile associations.
  32012. AssociationIds []*string `locationName:"AssociationId" locationNameList:"AssociationId" type:"list"`
  32013. // One or more filters.
  32014. //
  32015. // * instance-id - The ID of the instance.
  32016. //
  32017. // * state - The state of the association (associating | associated | disassociating
  32018. // | disassociated).
  32019. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  32020. // The maximum number of results to return in a single call. To retrieve the
  32021. // remaining results, make another call with the returned NextToken value.
  32022. MaxResults *int64 `min:"5" type:"integer"`
  32023. // The token to request the next page of results.
  32024. NextToken *string `min:"1" type:"string"`
  32025. }
  32026. // String returns the string representation
  32027. func (s DescribeIamInstanceProfileAssociationsInput) String() string {
  32028. return awsutil.Prettify(s)
  32029. }
  32030. // GoString returns the string representation
  32031. func (s DescribeIamInstanceProfileAssociationsInput) GoString() string {
  32032. return s.String()
  32033. }
  32034. // Validate inspects the fields of the type to determine if they are valid.
  32035. func (s *DescribeIamInstanceProfileAssociationsInput) Validate() error {
  32036. invalidParams := request.ErrInvalidParams{Context: "DescribeIamInstanceProfileAssociationsInput"}
  32037. if s.MaxResults != nil && *s.MaxResults < 5 {
  32038. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  32039. }
  32040. if s.NextToken != nil && len(*s.NextToken) < 1 {
  32041. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  32042. }
  32043. if invalidParams.Len() > 0 {
  32044. return invalidParams
  32045. }
  32046. return nil
  32047. }
  32048. // SetAssociationIds sets the AssociationIds field's value.
  32049. func (s *DescribeIamInstanceProfileAssociationsInput) SetAssociationIds(v []*string) *DescribeIamInstanceProfileAssociationsInput {
  32050. s.AssociationIds = v
  32051. return s
  32052. }
  32053. // SetFilters sets the Filters field's value.
  32054. func (s *DescribeIamInstanceProfileAssociationsInput) SetFilters(v []*Filter) *DescribeIamInstanceProfileAssociationsInput {
  32055. s.Filters = v
  32056. return s
  32057. }
  32058. // SetMaxResults sets the MaxResults field's value.
  32059. func (s *DescribeIamInstanceProfileAssociationsInput) SetMaxResults(v int64) *DescribeIamInstanceProfileAssociationsInput {
  32060. s.MaxResults = &v
  32061. return s
  32062. }
  32063. // SetNextToken sets the NextToken field's value.
  32064. func (s *DescribeIamInstanceProfileAssociationsInput) SetNextToken(v string) *DescribeIamInstanceProfileAssociationsInput {
  32065. s.NextToken = &v
  32066. return s
  32067. }
  32068. type DescribeIamInstanceProfileAssociationsOutput struct {
  32069. _ struct{} `type:"structure"`
  32070. // Information about one or more IAM instance profile associations.
  32071. IamInstanceProfileAssociations []*IamInstanceProfileAssociation `locationName:"iamInstanceProfileAssociationSet" locationNameList:"item" type:"list"`
  32072. // The token to use to retrieve the next page of results. This value is null
  32073. // when there are no more results to return.
  32074. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  32075. }
  32076. // String returns the string representation
  32077. func (s DescribeIamInstanceProfileAssociationsOutput) String() string {
  32078. return awsutil.Prettify(s)
  32079. }
  32080. // GoString returns the string representation
  32081. func (s DescribeIamInstanceProfileAssociationsOutput) GoString() string {
  32082. return s.String()
  32083. }
  32084. // SetIamInstanceProfileAssociations sets the IamInstanceProfileAssociations field's value.
  32085. func (s *DescribeIamInstanceProfileAssociationsOutput) SetIamInstanceProfileAssociations(v []*IamInstanceProfileAssociation) *DescribeIamInstanceProfileAssociationsOutput {
  32086. s.IamInstanceProfileAssociations = v
  32087. return s
  32088. }
  32089. // SetNextToken sets the NextToken field's value.
  32090. func (s *DescribeIamInstanceProfileAssociationsOutput) SetNextToken(v string) *DescribeIamInstanceProfileAssociationsOutput {
  32091. s.NextToken = &v
  32092. return s
  32093. }
  32094. // Contains the parameters for DescribeIdFormat.
  32095. type DescribeIdFormatInput struct {
  32096. _ struct{} `type:"structure"`
  32097. // The type of resource: bundle | conversion-task | customer-gateway | dhcp-options
  32098. // | elastic-ip-allocation | elastic-ip-association | export-task | flow-log
  32099. // | image | import-task | instance | internet-gateway | network-acl | network-acl-association
  32100. // | network-interface | network-interface-attachment | prefix-list | reservation
  32101. // | route-table | route-table-association | security-group | snapshot | subnet
  32102. // | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association
  32103. // | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway
  32104. Resource *string `type:"string"`
  32105. }
  32106. // String returns the string representation
  32107. func (s DescribeIdFormatInput) String() string {
  32108. return awsutil.Prettify(s)
  32109. }
  32110. // GoString returns the string representation
  32111. func (s DescribeIdFormatInput) GoString() string {
  32112. return s.String()
  32113. }
  32114. // SetResource sets the Resource field's value.
  32115. func (s *DescribeIdFormatInput) SetResource(v string) *DescribeIdFormatInput {
  32116. s.Resource = &v
  32117. return s
  32118. }
  32119. // Contains the output of DescribeIdFormat.
  32120. type DescribeIdFormatOutput struct {
  32121. _ struct{} `type:"structure"`
  32122. // Information about the ID format for the resource.
  32123. Statuses []*IdFormat `locationName:"statusSet" locationNameList:"item" type:"list"`
  32124. }
  32125. // String returns the string representation
  32126. func (s DescribeIdFormatOutput) String() string {
  32127. return awsutil.Prettify(s)
  32128. }
  32129. // GoString returns the string representation
  32130. func (s DescribeIdFormatOutput) GoString() string {
  32131. return s.String()
  32132. }
  32133. // SetStatuses sets the Statuses field's value.
  32134. func (s *DescribeIdFormatOutput) SetStatuses(v []*IdFormat) *DescribeIdFormatOutput {
  32135. s.Statuses = v
  32136. return s
  32137. }
  32138. // Contains the parameters for DescribeIdentityIdFormat.
  32139. type DescribeIdentityIdFormatInput struct {
  32140. _ struct{} `type:"structure"`
  32141. // The ARN of the principal, which can be an IAM role, IAM user, or the root
  32142. // user.
  32143. //
  32144. // PrincipalArn is a required field
  32145. PrincipalArn *string `locationName:"principalArn" type:"string" required:"true"`
  32146. // The type of resource: bundle | conversion-task | customer-gateway | dhcp-options
  32147. // | elastic-ip-allocation | elastic-ip-association | export-task | flow-log
  32148. // | image | import-task | instance | internet-gateway | network-acl | network-acl-association
  32149. // | network-interface | network-interface-attachment | prefix-list | reservation
  32150. // | route-table | route-table-association | security-group | snapshot | subnet
  32151. // | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association
  32152. // | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway
  32153. Resource *string `locationName:"resource" type:"string"`
  32154. }
  32155. // String returns the string representation
  32156. func (s DescribeIdentityIdFormatInput) String() string {
  32157. return awsutil.Prettify(s)
  32158. }
  32159. // GoString returns the string representation
  32160. func (s DescribeIdentityIdFormatInput) GoString() string {
  32161. return s.String()
  32162. }
  32163. // Validate inspects the fields of the type to determine if they are valid.
  32164. func (s *DescribeIdentityIdFormatInput) Validate() error {
  32165. invalidParams := request.ErrInvalidParams{Context: "DescribeIdentityIdFormatInput"}
  32166. if s.PrincipalArn == nil {
  32167. invalidParams.Add(request.NewErrParamRequired("PrincipalArn"))
  32168. }
  32169. if invalidParams.Len() > 0 {
  32170. return invalidParams
  32171. }
  32172. return nil
  32173. }
  32174. // SetPrincipalArn sets the PrincipalArn field's value.
  32175. func (s *DescribeIdentityIdFormatInput) SetPrincipalArn(v string) *DescribeIdentityIdFormatInput {
  32176. s.PrincipalArn = &v
  32177. return s
  32178. }
  32179. // SetResource sets the Resource field's value.
  32180. func (s *DescribeIdentityIdFormatInput) SetResource(v string) *DescribeIdentityIdFormatInput {
  32181. s.Resource = &v
  32182. return s
  32183. }
  32184. // Contains the output of DescribeIdentityIdFormat.
  32185. type DescribeIdentityIdFormatOutput struct {
  32186. _ struct{} `type:"structure"`
  32187. // Information about the ID format for the resources.
  32188. Statuses []*IdFormat `locationName:"statusSet" locationNameList:"item" type:"list"`
  32189. }
  32190. // String returns the string representation
  32191. func (s DescribeIdentityIdFormatOutput) String() string {
  32192. return awsutil.Prettify(s)
  32193. }
  32194. // GoString returns the string representation
  32195. func (s DescribeIdentityIdFormatOutput) GoString() string {
  32196. return s.String()
  32197. }
  32198. // SetStatuses sets the Statuses field's value.
  32199. func (s *DescribeIdentityIdFormatOutput) SetStatuses(v []*IdFormat) *DescribeIdentityIdFormatOutput {
  32200. s.Statuses = v
  32201. return s
  32202. }
  32203. // Contains the parameters for DescribeImageAttribute.
  32204. type DescribeImageAttributeInput struct {
  32205. _ struct{} `type:"structure"`
  32206. // The AMI attribute.
  32207. //
  32208. // Note: Depending on your account privileges, the blockDeviceMapping attribute
  32209. // may return a Client.AuthFailure error. If this happens, use DescribeImages
  32210. // to get information about the block device mapping for the AMI.
  32211. //
  32212. // Attribute is a required field
  32213. Attribute *string `type:"string" required:"true" enum:"ImageAttributeName"`
  32214. // Checks whether you have the required permissions for the action, without
  32215. // actually making the request, and provides an error response. If you have
  32216. // the required permissions, the error response is DryRunOperation. Otherwise,
  32217. // it is UnauthorizedOperation.
  32218. DryRun *bool `locationName:"dryRun" type:"boolean"`
  32219. // The ID of the AMI.
  32220. //
  32221. // ImageId is a required field
  32222. ImageId *string `type:"string" required:"true"`
  32223. }
  32224. // String returns the string representation
  32225. func (s DescribeImageAttributeInput) String() string {
  32226. return awsutil.Prettify(s)
  32227. }
  32228. // GoString returns the string representation
  32229. func (s DescribeImageAttributeInput) GoString() string {
  32230. return s.String()
  32231. }
  32232. // Validate inspects the fields of the type to determine if they are valid.
  32233. func (s *DescribeImageAttributeInput) Validate() error {
  32234. invalidParams := request.ErrInvalidParams{Context: "DescribeImageAttributeInput"}
  32235. if s.Attribute == nil {
  32236. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  32237. }
  32238. if s.ImageId == nil {
  32239. invalidParams.Add(request.NewErrParamRequired("ImageId"))
  32240. }
  32241. if invalidParams.Len() > 0 {
  32242. return invalidParams
  32243. }
  32244. return nil
  32245. }
  32246. // SetAttribute sets the Attribute field's value.
  32247. func (s *DescribeImageAttributeInput) SetAttribute(v string) *DescribeImageAttributeInput {
  32248. s.Attribute = &v
  32249. return s
  32250. }
  32251. // SetDryRun sets the DryRun field's value.
  32252. func (s *DescribeImageAttributeInput) SetDryRun(v bool) *DescribeImageAttributeInput {
  32253. s.DryRun = &v
  32254. return s
  32255. }
  32256. // SetImageId sets the ImageId field's value.
  32257. func (s *DescribeImageAttributeInput) SetImageId(v string) *DescribeImageAttributeInput {
  32258. s.ImageId = &v
  32259. return s
  32260. }
  32261. // Describes an image attribute.
  32262. type DescribeImageAttributeOutput struct {
  32263. _ struct{} `type:"structure"`
  32264. // One or more block device mapping entries.
  32265. BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  32266. // A description for the AMI.
  32267. Description *AttributeValue `locationName:"description" type:"structure"`
  32268. // The ID of the AMI.
  32269. ImageId *string `locationName:"imageId" type:"string"`
  32270. // The kernel ID.
  32271. KernelId *AttributeValue `locationName:"kernel" type:"structure"`
  32272. // One or more launch permissions.
  32273. LaunchPermissions []*LaunchPermission `locationName:"launchPermission" locationNameList:"item" type:"list"`
  32274. // One or more product codes.
  32275. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  32276. // The RAM disk ID.
  32277. RamdiskId *AttributeValue `locationName:"ramdisk" type:"structure"`
  32278. // Indicates whether enhanced networking with the Intel 82599 Virtual Function
  32279. // interface is enabled.
  32280. SriovNetSupport *AttributeValue `locationName:"sriovNetSupport" type:"structure"`
  32281. }
  32282. // String returns the string representation
  32283. func (s DescribeImageAttributeOutput) String() string {
  32284. return awsutil.Prettify(s)
  32285. }
  32286. // GoString returns the string representation
  32287. func (s DescribeImageAttributeOutput) GoString() string {
  32288. return s.String()
  32289. }
  32290. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  32291. func (s *DescribeImageAttributeOutput) SetBlockDeviceMappings(v []*BlockDeviceMapping) *DescribeImageAttributeOutput {
  32292. s.BlockDeviceMappings = v
  32293. return s
  32294. }
  32295. // SetDescription sets the Description field's value.
  32296. func (s *DescribeImageAttributeOutput) SetDescription(v *AttributeValue) *DescribeImageAttributeOutput {
  32297. s.Description = v
  32298. return s
  32299. }
  32300. // SetImageId sets the ImageId field's value.
  32301. func (s *DescribeImageAttributeOutput) SetImageId(v string) *DescribeImageAttributeOutput {
  32302. s.ImageId = &v
  32303. return s
  32304. }
  32305. // SetKernelId sets the KernelId field's value.
  32306. func (s *DescribeImageAttributeOutput) SetKernelId(v *AttributeValue) *DescribeImageAttributeOutput {
  32307. s.KernelId = v
  32308. return s
  32309. }
  32310. // SetLaunchPermissions sets the LaunchPermissions field's value.
  32311. func (s *DescribeImageAttributeOutput) SetLaunchPermissions(v []*LaunchPermission) *DescribeImageAttributeOutput {
  32312. s.LaunchPermissions = v
  32313. return s
  32314. }
  32315. // SetProductCodes sets the ProductCodes field's value.
  32316. func (s *DescribeImageAttributeOutput) SetProductCodes(v []*ProductCode) *DescribeImageAttributeOutput {
  32317. s.ProductCodes = v
  32318. return s
  32319. }
  32320. // SetRamdiskId sets the RamdiskId field's value.
  32321. func (s *DescribeImageAttributeOutput) SetRamdiskId(v *AttributeValue) *DescribeImageAttributeOutput {
  32322. s.RamdiskId = v
  32323. return s
  32324. }
  32325. // SetSriovNetSupport sets the SriovNetSupport field's value.
  32326. func (s *DescribeImageAttributeOutput) SetSriovNetSupport(v *AttributeValue) *DescribeImageAttributeOutput {
  32327. s.SriovNetSupport = v
  32328. return s
  32329. }
  32330. // Contains the parameters for DescribeImages.
  32331. type DescribeImagesInput struct {
  32332. _ struct{} `type:"structure"`
  32333. // Checks whether you have the required permissions for the action, without
  32334. // actually making the request, and provides an error response. If you have
  32335. // the required permissions, the error response is DryRunOperation. Otherwise,
  32336. // it is UnauthorizedOperation.
  32337. DryRun *bool `locationName:"dryRun" type:"boolean"`
  32338. // Scopes the images by users with explicit launch permissions. Specify an AWS
  32339. // account ID, self (the sender of the request), or all (public AMIs).
  32340. ExecutableUsers []*string `locationName:"ExecutableBy" locationNameList:"ExecutableBy" type:"list"`
  32341. // One or more filters.
  32342. //
  32343. // * architecture - The image architecture (i386 | x86_64).
  32344. //
  32345. // * block-device-mapping.delete-on-termination - A Boolean value that indicates
  32346. // whether the Amazon EBS volume is deleted on instance termination.
  32347. //
  32348. // * block-device-mapping.device-name - The device name specified in the
  32349. // block device mapping (for example, /dev/sdh or xvdh).
  32350. //
  32351. // * block-device-mapping.snapshot-id - The ID of the snapshot used for the
  32352. // EBS volume.
  32353. //
  32354. // * block-device-mapping.volume-size - The volume size of the EBS volume,
  32355. // in GiB.
  32356. //
  32357. // * block-device-mapping.volume-type - The volume type of the EBS volume
  32358. // (gp2 | io1 | st1 | sc1 | standard).
  32359. //
  32360. // * description - The description of the image (provided during image creation).
  32361. //
  32362. // * ena-support - A Boolean that indicates whether enhanced networking with
  32363. // ENA is enabled.
  32364. //
  32365. // * hypervisor - The hypervisor type (ovm | xen).
  32366. //
  32367. // * image-id - The ID of the image.
  32368. //
  32369. // * image-type - The image type (machine | kernel | ramdisk).
  32370. //
  32371. // * is-public - A Boolean that indicates whether the image is public.
  32372. //
  32373. // * kernel-id - The kernel ID.
  32374. //
  32375. // * manifest-location - The location of the image manifest.
  32376. //
  32377. // * name - The name of the AMI (provided during image creation).
  32378. //
  32379. // * owner-alias - String value from an Amazon-maintained list (amazon |
  32380. // aws-marketplace | microsoft) of snapshot owners. Not to be confused with
  32381. // the user-configured AWS account alias, which is set from the IAM console.
  32382. //
  32383. // * owner-id - The AWS account ID of the image owner.
  32384. //
  32385. // * platform - The platform. To only list Windows-based AMIs, use windows.
  32386. //
  32387. // * product-code - The product code.
  32388. //
  32389. // * product-code.type - The type of the product code (devpay | marketplace).
  32390. //
  32391. // * ramdisk-id - The RAM disk ID.
  32392. //
  32393. // * root-device-name - The device name of the root device volume (for example,
  32394. // /dev/sda1).
  32395. //
  32396. // * root-device-type - The type of the root device volume (ebs | instance-store).
  32397. //
  32398. // * state - The state of the image (available | pending | failed).
  32399. //
  32400. // * state-reason-code - The reason code for the state change.
  32401. //
  32402. // * state-reason-message - The message for the state change.
  32403. //
  32404. // * sriov-net-support - A value of simple indicates that enhanced networking
  32405. // with the Intel 82599 VF interface is enabled.
  32406. //
  32407. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  32408. // Specify the key of the tag in the filter name and the value of the tag
  32409. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  32410. // for the filter name and X for the filter value.
  32411. //
  32412. // * tag-key - The key of a tag assigned to the resource. This filter is
  32413. // independent of the tag-value filter. For example, if you use both the
  32414. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  32415. // assigned both the tag key Purpose (regardless of what the tag's value
  32416. // is), and the tag value X (regardless of what the tag's key is). If you
  32417. // want to list only resources where Purpose is X, see the tag:key=value
  32418. // filter.
  32419. //
  32420. // * tag-value - The value of a tag assigned to the resource. This filter
  32421. // is independent of the tag-key filter.
  32422. //
  32423. // * virtualization-type - The virtualization type (paravirtual | hvm).
  32424. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  32425. // One or more image IDs.
  32426. //
  32427. // Default: Describes all images available to you.
  32428. ImageIds []*string `locationName:"ImageId" locationNameList:"ImageId" type:"list"`
  32429. // Filters the images by the owner. Specify an AWS account ID, self (owner is
  32430. // the sender of the request), or an AWS owner alias (valid values are amazon
  32431. // | aws-marketplace | microsoft). Omitting this option returns all images for
  32432. // which you have launch permissions, regardless of ownership.
  32433. Owners []*string `locationName:"Owner" locationNameList:"Owner" type:"list"`
  32434. }
  32435. // String returns the string representation
  32436. func (s DescribeImagesInput) String() string {
  32437. return awsutil.Prettify(s)
  32438. }
  32439. // GoString returns the string representation
  32440. func (s DescribeImagesInput) GoString() string {
  32441. return s.String()
  32442. }
  32443. // SetDryRun sets the DryRun field's value.
  32444. func (s *DescribeImagesInput) SetDryRun(v bool) *DescribeImagesInput {
  32445. s.DryRun = &v
  32446. return s
  32447. }
  32448. // SetExecutableUsers sets the ExecutableUsers field's value.
  32449. func (s *DescribeImagesInput) SetExecutableUsers(v []*string) *DescribeImagesInput {
  32450. s.ExecutableUsers = v
  32451. return s
  32452. }
  32453. // SetFilters sets the Filters field's value.
  32454. func (s *DescribeImagesInput) SetFilters(v []*Filter) *DescribeImagesInput {
  32455. s.Filters = v
  32456. return s
  32457. }
  32458. // SetImageIds sets the ImageIds field's value.
  32459. func (s *DescribeImagesInput) SetImageIds(v []*string) *DescribeImagesInput {
  32460. s.ImageIds = v
  32461. return s
  32462. }
  32463. // SetOwners sets the Owners field's value.
  32464. func (s *DescribeImagesInput) SetOwners(v []*string) *DescribeImagesInput {
  32465. s.Owners = v
  32466. return s
  32467. }
  32468. // Contains the output of DescribeImages.
  32469. type DescribeImagesOutput struct {
  32470. _ struct{} `type:"structure"`
  32471. // Information about one or more images.
  32472. Images []*Image `locationName:"imagesSet" locationNameList:"item" type:"list"`
  32473. }
  32474. // String returns the string representation
  32475. func (s DescribeImagesOutput) String() string {
  32476. return awsutil.Prettify(s)
  32477. }
  32478. // GoString returns the string representation
  32479. func (s DescribeImagesOutput) GoString() string {
  32480. return s.String()
  32481. }
  32482. // SetImages sets the Images field's value.
  32483. func (s *DescribeImagesOutput) SetImages(v []*Image) *DescribeImagesOutput {
  32484. s.Images = v
  32485. return s
  32486. }
  32487. // Contains the parameters for DescribeImportImageTasks.
  32488. type DescribeImportImageTasksInput struct {
  32489. _ struct{} `type:"structure"`
  32490. // Checks whether you have the required permissions for the action, without
  32491. // actually making the request, and provides an error response. If you have
  32492. // the required permissions, the error response is DryRunOperation. Otherwise,
  32493. // it is UnauthorizedOperation.
  32494. DryRun *bool `type:"boolean"`
  32495. // Filter tasks using the task-state filter and one of the following values:
  32496. // active, completed, deleting, deleted.
  32497. Filters []*Filter `locationNameList:"Filter" type:"list"`
  32498. // A list of import image task IDs.
  32499. ImportTaskIds []*string `locationName:"ImportTaskId" locationNameList:"ImportTaskId" type:"list"`
  32500. // The maximum number of results to return in a single call. To retrieve the
  32501. // remaining results, make another call with the returned NextToken value.
  32502. MaxResults *int64 `type:"integer"`
  32503. // A token that indicates the next page of results.
  32504. NextToken *string `type:"string"`
  32505. }
  32506. // String returns the string representation
  32507. func (s DescribeImportImageTasksInput) String() string {
  32508. return awsutil.Prettify(s)
  32509. }
  32510. // GoString returns the string representation
  32511. func (s DescribeImportImageTasksInput) GoString() string {
  32512. return s.String()
  32513. }
  32514. // SetDryRun sets the DryRun field's value.
  32515. func (s *DescribeImportImageTasksInput) SetDryRun(v bool) *DescribeImportImageTasksInput {
  32516. s.DryRun = &v
  32517. return s
  32518. }
  32519. // SetFilters sets the Filters field's value.
  32520. func (s *DescribeImportImageTasksInput) SetFilters(v []*Filter) *DescribeImportImageTasksInput {
  32521. s.Filters = v
  32522. return s
  32523. }
  32524. // SetImportTaskIds sets the ImportTaskIds field's value.
  32525. func (s *DescribeImportImageTasksInput) SetImportTaskIds(v []*string) *DescribeImportImageTasksInput {
  32526. s.ImportTaskIds = v
  32527. return s
  32528. }
  32529. // SetMaxResults sets the MaxResults field's value.
  32530. func (s *DescribeImportImageTasksInput) SetMaxResults(v int64) *DescribeImportImageTasksInput {
  32531. s.MaxResults = &v
  32532. return s
  32533. }
  32534. // SetNextToken sets the NextToken field's value.
  32535. func (s *DescribeImportImageTasksInput) SetNextToken(v string) *DescribeImportImageTasksInput {
  32536. s.NextToken = &v
  32537. return s
  32538. }
  32539. // Contains the output for DescribeImportImageTasks.
  32540. type DescribeImportImageTasksOutput struct {
  32541. _ struct{} `type:"structure"`
  32542. // A list of zero or more import image tasks that are currently active or were
  32543. // completed or canceled in the previous 7 days.
  32544. ImportImageTasks []*ImportImageTask `locationName:"importImageTaskSet" locationNameList:"item" type:"list"`
  32545. // The token to use to get the next page of results. This value is null when
  32546. // there are no more results to return.
  32547. NextToken *string `locationName:"nextToken" type:"string"`
  32548. }
  32549. // String returns the string representation
  32550. func (s DescribeImportImageTasksOutput) String() string {
  32551. return awsutil.Prettify(s)
  32552. }
  32553. // GoString returns the string representation
  32554. func (s DescribeImportImageTasksOutput) GoString() string {
  32555. return s.String()
  32556. }
  32557. // SetImportImageTasks sets the ImportImageTasks field's value.
  32558. func (s *DescribeImportImageTasksOutput) SetImportImageTasks(v []*ImportImageTask) *DescribeImportImageTasksOutput {
  32559. s.ImportImageTasks = v
  32560. return s
  32561. }
  32562. // SetNextToken sets the NextToken field's value.
  32563. func (s *DescribeImportImageTasksOutput) SetNextToken(v string) *DescribeImportImageTasksOutput {
  32564. s.NextToken = &v
  32565. return s
  32566. }
  32567. // Contains the parameters for DescribeImportSnapshotTasks.
  32568. type DescribeImportSnapshotTasksInput struct {
  32569. _ struct{} `type:"structure"`
  32570. // Checks whether you have the required permissions for the action, without
  32571. // actually making the request, and provides an error response. If you have
  32572. // the required permissions, the error response is DryRunOperation. Otherwise,
  32573. // it is UnauthorizedOperation.
  32574. DryRun *bool `type:"boolean"`
  32575. // One or more filters.
  32576. Filters []*Filter `locationNameList:"Filter" type:"list"`
  32577. // A list of import snapshot task IDs.
  32578. ImportTaskIds []*string `locationName:"ImportTaskId" locationNameList:"ImportTaskId" type:"list"`
  32579. // The maximum number of results to return in a single call. To retrieve the
  32580. // remaining results, make another call with the returned NextToken value.
  32581. MaxResults *int64 `type:"integer"`
  32582. // A token that indicates the next page of results.
  32583. NextToken *string `type:"string"`
  32584. }
  32585. // String returns the string representation
  32586. func (s DescribeImportSnapshotTasksInput) String() string {
  32587. return awsutil.Prettify(s)
  32588. }
  32589. // GoString returns the string representation
  32590. func (s DescribeImportSnapshotTasksInput) GoString() string {
  32591. return s.String()
  32592. }
  32593. // SetDryRun sets the DryRun field's value.
  32594. func (s *DescribeImportSnapshotTasksInput) SetDryRun(v bool) *DescribeImportSnapshotTasksInput {
  32595. s.DryRun = &v
  32596. return s
  32597. }
  32598. // SetFilters sets the Filters field's value.
  32599. func (s *DescribeImportSnapshotTasksInput) SetFilters(v []*Filter) *DescribeImportSnapshotTasksInput {
  32600. s.Filters = v
  32601. return s
  32602. }
  32603. // SetImportTaskIds sets the ImportTaskIds field's value.
  32604. func (s *DescribeImportSnapshotTasksInput) SetImportTaskIds(v []*string) *DescribeImportSnapshotTasksInput {
  32605. s.ImportTaskIds = v
  32606. return s
  32607. }
  32608. // SetMaxResults sets the MaxResults field's value.
  32609. func (s *DescribeImportSnapshotTasksInput) SetMaxResults(v int64) *DescribeImportSnapshotTasksInput {
  32610. s.MaxResults = &v
  32611. return s
  32612. }
  32613. // SetNextToken sets the NextToken field's value.
  32614. func (s *DescribeImportSnapshotTasksInput) SetNextToken(v string) *DescribeImportSnapshotTasksInput {
  32615. s.NextToken = &v
  32616. return s
  32617. }
  32618. // Contains the output for DescribeImportSnapshotTasks.
  32619. type DescribeImportSnapshotTasksOutput struct {
  32620. _ struct{} `type:"structure"`
  32621. // A list of zero or more import snapshot tasks that are currently active or
  32622. // were completed or canceled in the previous 7 days.
  32623. ImportSnapshotTasks []*ImportSnapshotTask `locationName:"importSnapshotTaskSet" locationNameList:"item" type:"list"`
  32624. // The token to use to get the next page of results. This value is null when
  32625. // there are no more results to return.
  32626. NextToken *string `locationName:"nextToken" type:"string"`
  32627. }
  32628. // String returns the string representation
  32629. func (s DescribeImportSnapshotTasksOutput) String() string {
  32630. return awsutil.Prettify(s)
  32631. }
  32632. // GoString returns the string representation
  32633. func (s DescribeImportSnapshotTasksOutput) GoString() string {
  32634. return s.String()
  32635. }
  32636. // SetImportSnapshotTasks sets the ImportSnapshotTasks field's value.
  32637. func (s *DescribeImportSnapshotTasksOutput) SetImportSnapshotTasks(v []*ImportSnapshotTask) *DescribeImportSnapshotTasksOutput {
  32638. s.ImportSnapshotTasks = v
  32639. return s
  32640. }
  32641. // SetNextToken sets the NextToken field's value.
  32642. func (s *DescribeImportSnapshotTasksOutput) SetNextToken(v string) *DescribeImportSnapshotTasksOutput {
  32643. s.NextToken = &v
  32644. return s
  32645. }
  32646. // Contains the parameters for DescribeInstanceAttribute.
  32647. type DescribeInstanceAttributeInput struct {
  32648. _ struct{} `type:"structure"`
  32649. // The instance attribute.
  32650. //
  32651. // Note: The enaSupport attribute is not supported at this time.
  32652. //
  32653. // Attribute is a required field
  32654. Attribute *string `locationName:"attribute" type:"string" required:"true" enum:"InstanceAttributeName"`
  32655. // Checks whether you have the required permissions for the action, without
  32656. // actually making the request, and provides an error response. If you have
  32657. // the required permissions, the error response is DryRunOperation. Otherwise,
  32658. // it is UnauthorizedOperation.
  32659. DryRun *bool `locationName:"dryRun" type:"boolean"`
  32660. // The ID of the instance.
  32661. //
  32662. // InstanceId is a required field
  32663. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  32664. }
  32665. // String returns the string representation
  32666. func (s DescribeInstanceAttributeInput) String() string {
  32667. return awsutil.Prettify(s)
  32668. }
  32669. // GoString returns the string representation
  32670. func (s DescribeInstanceAttributeInput) GoString() string {
  32671. return s.String()
  32672. }
  32673. // Validate inspects the fields of the type to determine if they are valid.
  32674. func (s *DescribeInstanceAttributeInput) Validate() error {
  32675. invalidParams := request.ErrInvalidParams{Context: "DescribeInstanceAttributeInput"}
  32676. if s.Attribute == nil {
  32677. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  32678. }
  32679. if s.InstanceId == nil {
  32680. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  32681. }
  32682. if invalidParams.Len() > 0 {
  32683. return invalidParams
  32684. }
  32685. return nil
  32686. }
  32687. // SetAttribute sets the Attribute field's value.
  32688. func (s *DescribeInstanceAttributeInput) SetAttribute(v string) *DescribeInstanceAttributeInput {
  32689. s.Attribute = &v
  32690. return s
  32691. }
  32692. // SetDryRun sets the DryRun field's value.
  32693. func (s *DescribeInstanceAttributeInput) SetDryRun(v bool) *DescribeInstanceAttributeInput {
  32694. s.DryRun = &v
  32695. return s
  32696. }
  32697. // SetInstanceId sets the InstanceId field's value.
  32698. func (s *DescribeInstanceAttributeInput) SetInstanceId(v string) *DescribeInstanceAttributeInput {
  32699. s.InstanceId = &v
  32700. return s
  32701. }
  32702. // Describes an instance attribute.
  32703. type DescribeInstanceAttributeOutput struct {
  32704. _ struct{} `type:"structure"`
  32705. // The block device mapping of the instance.
  32706. BlockDeviceMappings []*InstanceBlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  32707. // If the value is true, you can't terminate the instance through the Amazon
  32708. // EC2 console, CLI, or API; otherwise, you can.
  32709. DisableApiTermination *AttributeBooleanValue `locationName:"disableApiTermination" type:"structure"`
  32710. // Indicates whether the instance is optimized for Amazon EBS I/O.
  32711. EbsOptimized *AttributeBooleanValue `locationName:"ebsOptimized" type:"structure"`
  32712. // Indicates whether enhanced networking with ENA is enabled.
  32713. EnaSupport *AttributeBooleanValue `locationName:"enaSupport" type:"structure"`
  32714. // The security groups associated with the instance.
  32715. Groups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  32716. // The ID of the instance.
  32717. InstanceId *string `locationName:"instanceId" type:"string"`
  32718. // Indicates whether an instance stops or terminates when you initiate shutdown
  32719. // from the instance (using the operating system command for system shutdown).
  32720. InstanceInitiatedShutdownBehavior *AttributeValue `locationName:"instanceInitiatedShutdownBehavior" type:"structure"`
  32721. // The instance type.
  32722. InstanceType *AttributeValue `locationName:"instanceType" type:"structure"`
  32723. // The kernel ID.
  32724. KernelId *AttributeValue `locationName:"kernel" type:"structure"`
  32725. // A list of product codes.
  32726. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  32727. // The RAM disk ID.
  32728. RamdiskId *AttributeValue `locationName:"ramdisk" type:"structure"`
  32729. // The device name of the root device volume (for example, /dev/sda1).
  32730. RootDeviceName *AttributeValue `locationName:"rootDeviceName" type:"structure"`
  32731. // Indicates whether source/destination checking is enabled. A value of true
  32732. // means that checking is enabled, and false means that checking is disabled.
  32733. // This value must be false for a NAT instance to perform NAT.
  32734. SourceDestCheck *AttributeBooleanValue `locationName:"sourceDestCheck" type:"structure"`
  32735. // Indicates whether enhanced networking with the Intel 82599 Virtual Function
  32736. // interface is enabled.
  32737. SriovNetSupport *AttributeValue `locationName:"sriovNetSupport" type:"structure"`
  32738. // The user data.
  32739. UserData *AttributeValue `locationName:"userData" type:"structure"`
  32740. }
  32741. // String returns the string representation
  32742. func (s DescribeInstanceAttributeOutput) String() string {
  32743. return awsutil.Prettify(s)
  32744. }
  32745. // GoString returns the string representation
  32746. func (s DescribeInstanceAttributeOutput) GoString() string {
  32747. return s.String()
  32748. }
  32749. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  32750. func (s *DescribeInstanceAttributeOutput) SetBlockDeviceMappings(v []*InstanceBlockDeviceMapping) *DescribeInstanceAttributeOutput {
  32751. s.BlockDeviceMappings = v
  32752. return s
  32753. }
  32754. // SetDisableApiTermination sets the DisableApiTermination field's value.
  32755. func (s *DescribeInstanceAttributeOutput) SetDisableApiTermination(v *AttributeBooleanValue) *DescribeInstanceAttributeOutput {
  32756. s.DisableApiTermination = v
  32757. return s
  32758. }
  32759. // SetEbsOptimized sets the EbsOptimized field's value.
  32760. func (s *DescribeInstanceAttributeOutput) SetEbsOptimized(v *AttributeBooleanValue) *DescribeInstanceAttributeOutput {
  32761. s.EbsOptimized = v
  32762. return s
  32763. }
  32764. // SetEnaSupport sets the EnaSupport field's value.
  32765. func (s *DescribeInstanceAttributeOutput) SetEnaSupport(v *AttributeBooleanValue) *DescribeInstanceAttributeOutput {
  32766. s.EnaSupport = v
  32767. return s
  32768. }
  32769. // SetGroups sets the Groups field's value.
  32770. func (s *DescribeInstanceAttributeOutput) SetGroups(v []*GroupIdentifier) *DescribeInstanceAttributeOutput {
  32771. s.Groups = v
  32772. return s
  32773. }
  32774. // SetInstanceId sets the InstanceId field's value.
  32775. func (s *DescribeInstanceAttributeOutput) SetInstanceId(v string) *DescribeInstanceAttributeOutput {
  32776. s.InstanceId = &v
  32777. return s
  32778. }
  32779. // SetInstanceInitiatedShutdownBehavior sets the InstanceInitiatedShutdownBehavior field's value.
  32780. func (s *DescribeInstanceAttributeOutput) SetInstanceInitiatedShutdownBehavior(v *AttributeValue) *DescribeInstanceAttributeOutput {
  32781. s.InstanceInitiatedShutdownBehavior = v
  32782. return s
  32783. }
  32784. // SetInstanceType sets the InstanceType field's value.
  32785. func (s *DescribeInstanceAttributeOutput) SetInstanceType(v *AttributeValue) *DescribeInstanceAttributeOutput {
  32786. s.InstanceType = v
  32787. return s
  32788. }
  32789. // SetKernelId sets the KernelId field's value.
  32790. func (s *DescribeInstanceAttributeOutput) SetKernelId(v *AttributeValue) *DescribeInstanceAttributeOutput {
  32791. s.KernelId = v
  32792. return s
  32793. }
  32794. // SetProductCodes sets the ProductCodes field's value.
  32795. func (s *DescribeInstanceAttributeOutput) SetProductCodes(v []*ProductCode) *DescribeInstanceAttributeOutput {
  32796. s.ProductCodes = v
  32797. return s
  32798. }
  32799. // SetRamdiskId sets the RamdiskId field's value.
  32800. func (s *DescribeInstanceAttributeOutput) SetRamdiskId(v *AttributeValue) *DescribeInstanceAttributeOutput {
  32801. s.RamdiskId = v
  32802. return s
  32803. }
  32804. // SetRootDeviceName sets the RootDeviceName field's value.
  32805. func (s *DescribeInstanceAttributeOutput) SetRootDeviceName(v *AttributeValue) *DescribeInstanceAttributeOutput {
  32806. s.RootDeviceName = v
  32807. return s
  32808. }
  32809. // SetSourceDestCheck sets the SourceDestCheck field's value.
  32810. func (s *DescribeInstanceAttributeOutput) SetSourceDestCheck(v *AttributeBooleanValue) *DescribeInstanceAttributeOutput {
  32811. s.SourceDestCheck = v
  32812. return s
  32813. }
  32814. // SetSriovNetSupport sets the SriovNetSupport field's value.
  32815. func (s *DescribeInstanceAttributeOutput) SetSriovNetSupport(v *AttributeValue) *DescribeInstanceAttributeOutput {
  32816. s.SriovNetSupport = v
  32817. return s
  32818. }
  32819. // SetUserData sets the UserData field's value.
  32820. func (s *DescribeInstanceAttributeOutput) SetUserData(v *AttributeValue) *DescribeInstanceAttributeOutput {
  32821. s.UserData = v
  32822. return s
  32823. }
  32824. type DescribeInstanceCreditSpecificationsInput struct {
  32825. _ struct{} `type:"structure"`
  32826. // Checks whether you have the required permissions for the action, without
  32827. // actually making the request, and provides an error response. If you have
  32828. // the required permissions, the error response is DryRunOperation. Otherwise,
  32829. // it is UnauthorizedOperation.
  32830. DryRun *bool `type:"boolean"`
  32831. // One or more filters.
  32832. //
  32833. // * instance-id - The ID of the instance.
  32834. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  32835. // One or more instance IDs.
  32836. //
  32837. // Default: Describes all your instances.
  32838. //
  32839. // Constraints: Maximum 1000 explicitly specified instance IDs.
  32840. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list"`
  32841. // The maximum number of results to return in a single call. To retrieve the
  32842. // remaining results, make another call with the returned NextToken value. This
  32843. // value can be between 5 and 1000. You cannot specify this parameter and the
  32844. // instance IDs parameter in the same call.
  32845. MaxResults *int64 `type:"integer"`
  32846. // The token to retrieve the next page of results.
  32847. NextToken *string `type:"string"`
  32848. }
  32849. // String returns the string representation
  32850. func (s DescribeInstanceCreditSpecificationsInput) String() string {
  32851. return awsutil.Prettify(s)
  32852. }
  32853. // GoString returns the string representation
  32854. func (s DescribeInstanceCreditSpecificationsInput) GoString() string {
  32855. return s.String()
  32856. }
  32857. // SetDryRun sets the DryRun field's value.
  32858. func (s *DescribeInstanceCreditSpecificationsInput) SetDryRun(v bool) *DescribeInstanceCreditSpecificationsInput {
  32859. s.DryRun = &v
  32860. return s
  32861. }
  32862. // SetFilters sets the Filters field's value.
  32863. func (s *DescribeInstanceCreditSpecificationsInput) SetFilters(v []*Filter) *DescribeInstanceCreditSpecificationsInput {
  32864. s.Filters = v
  32865. return s
  32866. }
  32867. // SetInstanceIds sets the InstanceIds field's value.
  32868. func (s *DescribeInstanceCreditSpecificationsInput) SetInstanceIds(v []*string) *DescribeInstanceCreditSpecificationsInput {
  32869. s.InstanceIds = v
  32870. return s
  32871. }
  32872. // SetMaxResults sets the MaxResults field's value.
  32873. func (s *DescribeInstanceCreditSpecificationsInput) SetMaxResults(v int64) *DescribeInstanceCreditSpecificationsInput {
  32874. s.MaxResults = &v
  32875. return s
  32876. }
  32877. // SetNextToken sets the NextToken field's value.
  32878. func (s *DescribeInstanceCreditSpecificationsInput) SetNextToken(v string) *DescribeInstanceCreditSpecificationsInput {
  32879. s.NextToken = &v
  32880. return s
  32881. }
  32882. type DescribeInstanceCreditSpecificationsOutput struct {
  32883. _ struct{} `type:"structure"`
  32884. // Information about the credit option for CPU usage of an instance.
  32885. InstanceCreditSpecifications []*InstanceCreditSpecification `locationName:"instanceCreditSpecificationSet" locationNameList:"item" type:"list"`
  32886. // The token to use to retrieve the next page of results. This value is null
  32887. // when there are no more results to return.
  32888. NextToken *string `locationName:"nextToken" type:"string"`
  32889. }
  32890. // String returns the string representation
  32891. func (s DescribeInstanceCreditSpecificationsOutput) String() string {
  32892. return awsutil.Prettify(s)
  32893. }
  32894. // GoString returns the string representation
  32895. func (s DescribeInstanceCreditSpecificationsOutput) GoString() string {
  32896. return s.String()
  32897. }
  32898. // SetInstanceCreditSpecifications sets the InstanceCreditSpecifications field's value.
  32899. func (s *DescribeInstanceCreditSpecificationsOutput) SetInstanceCreditSpecifications(v []*InstanceCreditSpecification) *DescribeInstanceCreditSpecificationsOutput {
  32900. s.InstanceCreditSpecifications = v
  32901. return s
  32902. }
  32903. // SetNextToken sets the NextToken field's value.
  32904. func (s *DescribeInstanceCreditSpecificationsOutput) SetNextToken(v string) *DescribeInstanceCreditSpecificationsOutput {
  32905. s.NextToken = &v
  32906. return s
  32907. }
  32908. // Contains the parameters for DescribeInstanceStatus.
  32909. type DescribeInstanceStatusInput struct {
  32910. _ struct{} `type:"structure"`
  32911. // Checks whether you have the required permissions for the action, without
  32912. // actually making the request, and provides an error response. If you have
  32913. // the required permissions, the error response is DryRunOperation. Otherwise,
  32914. // it is UnauthorizedOperation.
  32915. DryRun *bool `locationName:"dryRun" type:"boolean"`
  32916. // One or more filters.
  32917. //
  32918. // * availability-zone - The Availability Zone of the instance.
  32919. //
  32920. // * event.code - The code for the scheduled event (instance-reboot | system-reboot
  32921. // | system-maintenance | instance-retirement | instance-stop).
  32922. //
  32923. // * event.description - A description of the event.
  32924. //
  32925. // * event.not-after - The latest end time for the scheduled event (for example,
  32926. // 2014-09-15T17:15:20.000Z).
  32927. //
  32928. // * event.not-before - The earliest start time for the scheduled event (for
  32929. // example, 2014-09-15T17:15:20.000Z).
  32930. //
  32931. // * instance-state-code - The code for the instance state, as a 16-bit unsigned
  32932. // integer. The high byte is an opaque internal value and should be ignored.
  32933. // The low byte is set based on the state represented. The valid values are
  32934. // 0 (pending), 16 (running), 32 (shutting-down), 48 (terminated), 64 (stopping),
  32935. // and 80 (stopped).
  32936. //
  32937. // * instance-state-name - The state of the instance (pending | running |
  32938. // shutting-down | terminated | stopping | stopped).
  32939. //
  32940. // * instance-status.reachability - Filters on instance status where the
  32941. // name is reachability (passed | failed | initializing | insufficient-data).
  32942. //
  32943. // * instance-status.status - The status of the instance (ok | impaired |
  32944. // initializing | insufficient-data | not-applicable).
  32945. //
  32946. // * system-status.reachability - Filters on system status where the name
  32947. // is reachability (passed | failed | initializing | insufficient-data).
  32948. //
  32949. // * system-status.status - The system status of the instance (ok | impaired
  32950. // | initializing | insufficient-data | not-applicable).
  32951. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  32952. // When true, includes the health status for all instances. When false, includes
  32953. // the health status for running instances only.
  32954. //
  32955. // Default: false
  32956. IncludeAllInstances *bool `locationName:"includeAllInstances" type:"boolean"`
  32957. // One or more instance IDs.
  32958. //
  32959. // Default: Describes all your instances.
  32960. //
  32961. // Constraints: Maximum 100 explicitly specified instance IDs.
  32962. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list"`
  32963. // The maximum number of results to return in a single call. To retrieve the
  32964. // remaining results, make another call with the returned NextToken value. This
  32965. // value can be between 5 and 1000. You cannot specify this parameter and the
  32966. // instance IDs parameter in the same call.
  32967. MaxResults *int64 `type:"integer"`
  32968. // The token to retrieve the next page of results.
  32969. NextToken *string `type:"string"`
  32970. }
  32971. // String returns the string representation
  32972. func (s DescribeInstanceStatusInput) String() string {
  32973. return awsutil.Prettify(s)
  32974. }
  32975. // GoString returns the string representation
  32976. func (s DescribeInstanceStatusInput) GoString() string {
  32977. return s.String()
  32978. }
  32979. // SetDryRun sets the DryRun field's value.
  32980. func (s *DescribeInstanceStatusInput) SetDryRun(v bool) *DescribeInstanceStatusInput {
  32981. s.DryRun = &v
  32982. return s
  32983. }
  32984. // SetFilters sets the Filters field's value.
  32985. func (s *DescribeInstanceStatusInput) SetFilters(v []*Filter) *DescribeInstanceStatusInput {
  32986. s.Filters = v
  32987. return s
  32988. }
  32989. // SetIncludeAllInstances sets the IncludeAllInstances field's value.
  32990. func (s *DescribeInstanceStatusInput) SetIncludeAllInstances(v bool) *DescribeInstanceStatusInput {
  32991. s.IncludeAllInstances = &v
  32992. return s
  32993. }
  32994. // SetInstanceIds sets the InstanceIds field's value.
  32995. func (s *DescribeInstanceStatusInput) SetInstanceIds(v []*string) *DescribeInstanceStatusInput {
  32996. s.InstanceIds = v
  32997. return s
  32998. }
  32999. // SetMaxResults sets the MaxResults field's value.
  33000. func (s *DescribeInstanceStatusInput) SetMaxResults(v int64) *DescribeInstanceStatusInput {
  33001. s.MaxResults = &v
  33002. return s
  33003. }
  33004. // SetNextToken sets the NextToken field's value.
  33005. func (s *DescribeInstanceStatusInput) SetNextToken(v string) *DescribeInstanceStatusInput {
  33006. s.NextToken = &v
  33007. return s
  33008. }
  33009. // Contains the output of DescribeInstanceStatus.
  33010. type DescribeInstanceStatusOutput struct {
  33011. _ struct{} `type:"structure"`
  33012. // One or more instance status descriptions.
  33013. InstanceStatuses []*InstanceStatus `locationName:"instanceStatusSet" locationNameList:"item" type:"list"`
  33014. // The token to use to retrieve the next page of results. This value is null
  33015. // when there are no more results to return.
  33016. NextToken *string `locationName:"nextToken" type:"string"`
  33017. }
  33018. // String returns the string representation
  33019. func (s DescribeInstanceStatusOutput) String() string {
  33020. return awsutil.Prettify(s)
  33021. }
  33022. // GoString returns the string representation
  33023. func (s DescribeInstanceStatusOutput) GoString() string {
  33024. return s.String()
  33025. }
  33026. // SetInstanceStatuses sets the InstanceStatuses field's value.
  33027. func (s *DescribeInstanceStatusOutput) SetInstanceStatuses(v []*InstanceStatus) *DescribeInstanceStatusOutput {
  33028. s.InstanceStatuses = v
  33029. return s
  33030. }
  33031. // SetNextToken sets the NextToken field's value.
  33032. func (s *DescribeInstanceStatusOutput) SetNextToken(v string) *DescribeInstanceStatusOutput {
  33033. s.NextToken = &v
  33034. return s
  33035. }
  33036. // Contains the parameters for DescribeInstances.
  33037. type DescribeInstancesInput struct {
  33038. _ struct{} `type:"structure"`
  33039. // Checks whether you have the required permissions for the action, without
  33040. // actually making the request, and provides an error response. If you have
  33041. // the required permissions, the error response is DryRunOperation. Otherwise,
  33042. // it is UnauthorizedOperation.
  33043. DryRun *bool `locationName:"dryRun" type:"boolean"`
  33044. // One or more filters.
  33045. //
  33046. // * affinity - The affinity setting for an instance running on a Dedicated
  33047. // Host (default | host).
  33048. //
  33049. // * architecture - The instance architecture (i386 | x86_64).
  33050. //
  33051. // * availability-zone - The Availability Zone of the instance.
  33052. //
  33053. // * block-device-mapping.attach-time - The attach time for an EBS volume
  33054. // mapped to the instance, for example, 2010-09-15T17:15:20.000Z.
  33055. //
  33056. // * block-device-mapping.delete-on-termination - A Boolean that indicates
  33057. // whether the EBS volume is deleted on instance termination.
  33058. //
  33059. // * block-device-mapping.device-name - The device name specified in the
  33060. // block device mapping (for example, /dev/sdh or xvdh).
  33061. //
  33062. // * block-device-mapping.status - The status for the EBS volume (attaching
  33063. // | attached | detaching | detached).
  33064. //
  33065. // * block-device-mapping.volume-id - The volume ID of the EBS volume.
  33066. //
  33067. // * client-token - The idempotency token you provided when you launched
  33068. // the instance.
  33069. //
  33070. // * dns-name - The public DNS name of the instance.
  33071. //
  33072. // * group-id - The ID of the security group for the instance. EC2-Classic
  33073. // only.
  33074. //
  33075. // * group-name - The name of the security group for the instance. EC2-Classic
  33076. // only.
  33077. //
  33078. // * host-id - The ID of the Dedicated Host on which the instance is running,
  33079. // if applicable.
  33080. //
  33081. // * hypervisor - The hypervisor type of the instance (ovm | xen).
  33082. //
  33083. // * iam-instance-profile.arn - The instance profile associated with the
  33084. // instance. Specified as an ARN.
  33085. //
  33086. // * image-id - The ID of the image used to launch the instance.
  33087. //
  33088. // * instance-id - The ID of the instance.
  33089. //
  33090. // * instance-lifecycle - Indicates whether this is a Spot Instance or a
  33091. // Scheduled Instance (spot | scheduled).
  33092. //
  33093. // * instance-state-code - The state of the instance, as a 16-bit unsigned
  33094. // integer. The high byte is an opaque internal value and should be ignored.
  33095. // The low byte is set based on the state represented. The valid values are:
  33096. // 0 (pending), 16 (running), 32 (shutting-down), 48 (terminated), 64 (stopping),
  33097. // and 80 (stopped).
  33098. //
  33099. // * instance-state-name - The state of the instance (pending | running |
  33100. // shutting-down | terminated | stopping | stopped).
  33101. //
  33102. // * instance-type - The type of instance (for example, t2.micro).
  33103. //
  33104. // * instance.group-id - The ID of the security group for the instance.
  33105. //
  33106. // * instance.group-name - The name of the security group for the instance.
  33107. //
  33108. //
  33109. // * ip-address - The public IPv4 address of the instance.
  33110. //
  33111. // * kernel-id - The kernel ID.
  33112. //
  33113. // * key-name - The name of the key pair used when the instance was launched.
  33114. //
  33115. // * launch-index - When launching multiple instances, this is the index
  33116. // for the instance in the launch group (for example, 0, 1, 2, and so on).
  33117. //
  33118. //
  33119. // * launch-time - The time when the instance was launched.
  33120. //
  33121. // * monitoring-state - Indicates whether detailed monitoring is enabled
  33122. // (disabled | enabled).
  33123. //
  33124. // * network-interface.addresses.private-ip-address - The private IPv4 address
  33125. // associated with the network interface.
  33126. //
  33127. // * network-interface.addresses.primary - Specifies whether the IPv4 address
  33128. // of the network interface is the primary private IPv4 address.
  33129. //
  33130. // * network-interface.addresses.association.public-ip - The ID of the association
  33131. // of an Elastic IP address (IPv4) with a network interface.
  33132. //
  33133. // * network-interface.addresses.association.ip-owner-id - The owner ID of
  33134. // the private IPv4 address associated with the network interface.
  33135. //
  33136. // * network-interface.association.public-ip - The address of the Elastic
  33137. // IP address (IPv4) bound to the network interface.
  33138. //
  33139. // * network-interface.association.ip-owner-id - The owner of the Elastic
  33140. // IP address (IPv4) associated with the network interface.
  33141. //
  33142. // * network-interface.association.allocation-id - The allocation ID returned
  33143. // when you allocated the Elastic IP address (IPv4) for your network interface.
  33144. //
  33145. // * network-interface.association.association-id - The association ID returned
  33146. // when the network interface was associated with an IPv4 address.
  33147. //
  33148. // * network-interface.attachment.attachment-id - The ID of the interface
  33149. // attachment.
  33150. //
  33151. // * network-interface.attachment.instance-id - The ID of the instance to
  33152. // which the network interface is attached.
  33153. //
  33154. // * network-interface.attachment.instance-owner-id - The owner ID of the
  33155. // instance to which the network interface is attached.
  33156. //
  33157. // * network-interface.attachment.device-index - The device index to which
  33158. // the network interface is attached.
  33159. //
  33160. // * network-interface.attachment.status - The status of the attachment (attaching
  33161. // | attached | detaching | detached).
  33162. //
  33163. // * network-interface.attachment.attach-time - The time that the network
  33164. // interface was attached to an instance.
  33165. //
  33166. // * network-interface.attachment.delete-on-termination - Specifies whether
  33167. // the attachment is deleted when an instance is terminated.
  33168. //
  33169. // * network-interface.availability-zone - The Availability Zone for the
  33170. // network interface.
  33171. //
  33172. // * network-interface.description - The description of the network interface.
  33173. //
  33174. // * network-interface.group-id - The ID of a security group associated with
  33175. // the network interface.
  33176. //
  33177. // * network-interface.group-name - The name of a security group associated
  33178. // with the network interface.
  33179. //
  33180. // * network-interface.ipv6-addresses.ipv6-address - The IPv6 address associated
  33181. // with the network interface.
  33182. //
  33183. // * network-interface.mac-address - The MAC address of the network interface.
  33184. //
  33185. // * network-interface.network-interface-id - The ID of the network interface.
  33186. //
  33187. // * network-interface.owner-id - The ID of the owner of the network interface.
  33188. //
  33189. // * network-interface.private-dns-name - The private DNS name of the network
  33190. // interface.
  33191. //
  33192. // * network-interface.requester-id - The requester ID for the network interface.
  33193. //
  33194. // * network-interface.requester-managed - Indicates whether the network
  33195. // interface is being managed by AWS.
  33196. //
  33197. // * network-interface.status - The status of the network interface (available)
  33198. // | in-use).
  33199. //
  33200. // * network-interface.source-dest-check - Whether the network interface
  33201. // performs source/destination checking. A value of true means that checking
  33202. // is enabled, and false means that checking is disabled. The value must
  33203. // be false for the network interface to perform network address translation
  33204. // (NAT) in your VPC.
  33205. //
  33206. // * network-interface.subnet-id - The ID of the subnet for the network interface.
  33207. //
  33208. // * network-interface.vpc-id - The ID of the VPC for the network interface.
  33209. //
  33210. // * owner-id - The AWS account ID of the instance owner.
  33211. //
  33212. // * placement-group-name - The name of the placement group for the instance.
  33213. //
  33214. // * platform - The platform. Use windows if you have Windows instances;
  33215. // otherwise, leave blank.
  33216. //
  33217. // * private-dns-name - The private IPv4 DNS name of the instance.
  33218. //
  33219. // * private-ip-address - The private IPv4 address of the instance.
  33220. //
  33221. // * product-code - The product code associated with the AMI used to launch
  33222. // the instance.
  33223. //
  33224. // * product-code.type - The type of product code (devpay | marketplace).
  33225. //
  33226. // * ramdisk-id - The RAM disk ID.
  33227. //
  33228. // * reason - The reason for the current state of the instance (for example,
  33229. // shows "User Initiated [date]" when you stop or terminate the instance).
  33230. // Similar to the state-reason-code filter.
  33231. //
  33232. // * requester-id - The ID of the entity that launched the instance on your
  33233. // behalf (for example, AWS Management Console, Auto Scaling, and so on).
  33234. //
  33235. // * reservation-id - The ID of the instance's reservation. A reservation
  33236. // ID is created any time you launch an instance. A reservation ID has a
  33237. // one-to-one relationship with an instance launch request, but can be associated
  33238. // with more than one instance if you launch multiple instances using the
  33239. // same launch request. For example, if you launch one instance, you get
  33240. // one reservation ID. If you launch ten instances using the same launch
  33241. // request, you also get one reservation ID.
  33242. //
  33243. // * root-device-name - The device name of the root device volume (for example,
  33244. // /dev/sda1).
  33245. //
  33246. // * root-device-type - The type of the root device volume (ebs | instance-store).
  33247. //
  33248. // * source-dest-check - Indicates whether the instance performs source/destination
  33249. // checking. A value of true means that checking is enabled, and false means
  33250. // that checking is disabled. The value must be false for the instance to
  33251. // perform network address translation (NAT) in your VPC.
  33252. //
  33253. // * spot-instance-request-id - The ID of the Spot Instance request.
  33254. //
  33255. // * state-reason-code - The reason code for the state change.
  33256. //
  33257. // * state-reason-message - A message that describes the state change.
  33258. //
  33259. // * subnet-id - The ID of the subnet for the instance.
  33260. //
  33261. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  33262. // Specify the key of the tag in the filter name and the value of the tag
  33263. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  33264. // for the filter name and X for the filter value.
  33265. //
  33266. // * tag-key - The key of a tag assigned to the resource. This filter is
  33267. // independent of the tag-value filter. For example, if you use both the
  33268. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  33269. // assigned both the tag key Purpose (regardless of what the tag's value
  33270. // is), and the tag value X (regardless of the tag's key). If you want to
  33271. // list only resources where Purpose is X, see the tag:key=value filter.
  33272. //
  33273. // * tag-value - The value of a tag assigned to the resource. This filter
  33274. // is independent of the tag-key filter.
  33275. //
  33276. // * tenancy - The tenancy of an instance (dedicated | default | host).
  33277. //
  33278. // * virtualization-type - The virtualization type of the instance (paravirtual
  33279. // | hvm).
  33280. //
  33281. // * vpc-id - The ID of the VPC that the instance is running in.
  33282. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  33283. // One or more instance IDs.
  33284. //
  33285. // Default: Describes all your instances.
  33286. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list"`
  33287. // The maximum number of results to return in a single call. To retrieve the
  33288. // remaining results, make another call with the returned NextToken value. This
  33289. // value can be between 5 and 1000. You cannot specify this parameter and the
  33290. // instance IDs parameter in the same call.
  33291. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  33292. // The token to request the next page of results.
  33293. NextToken *string `locationName:"nextToken" type:"string"`
  33294. }
  33295. // String returns the string representation
  33296. func (s DescribeInstancesInput) String() string {
  33297. return awsutil.Prettify(s)
  33298. }
  33299. // GoString returns the string representation
  33300. func (s DescribeInstancesInput) GoString() string {
  33301. return s.String()
  33302. }
  33303. // SetDryRun sets the DryRun field's value.
  33304. func (s *DescribeInstancesInput) SetDryRun(v bool) *DescribeInstancesInput {
  33305. s.DryRun = &v
  33306. return s
  33307. }
  33308. // SetFilters sets the Filters field's value.
  33309. func (s *DescribeInstancesInput) SetFilters(v []*Filter) *DescribeInstancesInput {
  33310. s.Filters = v
  33311. return s
  33312. }
  33313. // SetInstanceIds sets the InstanceIds field's value.
  33314. func (s *DescribeInstancesInput) SetInstanceIds(v []*string) *DescribeInstancesInput {
  33315. s.InstanceIds = v
  33316. return s
  33317. }
  33318. // SetMaxResults sets the MaxResults field's value.
  33319. func (s *DescribeInstancesInput) SetMaxResults(v int64) *DescribeInstancesInput {
  33320. s.MaxResults = &v
  33321. return s
  33322. }
  33323. // SetNextToken sets the NextToken field's value.
  33324. func (s *DescribeInstancesInput) SetNextToken(v string) *DescribeInstancesInput {
  33325. s.NextToken = &v
  33326. return s
  33327. }
  33328. // Contains the output of DescribeInstances.
  33329. type DescribeInstancesOutput struct {
  33330. _ struct{} `type:"structure"`
  33331. // The token to use to retrieve the next page of results. This value is null
  33332. // when there are no more results to return.
  33333. NextToken *string `locationName:"nextToken" type:"string"`
  33334. // Zero or more reservations.
  33335. Reservations []*Reservation `locationName:"reservationSet" locationNameList:"item" type:"list"`
  33336. }
  33337. // String returns the string representation
  33338. func (s DescribeInstancesOutput) String() string {
  33339. return awsutil.Prettify(s)
  33340. }
  33341. // GoString returns the string representation
  33342. func (s DescribeInstancesOutput) GoString() string {
  33343. return s.String()
  33344. }
  33345. // SetNextToken sets the NextToken field's value.
  33346. func (s *DescribeInstancesOutput) SetNextToken(v string) *DescribeInstancesOutput {
  33347. s.NextToken = &v
  33348. return s
  33349. }
  33350. // SetReservations sets the Reservations field's value.
  33351. func (s *DescribeInstancesOutput) SetReservations(v []*Reservation) *DescribeInstancesOutput {
  33352. s.Reservations = v
  33353. return s
  33354. }
  33355. // Contains the parameters for DescribeInternetGateways.
  33356. type DescribeInternetGatewaysInput struct {
  33357. _ struct{} `type:"structure"`
  33358. // Checks whether you have the required permissions for the action, without
  33359. // actually making the request, and provides an error response. If you have
  33360. // the required permissions, the error response is DryRunOperation. Otherwise,
  33361. // it is UnauthorizedOperation.
  33362. DryRun *bool `locationName:"dryRun" type:"boolean"`
  33363. // One or more filters.
  33364. //
  33365. // * attachment.state - The current state of the attachment between the gateway
  33366. // and the VPC (available). Present only if a VPC is attached.
  33367. //
  33368. // * attachment.vpc-id - The ID of an attached VPC.
  33369. //
  33370. // * internet-gateway-id - The ID of the Internet gateway.
  33371. //
  33372. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  33373. // Specify the key of the tag in the filter name and the value of the tag
  33374. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  33375. // for the filter name and X for the filter value.
  33376. //
  33377. // * tag-key - The key of a tag assigned to the resource. This filter is
  33378. // independent of the tag-value filter. For example, if you use both the
  33379. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  33380. // assigned both the tag key Purpose (regardless of what the tag's value
  33381. // is), and the tag value X (regardless of what the tag's key is). If you
  33382. // want to list only resources where Purpose is X, see the tag:key=value
  33383. // filter.
  33384. //
  33385. // * tag-value - The value of a tag assigned to the resource. This filter
  33386. // is independent of the tag-key filter.
  33387. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  33388. // One or more Internet gateway IDs.
  33389. //
  33390. // Default: Describes all your Internet gateways.
  33391. InternetGatewayIds []*string `locationName:"internetGatewayId" locationNameList:"item" type:"list"`
  33392. }
  33393. // String returns the string representation
  33394. func (s DescribeInternetGatewaysInput) String() string {
  33395. return awsutil.Prettify(s)
  33396. }
  33397. // GoString returns the string representation
  33398. func (s DescribeInternetGatewaysInput) GoString() string {
  33399. return s.String()
  33400. }
  33401. // SetDryRun sets the DryRun field's value.
  33402. func (s *DescribeInternetGatewaysInput) SetDryRun(v bool) *DescribeInternetGatewaysInput {
  33403. s.DryRun = &v
  33404. return s
  33405. }
  33406. // SetFilters sets the Filters field's value.
  33407. func (s *DescribeInternetGatewaysInput) SetFilters(v []*Filter) *DescribeInternetGatewaysInput {
  33408. s.Filters = v
  33409. return s
  33410. }
  33411. // SetInternetGatewayIds sets the InternetGatewayIds field's value.
  33412. func (s *DescribeInternetGatewaysInput) SetInternetGatewayIds(v []*string) *DescribeInternetGatewaysInput {
  33413. s.InternetGatewayIds = v
  33414. return s
  33415. }
  33416. // Contains the output of DescribeInternetGateways.
  33417. type DescribeInternetGatewaysOutput struct {
  33418. _ struct{} `type:"structure"`
  33419. // Information about one or more Internet gateways.
  33420. InternetGateways []*InternetGateway `locationName:"internetGatewaySet" locationNameList:"item" type:"list"`
  33421. }
  33422. // String returns the string representation
  33423. func (s DescribeInternetGatewaysOutput) String() string {
  33424. return awsutil.Prettify(s)
  33425. }
  33426. // GoString returns the string representation
  33427. func (s DescribeInternetGatewaysOutput) GoString() string {
  33428. return s.String()
  33429. }
  33430. // SetInternetGateways sets the InternetGateways field's value.
  33431. func (s *DescribeInternetGatewaysOutput) SetInternetGateways(v []*InternetGateway) *DescribeInternetGatewaysOutput {
  33432. s.InternetGateways = v
  33433. return s
  33434. }
  33435. // Contains the parameters for DescribeKeyPairs.
  33436. type DescribeKeyPairsInput struct {
  33437. _ struct{} `type:"structure"`
  33438. // Checks whether you have the required permissions for the action, without
  33439. // actually making the request, and provides an error response. If you have
  33440. // the required permissions, the error response is DryRunOperation. Otherwise,
  33441. // it is UnauthorizedOperation.
  33442. DryRun *bool `locationName:"dryRun" type:"boolean"`
  33443. // One or more filters.
  33444. //
  33445. // * fingerprint - The fingerprint of the key pair.
  33446. //
  33447. // * key-name - The name of the key pair.
  33448. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  33449. // One or more key pair names.
  33450. //
  33451. // Default: Describes all your key pairs.
  33452. KeyNames []*string `locationName:"KeyName" locationNameList:"KeyName" type:"list"`
  33453. }
  33454. // String returns the string representation
  33455. func (s DescribeKeyPairsInput) String() string {
  33456. return awsutil.Prettify(s)
  33457. }
  33458. // GoString returns the string representation
  33459. func (s DescribeKeyPairsInput) GoString() string {
  33460. return s.String()
  33461. }
  33462. // SetDryRun sets the DryRun field's value.
  33463. func (s *DescribeKeyPairsInput) SetDryRun(v bool) *DescribeKeyPairsInput {
  33464. s.DryRun = &v
  33465. return s
  33466. }
  33467. // SetFilters sets the Filters field's value.
  33468. func (s *DescribeKeyPairsInput) SetFilters(v []*Filter) *DescribeKeyPairsInput {
  33469. s.Filters = v
  33470. return s
  33471. }
  33472. // SetKeyNames sets the KeyNames field's value.
  33473. func (s *DescribeKeyPairsInput) SetKeyNames(v []*string) *DescribeKeyPairsInput {
  33474. s.KeyNames = v
  33475. return s
  33476. }
  33477. // Contains the output of DescribeKeyPairs.
  33478. type DescribeKeyPairsOutput struct {
  33479. _ struct{} `type:"structure"`
  33480. // Information about one or more key pairs.
  33481. KeyPairs []*KeyPairInfo `locationName:"keySet" locationNameList:"item" type:"list"`
  33482. }
  33483. // String returns the string representation
  33484. func (s DescribeKeyPairsOutput) String() string {
  33485. return awsutil.Prettify(s)
  33486. }
  33487. // GoString returns the string representation
  33488. func (s DescribeKeyPairsOutput) GoString() string {
  33489. return s.String()
  33490. }
  33491. // SetKeyPairs sets the KeyPairs field's value.
  33492. func (s *DescribeKeyPairsOutput) SetKeyPairs(v []*KeyPairInfo) *DescribeKeyPairsOutput {
  33493. s.KeyPairs = v
  33494. return s
  33495. }
  33496. type DescribeLaunchTemplateVersionsInput struct {
  33497. _ struct{} `type:"structure"`
  33498. // Checks whether you have the required permissions for the action, without
  33499. // actually making the request, and provides an error response. If you have
  33500. // the required permissions, the error response is DryRunOperation. Otherwise,
  33501. // it is UnauthorizedOperation.
  33502. DryRun *bool `type:"boolean"`
  33503. // One or more filters.
  33504. //
  33505. // * create-time - The time the launch template version was created.
  33506. //
  33507. // * ebs-optimized - A boolean that indicates whether the instance is optimized
  33508. // for Amazon EBS I/O.
  33509. //
  33510. // * iam-instance-profile - The ARN of the IAM instance profile.
  33511. //
  33512. // * image-id - The ID of the AMI.
  33513. //
  33514. // * instance-type - The instance type.
  33515. //
  33516. // * is-default-version - A boolean that indicates whether the launch template
  33517. // version is the default version.
  33518. //
  33519. // * kernel-id - The kernel ID.
  33520. //
  33521. // * ram-disk-id - The RAM disk ID.
  33522. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  33523. // The ID of the launch template. You must specify either the launch template
  33524. // ID or launch template name in the request.
  33525. LaunchTemplateId *string `type:"string"`
  33526. // The name of the launch template. You must specify either the launch template
  33527. // ID or launch template name in the request.
  33528. LaunchTemplateName *string `min:"3" type:"string"`
  33529. // The maximum number of results to return in a single call. To retrieve the
  33530. // remaining results, make another call with the returned NextToken value. This
  33531. // value can be between 5 and 1000.
  33532. MaxResults *int64 `type:"integer"`
  33533. // The version number up to which to describe launch template versions.
  33534. MaxVersion *string `type:"string"`
  33535. // The version number after which to describe launch template versions.
  33536. MinVersion *string `type:"string"`
  33537. // The token to request the next page of results.
  33538. NextToken *string `type:"string"`
  33539. // One or more versions of the launch template.
  33540. Versions []*string `locationName:"LaunchTemplateVersion" locationNameList:"item" type:"list"`
  33541. }
  33542. // String returns the string representation
  33543. func (s DescribeLaunchTemplateVersionsInput) String() string {
  33544. return awsutil.Prettify(s)
  33545. }
  33546. // GoString returns the string representation
  33547. func (s DescribeLaunchTemplateVersionsInput) GoString() string {
  33548. return s.String()
  33549. }
  33550. // Validate inspects the fields of the type to determine if they are valid.
  33551. func (s *DescribeLaunchTemplateVersionsInput) Validate() error {
  33552. invalidParams := request.ErrInvalidParams{Context: "DescribeLaunchTemplateVersionsInput"}
  33553. if s.LaunchTemplateName != nil && len(*s.LaunchTemplateName) < 3 {
  33554. invalidParams.Add(request.NewErrParamMinLen("LaunchTemplateName", 3))
  33555. }
  33556. if invalidParams.Len() > 0 {
  33557. return invalidParams
  33558. }
  33559. return nil
  33560. }
  33561. // SetDryRun sets the DryRun field's value.
  33562. func (s *DescribeLaunchTemplateVersionsInput) SetDryRun(v bool) *DescribeLaunchTemplateVersionsInput {
  33563. s.DryRun = &v
  33564. return s
  33565. }
  33566. // SetFilters sets the Filters field's value.
  33567. func (s *DescribeLaunchTemplateVersionsInput) SetFilters(v []*Filter) *DescribeLaunchTemplateVersionsInput {
  33568. s.Filters = v
  33569. return s
  33570. }
  33571. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  33572. func (s *DescribeLaunchTemplateVersionsInput) SetLaunchTemplateId(v string) *DescribeLaunchTemplateVersionsInput {
  33573. s.LaunchTemplateId = &v
  33574. return s
  33575. }
  33576. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  33577. func (s *DescribeLaunchTemplateVersionsInput) SetLaunchTemplateName(v string) *DescribeLaunchTemplateVersionsInput {
  33578. s.LaunchTemplateName = &v
  33579. return s
  33580. }
  33581. // SetMaxResults sets the MaxResults field's value.
  33582. func (s *DescribeLaunchTemplateVersionsInput) SetMaxResults(v int64) *DescribeLaunchTemplateVersionsInput {
  33583. s.MaxResults = &v
  33584. return s
  33585. }
  33586. // SetMaxVersion sets the MaxVersion field's value.
  33587. func (s *DescribeLaunchTemplateVersionsInput) SetMaxVersion(v string) *DescribeLaunchTemplateVersionsInput {
  33588. s.MaxVersion = &v
  33589. return s
  33590. }
  33591. // SetMinVersion sets the MinVersion field's value.
  33592. func (s *DescribeLaunchTemplateVersionsInput) SetMinVersion(v string) *DescribeLaunchTemplateVersionsInput {
  33593. s.MinVersion = &v
  33594. return s
  33595. }
  33596. // SetNextToken sets the NextToken field's value.
  33597. func (s *DescribeLaunchTemplateVersionsInput) SetNextToken(v string) *DescribeLaunchTemplateVersionsInput {
  33598. s.NextToken = &v
  33599. return s
  33600. }
  33601. // SetVersions sets the Versions field's value.
  33602. func (s *DescribeLaunchTemplateVersionsInput) SetVersions(v []*string) *DescribeLaunchTemplateVersionsInput {
  33603. s.Versions = v
  33604. return s
  33605. }
  33606. type DescribeLaunchTemplateVersionsOutput struct {
  33607. _ struct{} `type:"structure"`
  33608. // Information about the launch template versions.
  33609. LaunchTemplateVersions []*LaunchTemplateVersion `locationName:"launchTemplateVersionSet" locationNameList:"item" type:"list"`
  33610. // The token to use to retrieve the next page of results. This value is null
  33611. // when there are no more results to return.
  33612. NextToken *string `locationName:"nextToken" type:"string"`
  33613. }
  33614. // String returns the string representation
  33615. func (s DescribeLaunchTemplateVersionsOutput) String() string {
  33616. return awsutil.Prettify(s)
  33617. }
  33618. // GoString returns the string representation
  33619. func (s DescribeLaunchTemplateVersionsOutput) GoString() string {
  33620. return s.String()
  33621. }
  33622. // SetLaunchTemplateVersions sets the LaunchTemplateVersions field's value.
  33623. func (s *DescribeLaunchTemplateVersionsOutput) SetLaunchTemplateVersions(v []*LaunchTemplateVersion) *DescribeLaunchTemplateVersionsOutput {
  33624. s.LaunchTemplateVersions = v
  33625. return s
  33626. }
  33627. // SetNextToken sets the NextToken field's value.
  33628. func (s *DescribeLaunchTemplateVersionsOutput) SetNextToken(v string) *DescribeLaunchTemplateVersionsOutput {
  33629. s.NextToken = &v
  33630. return s
  33631. }
  33632. type DescribeLaunchTemplatesInput struct {
  33633. _ struct{} `type:"structure"`
  33634. // Checks whether you have the required permissions for the action, without
  33635. // actually making the request, and provides an error response. If you have
  33636. // the required permissions, the error response is DryRunOperation. Otherwise,
  33637. // it is UnauthorizedOperation.
  33638. DryRun *bool `type:"boolean"`
  33639. // One or more filters.
  33640. //
  33641. // * create-time - The time the launch template was created.
  33642. //
  33643. // * launch-template-name - The name of the launch template.
  33644. //
  33645. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  33646. // Specify the key of the tag in the filter name and the value of the tag
  33647. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  33648. // for the filter name and X for the filter value.
  33649. //
  33650. // * tag-key - The key of a tag assigned to the resource. This filter is
  33651. // independent of the tag-value filter. For example, if you use both the
  33652. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  33653. // assigned both the tag key Purpose (regardless of what the tag's value
  33654. // is), and the tag value X (regardless of the tag's key). If you want to
  33655. // list only resources where Purpose is X, see the tag:key=value filter.
  33656. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  33657. // One or more launch template IDs.
  33658. LaunchTemplateIds []*string `locationName:"LaunchTemplateId" locationNameList:"item" type:"list"`
  33659. // One or more launch template names.
  33660. LaunchTemplateNames []*string `locationName:"LaunchTemplateName" locationNameList:"item" type:"list"`
  33661. // The maximum number of results to return in a single call. To retrieve the
  33662. // remaining results, make another call with the returned NextToken value. This
  33663. // value can be between 5 and 1000.
  33664. MaxResults *int64 `type:"integer"`
  33665. // The token to request the next page of results.
  33666. NextToken *string `type:"string"`
  33667. }
  33668. // String returns the string representation
  33669. func (s DescribeLaunchTemplatesInput) String() string {
  33670. return awsutil.Prettify(s)
  33671. }
  33672. // GoString returns the string representation
  33673. func (s DescribeLaunchTemplatesInput) GoString() string {
  33674. return s.String()
  33675. }
  33676. // SetDryRun sets the DryRun field's value.
  33677. func (s *DescribeLaunchTemplatesInput) SetDryRun(v bool) *DescribeLaunchTemplatesInput {
  33678. s.DryRun = &v
  33679. return s
  33680. }
  33681. // SetFilters sets the Filters field's value.
  33682. func (s *DescribeLaunchTemplatesInput) SetFilters(v []*Filter) *DescribeLaunchTemplatesInput {
  33683. s.Filters = v
  33684. return s
  33685. }
  33686. // SetLaunchTemplateIds sets the LaunchTemplateIds field's value.
  33687. func (s *DescribeLaunchTemplatesInput) SetLaunchTemplateIds(v []*string) *DescribeLaunchTemplatesInput {
  33688. s.LaunchTemplateIds = v
  33689. return s
  33690. }
  33691. // SetLaunchTemplateNames sets the LaunchTemplateNames field's value.
  33692. func (s *DescribeLaunchTemplatesInput) SetLaunchTemplateNames(v []*string) *DescribeLaunchTemplatesInput {
  33693. s.LaunchTemplateNames = v
  33694. return s
  33695. }
  33696. // SetMaxResults sets the MaxResults field's value.
  33697. func (s *DescribeLaunchTemplatesInput) SetMaxResults(v int64) *DescribeLaunchTemplatesInput {
  33698. s.MaxResults = &v
  33699. return s
  33700. }
  33701. // SetNextToken sets the NextToken field's value.
  33702. func (s *DescribeLaunchTemplatesInput) SetNextToken(v string) *DescribeLaunchTemplatesInput {
  33703. s.NextToken = &v
  33704. return s
  33705. }
  33706. type DescribeLaunchTemplatesOutput struct {
  33707. _ struct{} `type:"structure"`
  33708. // Information about the launch templates.
  33709. LaunchTemplates []*LaunchTemplate `locationName:"launchTemplates" locationNameList:"item" type:"list"`
  33710. // The token to use to retrieve the next page of results. This value is null
  33711. // when there are no more results to return.
  33712. NextToken *string `locationName:"nextToken" type:"string"`
  33713. }
  33714. // String returns the string representation
  33715. func (s DescribeLaunchTemplatesOutput) String() string {
  33716. return awsutil.Prettify(s)
  33717. }
  33718. // GoString returns the string representation
  33719. func (s DescribeLaunchTemplatesOutput) GoString() string {
  33720. return s.String()
  33721. }
  33722. // SetLaunchTemplates sets the LaunchTemplates field's value.
  33723. func (s *DescribeLaunchTemplatesOutput) SetLaunchTemplates(v []*LaunchTemplate) *DescribeLaunchTemplatesOutput {
  33724. s.LaunchTemplates = v
  33725. return s
  33726. }
  33727. // SetNextToken sets the NextToken field's value.
  33728. func (s *DescribeLaunchTemplatesOutput) SetNextToken(v string) *DescribeLaunchTemplatesOutput {
  33729. s.NextToken = &v
  33730. return s
  33731. }
  33732. // Contains the parameters for DescribeMovingAddresses.
  33733. type DescribeMovingAddressesInput struct {
  33734. _ struct{} `type:"structure"`
  33735. // Checks whether you have the required permissions for the action, without
  33736. // actually making the request, and provides an error response. If you have
  33737. // the required permissions, the error response is DryRunOperation. Otherwise,
  33738. // it is UnauthorizedOperation.
  33739. DryRun *bool `locationName:"dryRun" type:"boolean"`
  33740. // One or more filters.
  33741. //
  33742. // * moving-status - The status of the Elastic IP address (MovingToVpc |
  33743. // RestoringToClassic).
  33744. Filters []*Filter `locationName:"filter" locationNameList:"Filter" type:"list"`
  33745. // The maximum number of results to return for the request in a single page.
  33746. // The remaining results of the initial request can be seen by sending another
  33747. // request with the returned NextToken value. This value can be between 5 and
  33748. // 1000; if MaxResults is given a value outside of this range, an error is returned.
  33749. //
  33750. // Default: If no value is provided, the default is 1000.
  33751. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  33752. // The token to use to retrieve the next page of results.
  33753. NextToken *string `locationName:"nextToken" type:"string"`
  33754. // One or more Elastic IP addresses.
  33755. PublicIps []*string `locationName:"publicIp" locationNameList:"item" type:"list"`
  33756. }
  33757. // String returns the string representation
  33758. func (s DescribeMovingAddressesInput) String() string {
  33759. return awsutil.Prettify(s)
  33760. }
  33761. // GoString returns the string representation
  33762. func (s DescribeMovingAddressesInput) GoString() string {
  33763. return s.String()
  33764. }
  33765. // SetDryRun sets the DryRun field's value.
  33766. func (s *DescribeMovingAddressesInput) SetDryRun(v bool) *DescribeMovingAddressesInput {
  33767. s.DryRun = &v
  33768. return s
  33769. }
  33770. // SetFilters sets the Filters field's value.
  33771. func (s *DescribeMovingAddressesInput) SetFilters(v []*Filter) *DescribeMovingAddressesInput {
  33772. s.Filters = v
  33773. return s
  33774. }
  33775. // SetMaxResults sets the MaxResults field's value.
  33776. func (s *DescribeMovingAddressesInput) SetMaxResults(v int64) *DescribeMovingAddressesInput {
  33777. s.MaxResults = &v
  33778. return s
  33779. }
  33780. // SetNextToken sets the NextToken field's value.
  33781. func (s *DescribeMovingAddressesInput) SetNextToken(v string) *DescribeMovingAddressesInput {
  33782. s.NextToken = &v
  33783. return s
  33784. }
  33785. // SetPublicIps sets the PublicIps field's value.
  33786. func (s *DescribeMovingAddressesInput) SetPublicIps(v []*string) *DescribeMovingAddressesInput {
  33787. s.PublicIps = v
  33788. return s
  33789. }
  33790. // Contains the output of DescribeMovingAddresses.
  33791. type DescribeMovingAddressesOutput struct {
  33792. _ struct{} `type:"structure"`
  33793. // The status for each Elastic IP address.
  33794. MovingAddressStatuses []*MovingAddressStatus `locationName:"movingAddressStatusSet" locationNameList:"item" type:"list"`
  33795. // The token to use to retrieve the next page of results. This value is null
  33796. // when there are no more results to return.
  33797. NextToken *string `locationName:"nextToken" type:"string"`
  33798. }
  33799. // String returns the string representation
  33800. func (s DescribeMovingAddressesOutput) String() string {
  33801. return awsutil.Prettify(s)
  33802. }
  33803. // GoString returns the string representation
  33804. func (s DescribeMovingAddressesOutput) GoString() string {
  33805. return s.String()
  33806. }
  33807. // SetMovingAddressStatuses sets the MovingAddressStatuses field's value.
  33808. func (s *DescribeMovingAddressesOutput) SetMovingAddressStatuses(v []*MovingAddressStatus) *DescribeMovingAddressesOutput {
  33809. s.MovingAddressStatuses = v
  33810. return s
  33811. }
  33812. // SetNextToken sets the NextToken field's value.
  33813. func (s *DescribeMovingAddressesOutput) SetNextToken(v string) *DescribeMovingAddressesOutput {
  33814. s.NextToken = &v
  33815. return s
  33816. }
  33817. // Contains the parameters for DescribeNatGateways.
  33818. type DescribeNatGatewaysInput struct {
  33819. _ struct{} `type:"structure"`
  33820. // One or more filters.
  33821. //
  33822. // * nat-gateway-id - The ID of the NAT gateway.
  33823. //
  33824. // * state - The state of the NAT gateway (pending | failed | available |
  33825. // deleting | deleted).
  33826. //
  33827. // * subnet-id - The ID of the subnet in which the NAT gateway resides.
  33828. //
  33829. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  33830. // Specify the key of the tag in the filter name and the value of the tag
  33831. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  33832. // for the filter name and X for the filter value.
  33833. //
  33834. // * tag-key - The key of a tag assigned to the resource. This filter is
  33835. // independent of the tag-value filter. For example, if you use both the
  33836. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  33837. // assigned both the tag key Purpose (regardless of what the tag's value
  33838. // is), and the tag value X (regardless of what the tag's key is). If you
  33839. // want to list only resources where Purpose is X, see the tag:key=value
  33840. // filter.
  33841. //
  33842. // * tag-value - The value of a tag assigned to the resource. This filter
  33843. // is independent of the tag-key filter.
  33844. //
  33845. // * vpc-id - The ID of the VPC in which the NAT gateway resides.
  33846. Filter []*Filter `locationNameList:"Filter" type:"list"`
  33847. // The maximum number of items to return for this request. The request returns
  33848. // a token that you can specify in a subsequent call to get the next set of
  33849. // results.
  33850. //
  33851. // Constraint: If the value specified is greater than 1000, we return only 1000
  33852. // items.
  33853. MaxResults *int64 `type:"integer"`
  33854. // One or more NAT gateway IDs.
  33855. NatGatewayIds []*string `locationName:"NatGatewayId" locationNameList:"item" type:"list"`
  33856. // The token to retrieve the next page of results.
  33857. NextToken *string `type:"string"`
  33858. }
  33859. // String returns the string representation
  33860. func (s DescribeNatGatewaysInput) String() string {
  33861. return awsutil.Prettify(s)
  33862. }
  33863. // GoString returns the string representation
  33864. func (s DescribeNatGatewaysInput) GoString() string {
  33865. return s.String()
  33866. }
  33867. // SetFilter sets the Filter field's value.
  33868. func (s *DescribeNatGatewaysInput) SetFilter(v []*Filter) *DescribeNatGatewaysInput {
  33869. s.Filter = v
  33870. return s
  33871. }
  33872. // SetMaxResults sets the MaxResults field's value.
  33873. func (s *DescribeNatGatewaysInput) SetMaxResults(v int64) *DescribeNatGatewaysInput {
  33874. s.MaxResults = &v
  33875. return s
  33876. }
  33877. // SetNatGatewayIds sets the NatGatewayIds field's value.
  33878. func (s *DescribeNatGatewaysInput) SetNatGatewayIds(v []*string) *DescribeNatGatewaysInput {
  33879. s.NatGatewayIds = v
  33880. return s
  33881. }
  33882. // SetNextToken sets the NextToken field's value.
  33883. func (s *DescribeNatGatewaysInput) SetNextToken(v string) *DescribeNatGatewaysInput {
  33884. s.NextToken = &v
  33885. return s
  33886. }
  33887. // Contains the output of DescribeNatGateways.
  33888. type DescribeNatGatewaysOutput struct {
  33889. _ struct{} `type:"structure"`
  33890. // Information about the NAT gateways.
  33891. NatGateways []*NatGateway `locationName:"natGatewaySet" locationNameList:"item" type:"list"`
  33892. // The token to use to retrieve the next page of results. This value is null
  33893. // when there are no more results to return.
  33894. NextToken *string `locationName:"nextToken" type:"string"`
  33895. }
  33896. // String returns the string representation
  33897. func (s DescribeNatGatewaysOutput) String() string {
  33898. return awsutil.Prettify(s)
  33899. }
  33900. // GoString returns the string representation
  33901. func (s DescribeNatGatewaysOutput) GoString() string {
  33902. return s.String()
  33903. }
  33904. // SetNatGateways sets the NatGateways field's value.
  33905. func (s *DescribeNatGatewaysOutput) SetNatGateways(v []*NatGateway) *DescribeNatGatewaysOutput {
  33906. s.NatGateways = v
  33907. return s
  33908. }
  33909. // SetNextToken sets the NextToken field's value.
  33910. func (s *DescribeNatGatewaysOutput) SetNextToken(v string) *DescribeNatGatewaysOutput {
  33911. s.NextToken = &v
  33912. return s
  33913. }
  33914. // Contains the parameters for DescribeNetworkAcls.
  33915. type DescribeNetworkAclsInput struct {
  33916. _ struct{} `type:"structure"`
  33917. // Checks whether you have the required permissions for the action, without
  33918. // actually making the request, and provides an error response. If you have
  33919. // the required permissions, the error response is DryRunOperation. Otherwise,
  33920. // it is UnauthorizedOperation.
  33921. DryRun *bool `locationName:"dryRun" type:"boolean"`
  33922. // One or more filters.
  33923. //
  33924. // * association.association-id - The ID of an association ID for the ACL.
  33925. //
  33926. // * association.network-acl-id - The ID of the network ACL involved in the
  33927. // association.
  33928. //
  33929. // * association.subnet-id - The ID of the subnet involved in the association.
  33930. //
  33931. // * default - Indicates whether the ACL is the default network ACL for the
  33932. // VPC.
  33933. //
  33934. // * entry.cidr - The IPv4 CIDR range specified in the entry.
  33935. //
  33936. // * entry.egress - Indicates whether the entry applies to egress traffic.
  33937. //
  33938. // * entry.icmp.code - The ICMP code specified in the entry, if any.
  33939. //
  33940. // * entry.icmp.type - The ICMP type specified in the entry, if any.
  33941. //
  33942. // * entry.ipv6-cidr - The IPv6 CIDR range specified in the entry.
  33943. //
  33944. // * entry.port-range.from - The start of the port range specified in the
  33945. // entry.
  33946. //
  33947. // * entry.port-range.to - The end of the port range specified in the entry.
  33948. //
  33949. //
  33950. // * entry.protocol - The protocol specified in the entry (tcp | udp | icmp
  33951. // or a protocol number).
  33952. //
  33953. // * entry.rule-action - Allows or denies the matching traffic (allow | deny).
  33954. //
  33955. // * entry.rule-number - The number of an entry (in other words, rule) in
  33956. // the ACL's set of entries.
  33957. //
  33958. // * network-acl-id - The ID of the network ACL.
  33959. //
  33960. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  33961. // Specify the key of the tag in the filter name and the value of the tag
  33962. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  33963. // for the filter name and X for the filter value.
  33964. //
  33965. // * tag-key - The key of a tag assigned to the resource. This filter is
  33966. // independent of the tag-value filter. For example, if you use both the
  33967. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  33968. // assigned both the tag key Purpose (regardless of what the tag's value
  33969. // is), and the tag value X (regardless of what the tag's key is). If you
  33970. // want to list only resources where Purpose is X, see the tag:key=value
  33971. // filter.
  33972. //
  33973. // * tag-value - The value of a tag assigned to the resource. This filter
  33974. // is independent of the tag-key filter.
  33975. //
  33976. // * vpc-id - The ID of the VPC for the network ACL.
  33977. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  33978. // One or more network ACL IDs.
  33979. //
  33980. // Default: Describes all your network ACLs.
  33981. NetworkAclIds []*string `locationName:"NetworkAclId" locationNameList:"item" type:"list"`
  33982. }
  33983. // String returns the string representation
  33984. func (s DescribeNetworkAclsInput) String() string {
  33985. return awsutil.Prettify(s)
  33986. }
  33987. // GoString returns the string representation
  33988. func (s DescribeNetworkAclsInput) GoString() string {
  33989. return s.String()
  33990. }
  33991. // SetDryRun sets the DryRun field's value.
  33992. func (s *DescribeNetworkAclsInput) SetDryRun(v bool) *DescribeNetworkAclsInput {
  33993. s.DryRun = &v
  33994. return s
  33995. }
  33996. // SetFilters sets the Filters field's value.
  33997. func (s *DescribeNetworkAclsInput) SetFilters(v []*Filter) *DescribeNetworkAclsInput {
  33998. s.Filters = v
  33999. return s
  34000. }
  34001. // SetNetworkAclIds sets the NetworkAclIds field's value.
  34002. func (s *DescribeNetworkAclsInput) SetNetworkAclIds(v []*string) *DescribeNetworkAclsInput {
  34003. s.NetworkAclIds = v
  34004. return s
  34005. }
  34006. // Contains the output of DescribeNetworkAcls.
  34007. type DescribeNetworkAclsOutput struct {
  34008. _ struct{} `type:"structure"`
  34009. // Information about one or more network ACLs.
  34010. NetworkAcls []*NetworkAcl `locationName:"networkAclSet" locationNameList:"item" type:"list"`
  34011. }
  34012. // String returns the string representation
  34013. func (s DescribeNetworkAclsOutput) String() string {
  34014. return awsutil.Prettify(s)
  34015. }
  34016. // GoString returns the string representation
  34017. func (s DescribeNetworkAclsOutput) GoString() string {
  34018. return s.String()
  34019. }
  34020. // SetNetworkAcls sets the NetworkAcls field's value.
  34021. func (s *DescribeNetworkAclsOutput) SetNetworkAcls(v []*NetworkAcl) *DescribeNetworkAclsOutput {
  34022. s.NetworkAcls = v
  34023. return s
  34024. }
  34025. // Contains the parameters for DescribeNetworkInterfaceAttribute.
  34026. type DescribeNetworkInterfaceAttributeInput struct {
  34027. _ struct{} `type:"structure"`
  34028. // The attribute of the network interface. This parameter is required.
  34029. Attribute *string `locationName:"attribute" type:"string" enum:"NetworkInterfaceAttribute"`
  34030. // Checks whether you have the required permissions for the action, without
  34031. // actually making the request, and provides an error response. If you have
  34032. // the required permissions, the error response is DryRunOperation. Otherwise,
  34033. // it is UnauthorizedOperation.
  34034. DryRun *bool `locationName:"dryRun" type:"boolean"`
  34035. // The ID of the network interface.
  34036. //
  34037. // NetworkInterfaceId is a required field
  34038. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  34039. }
  34040. // String returns the string representation
  34041. func (s DescribeNetworkInterfaceAttributeInput) String() string {
  34042. return awsutil.Prettify(s)
  34043. }
  34044. // GoString returns the string representation
  34045. func (s DescribeNetworkInterfaceAttributeInput) GoString() string {
  34046. return s.String()
  34047. }
  34048. // Validate inspects the fields of the type to determine if they are valid.
  34049. func (s *DescribeNetworkInterfaceAttributeInput) Validate() error {
  34050. invalidParams := request.ErrInvalidParams{Context: "DescribeNetworkInterfaceAttributeInput"}
  34051. if s.NetworkInterfaceId == nil {
  34052. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  34053. }
  34054. if invalidParams.Len() > 0 {
  34055. return invalidParams
  34056. }
  34057. return nil
  34058. }
  34059. // SetAttribute sets the Attribute field's value.
  34060. func (s *DescribeNetworkInterfaceAttributeInput) SetAttribute(v string) *DescribeNetworkInterfaceAttributeInput {
  34061. s.Attribute = &v
  34062. return s
  34063. }
  34064. // SetDryRun sets the DryRun field's value.
  34065. func (s *DescribeNetworkInterfaceAttributeInput) SetDryRun(v bool) *DescribeNetworkInterfaceAttributeInput {
  34066. s.DryRun = &v
  34067. return s
  34068. }
  34069. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  34070. func (s *DescribeNetworkInterfaceAttributeInput) SetNetworkInterfaceId(v string) *DescribeNetworkInterfaceAttributeInput {
  34071. s.NetworkInterfaceId = &v
  34072. return s
  34073. }
  34074. // Contains the output of DescribeNetworkInterfaceAttribute.
  34075. type DescribeNetworkInterfaceAttributeOutput struct {
  34076. _ struct{} `type:"structure"`
  34077. // The attachment (if any) of the network interface.
  34078. Attachment *NetworkInterfaceAttachment `locationName:"attachment" type:"structure"`
  34079. // The description of the network interface.
  34080. Description *AttributeValue `locationName:"description" type:"structure"`
  34081. // The security groups associated with the network interface.
  34082. Groups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  34083. // The ID of the network interface.
  34084. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  34085. // Indicates whether source/destination checking is enabled.
  34086. SourceDestCheck *AttributeBooleanValue `locationName:"sourceDestCheck" type:"structure"`
  34087. }
  34088. // String returns the string representation
  34089. func (s DescribeNetworkInterfaceAttributeOutput) String() string {
  34090. return awsutil.Prettify(s)
  34091. }
  34092. // GoString returns the string representation
  34093. func (s DescribeNetworkInterfaceAttributeOutput) GoString() string {
  34094. return s.String()
  34095. }
  34096. // SetAttachment sets the Attachment field's value.
  34097. func (s *DescribeNetworkInterfaceAttributeOutput) SetAttachment(v *NetworkInterfaceAttachment) *DescribeNetworkInterfaceAttributeOutput {
  34098. s.Attachment = v
  34099. return s
  34100. }
  34101. // SetDescription sets the Description field's value.
  34102. func (s *DescribeNetworkInterfaceAttributeOutput) SetDescription(v *AttributeValue) *DescribeNetworkInterfaceAttributeOutput {
  34103. s.Description = v
  34104. return s
  34105. }
  34106. // SetGroups sets the Groups field's value.
  34107. func (s *DescribeNetworkInterfaceAttributeOutput) SetGroups(v []*GroupIdentifier) *DescribeNetworkInterfaceAttributeOutput {
  34108. s.Groups = v
  34109. return s
  34110. }
  34111. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  34112. func (s *DescribeNetworkInterfaceAttributeOutput) SetNetworkInterfaceId(v string) *DescribeNetworkInterfaceAttributeOutput {
  34113. s.NetworkInterfaceId = &v
  34114. return s
  34115. }
  34116. // SetSourceDestCheck sets the SourceDestCheck field's value.
  34117. func (s *DescribeNetworkInterfaceAttributeOutput) SetSourceDestCheck(v *AttributeBooleanValue) *DescribeNetworkInterfaceAttributeOutput {
  34118. s.SourceDestCheck = v
  34119. return s
  34120. }
  34121. // Contains the parameters for DescribeNetworkInterfacePermissions.
  34122. type DescribeNetworkInterfacePermissionsInput struct {
  34123. _ struct{} `type:"structure"`
  34124. // One or more filters.
  34125. //
  34126. // * network-interface-permission.network-interface-permission-id - The ID
  34127. // of the permission.
  34128. //
  34129. // * network-interface-permission.network-interface-id - The ID of the network
  34130. // interface.
  34131. //
  34132. // * network-interface-permission.aws-account-id - The AWS account ID.
  34133. //
  34134. // * network-interface-permission.aws-service - The AWS service.
  34135. //
  34136. // * network-interface-permission.permission - The type of permission (INSTANCE-ATTACH
  34137. // | EIP-ASSOCIATE).
  34138. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  34139. // The maximum number of results to return in a single call. To retrieve the
  34140. // remaining results, make another call with the returned NextToken value. If
  34141. // this parameter is not specified, up to 50 results are returned by default.
  34142. MaxResults *int64 `type:"integer"`
  34143. // One or more network interface permission IDs.
  34144. NetworkInterfacePermissionIds []*string `locationName:"NetworkInterfacePermissionId" type:"list"`
  34145. // The token to request the next page of results.
  34146. NextToken *string `type:"string"`
  34147. }
  34148. // String returns the string representation
  34149. func (s DescribeNetworkInterfacePermissionsInput) String() string {
  34150. return awsutil.Prettify(s)
  34151. }
  34152. // GoString returns the string representation
  34153. func (s DescribeNetworkInterfacePermissionsInput) GoString() string {
  34154. return s.String()
  34155. }
  34156. // SetFilters sets the Filters field's value.
  34157. func (s *DescribeNetworkInterfacePermissionsInput) SetFilters(v []*Filter) *DescribeNetworkInterfacePermissionsInput {
  34158. s.Filters = v
  34159. return s
  34160. }
  34161. // SetMaxResults sets the MaxResults field's value.
  34162. func (s *DescribeNetworkInterfacePermissionsInput) SetMaxResults(v int64) *DescribeNetworkInterfacePermissionsInput {
  34163. s.MaxResults = &v
  34164. return s
  34165. }
  34166. // SetNetworkInterfacePermissionIds sets the NetworkInterfacePermissionIds field's value.
  34167. func (s *DescribeNetworkInterfacePermissionsInput) SetNetworkInterfacePermissionIds(v []*string) *DescribeNetworkInterfacePermissionsInput {
  34168. s.NetworkInterfacePermissionIds = v
  34169. return s
  34170. }
  34171. // SetNextToken sets the NextToken field's value.
  34172. func (s *DescribeNetworkInterfacePermissionsInput) SetNextToken(v string) *DescribeNetworkInterfacePermissionsInput {
  34173. s.NextToken = &v
  34174. return s
  34175. }
  34176. // Contains the output for DescribeNetworkInterfacePermissions.
  34177. type DescribeNetworkInterfacePermissionsOutput struct {
  34178. _ struct{} `type:"structure"`
  34179. // The network interface permissions.
  34180. NetworkInterfacePermissions []*NetworkInterfacePermission `locationName:"networkInterfacePermissions" locationNameList:"item" type:"list"`
  34181. // The token to use to retrieve the next page of results.
  34182. NextToken *string `locationName:"nextToken" type:"string"`
  34183. }
  34184. // String returns the string representation
  34185. func (s DescribeNetworkInterfacePermissionsOutput) String() string {
  34186. return awsutil.Prettify(s)
  34187. }
  34188. // GoString returns the string representation
  34189. func (s DescribeNetworkInterfacePermissionsOutput) GoString() string {
  34190. return s.String()
  34191. }
  34192. // SetNetworkInterfacePermissions sets the NetworkInterfacePermissions field's value.
  34193. func (s *DescribeNetworkInterfacePermissionsOutput) SetNetworkInterfacePermissions(v []*NetworkInterfacePermission) *DescribeNetworkInterfacePermissionsOutput {
  34194. s.NetworkInterfacePermissions = v
  34195. return s
  34196. }
  34197. // SetNextToken sets the NextToken field's value.
  34198. func (s *DescribeNetworkInterfacePermissionsOutput) SetNextToken(v string) *DescribeNetworkInterfacePermissionsOutput {
  34199. s.NextToken = &v
  34200. return s
  34201. }
  34202. // Contains the parameters for DescribeNetworkInterfaces.
  34203. type DescribeNetworkInterfacesInput struct {
  34204. _ struct{} `type:"structure"`
  34205. // Checks whether you have the required permissions for the action, without
  34206. // actually making the request, and provides an error response. If you have
  34207. // the required permissions, the error response is DryRunOperation. Otherwise,
  34208. // it is UnauthorizedOperation.
  34209. DryRun *bool `locationName:"dryRun" type:"boolean"`
  34210. // One or more filters.
  34211. //
  34212. // * addresses.private-ip-address - The private IPv4 addresses associated
  34213. // with the network interface.
  34214. //
  34215. // * addresses.primary - Whether the private IPv4 address is the primary
  34216. // IP address associated with the network interface.
  34217. //
  34218. // * addresses.association.public-ip - The association ID returned when the
  34219. // network interface was associated with the Elastic IP address (IPv4).
  34220. //
  34221. // * addresses.association.owner-id - The owner ID of the addresses associated
  34222. // with the network interface.
  34223. //
  34224. // * association.association-id - The association ID returned when the network
  34225. // interface was associated with an IPv4 address.
  34226. //
  34227. // * association.allocation-id - The allocation ID returned when you allocated
  34228. // the Elastic IP address (IPv4) for your network interface.
  34229. //
  34230. // * association.ip-owner-id - The owner of the Elastic IP address (IPv4)
  34231. // associated with the network interface.
  34232. //
  34233. // * association.public-ip - The address of the Elastic IP address (IPv4)
  34234. // bound to the network interface.
  34235. //
  34236. // * association.public-dns-name - The public DNS name for the network interface
  34237. // (IPv4).
  34238. //
  34239. // * attachment.attachment-id - The ID of the interface attachment.
  34240. //
  34241. // * attachment.attach.time - The time that the network interface was attached
  34242. // to an instance.
  34243. //
  34244. // * attachment.delete-on-termination - Indicates whether the attachment
  34245. // is deleted when an instance is terminated.
  34246. //
  34247. // * attachment.device-index - The device index to which the network interface
  34248. // is attached.
  34249. //
  34250. // * attachment.instance-id - The ID of the instance to which the network
  34251. // interface is attached.
  34252. //
  34253. // * attachment.instance-owner-id - The owner ID of the instance to which
  34254. // the network interface is attached.
  34255. //
  34256. // * attachment.nat-gateway-id - The ID of the NAT gateway to which the network
  34257. // interface is attached.
  34258. //
  34259. // * attachment.status - The status of the attachment (attaching | attached
  34260. // | detaching | detached).
  34261. //
  34262. // * availability-zone - The Availability Zone of the network interface.
  34263. //
  34264. // * description - The description of the network interface.
  34265. //
  34266. // * group-id - The ID of a security group associated with the network interface.
  34267. //
  34268. // * group-name - The name of a security group associated with the network
  34269. // interface.
  34270. //
  34271. // * ipv6-addresses.ipv6-address - An IPv6 address associated with the network
  34272. // interface.
  34273. //
  34274. // * mac-address - The MAC address of the network interface.
  34275. //
  34276. // * network-interface-id - The ID of the network interface.
  34277. //
  34278. // * owner-id - The AWS account ID of the network interface owner.
  34279. //
  34280. // * private-ip-address - The private IPv4 address or addresses of the network
  34281. // interface.
  34282. //
  34283. // * private-dns-name - The private DNS name of the network interface (IPv4).
  34284. //
  34285. // * requester-id - The ID of the entity that launched the instance on your
  34286. // behalf (for example, AWS Management Console, Auto Scaling, and so on).
  34287. //
  34288. // * requester-managed - Indicates whether the network interface is being
  34289. // managed by an AWS service (for example, AWS Management Console, Auto Scaling,
  34290. // and so on).
  34291. //
  34292. // * source-desk-check - Indicates whether the network interface performs
  34293. // source/destination checking. A value of true means checking is enabled,
  34294. // and false means checking is disabled. The value must be false for the
  34295. // network interface to perform network address translation (NAT) in your
  34296. // VPC.
  34297. //
  34298. // * status - The status of the network interface. If the network interface
  34299. // is not attached to an instance, the status is available; if a network
  34300. // interface is attached to an instance the status is in-use.
  34301. //
  34302. // * subnet-id - The ID of the subnet for the network interface.
  34303. //
  34304. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  34305. // Specify the key of the tag in the filter name and the value of the tag
  34306. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  34307. // for the filter name and X for the filter value.
  34308. //
  34309. // * tag-key - The key of a tag assigned to the resource. This filter is
  34310. // independent of the tag-value filter. For example, if you use both the
  34311. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  34312. // assigned both the tag key Purpose (regardless of what the tag's value
  34313. // is), and the tag value X (regardless of what the tag's key is). If you
  34314. // want to list only resources where Purpose is X, see the tag:key=value
  34315. // filter.
  34316. //
  34317. // * tag-value - The value of a tag assigned to the resource. This filter
  34318. // is independent of the tag-key filter.
  34319. //
  34320. // * vpc-id - The ID of the VPC for the network interface.
  34321. Filters []*Filter `locationName:"filter" locationNameList:"Filter" type:"list"`
  34322. // One or more network interface IDs.
  34323. //
  34324. // Default: Describes all your network interfaces.
  34325. NetworkInterfaceIds []*string `locationName:"NetworkInterfaceId" locationNameList:"item" type:"list"`
  34326. }
  34327. // String returns the string representation
  34328. func (s DescribeNetworkInterfacesInput) String() string {
  34329. return awsutil.Prettify(s)
  34330. }
  34331. // GoString returns the string representation
  34332. func (s DescribeNetworkInterfacesInput) GoString() string {
  34333. return s.String()
  34334. }
  34335. // SetDryRun sets the DryRun field's value.
  34336. func (s *DescribeNetworkInterfacesInput) SetDryRun(v bool) *DescribeNetworkInterfacesInput {
  34337. s.DryRun = &v
  34338. return s
  34339. }
  34340. // SetFilters sets the Filters field's value.
  34341. func (s *DescribeNetworkInterfacesInput) SetFilters(v []*Filter) *DescribeNetworkInterfacesInput {
  34342. s.Filters = v
  34343. return s
  34344. }
  34345. // SetNetworkInterfaceIds sets the NetworkInterfaceIds field's value.
  34346. func (s *DescribeNetworkInterfacesInput) SetNetworkInterfaceIds(v []*string) *DescribeNetworkInterfacesInput {
  34347. s.NetworkInterfaceIds = v
  34348. return s
  34349. }
  34350. // Contains the output of DescribeNetworkInterfaces.
  34351. type DescribeNetworkInterfacesOutput struct {
  34352. _ struct{} `type:"structure"`
  34353. // Information about one or more network interfaces.
  34354. NetworkInterfaces []*NetworkInterface `locationName:"networkInterfaceSet" locationNameList:"item" type:"list"`
  34355. }
  34356. // String returns the string representation
  34357. func (s DescribeNetworkInterfacesOutput) String() string {
  34358. return awsutil.Prettify(s)
  34359. }
  34360. // GoString returns the string representation
  34361. func (s DescribeNetworkInterfacesOutput) GoString() string {
  34362. return s.String()
  34363. }
  34364. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  34365. func (s *DescribeNetworkInterfacesOutput) SetNetworkInterfaces(v []*NetworkInterface) *DescribeNetworkInterfacesOutput {
  34366. s.NetworkInterfaces = v
  34367. return s
  34368. }
  34369. // Contains the parameters for DescribePlacementGroups.
  34370. type DescribePlacementGroupsInput struct {
  34371. _ struct{} `type:"structure"`
  34372. // Checks whether you have the required permissions for the action, without
  34373. // actually making the request, and provides an error response. If you have
  34374. // the required permissions, the error response is DryRunOperation. Otherwise,
  34375. // it is UnauthorizedOperation.
  34376. DryRun *bool `locationName:"dryRun" type:"boolean"`
  34377. // One or more filters.
  34378. //
  34379. // * group-name - The name of the placement group.
  34380. //
  34381. // * state - The state of the placement group (pending | available | deleting
  34382. // | deleted).
  34383. //
  34384. // * strategy - The strategy of the placement group (cluster | spread).
  34385. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  34386. // One or more placement group names.
  34387. //
  34388. // Default: Describes all your placement groups, or only those otherwise specified.
  34389. GroupNames []*string `locationName:"groupName" type:"list"`
  34390. }
  34391. // String returns the string representation
  34392. func (s DescribePlacementGroupsInput) String() string {
  34393. return awsutil.Prettify(s)
  34394. }
  34395. // GoString returns the string representation
  34396. func (s DescribePlacementGroupsInput) GoString() string {
  34397. return s.String()
  34398. }
  34399. // SetDryRun sets the DryRun field's value.
  34400. func (s *DescribePlacementGroupsInput) SetDryRun(v bool) *DescribePlacementGroupsInput {
  34401. s.DryRun = &v
  34402. return s
  34403. }
  34404. // SetFilters sets the Filters field's value.
  34405. func (s *DescribePlacementGroupsInput) SetFilters(v []*Filter) *DescribePlacementGroupsInput {
  34406. s.Filters = v
  34407. return s
  34408. }
  34409. // SetGroupNames sets the GroupNames field's value.
  34410. func (s *DescribePlacementGroupsInput) SetGroupNames(v []*string) *DescribePlacementGroupsInput {
  34411. s.GroupNames = v
  34412. return s
  34413. }
  34414. // Contains the output of DescribePlacementGroups.
  34415. type DescribePlacementGroupsOutput struct {
  34416. _ struct{} `type:"structure"`
  34417. // One or more placement groups.
  34418. PlacementGroups []*PlacementGroup `locationName:"placementGroupSet" locationNameList:"item" type:"list"`
  34419. }
  34420. // String returns the string representation
  34421. func (s DescribePlacementGroupsOutput) String() string {
  34422. return awsutil.Prettify(s)
  34423. }
  34424. // GoString returns the string representation
  34425. func (s DescribePlacementGroupsOutput) GoString() string {
  34426. return s.String()
  34427. }
  34428. // SetPlacementGroups sets the PlacementGroups field's value.
  34429. func (s *DescribePlacementGroupsOutput) SetPlacementGroups(v []*PlacementGroup) *DescribePlacementGroupsOutput {
  34430. s.PlacementGroups = v
  34431. return s
  34432. }
  34433. // Contains the parameters for DescribePrefixLists.
  34434. type DescribePrefixListsInput struct {
  34435. _ struct{} `type:"structure"`
  34436. // Checks whether you have the required permissions for the action, without
  34437. // actually making the request, and provides an error response. If you have
  34438. // the required permissions, the error response is DryRunOperation. Otherwise,
  34439. // it is UnauthorizedOperation.
  34440. DryRun *bool `type:"boolean"`
  34441. // One or more filters.
  34442. //
  34443. // * prefix-list-id: The ID of a prefix list.
  34444. //
  34445. // * prefix-list-name: The name of a prefix list.
  34446. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  34447. // The maximum number of items to return for this request. The request returns
  34448. // a token that you can specify in a subsequent call to get the next set of
  34449. // results.
  34450. //
  34451. // Constraint: If the value specified is greater than 1000, we return only 1000
  34452. // items.
  34453. MaxResults *int64 `type:"integer"`
  34454. // The token for the next set of items to return. (You received this token from
  34455. // a prior call.)
  34456. NextToken *string `type:"string"`
  34457. // One or more prefix list IDs.
  34458. PrefixListIds []*string `locationName:"PrefixListId" locationNameList:"item" type:"list"`
  34459. }
  34460. // String returns the string representation
  34461. func (s DescribePrefixListsInput) String() string {
  34462. return awsutil.Prettify(s)
  34463. }
  34464. // GoString returns the string representation
  34465. func (s DescribePrefixListsInput) GoString() string {
  34466. return s.String()
  34467. }
  34468. // SetDryRun sets the DryRun field's value.
  34469. func (s *DescribePrefixListsInput) SetDryRun(v bool) *DescribePrefixListsInput {
  34470. s.DryRun = &v
  34471. return s
  34472. }
  34473. // SetFilters sets the Filters field's value.
  34474. func (s *DescribePrefixListsInput) SetFilters(v []*Filter) *DescribePrefixListsInput {
  34475. s.Filters = v
  34476. return s
  34477. }
  34478. // SetMaxResults sets the MaxResults field's value.
  34479. func (s *DescribePrefixListsInput) SetMaxResults(v int64) *DescribePrefixListsInput {
  34480. s.MaxResults = &v
  34481. return s
  34482. }
  34483. // SetNextToken sets the NextToken field's value.
  34484. func (s *DescribePrefixListsInput) SetNextToken(v string) *DescribePrefixListsInput {
  34485. s.NextToken = &v
  34486. return s
  34487. }
  34488. // SetPrefixListIds sets the PrefixListIds field's value.
  34489. func (s *DescribePrefixListsInput) SetPrefixListIds(v []*string) *DescribePrefixListsInput {
  34490. s.PrefixListIds = v
  34491. return s
  34492. }
  34493. // Contains the output of DescribePrefixLists.
  34494. type DescribePrefixListsOutput struct {
  34495. _ struct{} `type:"structure"`
  34496. // The token to use when requesting the next set of items. If there are no additional
  34497. // items to return, the string is empty.
  34498. NextToken *string `locationName:"nextToken" type:"string"`
  34499. // All available prefix lists.
  34500. PrefixLists []*PrefixList `locationName:"prefixListSet" locationNameList:"item" type:"list"`
  34501. }
  34502. // String returns the string representation
  34503. func (s DescribePrefixListsOutput) String() string {
  34504. return awsutil.Prettify(s)
  34505. }
  34506. // GoString returns the string representation
  34507. func (s DescribePrefixListsOutput) GoString() string {
  34508. return s.String()
  34509. }
  34510. // SetNextToken sets the NextToken field's value.
  34511. func (s *DescribePrefixListsOutput) SetNextToken(v string) *DescribePrefixListsOutput {
  34512. s.NextToken = &v
  34513. return s
  34514. }
  34515. // SetPrefixLists sets the PrefixLists field's value.
  34516. func (s *DescribePrefixListsOutput) SetPrefixLists(v []*PrefixList) *DescribePrefixListsOutput {
  34517. s.PrefixLists = v
  34518. return s
  34519. }
  34520. type DescribePrincipalIdFormatInput struct {
  34521. _ struct{} `type:"structure"`
  34522. // Checks whether you have the required permissions for the action, without
  34523. // actually making the request, and provides an error response. If you have
  34524. // the required permissions, the error response is DryRunOperation. Otherwise,
  34525. // it is UnauthorizedOperation.
  34526. DryRun *bool `type:"boolean"`
  34527. // The maximum number of results to return in a single call. To retrieve the
  34528. // remaining results, make another call with the returned NextToken value.
  34529. MaxResults *int64 `type:"integer"`
  34530. // The token to request the next page of results.
  34531. NextToken *string `type:"string"`
  34532. // The type of resource: bundle | conversion-task | customer-gateway | dhcp-options
  34533. // | elastic-ip-allocation | elastic-ip-association | export-task | flow-log
  34534. // | image | import-task | instance | internet-gateway | network-acl | network-acl-association
  34535. // | network-interface | network-interface-attachment | prefix-list | reservation
  34536. // | route-table | route-table-association | security-group | snapshot | subnet
  34537. // | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association
  34538. // | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway
  34539. Resources []*string `locationName:"Resource" locationNameList:"item" type:"list"`
  34540. }
  34541. // String returns the string representation
  34542. func (s DescribePrincipalIdFormatInput) String() string {
  34543. return awsutil.Prettify(s)
  34544. }
  34545. // GoString returns the string representation
  34546. func (s DescribePrincipalIdFormatInput) GoString() string {
  34547. return s.String()
  34548. }
  34549. // SetDryRun sets the DryRun field's value.
  34550. func (s *DescribePrincipalIdFormatInput) SetDryRun(v bool) *DescribePrincipalIdFormatInput {
  34551. s.DryRun = &v
  34552. return s
  34553. }
  34554. // SetMaxResults sets the MaxResults field's value.
  34555. func (s *DescribePrincipalIdFormatInput) SetMaxResults(v int64) *DescribePrincipalIdFormatInput {
  34556. s.MaxResults = &v
  34557. return s
  34558. }
  34559. // SetNextToken sets the NextToken field's value.
  34560. func (s *DescribePrincipalIdFormatInput) SetNextToken(v string) *DescribePrincipalIdFormatInput {
  34561. s.NextToken = &v
  34562. return s
  34563. }
  34564. // SetResources sets the Resources field's value.
  34565. func (s *DescribePrincipalIdFormatInput) SetResources(v []*string) *DescribePrincipalIdFormatInput {
  34566. s.Resources = v
  34567. return s
  34568. }
  34569. type DescribePrincipalIdFormatOutput struct {
  34570. _ struct{} `type:"structure"`
  34571. // The token to use to retrieve the next page of results. This value is null
  34572. // when there are no more results to return.
  34573. NextToken *string `locationName:"nextToken" type:"string"`
  34574. // Information about the ID format settings for the ARN.
  34575. Principals []*PrincipalIdFormat `locationName:"principalSet" locationNameList:"item" type:"list"`
  34576. }
  34577. // String returns the string representation
  34578. func (s DescribePrincipalIdFormatOutput) String() string {
  34579. return awsutil.Prettify(s)
  34580. }
  34581. // GoString returns the string representation
  34582. func (s DescribePrincipalIdFormatOutput) GoString() string {
  34583. return s.String()
  34584. }
  34585. // SetNextToken sets the NextToken field's value.
  34586. func (s *DescribePrincipalIdFormatOutput) SetNextToken(v string) *DescribePrincipalIdFormatOutput {
  34587. s.NextToken = &v
  34588. return s
  34589. }
  34590. // SetPrincipals sets the Principals field's value.
  34591. func (s *DescribePrincipalIdFormatOutput) SetPrincipals(v []*PrincipalIdFormat) *DescribePrincipalIdFormatOutput {
  34592. s.Principals = v
  34593. return s
  34594. }
  34595. // Contains the parameters for DescribeRegions.
  34596. type DescribeRegionsInput struct {
  34597. _ struct{} `type:"structure"`
  34598. // Checks whether you have the required permissions for the action, without
  34599. // actually making the request, and provides an error response. If you have
  34600. // the required permissions, the error response is DryRunOperation. Otherwise,
  34601. // it is UnauthorizedOperation.
  34602. DryRun *bool `locationName:"dryRun" type:"boolean"`
  34603. // One or more filters.
  34604. //
  34605. // * endpoint - The endpoint of the region (for example, ec2.us-east-1.amazonaws.com).
  34606. //
  34607. // * region-name - The name of the region (for example, us-east-1).
  34608. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  34609. // The names of one or more regions.
  34610. RegionNames []*string `locationName:"RegionName" locationNameList:"RegionName" type:"list"`
  34611. }
  34612. // String returns the string representation
  34613. func (s DescribeRegionsInput) String() string {
  34614. return awsutil.Prettify(s)
  34615. }
  34616. // GoString returns the string representation
  34617. func (s DescribeRegionsInput) GoString() string {
  34618. return s.String()
  34619. }
  34620. // SetDryRun sets the DryRun field's value.
  34621. func (s *DescribeRegionsInput) SetDryRun(v bool) *DescribeRegionsInput {
  34622. s.DryRun = &v
  34623. return s
  34624. }
  34625. // SetFilters sets the Filters field's value.
  34626. func (s *DescribeRegionsInput) SetFilters(v []*Filter) *DescribeRegionsInput {
  34627. s.Filters = v
  34628. return s
  34629. }
  34630. // SetRegionNames sets the RegionNames field's value.
  34631. func (s *DescribeRegionsInput) SetRegionNames(v []*string) *DescribeRegionsInput {
  34632. s.RegionNames = v
  34633. return s
  34634. }
  34635. // Contains the output of DescribeRegions.
  34636. type DescribeRegionsOutput struct {
  34637. _ struct{} `type:"structure"`
  34638. // Information about one or more regions.
  34639. Regions []*Region `locationName:"regionInfo" locationNameList:"item" type:"list"`
  34640. }
  34641. // String returns the string representation
  34642. func (s DescribeRegionsOutput) String() string {
  34643. return awsutil.Prettify(s)
  34644. }
  34645. // GoString returns the string representation
  34646. func (s DescribeRegionsOutput) GoString() string {
  34647. return s.String()
  34648. }
  34649. // SetRegions sets the Regions field's value.
  34650. func (s *DescribeRegionsOutput) SetRegions(v []*Region) *DescribeRegionsOutput {
  34651. s.Regions = v
  34652. return s
  34653. }
  34654. // Contains the parameters for DescribeReservedInstances.
  34655. type DescribeReservedInstancesInput struct {
  34656. _ struct{} `type:"structure"`
  34657. // Checks whether you have the required permissions for the action, without
  34658. // actually making the request, and provides an error response. If you have
  34659. // the required permissions, the error response is DryRunOperation. Otherwise,
  34660. // it is UnauthorizedOperation.
  34661. DryRun *bool `locationName:"dryRun" type:"boolean"`
  34662. // One or more filters.
  34663. //
  34664. // * availability-zone - The Availability Zone where the Reserved Instance
  34665. // can be used.
  34666. //
  34667. // * duration - The duration of the Reserved Instance (one year or three
  34668. // years), in seconds (31536000 | 94608000).
  34669. //
  34670. // * end - The time when the Reserved Instance expires (for example, 2015-08-07T11:54:42.000Z).
  34671. //
  34672. // * fixed-price - The purchase price of the Reserved Instance (for example,
  34673. // 9800.0).
  34674. //
  34675. // * instance-type - The instance type that is covered by the reservation.
  34676. //
  34677. // * scope - The scope of the Reserved Instance (Region or Availability Zone).
  34678. //
  34679. // * product-description - The Reserved Instance product platform description.
  34680. // Instances that include (Amazon VPC) in the product platform description
  34681. // will only be displayed to EC2-Classic account holders and are for use
  34682. // with Amazon VPC (Linux/UNIX | Linux/UNIX (Amazon VPC) | SUSE Linux | SUSE
  34683. // Linux (Amazon VPC) | Red Hat Enterprise Linux | Red Hat Enterprise Linux
  34684. // (Amazon VPC) | Windows | Windows (Amazon VPC) | Windows with SQL Server
  34685. // Standard | Windows with SQL Server Standard (Amazon VPC) | Windows with
  34686. // SQL Server Web | Windows with SQL Server Web (Amazon VPC) | Windows with
  34687. // SQL Server Enterprise | Windows with SQL Server Enterprise (Amazon VPC)).
  34688. //
  34689. // * reserved-instances-id - The ID of the Reserved Instance.
  34690. //
  34691. // * start - The time at which the Reserved Instance purchase request was
  34692. // placed (for example, 2014-08-07T11:54:42.000Z).
  34693. //
  34694. // * state - The state of the Reserved Instance (payment-pending | active
  34695. // | payment-failed | retired).
  34696. //
  34697. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  34698. // Specify the key of the tag in the filter name and the value of the tag
  34699. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  34700. // for the filter name and X for the filter value.
  34701. //
  34702. // * tag-key - The key of a tag assigned to the resource. This filter is
  34703. // independent of the tag-value filter. For example, if you use both the
  34704. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  34705. // assigned both the tag key Purpose (regardless of what the tag's value
  34706. // is), and the tag value X (regardless of what the tag's key is). If you
  34707. // want to list only resources where Purpose is X, see the tag:key=value
  34708. // filter.
  34709. //
  34710. // * tag-value - The value of a tag assigned to the resource. This filter
  34711. // is independent of the tag-key filter.
  34712. //
  34713. // * usage-price - The usage price of the Reserved Instance, per hour (for
  34714. // example, 0.84).
  34715. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  34716. // Describes whether the Reserved Instance is Standard or Convertible.
  34717. OfferingClass *string `type:"string" enum:"OfferingClassType"`
  34718. // The Reserved Instance offering type. If you are using tools that predate
  34719. // the 2011-11-01 API version, you only have access to the Medium Utilization
  34720. // Reserved Instance offering type.
  34721. OfferingType *string `locationName:"offeringType" type:"string" enum:"OfferingTypeValues"`
  34722. // One or more Reserved Instance IDs.
  34723. //
  34724. // Default: Describes all your Reserved Instances, or only those otherwise specified.
  34725. ReservedInstancesIds []*string `locationName:"ReservedInstancesId" locationNameList:"ReservedInstancesId" type:"list"`
  34726. }
  34727. // String returns the string representation
  34728. func (s DescribeReservedInstancesInput) String() string {
  34729. return awsutil.Prettify(s)
  34730. }
  34731. // GoString returns the string representation
  34732. func (s DescribeReservedInstancesInput) GoString() string {
  34733. return s.String()
  34734. }
  34735. // SetDryRun sets the DryRun field's value.
  34736. func (s *DescribeReservedInstancesInput) SetDryRun(v bool) *DescribeReservedInstancesInput {
  34737. s.DryRun = &v
  34738. return s
  34739. }
  34740. // SetFilters sets the Filters field's value.
  34741. func (s *DescribeReservedInstancesInput) SetFilters(v []*Filter) *DescribeReservedInstancesInput {
  34742. s.Filters = v
  34743. return s
  34744. }
  34745. // SetOfferingClass sets the OfferingClass field's value.
  34746. func (s *DescribeReservedInstancesInput) SetOfferingClass(v string) *DescribeReservedInstancesInput {
  34747. s.OfferingClass = &v
  34748. return s
  34749. }
  34750. // SetOfferingType sets the OfferingType field's value.
  34751. func (s *DescribeReservedInstancesInput) SetOfferingType(v string) *DescribeReservedInstancesInput {
  34752. s.OfferingType = &v
  34753. return s
  34754. }
  34755. // SetReservedInstancesIds sets the ReservedInstancesIds field's value.
  34756. func (s *DescribeReservedInstancesInput) SetReservedInstancesIds(v []*string) *DescribeReservedInstancesInput {
  34757. s.ReservedInstancesIds = v
  34758. return s
  34759. }
  34760. // Contains the parameters for DescribeReservedInstancesListings.
  34761. type DescribeReservedInstancesListingsInput struct {
  34762. _ struct{} `type:"structure"`
  34763. // One or more filters.
  34764. //
  34765. // * reserved-instances-id - The ID of the Reserved Instances.
  34766. //
  34767. // * reserved-instances-listing-id - The ID of the Reserved Instances listing.
  34768. //
  34769. // * status - The status of the Reserved Instance listing (pending | active
  34770. // | cancelled | closed).
  34771. //
  34772. // * status-message - The reason for the status.
  34773. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  34774. // One or more Reserved Instance IDs.
  34775. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`
  34776. // One or more Reserved Instance listing IDs.
  34777. ReservedInstancesListingId *string `locationName:"reservedInstancesListingId" type:"string"`
  34778. }
  34779. // String returns the string representation
  34780. func (s DescribeReservedInstancesListingsInput) String() string {
  34781. return awsutil.Prettify(s)
  34782. }
  34783. // GoString returns the string representation
  34784. func (s DescribeReservedInstancesListingsInput) GoString() string {
  34785. return s.String()
  34786. }
  34787. // SetFilters sets the Filters field's value.
  34788. func (s *DescribeReservedInstancesListingsInput) SetFilters(v []*Filter) *DescribeReservedInstancesListingsInput {
  34789. s.Filters = v
  34790. return s
  34791. }
  34792. // SetReservedInstancesId sets the ReservedInstancesId field's value.
  34793. func (s *DescribeReservedInstancesListingsInput) SetReservedInstancesId(v string) *DescribeReservedInstancesListingsInput {
  34794. s.ReservedInstancesId = &v
  34795. return s
  34796. }
  34797. // SetReservedInstancesListingId sets the ReservedInstancesListingId field's value.
  34798. func (s *DescribeReservedInstancesListingsInput) SetReservedInstancesListingId(v string) *DescribeReservedInstancesListingsInput {
  34799. s.ReservedInstancesListingId = &v
  34800. return s
  34801. }
  34802. // Contains the output of DescribeReservedInstancesListings.
  34803. type DescribeReservedInstancesListingsOutput struct {
  34804. _ struct{} `type:"structure"`
  34805. // Information about the Reserved Instance listing.
  34806. ReservedInstancesListings []*ReservedInstancesListing `locationName:"reservedInstancesListingsSet" locationNameList:"item" type:"list"`
  34807. }
  34808. // String returns the string representation
  34809. func (s DescribeReservedInstancesListingsOutput) String() string {
  34810. return awsutil.Prettify(s)
  34811. }
  34812. // GoString returns the string representation
  34813. func (s DescribeReservedInstancesListingsOutput) GoString() string {
  34814. return s.String()
  34815. }
  34816. // SetReservedInstancesListings sets the ReservedInstancesListings field's value.
  34817. func (s *DescribeReservedInstancesListingsOutput) SetReservedInstancesListings(v []*ReservedInstancesListing) *DescribeReservedInstancesListingsOutput {
  34818. s.ReservedInstancesListings = v
  34819. return s
  34820. }
  34821. // Contains the parameters for DescribeReservedInstancesModifications.
  34822. type DescribeReservedInstancesModificationsInput struct {
  34823. _ struct{} `type:"structure"`
  34824. // One or more filters.
  34825. //
  34826. // * client-token - The idempotency token for the modification request.
  34827. //
  34828. // * create-date - The time when the modification request was created.
  34829. //
  34830. // * effective-date - The time when the modification becomes effective.
  34831. //
  34832. // * modification-result.reserved-instances-id - The ID for the Reserved
  34833. // Instances created as part of the modification request. This ID is only
  34834. // available when the status of the modification is fulfilled.
  34835. //
  34836. // * modification-result.target-configuration.availability-zone - The Availability
  34837. // Zone for the new Reserved Instances.
  34838. //
  34839. // * modification-result.target-configuration.instance-count - The number
  34840. // of new Reserved Instances.
  34841. //
  34842. // * modification-result.target-configuration.instance-type - The instance
  34843. // type of the new Reserved Instances.
  34844. //
  34845. // * modification-result.target-configuration.platform - The network platform
  34846. // of the new Reserved Instances (EC2-Classic | EC2-VPC).
  34847. //
  34848. // * reserved-instances-id - The ID of the Reserved Instances modified.
  34849. //
  34850. // * reserved-instances-modification-id - The ID of the modification request.
  34851. //
  34852. // * status - The status of the Reserved Instances modification request (processing
  34853. // | fulfilled | failed).
  34854. //
  34855. // * status-message - The reason for the status.
  34856. //
  34857. // * update-date - The time when the modification request was last updated.
  34858. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  34859. // The token to retrieve the next page of results.
  34860. NextToken *string `locationName:"nextToken" type:"string"`
  34861. // IDs for the submitted modification request.
  34862. ReservedInstancesModificationIds []*string `locationName:"ReservedInstancesModificationId" locationNameList:"ReservedInstancesModificationId" type:"list"`
  34863. }
  34864. // String returns the string representation
  34865. func (s DescribeReservedInstancesModificationsInput) String() string {
  34866. return awsutil.Prettify(s)
  34867. }
  34868. // GoString returns the string representation
  34869. func (s DescribeReservedInstancesModificationsInput) GoString() string {
  34870. return s.String()
  34871. }
  34872. // SetFilters sets the Filters field's value.
  34873. func (s *DescribeReservedInstancesModificationsInput) SetFilters(v []*Filter) *DescribeReservedInstancesModificationsInput {
  34874. s.Filters = v
  34875. return s
  34876. }
  34877. // SetNextToken sets the NextToken field's value.
  34878. func (s *DescribeReservedInstancesModificationsInput) SetNextToken(v string) *DescribeReservedInstancesModificationsInput {
  34879. s.NextToken = &v
  34880. return s
  34881. }
  34882. // SetReservedInstancesModificationIds sets the ReservedInstancesModificationIds field's value.
  34883. func (s *DescribeReservedInstancesModificationsInput) SetReservedInstancesModificationIds(v []*string) *DescribeReservedInstancesModificationsInput {
  34884. s.ReservedInstancesModificationIds = v
  34885. return s
  34886. }
  34887. // Contains the output of DescribeReservedInstancesModifications.
  34888. type DescribeReservedInstancesModificationsOutput struct {
  34889. _ struct{} `type:"structure"`
  34890. // The token to use to retrieve the next page of results. This value is null
  34891. // when there are no more results to return.
  34892. NextToken *string `locationName:"nextToken" type:"string"`
  34893. // The Reserved Instance modification information.
  34894. ReservedInstancesModifications []*ReservedInstancesModification `locationName:"reservedInstancesModificationsSet" locationNameList:"item" type:"list"`
  34895. }
  34896. // String returns the string representation
  34897. func (s DescribeReservedInstancesModificationsOutput) String() string {
  34898. return awsutil.Prettify(s)
  34899. }
  34900. // GoString returns the string representation
  34901. func (s DescribeReservedInstancesModificationsOutput) GoString() string {
  34902. return s.String()
  34903. }
  34904. // SetNextToken sets the NextToken field's value.
  34905. func (s *DescribeReservedInstancesModificationsOutput) SetNextToken(v string) *DescribeReservedInstancesModificationsOutput {
  34906. s.NextToken = &v
  34907. return s
  34908. }
  34909. // SetReservedInstancesModifications sets the ReservedInstancesModifications field's value.
  34910. func (s *DescribeReservedInstancesModificationsOutput) SetReservedInstancesModifications(v []*ReservedInstancesModification) *DescribeReservedInstancesModificationsOutput {
  34911. s.ReservedInstancesModifications = v
  34912. return s
  34913. }
  34914. // Contains the parameters for DescribeReservedInstancesOfferings.
  34915. type DescribeReservedInstancesOfferingsInput struct {
  34916. _ struct{} `type:"structure"`
  34917. // The Availability Zone in which the Reserved Instance can be used.
  34918. AvailabilityZone *string `type:"string"`
  34919. // Checks whether you have the required permissions for the action, without
  34920. // actually making the request, and provides an error response. If you have
  34921. // the required permissions, the error response is DryRunOperation. Otherwise,
  34922. // it is UnauthorizedOperation.
  34923. DryRun *bool `locationName:"dryRun" type:"boolean"`
  34924. // One or more filters.
  34925. //
  34926. // * availability-zone - The Availability Zone where the Reserved Instance
  34927. // can be used.
  34928. //
  34929. // * duration - The duration of the Reserved Instance (for example, one year
  34930. // or three years), in seconds (31536000 | 94608000).
  34931. //
  34932. // * fixed-price - The purchase price of the Reserved Instance (for example,
  34933. // 9800.0).
  34934. //
  34935. // * instance-type - The instance type that is covered by the reservation.
  34936. //
  34937. // * marketplace - Set to true to show only Reserved Instance Marketplace
  34938. // offerings. When this filter is not used, which is the default behavior,
  34939. // all offerings from both AWS and the Reserved Instance Marketplace are
  34940. // listed.
  34941. //
  34942. // * product-description - The Reserved Instance product platform description.
  34943. // Instances that include (Amazon VPC) in the product platform description
  34944. // will only be displayed to EC2-Classic account holders and are for use
  34945. // with Amazon VPC. (Linux/UNIX | Linux/UNIX (Amazon VPC) | SUSE Linux |
  34946. // SUSE Linux (Amazon VPC) | Red Hat Enterprise Linux | Red Hat Enterprise
  34947. // Linux (Amazon VPC) | Windows | Windows (Amazon VPC) | Windows with SQL
  34948. // Server Standard | Windows with SQL Server Standard (Amazon VPC) | Windows
  34949. // with SQL Server Web | Windows with SQL Server Web (Amazon VPC) | Windows
  34950. // with SQL Server Enterprise | Windows with SQL Server Enterprise (Amazon
  34951. // VPC))
  34952. //
  34953. // * reserved-instances-offering-id - The Reserved Instances offering ID.
  34954. //
  34955. // * scope - The scope of the Reserved Instance (Availability Zone or Region).
  34956. //
  34957. // * usage-price - The usage price of the Reserved Instance, per hour (for
  34958. // example, 0.84).
  34959. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  34960. // Include Reserved Instance Marketplace offerings in the response.
  34961. IncludeMarketplace *bool `type:"boolean"`
  34962. // The tenancy of the instances covered by the reservation. A Reserved Instance
  34963. // with a tenancy of dedicated is applied to instances that run in a VPC on
  34964. // single-tenant hardware (i.e., Dedicated Instances).
  34965. //
  34966. // Important: The host value cannot be used with this parameter. Use the default
  34967. // or dedicated values only.
  34968. //
  34969. // Default: default
  34970. InstanceTenancy *string `locationName:"instanceTenancy" type:"string" enum:"Tenancy"`
  34971. // The instance type that the reservation will cover (for example, m1.small).
  34972. // For more information, see Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html)
  34973. // in the Amazon Elastic Compute Cloud User Guide.
  34974. InstanceType *string `type:"string" enum:"InstanceType"`
  34975. // The maximum duration (in seconds) to filter when searching for offerings.
  34976. //
  34977. // Default: 94608000 (3 years)
  34978. MaxDuration *int64 `type:"long"`
  34979. // The maximum number of instances to filter when searching for offerings.
  34980. //
  34981. // Default: 20
  34982. MaxInstanceCount *int64 `type:"integer"`
  34983. // The maximum number of results to return for the request in a single page.
  34984. // The remaining results of the initial request can be seen by sending another
  34985. // request with the returned NextToken value. The maximum is 100.
  34986. //
  34987. // Default: 100
  34988. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  34989. // The minimum duration (in seconds) to filter when searching for offerings.
  34990. //
  34991. // Default: 2592000 (1 month)
  34992. MinDuration *int64 `type:"long"`
  34993. // The token to retrieve the next page of results.
  34994. NextToken *string `locationName:"nextToken" type:"string"`
  34995. // The offering class of the Reserved Instance. Can be standard or convertible.
  34996. OfferingClass *string `type:"string" enum:"OfferingClassType"`
  34997. // The Reserved Instance offering type. If you are using tools that predate
  34998. // the 2011-11-01 API version, you only have access to the Medium Utilization
  34999. // Reserved Instance offering type.
  35000. OfferingType *string `locationName:"offeringType" type:"string" enum:"OfferingTypeValues"`
  35001. // The Reserved Instance product platform description. Instances that include
  35002. // (Amazon VPC) in the description are for use with Amazon VPC.
  35003. ProductDescription *string `type:"string" enum:"RIProductDescription"`
  35004. // One or more Reserved Instances offering IDs.
  35005. ReservedInstancesOfferingIds []*string `locationName:"ReservedInstancesOfferingId" type:"list"`
  35006. }
  35007. // String returns the string representation
  35008. func (s DescribeReservedInstancesOfferingsInput) String() string {
  35009. return awsutil.Prettify(s)
  35010. }
  35011. // GoString returns the string representation
  35012. func (s DescribeReservedInstancesOfferingsInput) GoString() string {
  35013. return s.String()
  35014. }
  35015. // SetAvailabilityZone sets the AvailabilityZone field's value.
  35016. func (s *DescribeReservedInstancesOfferingsInput) SetAvailabilityZone(v string) *DescribeReservedInstancesOfferingsInput {
  35017. s.AvailabilityZone = &v
  35018. return s
  35019. }
  35020. // SetDryRun sets the DryRun field's value.
  35021. func (s *DescribeReservedInstancesOfferingsInput) SetDryRun(v bool) *DescribeReservedInstancesOfferingsInput {
  35022. s.DryRun = &v
  35023. return s
  35024. }
  35025. // SetFilters sets the Filters field's value.
  35026. func (s *DescribeReservedInstancesOfferingsInput) SetFilters(v []*Filter) *DescribeReservedInstancesOfferingsInput {
  35027. s.Filters = v
  35028. return s
  35029. }
  35030. // SetIncludeMarketplace sets the IncludeMarketplace field's value.
  35031. func (s *DescribeReservedInstancesOfferingsInput) SetIncludeMarketplace(v bool) *DescribeReservedInstancesOfferingsInput {
  35032. s.IncludeMarketplace = &v
  35033. return s
  35034. }
  35035. // SetInstanceTenancy sets the InstanceTenancy field's value.
  35036. func (s *DescribeReservedInstancesOfferingsInput) SetInstanceTenancy(v string) *DescribeReservedInstancesOfferingsInput {
  35037. s.InstanceTenancy = &v
  35038. return s
  35039. }
  35040. // SetInstanceType sets the InstanceType field's value.
  35041. func (s *DescribeReservedInstancesOfferingsInput) SetInstanceType(v string) *DescribeReservedInstancesOfferingsInput {
  35042. s.InstanceType = &v
  35043. return s
  35044. }
  35045. // SetMaxDuration sets the MaxDuration field's value.
  35046. func (s *DescribeReservedInstancesOfferingsInput) SetMaxDuration(v int64) *DescribeReservedInstancesOfferingsInput {
  35047. s.MaxDuration = &v
  35048. return s
  35049. }
  35050. // SetMaxInstanceCount sets the MaxInstanceCount field's value.
  35051. func (s *DescribeReservedInstancesOfferingsInput) SetMaxInstanceCount(v int64) *DescribeReservedInstancesOfferingsInput {
  35052. s.MaxInstanceCount = &v
  35053. return s
  35054. }
  35055. // SetMaxResults sets the MaxResults field's value.
  35056. func (s *DescribeReservedInstancesOfferingsInput) SetMaxResults(v int64) *DescribeReservedInstancesOfferingsInput {
  35057. s.MaxResults = &v
  35058. return s
  35059. }
  35060. // SetMinDuration sets the MinDuration field's value.
  35061. func (s *DescribeReservedInstancesOfferingsInput) SetMinDuration(v int64) *DescribeReservedInstancesOfferingsInput {
  35062. s.MinDuration = &v
  35063. return s
  35064. }
  35065. // SetNextToken sets the NextToken field's value.
  35066. func (s *DescribeReservedInstancesOfferingsInput) SetNextToken(v string) *DescribeReservedInstancesOfferingsInput {
  35067. s.NextToken = &v
  35068. return s
  35069. }
  35070. // SetOfferingClass sets the OfferingClass field's value.
  35071. func (s *DescribeReservedInstancesOfferingsInput) SetOfferingClass(v string) *DescribeReservedInstancesOfferingsInput {
  35072. s.OfferingClass = &v
  35073. return s
  35074. }
  35075. // SetOfferingType sets the OfferingType field's value.
  35076. func (s *DescribeReservedInstancesOfferingsInput) SetOfferingType(v string) *DescribeReservedInstancesOfferingsInput {
  35077. s.OfferingType = &v
  35078. return s
  35079. }
  35080. // SetProductDescription sets the ProductDescription field's value.
  35081. func (s *DescribeReservedInstancesOfferingsInput) SetProductDescription(v string) *DescribeReservedInstancesOfferingsInput {
  35082. s.ProductDescription = &v
  35083. return s
  35084. }
  35085. // SetReservedInstancesOfferingIds sets the ReservedInstancesOfferingIds field's value.
  35086. func (s *DescribeReservedInstancesOfferingsInput) SetReservedInstancesOfferingIds(v []*string) *DescribeReservedInstancesOfferingsInput {
  35087. s.ReservedInstancesOfferingIds = v
  35088. return s
  35089. }
  35090. // Contains the output of DescribeReservedInstancesOfferings.
  35091. type DescribeReservedInstancesOfferingsOutput struct {
  35092. _ struct{} `type:"structure"`
  35093. // The token to use to retrieve the next page of results. This value is null
  35094. // when there are no more results to return.
  35095. NextToken *string `locationName:"nextToken" type:"string"`
  35096. // A list of Reserved Instances offerings.
  35097. ReservedInstancesOfferings []*ReservedInstancesOffering `locationName:"reservedInstancesOfferingsSet" locationNameList:"item" type:"list"`
  35098. }
  35099. // String returns the string representation
  35100. func (s DescribeReservedInstancesOfferingsOutput) String() string {
  35101. return awsutil.Prettify(s)
  35102. }
  35103. // GoString returns the string representation
  35104. func (s DescribeReservedInstancesOfferingsOutput) GoString() string {
  35105. return s.String()
  35106. }
  35107. // SetNextToken sets the NextToken field's value.
  35108. func (s *DescribeReservedInstancesOfferingsOutput) SetNextToken(v string) *DescribeReservedInstancesOfferingsOutput {
  35109. s.NextToken = &v
  35110. return s
  35111. }
  35112. // SetReservedInstancesOfferings sets the ReservedInstancesOfferings field's value.
  35113. func (s *DescribeReservedInstancesOfferingsOutput) SetReservedInstancesOfferings(v []*ReservedInstancesOffering) *DescribeReservedInstancesOfferingsOutput {
  35114. s.ReservedInstancesOfferings = v
  35115. return s
  35116. }
  35117. // Contains the output for DescribeReservedInstances.
  35118. type DescribeReservedInstancesOutput struct {
  35119. _ struct{} `type:"structure"`
  35120. // A list of Reserved Instances.
  35121. ReservedInstances []*ReservedInstances `locationName:"reservedInstancesSet" locationNameList:"item" type:"list"`
  35122. }
  35123. // String returns the string representation
  35124. func (s DescribeReservedInstancesOutput) String() string {
  35125. return awsutil.Prettify(s)
  35126. }
  35127. // GoString returns the string representation
  35128. func (s DescribeReservedInstancesOutput) GoString() string {
  35129. return s.String()
  35130. }
  35131. // SetReservedInstances sets the ReservedInstances field's value.
  35132. func (s *DescribeReservedInstancesOutput) SetReservedInstances(v []*ReservedInstances) *DescribeReservedInstancesOutput {
  35133. s.ReservedInstances = v
  35134. return s
  35135. }
  35136. // Contains the parameters for DescribeRouteTables.
  35137. type DescribeRouteTablesInput struct {
  35138. _ struct{} `type:"structure"`
  35139. // Checks whether you have the required permissions for the action, without
  35140. // actually making the request, and provides an error response. If you have
  35141. // the required permissions, the error response is DryRunOperation. Otherwise,
  35142. // it is UnauthorizedOperation.
  35143. DryRun *bool `locationName:"dryRun" type:"boolean"`
  35144. // One or more filters.
  35145. //
  35146. // * association.route-table-association-id - The ID of an association ID
  35147. // for the route table.
  35148. //
  35149. // * association.route-table-id - The ID of the route table involved in the
  35150. // association.
  35151. //
  35152. // * association.subnet-id - The ID of the subnet involved in the association.
  35153. //
  35154. // * association.main - Indicates whether the route table is the main route
  35155. // table for the VPC (true | false). Route tables that do not have an association
  35156. // ID are not returned in the response.
  35157. //
  35158. // * route-table-id - The ID of the route table.
  35159. //
  35160. // * route.destination-cidr-block - The IPv4 CIDR range specified in a route
  35161. // in the table.
  35162. //
  35163. // * route.destination-ipv6-cidr-block - The IPv6 CIDR range specified in
  35164. // a route in the route table.
  35165. //
  35166. // * route.destination-prefix-list-id - The ID (prefix) of the AWS service
  35167. // specified in a route in the table.
  35168. //
  35169. // * route.egress-only-internet-gateway-id - The ID of an egress-only Internet
  35170. // gateway specified in a route in the route table.
  35171. //
  35172. // * route.gateway-id - The ID of a gateway specified in a route in the table.
  35173. //
  35174. // * route.instance-id - The ID of an instance specified in a route in the
  35175. // table.
  35176. //
  35177. // * route.nat-gateway-id - The ID of a NAT gateway.
  35178. //
  35179. // * route.origin - Describes how the route was created. CreateRouteTable
  35180. // indicates that the route was automatically created when the route table
  35181. // was created; CreateRoute indicates that the route was manually added to
  35182. // the route table; EnableVgwRoutePropagation indicates that the route was
  35183. // propagated by route propagation.
  35184. //
  35185. // * route.state - The state of a route in the route table (active | blackhole).
  35186. // The blackhole state indicates that the route's target isn't available
  35187. // (for example, the specified gateway isn't attached to the VPC, the specified
  35188. // NAT instance has been terminated, and so on).
  35189. //
  35190. // * route.vpc-peering-connection-id - The ID of a VPC peering connection
  35191. // specified in a route in the table.
  35192. //
  35193. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  35194. // Specify the key of the tag in the filter name and the value of the tag
  35195. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  35196. // for the filter name and X for the filter value.
  35197. //
  35198. // * tag-key - The key of a tag assigned to the resource. This filter is
  35199. // independent of the tag-value filter. For example, if you use both the
  35200. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  35201. // assigned both the tag key Purpose (regardless of what the tag's value
  35202. // is), and the tag value X (regardless of what the tag's key is). If you
  35203. // want to list only resources where Purpose is X, see the tag:key=value
  35204. // filter.
  35205. //
  35206. // * tag-value - The value of a tag assigned to the resource. This filter
  35207. // is independent of the tag-key filter.
  35208. //
  35209. // * vpc-id - The ID of the VPC for the route table.
  35210. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  35211. // One or more route table IDs.
  35212. //
  35213. // Default: Describes all your route tables.
  35214. RouteTableIds []*string `locationName:"RouteTableId" locationNameList:"item" type:"list"`
  35215. }
  35216. // String returns the string representation
  35217. func (s DescribeRouteTablesInput) String() string {
  35218. return awsutil.Prettify(s)
  35219. }
  35220. // GoString returns the string representation
  35221. func (s DescribeRouteTablesInput) GoString() string {
  35222. return s.String()
  35223. }
  35224. // SetDryRun sets the DryRun field's value.
  35225. func (s *DescribeRouteTablesInput) SetDryRun(v bool) *DescribeRouteTablesInput {
  35226. s.DryRun = &v
  35227. return s
  35228. }
  35229. // SetFilters sets the Filters field's value.
  35230. func (s *DescribeRouteTablesInput) SetFilters(v []*Filter) *DescribeRouteTablesInput {
  35231. s.Filters = v
  35232. return s
  35233. }
  35234. // SetRouteTableIds sets the RouteTableIds field's value.
  35235. func (s *DescribeRouteTablesInput) SetRouteTableIds(v []*string) *DescribeRouteTablesInput {
  35236. s.RouteTableIds = v
  35237. return s
  35238. }
  35239. // Contains the output of DescribeRouteTables.
  35240. type DescribeRouteTablesOutput struct {
  35241. _ struct{} `type:"structure"`
  35242. // Information about one or more route tables.
  35243. RouteTables []*RouteTable `locationName:"routeTableSet" locationNameList:"item" type:"list"`
  35244. }
  35245. // String returns the string representation
  35246. func (s DescribeRouteTablesOutput) String() string {
  35247. return awsutil.Prettify(s)
  35248. }
  35249. // GoString returns the string representation
  35250. func (s DescribeRouteTablesOutput) GoString() string {
  35251. return s.String()
  35252. }
  35253. // SetRouteTables sets the RouteTables field's value.
  35254. func (s *DescribeRouteTablesOutput) SetRouteTables(v []*RouteTable) *DescribeRouteTablesOutput {
  35255. s.RouteTables = v
  35256. return s
  35257. }
  35258. // Contains the parameters for DescribeScheduledInstanceAvailability.
  35259. type DescribeScheduledInstanceAvailabilityInput struct {
  35260. _ struct{} `type:"structure"`
  35261. // Checks whether you have the required permissions for the action, without
  35262. // actually making the request, and provides an error response. If you have
  35263. // the required permissions, the error response is DryRunOperation. Otherwise,
  35264. // it is UnauthorizedOperation.
  35265. DryRun *bool `type:"boolean"`
  35266. // One or more filters.
  35267. //
  35268. // * availability-zone - The Availability Zone (for example, us-west-2a).
  35269. //
  35270. // * instance-type - The instance type (for example, c4.large).
  35271. //
  35272. // * network-platform - The network platform (EC2-Classic or EC2-VPC).
  35273. //
  35274. // * platform - The platform (Linux/UNIX or Windows).
  35275. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  35276. // The time period for the first schedule to start.
  35277. //
  35278. // FirstSlotStartTimeRange is a required field
  35279. FirstSlotStartTimeRange *SlotDateTimeRangeRequest `type:"structure" required:"true"`
  35280. // The maximum number of results to return in a single call. This value can
  35281. // be between 5 and 300. The default value is 300. To retrieve the remaining
  35282. // results, make another call with the returned NextToken value.
  35283. MaxResults *int64 `type:"integer"`
  35284. // The maximum available duration, in hours. This value must be greater than
  35285. // MinSlotDurationInHours and less than 1,720.
  35286. MaxSlotDurationInHours *int64 `type:"integer"`
  35287. // The minimum available duration, in hours. The minimum required duration is
  35288. // 1,200 hours per year. For example, the minimum daily schedule is 4 hours,
  35289. // the minimum weekly schedule is 24 hours, and the minimum monthly schedule
  35290. // is 100 hours.
  35291. MinSlotDurationInHours *int64 `type:"integer"`
  35292. // The token for the next set of results.
  35293. NextToken *string `type:"string"`
  35294. // The schedule recurrence.
  35295. //
  35296. // Recurrence is a required field
  35297. Recurrence *ScheduledInstanceRecurrenceRequest `type:"structure" required:"true"`
  35298. }
  35299. // String returns the string representation
  35300. func (s DescribeScheduledInstanceAvailabilityInput) String() string {
  35301. return awsutil.Prettify(s)
  35302. }
  35303. // GoString returns the string representation
  35304. func (s DescribeScheduledInstanceAvailabilityInput) GoString() string {
  35305. return s.String()
  35306. }
  35307. // Validate inspects the fields of the type to determine if they are valid.
  35308. func (s *DescribeScheduledInstanceAvailabilityInput) Validate() error {
  35309. invalidParams := request.ErrInvalidParams{Context: "DescribeScheduledInstanceAvailabilityInput"}
  35310. if s.FirstSlotStartTimeRange == nil {
  35311. invalidParams.Add(request.NewErrParamRequired("FirstSlotStartTimeRange"))
  35312. }
  35313. if s.Recurrence == nil {
  35314. invalidParams.Add(request.NewErrParamRequired("Recurrence"))
  35315. }
  35316. if s.FirstSlotStartTimeRange != nil {
  35317. if err := s.FirstSlotStartTimeRange.Validate(); err != nil {
  35318. invalidParams.AddNested("FirstSlotStartTimeRange", err.(request.ErrInvalidParams))
  35319. }
  35320. }
  35321. if invalidParams.Len() > 0 {
  35322. return invalidParams
  35323. }
  35324. return nil
  35325. }
  35326. // SetDryRun sets the DryRun field's value.
  35327. func (s *DescribeScheduledInstanceAvailabilityInput) SetDryRun(v bool) *DescribeScheduledInstanceAvailabilityInput {
  35328. s.DryRun = &v
  35329. return s
  35330. }
  35331. // SetFilters sets the Filters field's value.
  35332. func (s *DescribeScheduledInstanceAvailabilityInput) SetFilters(v []*Filter) *DescribeScheduledInstanceAvailabilityInput {
  35333. s.Filters = v
  35334. return s
  35335. }
  35336. // SetFirstSlotStartTimeRange sets the FirstSlotStartTimeRange field's value.
  35337. func (s *DescribeScheduledInstanceAvailabilityInput) SetFirstSlotStartTimeRange(v *SlotDateTimeRangeRequest) *DescribeScheduledInstanceAvailabilityInput {
  35338. s.FirstSlotStartTimeRange = v
  35339. return s
  35340. }
  35341. // SetMaxResults sets the MaxResults field's value.
  35342. func (s *DescribeScheduledInstanceAvailabilityInput) SetMaxResults(v int64) *DescribeScheduledInstanceAvailabilityInput {
  35343. s.MaxResults = &v
  35344. return s
  35345. }
  35346. // SetMaxSlotDurationInHours sets the MaxSlotDurationInHours field's value.
  35347. func (s *DescribeScheduledInstanceAvailabilityInput) SetMaxSlotDurationInHours(v int64) *DescribeScheduledInstanceAvailabilityInput {
  35348. s.MaxSlotDurationInHours = &v
  35349. return s
  35350. }
  35351. // SetMinSlotDurationInHours sets the MinSlotDurationInHours field's value.
  35352. func (s *DescribeScheduledInstanceAvailabilityInput) SetMinSlotDurationInHours(v int64) *DescribeScheduledInstanceAvailabilityInput {
  35353. s.MinSlotDurationInHours = &v
  35354. return s
  35355. }
  35356. // SetNextToken sets the NextToken field's value.
  35357. func (s *DescribeScheduledInstanceAvailabilityInput) SetNextToken(v string) *DescribeScheduledInstanceAvailabilityInput {
  35358. s.NextToken = &v
  35359. return s
  35360. }
  35361. // SetRecurrence sets the Recurrence field's value.
  35362. func (s *DescribeScheduledInstanceAvailabilityInput) SetRecurrence(v *ScheduledInstanceRecurrenceRequest) *DescribeScheduledInstanceAvailabilityInput {
  35363. s.Recurrence = v
  35364. return s
  35365. }
  35366. // Contains the output of DescribeScheduledInstanceAvailability.
  35367. type DescribeScheduledInstanceAvailabilityOutput struct {
  35368. _ struct{} `type:"structure"`
  35369. // The token required to retrieve the next set of results. This value is null
  35370. // when there are no more results to return.
  35371. NextToken *string `locationName:"nextToken" type:"string"`
  35372. // Information about the available Scheduled Instances.
  35373. ScheduledInstanceAvailabilitySet []*ScheduledInstanceAvailability `locationName:"scheduledInstanceAvailabilitySet" locationNameList:"item" type:"list"`
  35374. }
  35375. // String returns the string representation
  35376. func (s DescribeScheduledInstanceAvailabilityOutput) String() string {
  35377. return awsutil.Prettify(s)
  35378. }
  35379. // GoString returns the string representation
  35380. func (s DescribeScheduledInstanceAvailabilityOutput) GoString() string {
  35381. return s.String()
  35382. }
  35383. // SetNextToken sets the NextToken field's value.
  35384. func (s *DescribeScheduledInstanceAvailabilityOutput) SetNextToken(v string) *DescribeScheduledInstanceAvailabilityOutput {
  35385. s.NextToken = &v
  35386. return s
  35387. }
  35388. // SetScheduledInstanceAvailabilitySet sets the ScheduledInstanceAvailabilitySet field's value.
  35389. func (s *DescribeScheduledInstanceAvailabilityOutput) SetScheduledInstanceAvailabilitySet(v []*ScheduledInstanceAvailability) *DescribeScheduledInstanceAvailabilityOutput {
  35390. s.ScheduledInstanceAvailabilitySet = v
  35391. return s
  35392. }
  35393. // Contains the parameters for DescribeScheduledInstances.
  35394. type DescribeScheduledInstancesInput struct {
  35395. _ struct{} `type:"structure"`
  35396. // Checks whether you have the required permissions for the action, without
  35397. // actually making the request, and provides an error response. If you have
  35398. // the required permissions, the error response is DryRunOperation. Otherwise,
  35399. // it is UnauthorizedOperation.
  35400. DryRun *bool `type:"boolean"`
  35401. // One or more filters.
  35402. //
  35403. // * availability-zone - The Availability Zone (for example, us-west-2a).
  35404. //
  35405. // * instance-type - The instance type (for example, c4.large).
  35406. //
  35407. // * network-platform - The network platform (EC2-Classic or EC2-VPC).
  35408. //
  35409. // * platform - The platform (Linux/UNIX or Windows).
  35410. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  35411. // The maximum number of results to return in a single call. This value can
  35412. // be between 5 and 300. The default value is 100. To retrieve the remaining
  35413. // results, make another call with the returned NextToken value.
  35414. MaxResults *int64 `type:"integer"`
  35415. // The token for the next set of results.
  35416. NextToken *string `type:"string"`
  35417. // One or more Scheduled Instance IDs.
  35418. ScheduledInstanceIds []*string `locationName:"ScheduledInstanceId" locationNameList:"ScheduledInstanceId" type:"list"`
  35419. // The time period for the first schedule to start.
  35420. SlotStartTimeRange *SlotStartTimeRangeRequest `type:"structure"`
  35421. }
  35422. // String returns the string representation
  35423. func (s DescribeScheduledInstancesInput) String() string {
  35424. return awsutil.Prettify(s)
  35425. }
  35426. // GoString returns the string representation
  35427. func (s DescribeScheduledInstancesInput) GoString() string {
  35428. return s.String()
  35429. }
  35430. // SetDryRun sets the DryRun field's value.
  35431. func (s *DescribeScheduledInstancesInput) SetDryRun(v bool) *DescribeScheduledInstancesInput {
  35432. s.DryRun = &v
  35433. return s
  35434. }
  35435. // SetFilters sets the Filters field's value.
  35436. func (s *DescribeScheduledInstancesInput) SetFilters(v []*Filter) *DescribeScheduledInstancesInput {
  35437. s.Filters = v
  35438. return s
  35439. }
  35440. // SetMaxResults sets the MaxResults field's value.
  35441. func (s *DescribeScheduledInstancesInput) SetMaxResults(v int64) *DescribeScheduledInstancesInput {
  35442. s.MaxResults = &v
  35443. return s
  35444. }
  35445. // SetNextToken sets the NextToken field's value.
  35446. func (s *DescribeScheduledInstancesInput) SetNextToken(v string) *DescribeScheduledInstancesInput {
  35447. s.NextToken = &v
  35448. return s
  35449. }
  35450. // SetScheduledInstanceIds sets the ScheduledInstanceIds field's value.
  35451. func (s *DescribeScheduledInstancesInput) SetScheduledInstanceIds(v []*string) *DescribeScheduledInstancesInput {
  35452. s.ScheduledInstanceIds = v
  35453. return s
  35454. }
  35455. // SetSlotStartTimeRange sets the SlotStartTimeRange field's value.
  35456. func (s *DescribeScheduledInstancesInput) SetSlotStartTimeRange(v *SlotStartTimeRangeRequest) *DescribeScheduledInstancesInput {
  35457. s.SlotStartTimeRange = v
  35458. return s
  35459. }
  35460. // Contains the output of DescribeScheduledInstances.
  35461. type DescribeScheduledInstancesOutput struct {
  35462. _ struct{} `type:"structure"`
  35463. // The token required to retrieve the next set of results. This value is null
  35464. // when there are no more results to return.
  35465. NextToken *string `locationName:"nextToken" type:"string"`
  35466. // Information about the Scheduled Instances.
  35467. ScheduledInstanceSet []*ScheduledInstance `locationName:"scheduledInstanceSet" locationNameList:"item" type:"list"`
  35468. }
  35469. // String returns the string representation
  35470. func (s DescribeScheduledInstancesOutput) String() string {
  35471. return awsutil.Prettify(s)
  35472. }
  35473. // GoString returns the string representation
  35474. func (s DescribeScheduledInstancesOutput) GoString() string {
  35475. return s.String()
  35476. }
  35477. // SetNextToken sets the NextToken field's value.
  35478. func (s *DescribeScheduledInstancesOutput) SetNextToken(v string) *DescribeScheduledInstancesOutput {
  35479. s.NextToken = &v
  35480. return s
  35481. }
  35482. // SetScheduledInstanceSet sets the ScheduledInstanceSet field's value.
  35483. func (s *DescribeScheduledInstancesOutput) SetScheduledInstanceSet(v []*ScheduledInstance) *DescribeScheduledInstancesOutput {
  35484. s.ScheduledInstanceSet = v
  35485. return s
  35486. }
  35487. type DescribeSecurityGroupReferencesInput struct {
  35488. _ struct{} `type:"structure"`
  35489. // Checks whether you have the required permissions for the operation, without
  35490. // actually making the request, and provides an error response. If you have
  35491. // the required permissions, the error response is DryRunOperation. Otherwise,
  35492. // it is UnauthorizedOperation.
  35493. DryRun *bool `type:"boolean"`
  35494. // One or more security group IDs in your account.
  35495. //
  35496. // GroupId is a required field
  35497. GroupId []*string `locationNameList:"item" type:"list" required:"true"`
  35498. }
  35499. // String returns the string representation
  35500. func (s DescribeSecurityGroupReferencesInput) String() string {
  35501. return awsutil.Prettify(s)
  35502. }
  35503. // GoString returns the string representation
  35504. func (s DescribeSecurityGroupReferencesInput) GoString() string {
  35505. return s.String()
  35506. }
  35507. // Validate inspects the fields of the type to determine if they are valid.
  35508. func (s *DescribeSecurityGroupReferencesInput) Validate() error {
  35509. invalidParams := request.ErrInvalidParams{Context: "DescribeSecurityGroupReferencesInput"}
  35510. if s.GroupId == nil {
  35511. invalidParams.Add(request.NewErrParamRequired("GroupId"))
  35512. }
  35513. if invalidParams.Len() > 0 {
  35514. return invalidParams
  35515. }
  35516. return nil
  35517. }
  35518. // SetDryRun sets the DryRun field's value.
  35519. func (s *DescribeSecurityGroupReferencesInput) SetDryRun(v bool) *DescribeSecurityGroupReferencesInput {
  35520. s.DryRun = &v
  35521. return s
  35522. }
  35523. // SetGroupId sets the GroupId field's value.
  35524. func (s *DescribeSecurityGroupReferencesInput) SetGroupId(v []*string) *DescribeSecurityGroupReferencesInput {
  35525. s.GroupId = v
  35526. return s
  35527. }
  35528. type DescribeSecurityGroupReferencesOutput struct {
  35529. _ struct{} `type:"structure"`
  35530. // Information about the VPCs with the referencing security groups.
  35531. SecurityGroupReferenceSet []*SecurityGroupReference `locationName:"securityGroupReferenceSet" locationNameList:"item" type:"list"`
  35532. }
  35533. // String returns the string representation
  35534. func (s DescribeSecurityGroupReferencesOutput) String() string {
  35535. return awsutil.Prettify(s)
  35536. }
  35537. // GoString returns the string representation
  35538. func (s DescribeSecurityGroupReferencesOutput) GoString() string {
  35539. return s.String()
  35540. }
  35541. // SetSecurityGroupReferenceSet sets the SecurityGroupReferenceSet field's value.
  35542. func (s *DescribeSecurityGroupReferencesOutput) SetSecurityGroupReferenceSet(v []*SecurityGroupReference) *DescribeSecurityGroupReferencesOutput {
  35543. s.SecurityGroupReferenceSet = v
  35544. return s
  35545. }
  35546. // Contains the parameters for DescribeSecurityGroups.
  35547. type DescribeSecurityGroupsInput struct {
  35548. _ struct{} `type:"structure"`
  35549. // Checks whether you have the required permissions for the action, without
  35550. // actually making the request, and provides an error response. If you have
  35551. // the required permissions, the error response is DryRunOperation. Otherwise,
  35552. // it is UnauthorizedOperation.
  35553. DryRun *bool `locationName:"dryRun" type:"boolean"`
  35554. // One or more filters. If using multiple filters for rules, the results include
  35555. // security groups for which any combination of rules - not necessarily a single
  35556. // rule - match all filters.
  35557. //
  35558. // * description - The description of the security group.
  35559. //
  35560. // * egress.ip-permission.cidr - An IPv4 CIDR block for an outbound security
  35561. // group rule.
  35562. //
  35563. // * egress.ip-permission.from-port - For an outbound rule, the start of
  35564. // port range for the TCP and UDP protocols, or an ICMP type number.
  35565. //
  35566. // * egress.ip-permission.group-id - The ID of a security group that has
  35567. // been referenced in an outbound security group rule.
  35568. //
  35569. // * egress.ip-permission.group-name - The name of a security group that
  35570. // has been referenced in an outbound security group rule.
  35571. //
  35572. // * egress.ip-permission.ipv6-cidr - An IPv6 CIDR block for an outbound
  35573. // security group rule.
  35574. //
  35575. // * egress.ip-permission.prefix-list-id - The ID (prefix) of the AWS service
  35576. // to which a security group rule allows outbound access.
  35577. //
  35578. // * egress.ip-permission.protocol - The IP protocol for an outbound security
  35579. // group rule (tcp | udp | icmp or a protocol number).
  35580. //
  35581. // * egress.ip-permission.to-port - For an outbound rule, the end of port
  35582. // range for the TCP and UDP protocols, or an ICMP code.
  35583. //
  35584. // * egress.ip-permission.user-id - The ID of an AWS account that has been
  35585. // referenced in an outbound security group rule.
  35586. //
  35587. // * group-id - The ID of the security group.
  35588. //
  35589. // * group-name - The name of the security group.
  35590. //
  35591. // * ip-permission.cidr - An IPv4 CIDR block for an inbound security group
  35592. // rule.
  35593. //
  35594. // * ip-permission.from-port - For an inbound rule, the start of port range
  35595. // for the TCP and UDP protocols, or an ICMP type number.
  35596. //
  35597. // * ip-permission.group-id - The ID of a security group that has been referenced
  35598. // in an inbound security group rule.
  35599. //
  35600. // * ip-permission.group-name - The name of a security group that has been
  35601. // referenced in an inbound security group rule.
  35602. //
  35603. // * ip-permission.ipv6-cidr - An IPv6 CIDR block for an inbound security
  35604. // group rule.
  35605. //
  35606. // * ip-permission.prefix-list-id - The ID (prefix) of the AWS service from
  35607. // which a security group rule allows inbound access.
  35608. //
  35609. // * ip-permission.protocol - The IP protocol for an inbound security group
  35610. // rule (tcp | udp | icmp or a protocol number).
  35611. //
  35612. // * ip-permission.to-port - For an inbound rule, the end of port range for
  35613. // the TCP and UDP protocols, or an ICMP code.
  35614. //
  35615. // * ip-permission.user-id - The ID of an AWS account that has been referenced
  35616. // in an inbound security group rule.
  35617. //
  35618. // * owner-id - The AWS account ID of the owner of the security group.
  35619. //
  35620. // * tag-key - The key of a tag assigned to the security group.
  35621. //
  35622. // * tag-value - The value of a tag assigned to the security group.
  35623. //
  35624. // * vpc-id - The ID of the VPC specified when the security group was created.
  35625. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  35626. // One or more security group IDs. Required for security groups in a nondefault
  35627. // VPC.
  35628. //
  35629. // Default: Describes all your security groups.
  35630. GroupIds []*string `locationName:"GroupId" locationNameList:"groupId" type:"list"`
  35631. // [EC2-Classic and default VPC only] One or more security group names. You
  35632. // can specify either the security group name or the security group ID. For
  35633. // security groups in a nondefault VPC, use the group-name filter to describe
  35634. // security groups by name.
  35635. //
  35636. // Default: Describes all your security groups.
  35637. GroupNames []*string `locationName:"GroupName" locationNameList:"GroupName" type:"list"`
  35638. // The maximum number of results to return in a single call. To retrieve the
  35639. // remaining results, make another request with the returned NextToken value.
  35640. // This value can be between 5 and 1000. If this parameter is not specified,
  35641. // then all results are returned.
  35642. MaxResults *int64 `type:"integer"`
  35643. // The token to request the next page of results.
  35644. NextToken *string `type:"string"`
  35645. }
  35646. // String returns the string representation
  35647. func (s DescribeSecurityGroupsInput) String() string {
  35648. return awsutil.Prettify(s)
  35649. }
  35650. // GoString returns the string representation
  35651. func (s DescribeSecurityGroupsInput) GoString() string {
  35652. return s.String()
  35653. }
  35654. // SetDryRun sets the DryRun field's value.
  35655. func (s *DescribeSecurityGroupsInput) SetDryRun(v bool) *DescribeSecurityGroupsInput {
  35656. s.DryRun = &v
  35657. return s
  35658. }
  35659. // SetFilters sets the Filters field's value.
  35660. func (s *DescribeSecurityGroupsInput) SetFilters(v []*Filter) *DescribeSecurityGroupsInput {
  35661. s.Filters = v
  35662. return s
  35663. }
  35664. // SetGroupIds sets the GroupIds field's value.
  35665. func (s *DescribeSecurityGroupsInput) SetGroupIds(v []*string) *DescribeSecurityGroupsInput {
  35666. s.GroupIds = v
  35667. return s
  35668. }
  35669. // SetGroupNames sets the GroupNames field's value.
  35670. func (s *DescribeSecurityGroupsInput) SetGroupNames(v []*string) *DescribeSecurityGroupsInput {
  35671. s.GroupNames = v
  35672. return s
  35673. }
  35674. // SetMaxResults sets the MaxResults field's value.
  35675. func (s *DescribeSecurityGroupsInput) SetMaxResults(v int64) *DescribeSecurityGroupsInput {
  35676. s.MaxResults = &v
  35677. return s
  35678. }
  35679. // SetNextToken sets the NextToken field's value.
  35680. func (s *DescribeSecurityGroupsInput) SetNextToken(v string) *DescribeSecurityGroupsInput {
  35681. s.NextToken = &v
  35682. return s
  35683. }
  35684. // Contains the output of DescribeSecurityGroups.
  35685. type DescribeSecurityGroupsOutput struct {
  35686. _ struct{} `type:"structure"`
  35687. // The token to use to retrieve the next page of results. This value is null
  35688. // when there are no more results to return.
  35689. NextToken *string `locationName:"nextToken" type:"string"`
  35690. // Information about one or more security groups.
  35691. SecurityGroups []*SecurityGroup `locationName:"securityGroupInfo" locationNameList:"item" type:"list"`
  35692. }
  35693. // String returns the string representation
  35694. func (s DescribeSecurityGroupsOutput) String() string {
  35695. return awsutil.Prettify(s)
  35696. }
  35697. // GoString returns the string representation
  35698. func (s DescribeSecurityGroupsOutput) GoString() string {
  35699. return s.String()
  35700. }
  35701. // SetNextToken sets the NextToken field's value.
  35702. func (s *DescribeSecurityGroupsOutput) SetNextToken(v string) *DescribeSecurityGroupsOutput {
  35703. s.NextToken = &v
  35704. return s
  35705. }
  35706. // SetSecurityGroups sets the SecurityGroups field's value.
  35707. func (s *DescribeSecurityGroupsOutput) SetSecurityGroups(v []*SecurityGroup) *DescribeSecurityGroupsOutput {
  35708. s.SecurityGroups = v
  35709. return s
  35710. }
  35711. // Contains the parameters for DescribeSnapshotAttribute.
  35712. type DescribeSnapshotAttributeInput struct {
  35713. _ struct{} `type:"structure"`
  35714. // The snapshot attribute you would like to view.
  35715. //
  35716. // Attribute is a required field
  35717. Attribute *string `type:"string" required:"true" enum:"SnapshotAttributeName"`
  35718. // Checks whether you have the required permissions for the action, without
  35719. // actually making the request, and provides an error response. If you have
  35720. // the required permissions, the error response is DryRunOperation. Otherwise,
  35721. // it is UnauthorizedOperation.
  35722. DryRun *bool `locationName:"dryRun" type:"boolean"`
  35723. // The ID of the EBS snapshot.
  35724. //
  35725. // SnapshotId is a required field
  35726. SnapshotId *string `type:"string" required:"true"`
  35727. }
  35728. // String returns the string representation
  35729. func (s DescribeSnapshotAttributeInput) String() string {
  35730. return awsutil.Prettify(s)
  35731. }
  35732. // GoString returns the string representation
  35733. func (s DescribeSnapshotAttributeInput) GoString() string {
  35734. return s.String()
  35735. }
  35736. // Validate inspects the fields of the type to determine if they are valid.
  35737. func (s *DescribeSnapshotAttributeInput) Validate() error {
  35738. invalidParams := request.ErrInvalidParams{Context: "DescribeSnapshotAttributeInput"}
  35739. if s.Attribute == nil {
  35740. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  35741. }
  35742. if s.SnapshotId == nil {
  35743. invalidParams.Add(request.NewErrParamRequired("SnapshotId"))
  35744. }
  35745. if invalidParams.Len() > 0 {
  35746. return invalidParams
  35747. }
  35748. return nil
  35749. }
  35750. // SetAttribute sets the Attribute field's value.
  35751. func (s *DescribeSnapshotAttributeInput) SetAttribute(v string) *DescribeSnapshotAttributeInput {
  35752. s.Attribute = &v
  35753. return s
  35754. }
  35755. // SetDryRun sets the DryRun field's value.
  35756. func (s *DescribeSnapshotAttributeInput) SetDryRun(v bool) *DescribeSnapshotAttributeInput {
  35757. s.DryRun = &v
  35758. return s
  35759. }
  35760. // SetSnapshotId sets the SnapshotId field's value.
  35761. func (s *DescribeSnapshotAttributeInput) SetSnapshotId(v string) *DescribeSnapshotAttributeInput {
  35762. s.SnapshotId = &v
  35763. return s
  35764. }
  35765. // Contains the output of DescribeSnapshotAttribute.
  35766. type DescribeSnapshotAttributeOutput struct {
  35767. _ struct{} `type:"structure"`
  35768. // A list of permissions for creating volumes from the snapshot.
  35769. CreateVolumePermissions []*CreateVolumePermission `locationName:"createVolumePermission" locationNameList:"item" type:"list"`
  35770. // A list of product codes.
  35771. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  35772. // The ID of the EBS snapshot.
  35773. SnapshotId *string `locationName:"snapshotId" type:"string"`
  35774. }
  35775. // String returns the string representation
  35776. func (s DescribeSnapshotAttributeOutput) String() string {
  35777. return awsutil.Prettify(s)
  35778. }
  35779. // GoString returns the string representation
  35780. func (s DescribeSnapshotAttributeOutput) GoString() string {
  35781. return s.String()
  35782. }
  35783. // SetCreateVolumePermissions sets the CreateVolumePermissions field's value.
  35784. func (s *DescribeSnapshotAttributeOutput) SetCreateVolumePermissions(v []*CreateVolumePermission) *DescribeSnapshotAttributeOutput {
  35785. s.CreateVolumePermissions = v
  35786. return s
  35787. }
  35788. // SetProductCodes sets the ProductCodes field's value.
  35789. func (s *DescribeSnapshotAttributeOutput) SetProductCodes(v []*ProductCode) *DescribeSnapshotAttributeOutput {
  35790. s.ProductCodes = v
  35791. return s
  35792. }
  35793. // SetSnapshotId sets the SnapshotId field's value.
  35794. func (s *DescribeSnapshotAttributeOutput) SetSnapshotId(v string) *DescribeSnapshotAttributeOutput {
  35795. s.SnapshotId = &v
  35796. return s
  35797. }
  35798. // Contains the parameters for DescribeSnapshots.
  35799. type DescribeSnapshotsInput struct {
  35800. _ struct{} `type:"structure"`
  35801. // Checks whether you have the required permissions for the action, without
  35802. // actually making the request, and provides an error response. If you have
  35803. // the required permissions, the error response is DryRunOperation. Otherwise,
  35804. // it is UnauthorizedOperation.
  35805. DryRun *bool `locationName:"dryRun" type:"boolean"`
  35806. // One or more filters.
  35807. //
  35808. // * description - A description of the snapshot.
  35809. //
  35810. // * owner-alias - Value from an Amazon-maintained list (amazon | aws-marketplace
  35811. // | microsoft) of snapshot owners. Not to be confused with the user-configured
  35812. // AWS account alias, which is set from the IAM console.
  35813. //
  35814. // * owner-id - The ID of the AWS account that owns the snapshot.
  35815. //
  35816. // * progress - The progress of the snapshot, as a percentage (for example,
  35817. // 80%).
  35818. //
  35819. // * snapshot-id - The snapshot ID.
  35820. //
  35821. // * start-time - The time stamp when the snapshot was initiated.
  35822. //
  35823. // * status - The status of the snapshot (pending | completed | error).
  35824. //
  35825. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  35826. // Specify the key of the tag in the filter name and the value of the tag
  35827. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  35828. // for the filter name and X for the filter value.
  35829. //
  35830. // * tag-key - The key of a tag assigned to the resource. This filter is
  35831. // independent of the tag-value filter. For example, if you use both the
  35832. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  35833. // assigned both the tag key Purpose (regardless of what the tag's value
  35834. // is), and the tag value X (regardless of what the tag's key is). If you
  35835. // want to list only resources where Purpose is X, see the tag:key=value
  35836. // filter.
  35837. //
  35838. // * tag-value - The value of a tag assigned to the resource. This filter
  35839. // is independent of the tag-key filter.
  35840. //
  35841. // * volume-id - The ID of the volume the snapshot is for.
  35842. //
  35843. // * volume-size - The size of the volume, in GiB.
  35844. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  35845. // The maximum number of snapshot results returned by DescribeSnapshots in paginated
  35846. // output. When this parameter is used, DescribeSnapshots only returns MaxResults
  35847. // results in a single page along with a NextToken response element. The remaining
  35848. // results of the initial request can be seen by sending another DescribeSnapshots
  35849. // request with the returned NextToken value. This value can be between 5 and
  35850. // 1000; if MaxResults is given a value larger than 1000, only 1000 results
  35851. // are returned. If this parameter is not used, then DescribeSnapshots returns
  35852. // all results. You cannot specify this parameter and the snapshot IDs parameter
  35853. // in the same request.
  35854. MaxResults *int64 `type:"integer"`
  35855. // The NextToken value returned from a previous paginated DescribeSnapshots
  35856. // request where MaxResults was used and the results exceeded the value of that
  35857. // parameter. Pagination continues from the end of the previous results that
  35858. // returned the NextToken value. This value is null when there are no more results
  35859. // to return.
  35860. NextToken *string `type:"string"`
  35861. // Returns the snapshots owned by the specified owner. Multiple owners can be
  35862. // specified.
  35863. OwnerIds []*string `locationName:"Owner" locationNameList:"Owner" type:"list"`
  35864. // One or more AWS accounts IDs that can create volumes from the snapshot.
  35865. RestorableByUserIds []*string `locationName:"RestorableBy" type:"list"`
  35866. // One or more snapshot IDs.
  35867. //
  35868. // Default: Describes snapshots for which you have launch permissions.
  35869. SnapshotIds []*string `locationName:"SnapshotId" locationNameList:"SnapshotId" type:"list"`
  35870. }
  35871. // String returns the string representation
  35872. func (s DescribeSnapshotsInput) String() string {
  35873. return awsutil.Prettify(s)
  35874. }
  35875. // GoString returns the string representation
  35876. func (s DescribeSnapshotsInput) GoString() string {
  35877. return s.String()
  35878. }
  35879. // SetDryRun sets the DryRun field's value.
  35880. func (s *DescribeSnapshotsInput) SetDryRun(v bool) *DescribeSnapshotsInput {
  35881. s.DryRun = &v
  35882. return s
  35883. }
  35884. // SetFilters sets the Filters field's value.
  35885. func (s *DescribeSnapshotsInput) SetFilters(v []*Filter) *DescribeSnapshotsInput {
  35886. s.Filters = v
  35887. return s
  35888. }
  35889. // SetMaxResults sets the MaxResults field's value.
  35890. func (s *DescribeSnapshotsInput) SetMaxResults(v int64) *DescribeSnapshotsInput {
  35891. s.MaxResults = &v
  35892. return s
  35893. }
  35894. // SetNextToken sets the NextToken field's value.
  35895. func (s *DescribeSnapshotsInput) SetNextToken(v string) *DescribeSnapshotsInput {
  35896. s.NextToken = &v
  35897. return s
  35898. }
  35899. // SetOwnerIds sets the OwnerIds field's value.
  35900. func (s *DescribeSnapshotsInput) SetOwnerIds(v []*string) *DescribeSnapshotsInput {
  35901. s.OwnerIds = v
  35902. return s
  35903. }
  35904. // SetRestorableByUserIds sets the RestorableByUserIds field's value.
  35905. func (s *DescribeSnapshotsInput) SetRestorableByUserIds(v []*string) *DescribeSnapshotsInput {
  35906. s.RestorableByUserIds = v
  35907. return s
  35908. }
  35909. // SetSnapshotIds sets the SnapshotIds field's value.
  35910. func (s *DescribeSnapshotsInput) SetSnapshotIds(v []*string) *DescribeSnapshotsInput {
  35911. s.SnapshotIds = v
  35912. return s
  35913. }
  35914. // Contains the output of DescribeSnapshots.
  35915. type DescribeSnapshotsOutput struct {
  35916. _ struct{} `type:"structure"`
  35917. // The NextToken value to include in a future DescribeSnapshots request. When
  35918. // the results of a DescribeSnapshots request exceed MaxResults, this value
  35919. // can be used to retrieve the next page of results. This value is null when
  35920. // there are no more results to return.
  35921. NextToken *string `locationName:"nextToken" type:"string"`
  35922. // Information about the snapshots.
  35923. Snapshots []*Snapshot `locationName:"snapshotSet" locationNameList:"item" type:"list"`
  35924. }
  35925. // String returns the string representation
  35926. func (s DescribeSnapshotsOutput) String() string {
  35927. return awsutil.Prettify(s)
  35928. }
  35929. // GoString returns the string representation
  35930. func (s DescribeSnapshotsOutput) GoString() string {
  35931. return s.String()
  35932. }
  35933. // SetNextToken sets the NextToken field's value.
  35934. func (s *DescribeSnapshotsOutput) SetNextToken(v string) *DescribeSnapshotsOutput {
  35935. s.NextToken = &v
  35936. return s
  35937. }
  35938. // SetSnapshots sets the Snapshots field's value.
  35939. func (s *DescribeSnapshotsOutput) SetSnapshots(v []*Snapshot) *DescribeSnapshotsOutput {
  35940. s.Snapshots = v
  35941. return s
  35942. }
  35943. // Contains the parameters for DescribeSpotDatafeedSubscription.
  35944. type DescribeSpotDatafeedSubscriptionInput struct {
  35945. _ struct{} `type:"structure"`
  35946. // Checks whether you have the required permissions for the action, without
  35947. // actually making the request, and provides an error response. If you have
  35948. // the required permissions, the error response is DryRunOperation. Otherwise,
  35949. // it is UnauthorizedOperation.
  35950. DryRun *bool `locationName:"dryRun" type:"boolean"`
  35951. }
  35952. // String returns the string representation
  35953. func (s DescribeSpotDatafeedSubscriptionInput) String() string {
  35954. return awsutil.Prettify(s)
  35955. }
  35956. // GoString returns the string representation
  35957. func (s DescribeSpotDatafeedSubscriptionInput) GoString() string {
  35958. return s.String()
  35959. }
  35960. // SetDryRun sets the DryRun field's value.
  35961. func (s *DescribeSpotDatafeedSubscriptionInput) SetDryRun(v bool) *DescribeSpotDatafeedSubscriptionInput {
  35962. s.DryRun = &v
  35963. return s
  35964. }
  35965. // Contains the output of DescribeSpotDatafeedSubscription.
  35966. type DescribeSpotDatafeedSubscriptionOutput struct {
  35967. _ struct{} `type:"structure"`
  35968. // The Spot Instance data feed subscription.
  35969. SpotDatafeedSubscription *SpotDatafeedSubscription `locationName:"spotDatafeedSubscription" type:"structure"`
  35970. }
  35971. // String returns the string representation
  35972. func (s DescribeSpotDatafeedSubscriptionOutput) String() string {
  35973. return awsutil.Prettify(s)
  35974. }
  35975. // GoString returns the string representation
  35976. func (s DescribeSpotDatafeedSubscriptionOutput) GoString() string {
  35977. return s.String()
  35978. }
  35979. // SetSpotDatafeedSubscription sets the SpotDatafeedSubscription field's value.
  35980. func (s *DescribeSpotDatafeedSubscriptionOutput) SetSpotDatafeedSubscription(v *SpotDatafeedSubscription) *DescribeSpotDatafeedSubscriptionOutput {
  35981. s.SpotDatafeedSubscription = v
  35982. return s
  35983. }
  35984. // Contains the parameters for DescribeSpotFleetInstances.
  35985. type DescribeSpotFleetInstancesInput struct {
  35986. _ struct{} `type:"structure"`
  35987. // Checks whether you have the required permissions for the action, without
  35988. // actually making the request, and provides an error response. If you have
  35989. // the required permissions, the error response is DryRunOperation. Otherwise,
  35990. // it is UnauthorizedOperation.
  35991. DryRun *bool `locationName:"dryRun" type:"boolean"`
  35992. // The maximum number of results to return in a single call. Specify a value
  35993. // between 1 and 1000. The default value is 1000. To retrieve the remaining
  35994. // results, make another call with the returned NextToken value.
  35995. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  35996. // The token for the next set of results.
  35997. NextToken *string `locationName:"nextToken" type:"string"`
  35998. // The ID of the Spot Fleet request.
  35999. //
  36000. // SpotFleetRequestId is a required field
  36001. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
  36002. }
  36003. // String returns the string representation
  36004. func (s DescribeSpotFleetInstancesInput) String() string {
  36005. return awsutil.Prettify(s)
  36006. }
  36007. // GoString returns the string representation
  36008. func (s DescribeSpotFleetInstancesInput) GoString() string {
  36009. return s.String()
  36010. }
  36011. // Validate inspects the fields of the type to determine if they are valid.
  36012. func (s *DescribeSpotFleetInstancesInput) Validate() error {
  36013. invalidParams := request.ErrInvalidParams{Context: "DescribeSpotFleetInstancesInput"}
  36014. if s.SpotFleetRequestId == nil {
  36015. invalidParams.Add(request.NewErrParamRequired("SpotFleetRequestId"))
  36016. }
  36017. if invalidParams.Len() > 0 {
  36018. return invalidParams
  36019. }
  36020. return nil
  36021. }
  36022. // SetDryRun sets the DryRun field's value.
  36023. func (s *DescribeSpotFleetInstancesInput) SetDryRun(v bool) *DescribeSpotFleetInstancesInput {
  36024. s.DryRun = &v
  36025. return s
  36026. }
  36027. // SetMaxResults sets the MaxResults field's value.
  36028. func (s *DescribeSpotFleetInstancesInput) SetMaxResults(v int64) *DescribeSpotFleetInstancesInput {
  36029. s.MaxResults = &v
  36030. return s
  36031. }
  36032. // SetNextToken sets the NextToken field's value.
  36033. func (s *DescribeSpotFleetInstancesInput) SetNextToken(v string) *DescribeSpotFleetInstancesInput {
  36034. s.NextToken = &v
  36035. return s
  36036. }
  36037. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  36038. func (s *DescribeSpotFleetInstancesInput) SetSpotFleetRequestId(v string) *DescribeSpotFleetInstancesInput {
  36039. s.SpotFleetRequestId = &v
  36040. return s
  36041. }
  36042. // Contains the output of DescribeSpotFleetInstances.
  36043. type DescribeSpotFleetInstancesOutput struct {
  36044. _ struct{} `type:"structure"`
  36045. // The running instances. This list is refreshed periodically and might be out
  36046. // of date.
  36047. //
  36048. // ActiveInstances is a required field
  36049. ActiveInstances []*ActiveInstance `locationName:"activeInstanceSet" locationNameList:"item" type:"list" required:"true"`
  36050. // The token required to retrieve the next set of results. This value is null
  36051. // when there are no more results to return.
  36052. NextToken *string `locationName:"nextToken" type:"string"`
  36053. // The ID of the Spot Fleet request.
  36054. //
  36055. // SpotFleetRequestId is a required field
  36056. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
  36057. }
  36058. // String returns the string representation
  36059. func (s DescribeSpotFleetInstancesOutput) String() string {
  36060. return awsutil.Prettify(s)
  36061. }
  36062. // GoString returns the string representation
  36063. func (s DescribeSpotFleetInstancesOutput) GoString() string {
  36064. return s.String()
  36065. }
  36066. // SetActiveInstances sets the ActiveInstances field's value.
  36067. func (s *DescribeSpotFleetInstancesOutput) SetActiveInstances(v []*ActiveInstance) *DescribeSpotFleetInstancesOutput {
  36068. s.ActiveInstances = v
  36069. return s
  36070. }
  36071. // SetNextToken sets the NextToken field's value.
  36072. func (s *DescribeSpotFleetInstancesOutput) SetNextToken(v string) *DescribeSpotFleetInstancesOutput {
  36073. s.NextToken = &v
  36074. return s
  36075. }
  36076. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  36077. func (s *DescribeSpotFleetInstancesOutput) SetSpotFleetRequestId(v string) *DescribeSpotFleetInstancesOutput {
  36078. s.SpotFleetRequestId = &v
  36079. return s
  36080. }
  36081. // Contains the parameters for DescribeSpotFleetRequestHistory.
  36082. type DescribeSpotFleetRequestHistoryInput struct {
  36083. _ struct{} `type:"structure"`
  36084. // Checks whether you have the required permissions for the action, without
  36085. // actually making the request, and provides an error response. If you have
  36086. // the required permissions, the error response is DryRunOperation. Otherwise,
  36087. // it is UnauthorizedOperation.
  36088. DryRun *bool `locationName:"dryRun" type:"boolean"`
  36089. // The type of events to describe. By default, all events are described.
  36090. EventType *string `locationName:"eventType" type:"string" enum:"EventType"`
  36091. // The maximum number of results to return in a single call. Specify a value
  36092. // between 1 and 1000. The default value is 1000. To retrieve the remaining
  36093. // results, make another call with the returned NextToken value.
  36094. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  36095. // The token for the next set of results.
  36096. NextToken *string `locationName:"nextToken" type:"string"`
  36097. // The ID of the Spot Fleet request.
  36098. //
  36099. // SpotFleetRequestId is a required field
  36100. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
  36101. // The starting date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  36102. //
  36103. // StartTime is a required field
  36104. StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601" required:"true"`
  36105. }
  36106. // String returns the string representation
  36107. func (s DescribeSpotFleetRequestHistoryInput) String() string {
  36108. return awsutil.Prettify(s)
  36109. }
  36110. // GoString returns the string representation
  36111. func (s DescribeSpotFleetRequestHistoryInput) GoString() string {
  36112. return s.String()
  36113. }
  36114. // Validate inspects the fields of the type to determine if they are valid.
  36115. func (s *DescribeSpotFleetRequestHistoryInput) Validate() error {
  36116. invalidParams := request.ErrInvalidParams{Context: "DescribeSpotFleetRequestHistoryInput"}
  36117. if s.SpotFleetRequestId == nil {
  36118. invalidParams.Add(request.NewErrParamRequired("SpotFleetRequestId"))
  36119. }
  36120. if s.StartTime == nil {
  36121. invalidParams.Add(request.NewErrParamRequired("StartTime"))
  36122. }
  36123. if invalidParams.Len() > 0 {
  36124. return invalidParams
  36125. }
  36126. return nil
  36127. }
  36128. // SetDryRun sets the DryRun field's value.
  36129. func (s *DescribeSpotFleetRequestHistoryInput) SetDryRun(v bool) *DescribeSpotFleetRequestHistoryInput {
  36130. s.DryRun = &v
  36131. return s
  36132. }
  36133. // SetEventType sets the EventType field's value.
  36134. func (s *DescribeSpotFleetRequestHistoryInput) SetEventType(v string) *DescribeSpotFleetRequestHistoryInput {
  36135. s.EventType = &v
  36136. return s
  36137. }
  36138. // SetMaxResults sets the MaxResults field's value.
  36139. func (s *DescribeSpotFleetRequestHistoryInput) SetMaxResults(v int64) *DescribeSpotFleetRequestHistoryInput {
  36140. s.MaxResults = &v
  36141. return s
  36142. }
  36143. // SetNextToken sets the NextToken field's value.
  36144. func (s *DescribeSpotFleetRequestHistoryInput) SetNextToken(v string) *DescribeSpotFleetRequestHistoryInput {
  36145. s.NextToken = &v
  36146. return s
  36147. }
  36148. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  36149. func (s *DescribeSpotFleetRequestHistoryInput) SetSpotFleetRequestId(v string) *DescribeSpotFleetRequestHistoryInput {
  36150. s.SpotFleetRequestId = &v
  36151. return s
  36152. }
  36153. // SetStartTime sets the StartTime field's value.
  36154. func (s *DescribeSpotFleetRequestHistoryInput) SetStartTime(v time.Time) *DescribeSpotFleetRequestHistoryInput {
  36155. s.StartTime = &v
  36156. return s
  36157. }
  36158. // Contains the output of DescribeSpotFleetRequestHistory.
  36159. type DescribeSpotFleetRequestHistoryOutput struct {
  36160. _ struct{} `type:"structure"`
  36161. // Information about the events in the history of the Spot Fleet request.
  36162. //
  36163. // HistoryRecords is a required field
  36164. HistoryRecords []*HistoryRecord `locationName:"historyRecordSet" locationNameList:"item" type:"list" required:"true"`
  36165. // The last date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  36166. // All records up to this time were retrieved.
  36167. //
  36168. // If nextToken indicates that there are more results, this value is not present.
  36169. //
  36170. // LastEvaluatedTime is a required field
  36171. LastEvaluatedTime *time.Time `locationName:"lastEvaluatedTime" type:"timestamp" timestampFormat:"iso8601" required:"true"`
  36172. // The token required to retrieve the next set of results. This value is null
  36173. // when there are no more results to return.
  36174. NextToken *string `locationName:"nextToken" type:"string"`
  36175. // The ID of the Spot Fleet request.
  36176. //
  36177. // SpotFleetRequestId is a required field
  36178. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
  36179. // The starting date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  36180. //
  36181. // StartTime is a required field
  36182. StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601" required:"true"`
  36183. }
  36184. // String returns the string representation
  36185. func (s DescribeSpotFleetRequestHistoryOutput) String() string {
  36186. return awsutil.Prettify(s)
  36187. }
  36188. // GoString returns the string representation
  36189. func (s DescribeSpotFleetRequestHistoryOutput) GoString() string {
  36190. return s.String()
  36191. }
  36192. // SetHistoryRecords sets the HistoryRecords field's value.
  36193. func (s *DescribeSpotFleetRequestHistoryOutput) SetHistoryRecords(v []*HistoryRecord) *DescribeSpotFleetRequestHistoryOutput {
  36194. s.HistoryRecords = v
  36195. return s
  36196. }
  36197. // SetLastEvaluatedTime sets the LastEvaluatedTime field's value.
  36198. func (s *DescribeSpotFleetRequestHistoryOutput) SetLastEvaluatedTime(v time.Time) *DescribeSpotFleetRequestHistoryOutput {
  36199. s.LastEvaluatedTime = &v
  36200. return s
  36201. }
  36202. // SetNextToken sets the NextToken field's value.
  36203. func (s *DescribeSpotFleetRequestHistoryOutput) SetNextToken(v string) *DescribeSpotFleetRequestHistoryOutput {
  36204. s.NextToken = &v
  36205. return s
  36206. }
  36207. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  36208. func (s *DescribeSpotFleetRequestHistoryOutput) SetSpotFleetRequestId(v string) *DescribeSpotFleetRequestHistoryOutput {
  36209. s.SpotFleetRequestId = &v
  36210. return s
  36211. }
  36212. // SetStartTime sets the StartTime field's value.
  36213. func (s *DescribeSpotFleetRequestHistoryOutput) SetStartTime(v time.Time) *DescribeSpotFleetRequestHistoryOutput {
  36214. s.StartTime = &v
  36215. return s
  36216. }
  36217. // Contains the parameters for DescribeSpotFleetRequests.
  36218. type DescribeSpotFleetRequestsInput struct {
  36219. _ struct{} `type:"structure"`
  36220. // Checks whether you have the required permissions for the action, without
  36221. // actually making the request, and provides an error response. If you have
  36222. // the required permissions, the error response is DryRunOperation. Otherwise,
  36223. // it is UnauthorizedOperation.
  36224. DryRun *bool `locationName:"dryRun" type:"boolean"`
  36225. // The maximum number of results to return in a single call. Specify a value
  36226. // between 1 and 1000. The default value is 1000. To retrieve the remaining
  36227. // results, make another call with the returned NextToken value.
  36228. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  36229. // The token for the next set of results.
  36230. NextToken *string `locationName:"nextToken" type:"string"`
  36231. // The IDs of the Spot Fleet requests.
  36232. SpotFleetRequestIds []*string `locationName:"spotFleetRequestId" locationNameList:"item" type:"list"`
  36233. }
  36234. // String returns the string representation
  36235. func (s DescribeSpotFleetRequestsInput) String() string {
  36236. return awsutil.Prettify(s)
  36237. }
  36238. // GoString returns the string representation
  36239. func (s DescribeSpotFleetRequestsInput) GoString() string {
  36240. return s.String()
  36241. }
  36242. // SetDryRun sets the DryRun field's value.
  36243. func (s *DescribeSpotFleetRequestsInput) SetDryRun(v bool) *DescribeSpotFleetRequestsInput {
  36244. s.DryRun = &v
  36245. return s
  36246. }
  36247. // SetMaxResults sets the MaxResults field's value.
  36248. func (s *DescribeSpotFleetRequestsInput) SetMaxResults(v int64) *DescribeSpotFleetRequestsInput {
  36249. s.MaxResults = &v
  36250. return s
  36251. }
  36252. // SetNextToken sets the NextToken field's value.
  36253. func (s *DescribeSpotFleetRequestsInput) SetNextToken(v string) *DescribeSpotFleetRequestsInput {
  36254. s.NextToken = &v
  36255. return s
  36256. }
  36257. // SetSpotFleetRequestIds sets the SpotFleetRequestIds field's value.
  36258. func (s *DescribeSpotFleetRequestsInput) SetSpotFleetRequestIds(v []*string) *DescribeSpotFleetRequestsInput {
  36259. s.SpotFleetRequestIds = v
  36260. return s
  36261. }
  36262. // Contains the output of DescribeSpotFleetRequests.
  36263. type DescribeSpotFleetRequestsOutput struct {
  36264. _ struct{} `type:"structure"`
  36265. // The token required to retrieve the next set of results. This value is null
  36266. // when there are no more results to return.
  36267. NextToken *string `locationName:"nextToken" type:"string"`
  36268. // Information about the configuration of your Spot Fleet.
  36269. //
  36270. // SpotFleetRequestConfigs is a required field
  36271. SpotFleetRequestConfigs []*SpotFleetRequestConfig `locationName:"spotFleetRequestConfigSet" locationNameList:"item" type:"list" required:"true"`
  36272. }
  36273. // String returns the string representation
  36274. func (s DescribeSpotFleetRequestsOutput) String() string {
  36275. return awsutil.Prettify(s)
  36276. }
  36277. // GoString returns the string representation
  36278. func (s DescribeSpotFleetRequestsOutput) GoString() string {
  36279. return s.String()
  36280. }
  36281. // SetNextToken sets the NextToken field's value.
  36282. func (s *DescribeSpotFleetRequestsOutput) SetNextToken(v string) *DescribeSpotFleetRequestsOutput {
  36283. s.NextToken = &v
  36284. return s
  36285. }
  36286. // SetSpotFleetRequestConfigs sets the SpotFleetRequestConfigs field's value.
  36287. func (s *DescribeSpotFleetRequestsOutput) SetSpotFleetRequestConfigs(v []*SpotFleetRequestConfig) *DescribeSpotFleetRequestsOutput {
  36288. s.SpotFleetRequestConfigs = v
  36289. return s
  36290. }
  36291. // Contains the parameters for DescribeSpotInstanceRequests.
  36292. type DescribeSpotInstanceRequestsInput struct {
  36293. _ struct{} `type:"structure"`
  36294. // Checks whether you have the required permissions for the action, without
  36295. // actually making the request, and provides an error response. If you have
  36296. // the required permissions, the error response is DryRunOperation. Otherwise,
  36297. // it is UnauthorizedOperation.
  36298. DryRun *bool `locationName:"dryRun" type:"boolean"`
  36299. // One or more filters.
  36300. //
  36301. // * availability-zone-group - The Availability Zone group.
  36302. //
  36303. // * create-time - The time stamp when the Spot Instance request was created.
  36304. //
  36305. // * fault-code - The fault code related to the request.
  36306. //
  36307. // * fault-message - The fault message related to the request.
  36308. //
  36309. // * instance-id - The ID of the instance that fulfilled the request.
  36310. //
  36311. // * launch-group - The Spot Instance launch group.
  36312. //
  36313. // * launch.block-device-mapping.delete-on-termination - Indicates whether
  36314. // the EBS volume is deleted on instance termination.
  36315. //
  36316. // * launch.block-device-mapping.device-name - The device name for the volume
  36317. // in the block device mapping (for example, /dev/sdh or xvdh).
  36318. //
  36319. // * launch.block-device-mapping.snapshot-id - The ID of the snapshot for
  36320. // the EBS volume.
  36321. //
  36322. // * launch.block-device-mapping.volume-size - The size of the EBS volume,
  36323. // in GiB.
  36324. //
  36325. // * launch.block-device-mapping.volume-type - The type of EBS volume: gp2
  36326. // for General Purpose SSD, io1 for Provisioned IOPS SSD, st1 for Throughput
  36327. // Optimized HDD, sc1for Cold HDD, or standard for Magnetic.
  36328. //
  36329. // * launch.group-id - The ID of the security group for the instance.
  36330. //
  36331. // * launch.group-name - The name of the security group for the instance.
  36332. //
  36333. // * launch.image-id - The ID of the AMI.
  36334. //
  36335. // * launch.instance-type - The type of instance (for example, m3.medium).
  36336. //
  36337. // * launch.kernel-id - The kernel ID.
  36338. //
  36339. // * launch.key-name - The name of the key pair the instance launched with.
  36340. //
  36341. // * launch.monitoring-enabled - Whether detailed monitoring is enabled for
  36342. // the Spot Instance.
  36343. //
  36344. // * launch.ramdisk-id - The RAM disk ID.
  36345. //
  36346. // * launched-availability-zone - The Availability Zone in which the request
  36347. // is launched.
  36348. //
  36349. // * network-interface.addresses.primary - Indicates whether the IP address
  36350. // is the primary private IP address.
  36351. //
  36352. // * network-interface.delete-on-termination - Indicates whether the network
  36353. // interface is deleted when the instance is terminated.
  36354. //
  36355. // * network-interface.description - A description of the network interface.
  36356. //
  36357. // * network-interface.device-index - The index of the device for the network
  36358. // interface attachment on the instance.
  36359. //
  36360. // * network-interface.group-id - The ID of the security group associated
  36361. // with the network interface.
  36362. //
  36363. // * network-interface.network-interface-id - The ID of the network interface.
  36364. //
  36365. // * network-interface.private-ip-address - The primary private IP address
  36366. // of the network interface.
  36367. //
  36368. // * network-interface.subnet-id - The ID of the subnet for the instance.
  36369. //
  36370. // * product-description - The product description associated with the instance
  36371. // (Linux/UNIX | Windows).
  36372. //
  36373. // * spot-instance-request-id - The Spot Instance request ID.
  36374. //
  36375. // * spot-price - The maximum hourly price for any Spot Instance launched
  36376. // to fulfill the request.
  36377. //
  36378. // * state - The state of the Spot Instance request (open | active | closed
  36379. // | cancelled | failed). Spot request status information can help you track
  36380. // your Amazon EC2 Spot Instance requests. For more information, see Spot
  36381. // Request Status (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-bid-status.html)
  36382. // in the Amazon EC2 User Guide for Linux Instances.
  36383. //
  36384. // * status-code - The short code describing the most recent evaluation of
  36385. // your Spot Instance request.
  36386. //
  36387. // * status-message - The message explaining the status of the Spot Instance
  36388. // request.
  36389. //
  36390. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  36391. // Specify the key of the tag in the filter name and the value of the tag
  36392. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  36393. // for the filter name and X for the filter value.
  36394. //
  36395. // * tag-key - The key of a tag assigned to the resource. This filter is
  36396. // independent of the tag-value filter. For example, if you use both the
  36397. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  36398. // assigned both the tag key Purpose (regardless of what the tag's value
  36399. // is), and the tag value X (regardless of what the tag's key is). If you
  36400. // want to list only resources where Purpose is X, see the tag:key=value
  36401. // filter.
  36402. //
  36403. // * tag-value - The value of a tag assigned to the resource. This filter
  36404. // is independent of the tag-key filter.
  36405. //
  36406. // * type - The type of Spot Instance request (one-time | persistent).
  36407. //
  36408. // * valid-from - The start date of the request.
  36409. //
  36410. // * valid-until - The end date of the request.
  36411. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  36412. // One or more Spot Instance request IDs.
  36413. SpotInstanceRequestIds []*string `locationName:"SpotInstanceRequestId" locationNameList:"SpotInstanceRequestId" type:"list"`
  36414. }
  36415. // String returns the string representation
  36416. func (s DescribeSpotInstanceRequestsInput) String() string {
  36417. return awsutil.Prettify(s)
  36418. }
  36419. // GoString returns the string representation
  36420. func (s DescribeSpotInstanceRequestsInput) GoString() string {
  36421. return s.String()
  36422. }
  36423. // SetDryRun sets the DryRun field's value.
  36424. func (s *DescribeSpotInstanceRequestsInput) SetDryRun(v bool) *DescribeSpotInstanceRequestsInput {
  36425. s.DryRun = &v
  36426. return s
  36427. }
  36428. // SetFilters sets the Filters field's value.
  36429. func (s *DescribeSpotInstanceRequestsInput) SetFilters(v []*Filter) *DescribeSpotInstanceRequestsInput {
  36430. s.Filters = v
  36431. return s
  36432. }
  36433. // SetSpotInstanceRequestIds sets the SpotInstanceRequestIds field's value.
  36434. func (s *DescribeSpotInstanceRequestsInput) SetSpotInstanceRequestIds(v []*string) *DescribeSpotInstanceRequestsInput {
  36435. s.SpotInstanceRequestIds = v
  36436. return s
  36437. }
  36438. // Contains the output of DescribeSpotInstanceRequests.
  36439. type DescribeSpotInstanceRequestsOutput struct {
  36440. _ struct{} `type:"structure"`
  36441. // One or more Spot Instance requests.
  36442. SpotInstanceRequests []*SpotInstanceRequest `locationName:"spotInstanceRequestSet" locationNameList:"item" type:"list"`
  36443. }
  36444. // String returns the string representation
  36445. func (s DescribeSpotInstanceRequestsOutput) String() string {
  36446. return awsutil.Prettify(s)
  36447. }
  36448. // GoString returns the string representation
  36449. func (s DescribeSpotInstanceRequestsOutput) GoString() string {
  36450. return s.String()
  36451. }
  36452. // SetSpotInstanceRequests sets the SpotInstanceRequests field's value.
  36453. func (s *DescribeSpotInstanceRequestsOutput) SetSpotInstanceRequests(v []*SpotInstanceRequest) *DescribeSpotInstanceRequestsOutput {
  36454. s.SpotInstanceRequests = v
  36455. return s
  36456. }
  36457. // Contains the parameters for DescribeSpotPriceHistory.
  36458. type DescribeSpotPriceHistoryInput struct {
  36459. _ struct{} `type:"structure"`
  36460. // Filters the results by the specified Availability Zone.
  36461. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  36462. // Checks whether you have the required permissions for the action, without
  36463. // actually making the request, and provides an error response. If you have
  36464. // the required permissions, the error response is DryRunOperation. Otherwise,
  36465. // it is UnauthorizedOperation.
  36466. DryRun *bool `locationName:"dryRun" type:"boolean"`
  36467. // The date and time, up to the current date, from which to stop retrieving
  36468. // the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  36469. EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"iso8601"`
  36470. // One or more filters.
  36471. //
  36472. // * availability-zone - The Availability Zone for which prices should be
  36473. // returned.
  36474. //
  36475. // * instance-type - The type of instance (for example, m3.medium).
  36476. //
  36477. // * product-description - The product description for the Spot price (Linux/UNIX
  36478. // | SUSE Linux | Windows | Linux/UNIX (Amazon VPC) | SUSE Linux (Amazon
  36479. // VPC) | Windows (Amazon VPC)).
  36480. //
  36481. // * spot-price - The Spot price. The value must match exactly (or use wildcards;
  36482. // greater than or less than comparison is not supported).
  36483. //
  36484. // * timestamp - The time stamp of the Spot price history, in UTC format
  36485. // (for example, YYYY-MM-DDTHH:MM:SSZ). You can use wildcards (* and ?).
  36486. // Greater than or less than comparison is not supported.
  36487. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  36488. // Filters the results by the specified instance types.
  36489. InstanceTypes []*string `locationName:"InstanceType" type:"list"`
  36490. // The maximum number of results to return in a single call. Specify a value
  36491. // between 1 and 1000. The default value is 1000. To retrieve the remaining
  36492. // results, make another call with the returned NextToken value.
  36493. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  36494. // The token for the next set of results.
  36495. NextToken *string `locationName:"nextToken" type:"string"`
  36496. // Filters the results by the specified basic product descriptions.
  36497. ProductDescriptions []*string `locationName:"ProductDescription" type:"list"`
  36498. // The date and time, up to the past 90 days, from which to start retrieving
  36499. // the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  36500. StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601"`
  36501. }
  36502. // String returns the string representation
  36503. func (s DescribeSpotPriceHistoryInput) String() string {
  36504. return awsutil.Prettify(s)
  36505. }
  36506. // GoString returns the string representation
  36507. func (s DescribeSpotPriceHistoryInput) GoString() string {
  36508. return s.String()
  36509. }
  36510. // SetAvailabilityZone sets the AvailabilityZone field's value.
  36511. func (s *DescribeSpotPriceHistoryInput) SetAvailabilityZone(v string) *DescribeSpotPriceHistoryInput {
  36512. s.AvailabilityZone = &v
  36513. return s
  36514. }
  36515. // SetDryRun sets the DryRun field's value.
  36516. func (s *DescribeSpotPriceHistoryInput) SetDryRun(v bool) *DescribeSpotPriceHistoryInput {
  36517. s.DryRun = &v
  36518. return s
  36519. }
  36520. // SetEndTime sets the EndTime field's value.
  36521. func (s *DescribeSpotPriceHistoryInput) SetEndTime(v time.Time) *DescribeSpotPriceHistoryInput {
  36522. s.EndTime = &v
  36523. return s
  36524. }
  36525. // SetFilters sets the Filters field's value.
  36526. func (s *DescribeSpotPriceHistoryInput) SetFilters(v []*Filter) *DescribeSpotPriceHistoryInput {
  36527. s.Filters = v
  36528. return s
  36529. }
  36530. // SetInstanceTypes sets the InstanceTypes field's value.
  36531. func (s *DescribeSpotPriceHistoryInput) SetInstanceTypes(v []*string) *DescribeSpotPriceHistoryInput {
  36532. s.InstanceTypes = v
  36533. return s
  36534. }
  36535. // SetMaxResults sets the MaxResults field's value.
  36536. func (s *DescribeSpotPriceHistoryInput) SetMaxResults(v int64) *DescribeSpotPriceHistoryInput {
  36537. s.MaxResults = &v
  36538. return s
  36539. }
  36540. // SetNextToken sets the NextToken field's value.
  36541. func (s *DescribeSpotPriceHistoryInput) SetNextToken(v string) *DescribeSpotPriceHistoryInput {
  36542. s.NextToken = &v
  36543. return s
  36544. }
  36545. // SetProductDescriptions sets the ProductDescriptions field's value.
  36546. func (s *DescribeSpotPriceHistoryInput) SetProductDescriptions(v []*string) *DescribeSpotPriceHistoryInput {
  36547. s.ProductDescriptions = v
  36548. return s
  36549. }
  36550. // SetStartTime sets the StartTime field's value.
  36551. func (s *DescribeSpotPriceHistoryInput) SetStartTime(v time.Time) *DescribeSpotPriceHistoryInput {
  36552. s.StartTime = &v
  36553. return s
  36554. }
  36555. // Contains the output of DescribeSpotPriceHistory.
  36556. type DescribeSpotPriceHistoryOutput struct {
  36557. _ struct{} `type:"structure"`
  36558. // The token required to retrieve the next set of results. This value is null
  36559. // or an empty string when there are no more results to return.
  36560. NextToken *string `locationName:"nextToken" type:"string"`
  36561. // The historical Spot prices.
  36562. SpotPriceHistory []*SpotPrice `locationName:"spotPriceHistorySet" locationNameList:"item" type:"list"`
  36563. }
  36564. // String returns the string representation
  36565. func (s DescribeSpotPriceHistoryOutput) String() string {
  36566. return awsutil.Prettify(s)
  36567. }
  36568. // GoString returns the string representation
  36569. func (s DescribeSpotPriceHistoryOutput) GoString() string {
  36570. return s.String()
  36571. }
  36572. // SetNextToken sets the NextToken field's value.
  36573. func (s *DescribeSpotPriceHistoryOutput) SetNextToken(v string) *DescribeSpotPriceHistoryOutput {
  36574. s.NextToken = &v
  36575. return s
  36576. }
  36577. // SetSpotPriceHistory sets the SpotPriceHistory field's value.
  36578. func (s *DescribeSpotPriceHistoryOutput) SetSpotPriceHistory(v []*SpotPrice) *DescribeSpotPriceHistoryOutput {
  36579. s.SpotPriceHistory = v
  36580. return s
  36581. }
  36582. type DescribeStaleSecurityGroupsInput struct {
  36583. _ struct{} `type:"structure"`
  36584. // Checks whether you have the required permissions for the operation, without
  36585. // actually making the request, and provides an error response. If you have
  36586. // the required permissions, the error response is DryRunOperation. Otherwise,
  36587. // it is UnauthorizedOperation.
  36588. DryRun *bool `type:"boolean"`
  36589. // The maximum number of items to return for this request. The request returns
  36590. // a token that you can specify in a subsequent call to get the next set of
  36591. // results.
  36592. MaxResults *int64 `min:"5" type:"integer"`
  36593. // The token for the next set of items to return. (You received this token from
  36594. // a prior call.)
  36595. NextToken *string `min:"1" type:"string"`
  36596. // The ID of the VPC.
  36597. //
  36598. // VpcId is a required field
  36599. VpcId *string `type:"string" required:"true"`
  36600. }
  36601. // String returns the string representation
  36602. func (s DescribeStaleSecurityGroupsInput) String() string {
  36603. return awsutil.Prettify(s)
  36604. }
  36605. // GoString returns the string representation
  36606. func (s DescribeStaleSecurityGroupsInput) GoString() string {
  36607. return s.String()
  36608. }
  36609. // Validate inspects the fields of the type to determine if they are valid.
  36610. func (s *DescribeStaleSecurityGroupsInput) Validate() error {
  36611. invalidParams := request.ErrInvalidParams{Context: "DescribeStaleSecurityGroupsInput"}
  36612. if s.MaxResults != nil && *s.MaxResults < 5 {
  36613. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  36614. }
  36615. if s.NextToken != nil && len(*s.NextToken) < 1 {
  36616. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  36617. }
  36618. if s.VpcId == nil {
  36619. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  36620. }
  36621. if invalidParams.Len() > 0 {
  36622. return invalidParams
  36623. }
  36624. return nil
  36625. }
  36626. // SetDryRun sets the DryRun field's value.
  36627. func (s *DescribeStaleSecurityGroupsInput) SetDryRun(v bool) *DescribeStaleSecurityGroupsInput {
  36628. s.DryRun = &v
  36629. return s
  36630. }
  36631. // SetMaxResults sets the MaxResults field's value.
  36632. func (s *DescribeStaleSecurityGroupsInput) SetMaxResults(v int64) *DescribeStaleSecurityGroupsInput {
  36633. s.MaxResults = &v
  36634. return s
  36635. }
  36636. // SetNextToken sets the NextToken field's value.
  36637. func (s *DescribeStaleSecurityGroupsInput) SetNextToken(v string) *DescribeStaleSecurityGroupsInput {
  36638. s.NextToken = &v
  36639. return s
  36640. }
  36641. // SetVpcId sets the VpcId field's value.
  36642. func (s *DescribeStaleSecurityGroupsInput) SetVpcId(v string) *DescribeStaleSecurityGroupsInput {
  36643. s.VpcId = &v
  36644. return s
  36645. }
  36646. type DescribeStaleSecurityGroupsOutput struct {
  36647. _ struct{} `type:"structure"`
  36648. // The token to use when requesting the next set of items. If there are no additional
  36649. // items to return, the string is empty.
  36650. NextToken *string `locationName:"nextToken" type:"string"`
  36651. // Information about the stale security groups.
  36652. StaleSecurityGroupSet []*StaleSecurityGroup `locationName:"staleSecurityGroupSet" locationNameList:"item" type:"list"`
  36653. }
  36654. // String returns the string representation
  36655. func (s DescribeStaleSecurityGroupsOutput) String() string {
  36656. return awsutil.Prettify(s)
  36657. }
  36658. // GoString returns the string representation
  36659. func (s DescribeStaleSecurityGroupsOutput) GoString() string {
  36660. return s.String()
  36661. }
  36662. // SetNextToken sets the NextToken field's value.
  36663. func (s *DescribeStaleSecurityGroupsOutput) SetNextToken(v string) *DescribeStaleSecurityGroupsOutput {
  36664. s.NextToken = &v
  36665. return s
  36666. }
  36667. // SetStaleSecurityGroupSet sets the StaleSecurityGroupSet field's value.
  36668. func (s *DescribeStaleSecurityGroupsOutput) SetStaleSecurityGroupSet(v []*StaleSecurityGroup) *DescribeStaleSecurityGroupsOutput {
  36669. s.StaleSecurityGroupSet = v
  36670. return s
  36671. }
  36672. // Contains the parameters for DescribeSubnets.
  36673. type DescribeSubnetsInput struct {
  36674. _ struct{} `type:"structure"`
  36675. // Checks whether you have the required permissions for the action, without
  36676. // actually making the request, and provides an error response. If you have
  36677. // the required permissions, the error response is DryRunOperation. Otherwise,
  36678. // it is UnauthorizedOperation.
  36679. DryRun *bool `locationName:"dryRun" type:"boolean"`
  36680. // One or more filters.
  36681. //
  36682. // * availabilityZone - The Availability Zone for the subnet. You can also
  36683. // use availability-zone as the filter name.
  36684. //
  36685. // * available-ip-address-count - The number of IPv4 addresses in the subnet
  36686. // that are available.
  36687. //
  36688. // * cidrBlock - The IPv4 CIDR block of the subnet. The CIDR block you specify
  36689. // must exactly match the subnet's CIDR block for information to be returned
  36690. // for the subnet. You can also use cidr or cidr-block as the filter names.
  36691. //
  36692. // * defaultForAz - Indicates whether this is the default subnet for the
  36693. // Availability Zone. You can also use default-for-az as the filter name.
  36694. //
  36695. // * ipv6-cidr-block-association.ipv6-cidr-block - An IPv6 CIDR block associated
  36696. // with the subnet.
  36697. //
  36698. // * ipv6-cidr-block-association.association-id - An association ID for an
  36699. // IPv6 CIDR block associated with the subnet.
  36700. //
  36701. // * ipv6-cidr-block-association.state - The state of an IPv6 CIDR block
  36702. // associated with the subnet.
  36703. //
  36704. // * state - The state of the subnet (pending | available).
  36705. //
  36706. // * subnet-id - The ID of the subnet.
  36707. //
  36708. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  36709. // Specify the key of the tag in the filter name and the value of the tag
  36710. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  36711. // for the filter name and X for the filter value.
  36712. //
  36713. // * tag-key - The key of a tag assigned to the resource. This filter is
  36714. // independent of the tag-value filter. For example, if you use both the
  36715. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  36716. // assigned both the tag key Purpose (regardless of what the tag's value
  36717. // is), and the tag value X (regardless of what the tag's key is). If you
  36718. // want to list only resources where Purpose is X, see the tag:key=value
  36719. // filter.
  36720. //
  36721. // * tag-value - The value of a tag assigned to the resource. This filter
  36722. // is independent of the tag-key filter.
  36723. //
  36724. // * vpc-id - The ID of the VPC for the subnet.
  36725. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  36726. // One or more subnet IDs.
  36727. //
  36728. // Default: Describes all your subnets.
  36729. SubnetIds []*string `locationName:"SubnetId" locationNameList:"SubnetId" type:"list"`
  36730. }
  36731. // String returns the string representation
  36732. func (s DescribeSubnetsInput) String() string {
  36733. return awsutil.Prettify(s)
  36734. }
  36735. // GoString returns the string representation
  36736. func (s DescribeSubnetsInput) GoString() string {
  36737. return s.String()
  36738. }
  36739. // SetDryRun sets the DryRun field's value.
  36740. func (s *DescribeSubnetsInput) SetDryRun(v bool) *DescribeSubnetsInput {
  36741. s.DryRun = &v
  36742. return s
  36743. }
  36744. // SetFilters sets the Filters field's value.
  36745. func (s *DescribeSubnetsInput) SetFilters(v []*Filter) *DescribeSubnetsInput {
  36746. s.Filters = v
  36747. return s
  36748. }
  36749. // SetSubnetIds sets the SubnetIds field's value.
  36750. func (s *DescribeSubnetsInput) SetSubnetIds(v []*string) *DescribeSubnetsInput {
  36751. s.SubnetIds = v
  36752. return s
  36753. }
  36754. // Contains the output of DescribeSubnets.
  36755. type DescribeSubnetsOutput struct {
  36756. _ struct{} `type:"structure"`
  36757. // Information about one or more subnets.
  36758. Subnets []*Subnet `locationName:"subnetSet" locationNameList:"item" type:"list"`
  36759. }
  36760. // String returns the string representation
  36761. func (s DescribeSubnetsOutput) String() string {
  36762. return awsutil.Prettify(s)
  36763. }
  36764. // GoString returns the string representation
  36765. func (s DescribeSubnetsOutput) GoString() string {
  36766. return s.String()
  36767. }
  36768. // SetSubnets sets the Subnets field's value.
  36769. func (s *DescribeSubnetsOutput) SetSubnets(v []*Subnet) *DescribeSubnetsOutput {
  36770. s.Subnets = v
  36771. return s
  36772. }
  36773. // Contains the parameters for DescribeTags.
  36774. type DescribeTagsInput struct {
  36775. _ struct{} `type:"structure"`
  36776. // Checks whether you have the required permissions for the action, without
  36777. // actually making the request, and provides an error response. If you have
  36778. // the required permissions, the error response is DryRunOperation. Otherwise,
  36779. // it is UnauthorizedOperation.
  36780. DryRun *bool `locationName:"dryRun" type:"boolean"`
  36781. // One or more filters.
  36782. //
  36783. // * key - The tag key.
  36784. //
  36785. // * resource-id - The resource ID.
  36786. //
  36787. // * resource-type - The resource type (customer-gateway | dhcp-options |
  36788. // elastic-ip | fpga-image | image | instance | internet-gateway | launch-template
  36789. // | natgateway | network-acl | network-interface | reserved-instances |
  36790. // route-table | security-group | snapshot | spot-instances-request | subnet
  36791. // | volume | vpc | vpc-peering-connection | vpn-connection | vpn-gateway).
  36792. //
  36793. // * value - The tag value.
  36794. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  36795. // The maximum number of results to return in a single call. This value can
  36796. // be between 5 and 1000. To retrieve the remaining results, make another call
  36797. // with the returned NextToken value.
  36798. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  36799. // The token to retrieve the next page of results.
  36800. NextToken *string `locationName:"nextToken" type:"string"`
  36801. }
  36802. // String returns the string representation
  36803. func (s DescribeTagsInput) String() string {
  36804. return awsutil.Prettify(s)
  36805. }
  36806. // GoString returns the string representation
  36807. func (s DescribeTagsInput) GoString() string {
  36808. return s.String()
  36809. }
  36810. // SetDryRun sets the DryRun field's value.
  36811. func (s *DescribeTagsInput) SetDryRun(v bool) *DescribeTagsInput {
  36812. s.DryRun = &v
  36813. return s
  36814. }
  36815. // SetFilters sets the Filters field's value.
  36816. func (s *DescribeTagsInput) SetFilters(v []*Filter) *DescribeTagsInput {
  36817. s.Filters = v
  36818. return s
  36819. }
  36820. // SetMaxResults sets the MaxResults field's value.
  36821. func (s *DescribeTagsInput) SetMaxResults(v int64) *DescribeTagsInput {
  36822. s.MaxResults = &v
  36823. return s
  36824. }
  36825. // SetNextToken sets the NextToken field's value.
  36826. func (s *DescribeTagsInput) SetNextToken(v string) *DescribeTagsInput {
  36827. s.NextToken = &v
  36828. return s
  36829. }
  36830. // Contains the output of DescribeTags.
  36831. type DescribeTagsOutput struct {
  36832. _ struct{} `type:"structure"`
  36833. // The token to use to retrieve the next page of results. This value is null
  36834. // when there are no more results to return..
  36835. NextToken *string `locationName:"nextToken" type:"string"`
  36836. // A list of tags.
  36837. Tags []*TagDescription `locationName:"tagSet" locationNameList:"item" type:"list"`
  36838. }
  36839. // String returns the string representation
  36840. func (s DescribeTagsOutput) String() string {
  36841. return awsutil.Prettify(s)
  36842. }
  36843. // GoString returns the string representation
  36844. func (s DescribeTagsOutput) GoString() string {
  36845. return s.String()
  36846. }
  36847. // SetNextToken sets the NextToken field's value.
  36848. func (s *DescribeTagsOutput) SetNextToken(v string) *DescribeTagsOutput {
  36849. s.NextToken = &v
  36850. return s
  36851. }
  36852. // SetTags sets the Tags field's value.
  36853. func (s *DescribeTagsOutput) SetTags(v []*TagDescription) *DescribeTagsOutput {
  36854. s.Tags = v
  36855. return s
  36856. }
  36857. // Contains the parameters for DescribeVolumeAttribute.
  36858. type DescribeVolumeAttributeInput struct {
  36859. _ struct{} `type:"structure"`
  36860. // The attribute of the volume. This parameter is required.
  36861. Attribute *string `type:"string" enum:"VolumeAttributeName"`
  36862. // Checks whether you have the required permissions for the action, without
  36863. // actually making the request, and provides an error response. If you have
  36864. // the required permissions, the error response is DryRunOperation. Otherwise,
  36865. // it is UnauthorizedOperation.
  36866. DryRun *bool `locationName:"dryRun" type:"boolean"`
  36867. // The ID of the volume.
  36868. //
  36869. // VolumeId is a required field
  36870. VolumeId *string `type:"string" required:"true"`
  36871. }
  36872. // String returns the string representation
  36873. func (s DescribeVolumeAttributeInput) String() string {
  36874. return awsutil.Prettify(s)
  36875. }
  36876. // GoString returns the string representation
  36877. func (s DescribeVolumeAttributeInput) GoString() string {
  36878. return s.String()
  36879. }
  36880. // Validate inspects the fields of the type to determine if they are valid.
  36881. func (s *DescribeVolumeAttributeInput) Validate() error {
  36882. invalidParams := request.ErrInvalidParams{Context: "DescribeVolumeAttributeInput"}
  36883. if s.VolumeId == nil {
  36884. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  36885. }
  36886. if invalidParams.Len() > 0 {
  36887. return invalidParams
  36888. }
  36889. return nil
  36890. }
  36891. // SetAttribute sets the Attribute field's value.
  36892. func (s *DescribeVolumeAttributeInput) SetAttribute(v string) *DescribeVolumeAttributeInput {
  36893. s.Attribute = &v
  36894. return s
  36895. }
  36896. // SetDryRun sets the DryRun field's value.
  36897. func (s *DescribeVolumeAttributeInput) SetDryRun(v bool) *DescribeVolumeAttributeInput {
  36898. s.DryRun = &v
  36899. return s
  36900. }
  36901. // SetVolumeId sets the VolumeId field's value.
  36902. func (s *DescribeVolumeAttributeInput) SetVolumeId(v string) *DescribeVolumeAttributeInput {
  36903. s.VolumeId = &v
  36904. return s
  36905. }
  36906. // Contains the output of DescribeVolumeAttribute.
  36907. type DescribeVolumeAttributeOutput struct {
  36908. _ struct{} `type:"structure"`
  36909. // The state of autoEnableIO attribute.
  36910. AutoEnableIO *AttributeBooleanValue `locationName:"autoEnableIO" type:"structure"`
  36911. // A list of product codes.
  36912. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  36913. // The ID of the volume.
  36914. VolumeId *string `locationName:"volumeId" type:"string"`
  36915. }
  36916. // String returns the string representation
  36917. func (s DescribeVolumeAttributeOutput) String() string {
  36918. return awsutil.Prettify(s)
  36919. }
  36920. // GoString returns the string representation
  36921. func (s DescribeVolumeAttributeOutput) GoString() string {
  36922. return s.String()
  36923. }
  36924. // SetAutoEnableIO sets the AutoEnableIO field's value.
  36925. func (s *DescribeVolumeAttributeOutput) SetAutoEnableIO(v *AttributeBooleanValue) *DescribeVolumeAttributeOutput {
  36926. s.AutoEnableIO = v
  36927. return s
  36928. }
  36929. // SetProductCodes sets the ProductCodes field's value.
  36930. func (s *DescribeVolumeAttributeOutput) SetProductCodes(v []*ProductCode) *DescribeVolumeAttributeOutput {
  36931. s.ProductCodes = v
  36932. return s
  36933. }
  36934. // SetVolumeId sets the VolumeId field's value.
  36935. func (s *DescribeVolumeAttributeOutput) SetVolumeId(v string) *DescribeVolumeAttributeOutput {
  36936. s.VolumeId = &v
  36937. return s
  36938. }
  36939. // Contains the parameters for DescribeVolumeStatus.
  36940. type DescribeVolumeStatusInput struct {
  36941. _ struct{} `type:"structure"`
  36942. // Checks whether you have the required permissions for the action, without
  36943. // actually making the request, and provides an error response. If you have
  36944. // the required permissions, the error response is DryRunOperation. Otherwise,
  36945. // it is UnauthorizedOperation.
  36946. DryRun *bool `locationName:"dryRun" type:"boolean"`
  36947. // One or more filters.
  36948. //
  36949. // * action.code - The action code for the event (for example, enable-volume-io).
  36950. //
  36951. // * action.description - A description of the action.
  36952. //
  36953. // * action.event-id - The event ID associated with the action.
  36954. //
  36955. // * availability-zone - The Availability Zone of the instance.
  36956. //
  36957. // * event.description - A description of the event.
  36958. //
  36959. // * event.event-id - The event ID.
  36960. //
  36961. // * event.event-type - The event type (for io-enabled: passed | failed;
  36962. // for io-performance: io-performance:degraded | io-performance:severely-degraded
  36963. // | io-performance:stalled).
  36964. //
  36965. // * event.not-after - The latest end time for the event.
  36966. //
  36967. // * event.not-before - The earliest start time for the event.
  36968. //
  36969. // * volume-status.details-name - The cause for volume-status.status (io-enabled
  36970. // | io-performance).
  36971. //
  36972. // * volume-status.details-status - The status of volume-status.details-name
  36973. // (for io-enabled: passed | failed; for io-performance: normal | degraded
  36974. // | severely-degraded | stalled).
  36975. //
  36976. // * volume-status.status - The status of the volume (ok | impaired | warning
  36977. // | insufficient-data).
  36978. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  36979. // The maximum number of volume results returned by DescribeVolumeStatus in
  36980. // paginated output. When this parameter is used, the request only returns MaxResults
  36981. // results in a single page along with a NextToken response element. The remaining
  36982. // results of the initial request can be seen by sending another request with
  36983. // the returned NextToken value. This value can be between 5 and 1000; if MaxResults
  36984. // is given a value larger than 1000, only 1000 results are returned. If this
  36985. // parameter is not used, then DescribeVolumeStatus returns all results. You
  36986. // cannot specify this parameter and the volume IDs parameter in the same request.
  36987. MaxResults *int64 `type:"integer"`
  36988. // The NextToken value to include in a future DescribeVolumeStatus request.
  36989. // When the results of the request exceed MaxResults, this value can be used
  36990. // to retrieve the next page of results. This value is null when there are no
  36991. // more results to return.
  36992. NextToken *string `type:"string"`
  36993. // One or more volume IDs.
  36994. //
  36995. // Default: Describes all your volumes.
  36996. VolumeIds []*string `locationName:"VolumeId" locationNameList:"VolumeId" type:"list"`
  36997. }
  36998. // String returns the string representation
  36999. func (s DescribeVolumeStatusInput) String() string {
  37000. return awsutil.Prettify(s)
  37001. }
  37002. // GoString returns the string representation
  37003. func (s DescribeVolumeStatusInput) GoString() string {
  37004. return s.String()
  37005. }
  37006. // SetDryRun sets the DryRun field's value.
  37007. func (s *DescribeVolumeStatusInput) SetDryRun(v bool) *DescribeVolumeStatusInput {
  37008. s.DryRun = &v
  37009. return s
  37010. }
  37011. // SetFilters sets the Filters field's value.
  37012. func (s *DescribeVolumeStatusInput) SetFilters(v []*Filter) *DescribeVolumeStatusInput {
  37013. s.Filters = v
  37014. return s
  37015. }
  37016. // SetMaxResults sets the MaxResults field's value.
  37017. func (s *DescribeVolumeStatusInput) SetMaxResults(v int64) *DescribeVolumeStatusInput {
  37018. s.MaxResults = &v
  37019. return s
  37020. }
  37021. // SetNextToken sets the NextToken field's value.
  37022. func (s *DescribeVolumeStatusInput) SetNextToken(v string) *DescribeVolumeStatusInput {
  37023. s.NextToken = &v
  37024. return s
  37025. }
  37026. // SetVolumeIds sets the VolumeIds field's value.
  37027. func (s *DescribeVolumeStatusInput) SetVolumeIds(v []*string) *DescribeVolumeStatusInput {
  37028. s.VolumeIds = v
  37029. return s
  37030. }
  37031. // Contains the output of DescribeVolumeStatus.
  37032. type DescribeVolumeStatusOutput struct {
  37033. _ struct{} `type:"structure"`
  37034. // The token to use to retrieve the next page of results. This value is null
  37035. // when there are no more results to return.
  37036. NextToken *string `locationName:"nextToken" type:"string"`
  37037. // A list of volumes.
  37038. VolumeStatuses []*VolumeStatusItem `locationName:"volumeStatusSet" locationNameList:"item" type:"list"`
  37039. }
  37040. // String returns the string representation
  37041. func (s DescribeVolumeStatusOutput) String() string {
  37042. return awsutil.Prettify(s)
  37043. }
  37044. // GoString returns the string representation
  37045. func (s DescribeVolumeStatusOutput) GoString() string {
  37046. return s.String()
  37047. }
  37048. // SetNextToken sets the NextToken field's value.
  37049. func (s *DescribeVolumeStatusOutput) SetNextToken(v string) *DescribeVolumeStatusOutput {
  37050. s.NextToken = &v
  37051. return s
  37052. }
  37053. // SetVolumeStatuses sets the VolumeStatuses field's value.
  37054. func (s *DescribeVolumeStatusOutput) SetVolumeStatuses(v []*VolumeStatusItem) *DescribeVolumeStatusOutput {
  37055. s.VolumeStatuses = v
  37056. return s
  37057. }
  37058. // Contains the parameters for DescribeVolumes.
  37059. type DescribeVolumesInput struct {
  37060. _ struct{} `type:"structure"`
  37061. // Checks whether you have the required permissions for the action, without
  37062. // actually making the request, and provides an error response. If you have
  37063. // the required permissions, the error response is DryRunOperation. Otherwise,
  37064. // it is UnauthorizedOperation.
  37065. DryRun *bool `locationName:"dryRun" type:"boolean"`
  37066. // One or more filters.
  37067. //
  37068. // * attachment.attach-time - The time stamp when the attachment initiated.
  37069. //
  37070. // * attachment.delete-on-termination - Whether the volume is deleted on
  37071. // instance termination.
  37072. //
  37073. // * attachment.device - The device name specified in the block device mapping
  37074. // (for example, /dev/sda1).
  37075. //
  37076. // * attachment.instance-id - The ID of the instance the volume is attached
  37077. // to.
  37078. //
  37079. // * attachment.status - The attachment state (attaching | attached | detaching).
  37080. //
  37081. // * availability-zone - The Availability Zone in which the volume was created.
  37082. //
  37083. // * create-time - The time stamp when the volume was created.
  37084. //
  37085. // * encrypted - The encryption status of the volume.
  37086. //
  37087. // * size - The size of the volume, in GiB.
  37088. //
  37089. // * snapshot-id - The snapshot from which the volume was created.
  37090. //
  37091. // * status - The status of the volume (creating | available | in-use | deleting
  37092. // | deleted | error).
  37093. //
  37094. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  37095. // Specify the key of the tag in the filter name and the value of the tag
  37096. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  37097. // for the filter name and X for the filter value.
  37098. //
  37099. // * tag-key - The key of a tag assigned to the resource. This filter is
  37100. // independent of the tag-value filter. For example, if you use both the
  37101. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  37102. // assigned both the tag key Purpose (regardless of what the tag's value
  37103. // is), and the tag value X (regardless of what the tag's key is). If you
  37104. // want to list only resources where Purpose is X, see the tag:key=value
  37105. // filter.
  37106. //
  37107. // * tag-value - The value of a tag assigned to the resource. This filter
  37108. // is independent of the tag-key filter.
  37109. //
  37110. // * volume-id - The volume ID.
  37111. //
  37112. // * volume-type - The Amazon EBS volume type. This can be gp2 for General
  37113. // Purpose SSD, io1 for Provisioned IOPS SSD, st1 for Throughput Optimized
  37114. // HDD, sc1 for Cold HDD, or standard for Magnetic volumes.
  37115. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  37116. // The maximum number of volume results returned by DescribeVolumes in paginated
  37117. // output. When this parameter is used, DescribeVolumes only returns MaxResults
  37118. // results in a single page along with a NextToken response element. The remaining
  37119. // results of the initial request can be seen by sending another DescribeVolumes
  37120. // request with the returned NextToken value. This value can be between 5 and
  37121. // 500; if MaxResults is given a value larger than 500, only 500 results are
  37122. // returned. If this parameter is not used, then DescribeVolumes returns all
  37123. // results. You cannot specify this parameter and the volume IDs parameter in
  37124. // the same request.
  37125. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  37126. // The NextToken value returned from a previous paginated DescribeVolumes request
  37127. // where MaxResults was used and the results exceeded the value of that parameter.
  37128. // Pagination continues from the end of the previous results that returned the
  37129. // NextToken value. This value is null when there are no more results to return.
  37130. NextToken *string `locationName:"nextToken" type:"string"`
  37131. // One or more volume IDs.
  37132. VolumeIds []*string `locationName:"VolumeId" locationNameList:"VolumeId" type:"list"`
  37133. }
  37134. // String returns the string representation
  37135. func (s DescribeVolumesInput) String() string {
  37136. return awsutil.Prettify(s)
  37137. }
  37138. // GoString returns the string representation
  37139. func (s DescribeVolumesInput) GoString() string {
  37140. return s.String()
  37141. }
  37142. // SetDryRun sets the DryRun field's value.
  37143. func (s *DescribeVolumesInput) SetDryRun(v bool) *DescribeVolumesInput {
  37144. s.DryRun = &v
  37145. return s
  37146. }
  37147. // SetFilters sets the Filters field's value.
  37148. func (s *DescribeVolumesInput) SetFilters(v []*Filter) *DescribeVolumesInput {
  37149. s.Filters = v
  37150. return s
  37151. }
  37152. // SetMaxResults sets the MaxResults field's value.
  37153. func (s *DescribeVolumesInput) SetMaxResults(v int64) *DescribeVolumesInput {
  37154. s.MaxResults = &v
  37155. return s
  37156. }
  37157. // SetNextToken sets the NextToken field's value.
  37158. func (s *DescribeVolumesInput) SetNextToken(v string) *DescribeVolumesInput {
  37159. s.NextToken = &v
  37160. return s
  37161. }
  37162. // SetVolumeIds sets the VolumeIds field's value.
  37163. func (s *DescribeVolumesInput) SetVolumeIds(v []*string) *DescribeVolumesInput {
  37164. s.VolumeIds = v
  37165. return s
  37166. }
  37167. type DescribeVolumesModificationsInput struct {
  37168. _ struct{} `type:"structure"`
  37169. // Checks whether you have the required permissions for the action, without
  37170. // actually making the request, and provides an error response. If you have
  37171. // the required permissions, the error response is DryRunOperation. Otherwise,
  37172. // it is UnauthorizedOperation.
  37173. DryRun *bool `type:"boolean"`
  37174. // One or more filters. Supported filters: volume-id, modification-state, target-size,
  37175. // target-iops, target-volume-type, original-size, original-iops, original-volume-type,
  37176. // start-time.
  37177. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  37178. // The maximum number of results (up to a limit of 500) to be returned in a
  37179. // paginated request.
  37180. MaxResults *int64 `type:"integer"`
  37181. // The nextToken value returned by a previous paginated request.
  37182. NextToken *string `type:"string"`
  37183. // One or more volume IDs for which in-progress modifications will be described.
  37184. VolumeIds []*string `locationName:"VolumeId" locationNameList:"VolumeId" type:"list"`
  37185. }
  37186. // String returns the string representation
  37187. func (s DescribeVolumesModificationsInput) String() string {
  37188. return awsutil.Prettify(s)
  37189. }
  37190. // GoString returns the string representation
  37191. func (s DescribeVolumesModificationsInput) GoString() string {
  37192. return s.String()
  37193. }
  37194. // SetDryRun sets the DryRun field's value.
  37195. func (s *DescribeVolumesModificationsInput) SetDryRun(v bool) *DescribeVolumesModificationsInput {
  37196. s.DryRun = &v
  37197. return s
  37198. }
  37199. // SetFilters sets the Filters field's value.
  37200. func (s *DescribeVolumesModificationsInput) SetFilters(v []*Filter) *DescribeVolumesModificationsInput {
  37201. s.Filters = v
  37202. return s
  37203. }
  37204. // SetMaxResults sets the MaxResults field's value.
  37205. func (s *DescribeVolumesModificationsInput) SetMaxResults(v int64) *DescribeVolumesModificationsInput {
  37206. s.MaxResults = &v
  37207. return s
  37208. }
  37209. // SetNextToken sets the NextToken field's value.
  37210. func (s *DescribeVolumesModificationsInput) SetNextToken(v string) *DescribeVolumesModificationsInput {
  37211. s.NextToken = &v
  37212. return s
  37213. }
  37214. // SetVolumeIds sets the VolumeIds field's value.
  37215. func (s *DescribeVolumesModificationsInput) SetVolumeIds(v []*string) *DescribeVolumesModificationsInput {
  37216. s.VolumeIds = v
  37217. return s
  37218. }
  37219. type DescribeVolumesModificationsOutput struct {
  37220. _ struct{} `type:"structure"`
  37221. // Token for pagination, null if there are no more results
  37222. NextToken *string `locationName:"nextToken" type:"string"`
  37223. // A list of returned VolumeModification objects.
  37224. VolumesModifications []*VolumeModification `locationName:"volumeModificationSet" locationNameList:"item" type:"list"`
  37225. }
  37226. // String returns the string representation
  37227. func (s DescribeVolumesModificationsOutput) String() string {
  37228. return awsutil.Prettify(s)
  37229. }
  37230. // GoString returns the string representation
  37231. func (s DescribeVolumesModificationsOutput) GoString() string {
  37232. return s.String()
  37233. }
  37234. // SetNextToken sets the NextToken field's value.
  37235. func (s *DescribeVolumesModificationsOutput) SetNextToken(v string) *DescribeVolumesModificationsOutput {
  37236. s.NextToken = &v
  37237. return s
  37238. }
  37239. // SetVolumesModifications sets the VolumesModifications field's value.
  37240. func (s *DescribeVolumesModificationsOutput) SetVolumesModifications(v []*VolumeModification) *DescribeVolumesModificationsOutput {
  37241. s.VolumesModifications = v
  37242. return s
  37243. }
  37244. // Contains the output of DescribeVolumes.
  37245. type DescribeVolumesOutput struct {
  37246. _ struct{} `type:"structure"`
  37247. // The NextToken value to include in a future DescribeVolumes request. When
  37248. // the results of a DescribeVolumes request exceed MaxResults, this value can
  37249. // be used to retrieve the next page of results. This value is null when there
  37250. // are no more results to return.
  37251. NextToken *string `locationName:"nextToken" type:"string"`
  37252. // Information about the volumes.
  37253. Volumes []*Volume `locationName:"volumeSet" locationNameList:"item" type:"list"`
  37254. }
  37255. // String returns the string representation
  37256. func (s DescribeVolumesOutput) String() string {
  37257. return awsutil.Prettify(s)
  37258. }
  37259. // GoString returns the string representation
  37260. func (s DescribeVolumesOutput) GoString() string {
  37261. return s.String()
  37262. }
  37263. // SetNextToken sets the NextToken field's value.
  37264. func (s *DescribeVolumesOutput) SetNextToken(v string) *DescribeVolumesOutput {
  37265. s.NextToken = &v
  37266. return s
  37267. }
  37268. // SetVolumes sets the Volumes field's value.
  37269. func (s *DescribeVolumesOutput) SetVolumes(v []*Volume) *DescribeVolumesOutput {
  37270. s.Volumes = v
  37271. return s
  37272. }
  37273. // Contains the parameters for DescribeVpcAttribute.
  37274. type DescribeVpcAttributeInput struct {
  37275. _ struct{} `type:"structure"`
  37276. // The VPC attribute.
  37277. //
  37278. // Attribute is a required field
  37279. Attribute *string `type:"string" required:"true" enum:"VpcAttributeName"`
  37280. // Checks whether you have the required permissions for the action, without
  37281. // actually making the request, and provides an error response. If you have
  37282. // the required permissions, the error response is DryRunOperation. Otherwise,
  37283. // it is UnauthorizedOperation.
  37284. DryRun *bool `locationName:"dryRun" type:"boolean"`
  37285. // The ID of the VPC.
  37286. //
  37287. // VpcId is a required field
  37288. VpcId *string `type:"string" required:"true"`
  37289. }
  37290. // String returns the string representation
  37291. func (s DescribeVpcAttributeInput) String() string {
  37292. return awsutil.Prettify(s)
  37293. }
  37294. // GoString returns the string representation
  37295. func (s DescribeVpcAttributeInput) GoString() string {
  37296. return s.String()
  37297. }
  37298. // Validate inspects the fields of the type to determine if they are valid.
  37299. func (s *DescribeVpcAttributeInput) Validate() error {
  37300. invalidParams := request.ErrInvalidParams{Context: "DescribeVpcAttributeInput"}
  37301. if s.Attribute == nil {
  37302. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  37303. }
  37304. if s.VpcId == nil {
  37305. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  37306. }
  37307. if invalidParams.Len() > 0 {
  37308. return invalidParams
  37309. }
  37310. return nil
  37311. }
  37312. // SetAttribute sets the Attribute field's value.
  37313. func (s *DescribeVpcAttributeInput) SetAttribute(v string) *DescribeVpcAttributeInput {
  37314. s.Attribute = &v
  37315. return s
  37316. }
  37317. // SetDryRun sets the DryRun field's value.
  37318. func (s *DescribeVpcAttributeInput) SetDryRun(v bool) *DescribeVpcAttributeInput {
  37319. s.DryRun = &v
  37320. return s
  37321. }
  37322. // SetVpcId sets the VpcId field's value.
  37323. func (s *DescribeVpcAttributeInput) SetVpcId(v string) *DescribeVpcAttributeInput {
  37324. s.VpcId = &v
  37325. return s
  37326. }
  37327. // Contains the output of DescribeVpcAttribute.
  37328. type DescribeVpcAttributeOutput struct {
  37329. _ struct{} `type:"structure"`
  37330. // Indicates whether the instances launched in the VPC get DNS hostnames. If
  37331. // this attribute is true, instances in the VPC get DNS hostnames; otherwise,
  37332. // they do not.
  37333. EnableDnsHostnames *AttributeBooleanValue `locationName:"enableDnsHostnames" type:"structure"`
  37334. // Indicates whether DNS resolution is enabled for the VPC. If this attribute
  37335. // is true, the Amazon DNS server resolves DNS hostnames for your instances
  37336. // to their corresponding IP addresses; otherwise, it does not.
  37337. EnableDnsSupport *AttributeBooleanValue `locationName:"enableDnsSupport" type:"structure"`
  37338. // The ID of the VPC.
  37339. VpcId *string `locationName:"vpcId" type:"string"`
  37340. }
  37341. // String returns the string representation
  37342. func (s DescribeVpcAttributeOutput) String() string {
  37343. return awsutil.Prettify(s)
  37344. }
  37345. // GoString returns the string representation
  37346. func (s DescribeVpcAttributeOutput) GoString() string {
  37347. return s.String()
  37348. }
  37349. // SetEnableDnsHostnames sets the EnableDnsHostnames field's value.
  37350. func (s *DescribeVpcAttributeOutput) SetEnableDnsHostnames(v *AttributeBooleanValue) *DescribeVpcAttributeOutput {
  37351. s.EnableDnsHostnames = v
  37352. return s
  37353. }
  37354. // SetEnableDnsSupport sets the EnableDnsSupport field's value.
  37355. func (s *DescribeVpcAttributeOutput) SetEnableDnsSupport(v *AttributeBooleanValue) *DescribeVpcAttributeOutput {
  37356. s.EnableDnsSupport = v
  37357. return s
  37358. }
  37359. // SetVpcId sets the VpcId field's value.
  37360. func (s *DescribeVpcAttributeOutput) SetVpcId(v string) *DescribeVpcAttributeOutput {
  37361. s.VpcId = &v
  37362. return s
  37363. }
  37364. // Contains the parameters for DescribeVpcClassicLinkDnsSupport.
  37365. type DescribeVpcClassicLinkDnsSupportInput struct {
  37366. _ struct{} `type:"structure"`
  37367. // The maximum number of items to return for this request. The request returns
  37368. // a token that you can specify in a subsequent call to get the next set of
  37369. // results.
  37370. MaxResults *int64 `locationName:"maxResults" min:"5" type:"integer"`
  37371. // The token for the next set of items to return. (You received this token from
  37372. // a prior call.)
  37373. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  37374. // One or more VPC IDs.
  37375. VpcIds []*string `locationNameList:"VpcId" type:"list"`
  37376. }
  37377. // String returns the string representation
  37378. func (s DescribeVpcClassicLinkDnsSupportInput) String() string {
  37379. return awsutil.Prettify(s)
  37380. }
  37381. // GoString returns the string representation
  37382. func (s DescribeVpcClassicLinkDnsSupportInput) GoString() string {
  37383. return s.String()
  37384. }
  37385. // Validate inspects the fields of the type to determine if they are valid.
  37386. func (s *DescribeVpcClassicLinkDnsSupportInput) Validate() error {
  37387. invalidParams := request.ErrInvalidParams{Context: "DescribeVpcClassicLinkDnsSupportInput"}
  37388. if s.MaxResults != nil && *s.MaxResults < 5 {
  37389. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  37390. }
  37391. if s.NextToken != nil && len(*s.NextToken) < 1 {
  37392. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  37393. }
  37394. if invalidParams.Len() > 0 {
  37395. return invalidParams
  37396. }
  37397. return nil
  37398. }
  37399. // SetMaxResults sets the MaxResults field's value.
  37400. func (s *DescribeVpcClassicLinkDnsSupportInput) SetMaxResults(v int64) *DescribeVpcClassicLinkDnsSupportInput {
  37401. s.MaxResults = &v
  37402. return s
  37403. }
  37404. // SetNextToken sets the NextToken field's value.
  37405. func (s *DescribeVpcClassicLinkDnsSupportInput) SetNextToken(v string) *DescribeVpcClassicLinkDnsSupportInput {
  37406. s.NextToken = &v
  37407. return s
  37408. }
  37409. // SetVpcIds sets the VpcIds field's value.
  37410. func (s *DescribeVpcClassicLinkDnsSupportInput) SetVpcIds(v []*string) *DescribeVpcClassicLinkDnsSupportInput {
  37411. s.VpcIds = v
  37412. return s
  37413. }
  37414. // Contains the output of DescribeVpcClassicLinkDnsSupport.
  37415. type DescribeVpcClassicLinkDnsSupportOutput struct {
  37416. _ struct{} `type:"structure"`
  37417. // The token to use when requesting the next set of items.
  37418. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  37419. // Information about the ClassicLink DNS support status of the VPCs.
  37420. Vpcs []*ClassicLinkDnsSupport `locationName:"vpcs" locationNameList:"item" type:"list"`
  37421. }
  37422. // String returns the string representation
  37423. func (s DescribeVpcClassicLinkDnsSupportOutput) String() string {
  37424. return awsutil.Prettify(s)
  37425. }
  37426. // GoString returns the string representation
  37427. func (s DescribeVpcClassicLinkDnsSupportOutput) GoString() string {
  37428. return s.String()
  37429. }
  37430. // SetNextToken sets the NextToken field's value.
  37431. func (s *DescribeVpcClassicLinkDnsSupportOutput) SetNextToken(v string) *DescribeVpcClassicLinkDnsSupportOutput {
  37432. s.NextToken = &v
  37433. return s
  37434. }
  37435. // SetVpcs sets the Vpcs field's value.
  37436. func (s *DescribeVpcClassicLinkDnsSupportOutput) SetVpcs(v []*ClassicLinkDnsSupport) *DescribeVpcClassicLinkDnsSupportOutput {
  37437. s.Vpcs = v
  37438. return s
  37439. }
  37440. // Contains the parameters for DescribeVpcClassicLink.
  37441. type DescribeVpcClassicLinkInput struct {
  37442. _ struct{} `type:"structure"`
  37443. // Checks whether you have the required permissions for the action, without
  37444. // actually making the request, and provides an error response. If you have
  37445. // the required permissions, the error response is DryRunOperation. Otherwise,
  37446. // it is UnauthorizedOperation.
  37447. DryRun *bool `locationName:"dryRun" type:"boolean"`
  37448. // One or more filters.
  37449. //
  37450. // * is-classic-link-enabled - Whether the VPC is enabled for ClassicLink
  37451. // (true | false).
  37452. //
  37453. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  37454. // Specify the key of the tag in the filter name and the value of the tag
  37455. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  37456. // for the filter name and X for the filter value.
  37457. //
  37458. // * tag-key - The key of a tag assigned to the resource. This filter is
  37459. // independent of the tag-value filter. For example, if you use both the
  37460. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  37461. // assigned both the tag key Purpose (regardless of what the tag's value
  37462. // is), and the tag value X (regardless of what the tag's key is). If you
  37463. // want to list only resources where Purpose is X, see the tag:key=value
  37464. // filter.
  37465. //
  37466. // * tag-value - The value of a tag assigned to the resource. This filter
  37467. // is independent of the tag-key filter.
  37468. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  37469. // One or more VPCs for which you want to describe the ClassicLink status.
  37470. VpcIds []*string `locationName:"VpcId" locationNameList:"VpcId" type:"list"`
  37471. }
  37472. // String returns the string representation
  37473. func (s DescribeVpcClassicLinkInput) String() string {
  37474. return awsutil.Prettify(s)
  37475. }
  37476. // GoString returns the string representation
  37477. func (s DescribeVpcClassicLinkInput) GoString() string {
  37478. return s.String()
  37479. }
  37480. // SetDryRun sets the DryRun field's value.
  37481. func (s *DescribeVpcClassicLinkInput) SetDryRun(v bool) *DescribeVpcClassicLinkInput {
  37482. s.DryRun = &v
  37483. return s
  37484. }
  37485. // SetFilters sets the Filters field's value.
  37486. func (s *DescribeVpcClassicLinkInput) SetFilters(v []*Filter) *DescribeVpcClassicLinkInput {
  37487. s.Filters = v
  37488. return s
  37489. }
  37490. // SetVpcIds sets the VpcIds field's value.
  37491. func (s *DescribeVpcClassicLinkInput) SetVpcIds(v []*string) *DescribeVpcClassicLinkInput {
  37492. s.VpcIds = v
  37493. return s
  37494. }
  37495. // Contains the output of DescribeVpcClassicLink.
  37496. type DescribeVpcClassicLinkOutput struct {
  37497. _ struct{} `type:"structure"`
  37498. // The ClassicLink status of one or more VPCs.
  37499. Vpcs []*VpcClassicLink `locationName:"vpcSet" locationNameList:"item" type:"list"`
  37500. }
  37501. // String returns the string representation
  37502. func (s DescribeVpcClassicLinkOutput) String() string {
  37503. return awsutil.Prettify(s)
  37504. }
  37505. // GoString returns the string representation
  37506. func (s DescribeVpcClassicLinkOutput) GoString() string {
  37507. return s.String()
  37508. }
  37509. // SetVpcs sets the Vpcs field's value.
  37510. func (s *DescribeVpcClassicLinkOutput) SetVpcs(v []*VpcClassicLink) *DescribeVpcClassicLinkOutput {
  37511. s.Vpcs = v
  37512. return s
  37513. }
  37514. type DescribeVpcEndpointConnectionNotificationsInput struct {
  37515. _ struct{} `type:"structure"`
  37516. // The ID of the notification.
  37517. ConnectionNotificationId *string `type:"string"`
  37518. // Checks whether you have the required permissions for the action, without
  37519. // actually making the request, and provides an error response. If you have
  37520. // the required permissions, the error response is DryRunOperation. Otherwise,
  37521. // it is UnauthorizedOperation.
  37522. DryRun *bool `type:"boolean"`
  37523. // One or more filters.
  37524. //
  37525. // * connection-notification-arn - The ARN of SNS topic for the notification.
  37526. //
  37527. // * connection-notification-id - The ID of the notification.
  37528. //
  37529. // * connection-notification-state - The state of the notification (Enabled
  37530. // | Disabled).
  37531. //
  37532. // * connection-notification-type - The type of notification (Topic).
  37533. //
  37534. // * service-id - The ID of the endpoint service.
  37535. //
  37536. // * vpc-endpoint-id - The ID of the VPC endpoint.
  37537. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  37538. // The maximum number of results to return in a single call. To retrieve the
  37539. // remaining results, make another request with the returned NextToken value.
  37540. MaxResults *int64 `type:"integer"`
  37541. // The token to request the next page of results.
  37542. NextToken *string `type:"string"`
  37543. }
  37544. // String returns the string representation
  37545. func (s DescribeVpcEndpointConnectionNotificationsInput) String() string {
  37546. return awsutil.Prettify(s)
  37547. }
  37548. // GoString returns the string representation
  37549. func (s DescribeVpcEndpointConnectionNotificationsInput) GoString() string {
  37550. return s.String()
  37551. }
  37552. // SetConnectionNotificationId sets the ConnectionNotificationId field's value.
  37553. func (s *DescribeVpcEndpointConnectionNotificationsInput) SetConnectionNotificationId(v string) *DescribeVpcEndpointConnectionNotificationsInput {
  37554. s.ConnectionNotificationId = &v
  37555. return s
  37556. }
  37557. // SetDryRun sets the DryRun field's value.
  37558. func (s *DescribeVpcEndpointConnectionNotificationsInput) SetDryRun(v bool) *DescribeVpcEndpointConnectionNotificationsInput {
  37559. s.DryRun = &v
  37560. return s
  37561. }
  37562. // SetFilters sets the Filters field's value.
  37563. func (s *DescribeVpcEndpointConnectionNotificationsInput) SetFilters(v []*Filter) *DescribeVpcEndpointConnectionNotificationsInput {
  37564. s.Filters = v
  37565. return s
  37566. }
  37567. // SetMaxResults sets the MaxResults field's value.
  37568. func (s *DescribeVpcEndpointConnectionNotificationsInput) SetMaxResults(v int64) *DescribeVpcEndpointConnectionNotificationsInput {
  37569. s.MaxResults = &v
  37570. return s
  37571. }
  37572. // SetNextToken sets the NextToken field's value.
  37573. func (s *DescribeVpcEndpointConnectionNotificationsInput) SetNextToken(v string) *DescribeVpcEndpointConnectionNotificationsInput {
  37574. s.NextToken = &v
  37575. return s
  37576. }
  37577. type DescribeVpcEndpointConnectionNotificationsOutput struct {
  37578. _ struct{} `type:"structure"`
  37579. // One or more notifications.
  37580. ConnectionNotificationSet []*ConnectionNotification `locationName:"connectionNotificationSet" locationNameList:"item" type:"list"`
  37581. // The token to use to retrieve the next page of results. This value is null
  37582. // when there are no more results to return.
  37583. NextToken *string `locationName:"nextToken" type:"string"`
  37584. }
  37585. // String returns the string representation
  37586. func (s DescribeVpcEndpointConnectionNotificationsOutput) String() string {
  37587. return awsutil.Prettify(s)
  37588. }
  37589. // GoString returns the string representation
  37590. func (s DescribeVpcEndpointConnectionNotificationsOutput) GoString() string {
  37591. return s.String()
  37592. }
  37593. // SetConnectionNotificationSet sets the ConnectionNotificationSet field's value.
  37594. func (s *DescribeVpcEndpointConnectionNotificationsOutput) SetConnectionNotificationSet(v []*ConnectionNotification) *DescribeVpcEndpointConnectionNotificationsOutput {
  37595. s.ConnectionNotificationSet = v
  37596. return s
  37597. }
  37598. // SetNextToken sets the NextToken field's value.
  37599. func (s *DescribeVpcEndpointConnectionNotificationsOutput) SetNextToken(v string) *DescribeVpcEndpointConnectionNotificationsOutput {
  37600. s.NextToken = &v
  37601. return s
  37602. }
  37603. type DescribeVpcEndpointConnectionsInput struct {
  37604. _ struct{} `type:"structure"`
  37605. // Checks whether you have the required permissions for the action, without
  37606. // actually making the request, and provides an error response. If you have
  37607. // the required permissions, the error response is DryRunOperation. Otherwise,
  37608. // it is UnauthorizedOperation.
  37609. DryRun *bool `type:"boolean"`
  37610. // One or more filters.
  37611. //
  37612. // * service-id - The ID of the service.
  37613. //
  37614. // * vpc-endpoint-owner - The AWS account number of the owner of the endpoint.
  37615. //
  37616. // * vpc-endpoint-state - The state of the endpoint (pendingAcceptance |
  37617. // pending | available | deleting | deleted | rejected | failed).
  37618. //
  37619. // * vpc-endpoint-id - The ID of the endpoint.
  37620. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  37621. // The maximum number of results to return for the request in a single page.
  37622. // The remaining results of the initial request can be seen by sending another
  37623. // request with the returned NextToken value. This value can be between 5 and
  37624. // 1000; if MaxResults is given a value larger than 1000, only 1000 results
  37625. // are returned.
  37626. MaxResults *int64 `type:"integer"`
  37627. // The token to retrieve the next page of results.
  37628. NextToken *string `type:"string"`
  37629. }
  37630. // String returns the string representation
  37631. func (s DescribeVpcEndpointConnectionsInput) String() string {
  37632. return awsutil.Prettify(s)
  37633. }
  37634. // GoString returns the string representation
  37635. func (s DescribeVpcEndpointConnectionsInput) GoString() string {
  37636. return s.String()
  37637. }
  37638. // SetDryRun sets the DryRun field's value.
  37639. func (s *DescribeVpcEndpointConnectionsInput) SetDryRun(v bool) *DescribeVpcEndpointConnectionsInput {
  37640. s.DryRun = &v
  37641. return s
  37642. }
  37643. // SetFilters sets the Filters field's value.
  37644. func (s *DescribeVpcEndpointConnectionsInput) SetFilters(v []*Filter) *DescribeVpcEndpointConnectionsInput {
  37645. s.Filters = v
  37646. return s
  37647. }
  37648. // SetMaxResults sets the MaxResults field's value.
  37649. func (s *DescribeVpcEndpointConnectionsInput) SetMaxResults(v int64) *DescribeVpcEndpointConnectionsInput {
  37650. s.MaxResults = &v
  37651. return s
  37652. }
  37653. // SetNextToken sets the NextToken field's value.
  37654. func (s *DescribeVpcEndpointConnectionsInput) SetNextToken(v string) *DescribeVpcEndpointConnectionsInput {
  37655. s.NextToken = &v
  37656. return s
  37657. }
  37658. type DescribeVpcEndpointConnectionsOutput struct {
  37659. _ struct{} `type:"structure"`
  37660. // The token to use to retrieve the next page of results. This value is null
  37661. // when there are no more results to return.
  37662. NextToken *string `locationName:"nextToken" type:"string"`
  37663. // Information about one or more VPC endpoint connections.
  37664. VpcEndpointConnections []*VpcEndpointConnection `locationName:"vpcEndpointConnectionSet" locationNameList:"item" type:"list"`
  37665. }
  37666. // String returns the string representation
  37667. func (s DescribeVpcEndpointConnectionsOutput) String() string {
  37668. return awsutil.Prettify(s)
  37669. }
  37670. // GoString returns the string representation
  37671. func (s DescribeVpcEndpointConnectionsOutput) GoString() string {
  37672. return s.String()
  37673. }
  37674. // SetNextToken sets the NextToken field's value.
  37675. func (s *DescribeVpcEndpointConnectionsOutput) SetNextToken(v string) *DescribeVpcEndpointConnectionsOutput {
  37676. s.NextToken = &v
  37677. return s
  37678. }
  37679. // SetVpcEndpointConnections sets the VpcEndpointConnections field's value.
  37680. func (s *DescribeVpcEndpointConnectionsOutput) SetVpcEndpointConnections(v []*VpcEndpointConnection) *DescribeVpcEndpointConnectionsOutput {
  37681. s.VpcEndpointConnections = v
  37682. return s
  37683. }
  37684. type DescribeVpcEndpointServiceConfigurationsInput struct {
  37685. _ struct{} `type:"structure"`
  37686. // Checks whether you have the required permissions for the action, without
  37687. // actually making the request, and provides an error response. If you have
  37688. // the required permissions, the error response is DryRunOperation. Otherwise,
  37689. // it is UnauthorizedOperation.
  37690. DryRun *bool `type:"boolean"`
  37691. // One or more filters.
  37692. //
  37693. // * service-name - The name of the service.
  37694. //
  37695. // * service-id - The ID of the service.
  37696. //
  37697. // * service-state - The state of the service (Pending | Available | Deleting
  37698. // | Deleted | Failed).
  37699. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  37700. // The maximum number of results to return for the request in a single page.
  37701. // The remaining results of the initial request can be seen by sending another
  37702. // request with the returned NextToken value. This value can be between 5 and
  37703. // 1000; if MaxResults is given a value larger than 1000, only 1000 results
  37704. // are returned.
  37705. MaxResults *int64 `type:"integer"`
  37706. // The token to retrieve the next page of results.
  37707. NextToken *string `type:"string"`
  37708. // The IDs of one or more services.
  37709. ServiceIds []*string `locationName:"ServiceId" locationNameList:"item" type:"list"`
  37710. }
  37711. // String returns the string representation
  37712. func (s DescribeVpcEndpointServiceConfigurationsInput) String() string {
  37713. return awsutil.Prettify(s)
  37714. }
  37715. // GoString returns the string representation
  37716. func (s DescribeVpcEndpointServiceConfigurationsInput) GoString() string {
  37717. return s.String()
  37718. }
  37719. // SetDryRun sets the DryRun field's value.
  37720. func (s *DescribeVpcEndpointServiceConfigurationsInput) SetDryRun(v bool) *DescribeVpcEndpointServiceConfigurationsInput {
  37721. s.DryRun = &v
  37722. return s
  37723. }
  37724. // SetFilters sets the Filters field's value.
  37725. func (s *DescribeVpcEndpointServiceConfigurationsInput) SetFilters(v []*Filter) *DescribeVpcEndpointServiceConfigurationsInput {
  37726. s.Filters = v
  37727. return s
  37728. }
  37729. // SetMaxResults sets the MaxResults field's value.
  37730. func (s *DescribeVpcEndpointServiceConfigurationsInput) SetMaxResults(v int64) *DescribeVpcEndpointServiceConfigurationsInput {
  37731. s.MaxResults = &v
  37732. return s
  37733. }
  37734. // SetNextToken sets the NextToken field's value.
  37735. func (s *DescribeVpcEndpointServiceConfigurationsInput) SetNextToken(v string) *DescribeVpcEndpointServiceConfigurationsInput {
  37736. s.NextToken = &v
  37737. return s
  37738. }
  37739. // SetServiceIds sets the ServiceIds field's value.
  37740. func (s *DescribeVpcEndpointServiceConfigurationsInput) SetServiceIds(v []*string) *DescribeVpcEndpointServiceConfigurationsInput {
  37741. s.ServiceIds = v
  37742. return s
  37743. }
  37744. type DescribeVpcEndpointServiceConfigurationsOutput struct {
  37745. _ struct{} `type:"structure"`
  37746. // The token to use to retrieve the next page of results. This value is null
  37747. // when there are no more results to return.
  37748. NextToken *string `locationName:"nextToken" type:"string"`
  37749. // Information about one or more services.
  37750. ServiceConfigurations []*ServiceConfiguration `locationName:"serviceConfigurationSet" locationNameList:"item" type:"list"`
  37751. }
  37752. // String returns the string representation
  37753. func (s DescribeVpcEndpointServiceConfigurationsOutput) String() string {
  37754. return awsutil.Prettify(s)
  37755. }
  37756. // GoString returns the string representation
  37757. func (s DescribeVpcEndpointServiceConfigurationsOutput) GoString() string {
  37758. return s.String()
  37759. }
  37760. // SetNextToken sets the NextToken field's value.
  37761. func (s *DescribeVpcEndpointServiceConfigurationsOutput) SetNextToken(v string) *DescribeVpcEndpointServiceConfigurationsOutput {
  37762. s.NextToken = &v
  37763. return s
  37764. }
  37765. // SetServiceConfigurations sets the ServiceConfigurations field's value.
  37766. func (s *DescribeVpcEndpointServiceConfigurationsOutput) SetServiceConfigurations(v []*ServiceConfiguration) *DescribeVpcEndpointServiceConfigurationsOutput {
  37767. s.ServiceConfigurations = v
  37768. return s
  37769. }
  37770. type DescribeVpcEndpointServicePermissionsInput struct {
  37771. _ struct{} `type:"structure"`
  37772. // Checks whether you have the required permissions for the action, without
  37773. // actually making the request, and provides an error response. If you have
  37774. // the required permissions, the error response is DryRunOperation. Otherwise,
  37775. // it is UnauthorizedOperation.
  37776. DryRun *bool `type:"boolean"`
  37777. // One or more filters.
  37778. //
  37779. // * principal - The ARN of the principal.
  37780. //
  37781. // * principal-type - The principal type (All | Service | OrganizationUnit
  37782. // | Account | User | Role).
  37783. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  37784. // The maximum number of results to return for the request in a single page.
  37785. // The remaining results of the initial request can be seen by sending another
  37786. // request with the returned NextToken value. This value can be between 5 and
  37787. // 1000; if MaxResults is given a value larger than 1000, only 1000 results
  37788. // are returned.
  37789. MaxResults *int64 `type:"integer"`
  37790. // The token to retrieve the next page of results.
  37791. NextToken *string `type:"string"`
  37792. // The ID of the service.
  37793. //
  37794. // ServiceId is a required field
  37795. ServiceId *string `type:"string" required:"true"`
  37796. }
  37797. // String returns the string representation
  37798. func (s DescribeVpcEndpointServicePermissionsInput) String() string {
  37799. return awsutil.Prettify(s)
  37800. }
  37801. // GoString returns the string representation
  37802. func (s DescribeVpcEndpointServicePermissionsInput) GoString() string {
  37803. return s.String()
  37804. }
  37805. // Validate inspects the fields of the type to determine if they are valid.
  37806. func (s *DescribeVpcEndpointServicePermissionsInput) Validate() error {
  37807. invalidParams := request.ErrInvalidParams{Context: "DescribeVpcEndpointServicePermissionsInput"}
  37808. if s.ServiceId == nil {
  37809. invalidParams.Add(request.NewErrParamRequired("ServiceId"))
  37810. }
  37811. if invalidParams.Len() > 0 {
  37812. return invalidParams
  37813. }
  37814. return nil
  37815. }
  37816. // SetDryRun sets the DryRun field's value.
  37817. func (s *DescribeVpcEndpointServicePermissionsInput) SetDryRun(v bool) *DescribeVpcEndpointServicePermissionsInput {
  37818. s.DryRun = &v
  37819. return s
  37820. }
  37821. // SetFilters sets the Filters field's value.
  37822. func (s *DescribeVpcEndpointServicePermissionsInput) SetFilters(v []*Filter) *DescribeVpcEndpointServicePermissionsInput {
  37823. s.Filters = v
  37824. return s
  37825. }
  37826. // SetMaxResults sets the MaxResults field's value.
  37827. func (s *DescribeVpcEndpointServicePermissionsInput) SetMaxResults(v int64) *DescribeVpcEndpointServicePermissionsInput {
  37828. s.MaxResults = &v
  37829. return s
  37830. }
  37831. // SetNextToken sets the NextToken field's value.
  37832. func (s *DescribeVpcEndpointServicePermissionsInput) SetNextToken(v string) *DescribeVpcEndpointServicePermissionsInput {
  37833. s.NextToken = &v
  37834. return s
  37835. }
  37836. // SetServiceId sets the ServiceId field's value.
  37837. func (s *DescribeVpcEndpointServicePermissionsInput) SetServiceId(v string) *DescribeVpcEndpointServicePermissionsInput {
  37838. s.ServiceId = &v
  37839. return s
  37840. }
  37841. type DescribeVpcEndpointServicePermissionsOutput struct {
  37842. _ struct{} `type:"structure"`
  37843. // Information about one or more allowed principals.
  37844. AllowedPrincipals []*AllowedPrincipal `locationName:"allowedPrincipals" locationNameList:"item" type:"list"`
  37845. // The token to use to retrieve the next page of results. This value is null
  37846. // when there are no more results to return.
  37847. NextToken *string `locationName:"nextToken" type:"string"`
  37848. }
  37849. // String returns the string representation
  37850. func (s DescribeVpcEndpointServicePermissionsOutput) String() string {
  37851. return awsutil.Prettify(s)
  37852. }
  37853. // GoString returns the string representation
  37854. func (s DescribeVpcEndpointServicePermissionsOutput) GoString() string {
  37855. return s.String()
  37856. }
  37857. // SetAllowedPrincipals sets the AllowedPrincipals field's value.
  37858. func (s *DescribeVpcEndpointServicePermissionsOutput) SetAllowedPrincipals(v []*AllowedPrincipal) *DescribeVpcEndpointServicePermissionsOutput {
  37859. s.AllowedPrincipals = v
  37860. return s
  37861. }
  37862. // SetNextToken sets the NextToken field's value.
  37863. func (s *DescribeVpcEndpointServicePermissionsOutput) SetNextToken(v string) *DescribeVpcEndpointServicePermissionsOutput {
  37864. s.NextToken = &v
  37865. return s
  37866. }
  37867. // Contains the parameters for DescribeVpcEndpointServices.
  37868. type DescribeVpcEndpointServicesInput struct {
  37869. _ struct{} `type:"structure"`
  37870. // Checks whether you have the required permissions for the action, without
  37871. // actually making the request, and provides an error response. If you have
  37872. // the required permissions, the error response is DryRunOperation. Otherwise,
  37873. // it is UnauthorizedOperation.
  37874. DryRun *bool `type:"boolean"`
  37875. // One or more filters.
  37876. //
  37877. // * service-name: The name of the service.
  37878. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  37879. // The maximum number of items to return for this request. The request returns
  37880. // a token that you can specify in a subsequent call to get the next set of
  37881. // results.
  37882. //
  37883. // Constraint: If the value is greater than 1000, we return only 1000 items.
  37884. MaxResults *int64 `type:"integer"`
  37885. // The token for the next set of items to return. (You received this token from
  37886. // a prior call.)
  37887. NextToken *string `type:"string"`
  37888. // One or more service names.
  37889. ServiceNames []*string `locationName:"ServiceName" locationNameList:"item" type:"list"`
  37890. }
  37891. // String returns the string representation
  37892. func (s DescribeVpcEndpointServicesInput) String() string {
  37893. return awsutil.Prettify(s)
  37894. }
  37895. // GoString returns the string representation
  37896. func (s DescribeVpcEndpointServicesInput) GoString() string {
  37897. return s.String()
  37898. }
  37899. // SetDryRun sets the DryRun field's value.
  37900. func (s *DescribeVpcEndpointServicesInput) SetDryRun(v bool) *DescribeVpcEndpointServicesInput {
  37901. s.DryRun = &v
  37902. return s
  37903. }
  37904. // SetFilters sets the Filters field's value.
  37905. func (s *DescribeVpcEndpointServicesInput) SetFilters(v []*Filter) *DescribeVpcEndpointServicesInput {
  37906. s.Filters = v
  37907. return s
  37908. }
  37909. // SetMaxResults sets the MaxResults field's value.
  37910. func (s *DescribeVpcEndpointServicesInput) SetMaxResults(v int64) *DescribeVpcEndpointServicesInput {
  37911. s.MaxResults = &v
  37912. return s
  37913. }
  37914. // SetNextToken sets the NextToken field's value.
  37915. func (s *DescribeVpcEndpointServicesInput) SetNextToken(v string) *DescribeVpcEndpointServicesInput {
  37916. s.NextToken = &v
  37917. return s
  37918. }
  37919. // SetServiceNames sets the ServiceNames field's value.
  37920. func (s *DescribeVpcEndpointServicesInput) SetServiceNames(v []*string) *DescribeVpcEndpointServicesInput {
  37921. s.ServiceNames = v
  37922. return s
  37923. }
  37924. // Contains the output of DescribeVpcEndpointServices.
  37925. type DescribeVpcEndpointServicesOutput struct {
  37926. _ struct{} `type:"structure"`
  37927. // The token to use when requesting the next set of items. If there are no additional
  37928. // items to return, the string is empty.
  37929. NextToken *string `locationName:"nextToken" type:"string"`
  37930. // Information about the service.
  37931. ServiceDetails []*ServiceDetail `locationName:"serviceDetailSet" locationNameList:"item" type:"list"`
  37932. // A list of supported services.
  37933. ServiceNames []*string `locationName:"serviceNameSet" locationNameList:"item" type:"list"`
  37934. }
  37935. // String returns the string representation
  37936. func (s DescribeVpcEndpointServicesOutput) String() string {
  37937. return awsutil.Prettify(s)
  37938. }
  37939. // GoString returns the string representation
  37940. func (s DescribeVpcEndpointServicesOutput) GoString() string {
  37941. return s.String()
  37942. }
  37943. // SetNextToken sets the NextToken field's value.
  37944. func (s *DescribeVpcEndpointServicesOutput) SetNextToken(v string) *DescribeVpcEndpointServicesOutput {
  37945. s.NextToken = &v
  37946. return s
  37947. }
  37948. // SetServiceDetails sets the ServiceDetails field's value.
  37949. func (s *DescribeVpcEndpointServicesOutput) SetServiceDetails(v []*ServiceDetail) *DescribeVpcEndpointServicesOutput {
  37950. s.ServiceDetails = v
  37951. return s
  37952. }
  37953. // SetServiceNames sets the ServiceNames field's value.
  37954. func (s *DescribeVpcEndpointServicesOutput) SetServiceNames(v []*string) *DescribeVpcEndpointServicesOutput {
  37955. s.ServiceNames = v
  37956. return s
  37957. }
  37958. // Contains the parameters for DescribeVpcEndpoints.
  37959. type DescribeVpcEndpointsInput struct {
  37960. _ struct{} `type:"structure"`
  37961. // Checks whether you have the required permissions for the action, without
  37962. // actually making the request, and provides an error response. If you have
  37963. // the required permissions, the error response is DryRunOperation. Otherwise,
  37964. // it is UnauthorizedOperation.
  37965. DryRun *bool `type:"boolean"`
  37966. // One or more filters.
  37967. //
  37968. // * service-name: The name of the service.
  37969. //
  37970. // * vpc-id: The ID of the VPC in which the endpoint resides.
  37971. //
  37972. // * vpc-endpoint-id: The ID of the endpoint.
  37973. //
  37974. // * vpc-endpoint-state: The state of the endpoint. (pending | available
  37975. // | deleting | deleted)
  37976. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  37977. // The maximum number of items to return for this request. The request returns
  37978. // a token that you can specify in a subsequent call to get the next set of
  37979. // results.
  37980. //
  37981. // Constraint: If the value is greater than 1000, we return only 1000 items.
  37982. MaxResults *int64 `type:"integer"`
  37983. // The token for the next set of items to return. (You received this token from
  37984. // a prior call.)
  37985. NextToken *string `type:"string"`
  37986. // One or more endpoint IDs.
  37987. VpcEndpointIds []*string `locationName:"VpcEndpointId" locationNameList:"item" type:"list"`
  37988. }
  37989. // String returns the string representation
  37990. func (s DescribeVpcEndpointsInput) String() string {
  37991. return awsutil.Prettify(s)
  37992. }
  37993. // GoString returns the string representation
  37994. func (s DescribeVpcEndpointsInput) GoString() string {
  37995. return s.String()
  37996. }
  37997. // SetDryRun sets the DryRun field's value.
  37998. func (s *DescribeVpcEndpointsInput) SetDryRun(v bool) *DescribeVpcEndpointsInput {
  37999. s.DryRun = &v
  38000. return s
  38001. }
  38002. // SetFilters sets the Filters field's value.
  38003. func (s *DescribeVpcEndpointsInput) SetFilters(v []*Filter) *DescribeVpcEndpointsInput {
  38004. s.Filters = v
  38005. return s
  38006. }
  38007. // SetMaxResults sets the MaxResults field's value.
  38008. func (s *DescribeVpcEndpointsInput) SetMaxResults(v int64) *DescribeVpcEndpointsInput {
  38009. s.MaxResults = &v
  38010. return s
  38011. }
  38012. // SetNextToken sets the NextToken field's value.
  38013. func (s *DescribeVpcEndpointsInput) SetNextToken(v string) *DescribeVpcEndpointsInput {
  38014. s.NextToken = &v
  38015. return s
  38016. }
  38017. // SetVpcEndpointIds sets the VpcEndpointIds field's value.
  38018. func (s *DescribeVpcEndpointsInput) SetVpcEndpointIds(v []*string) *DescribeVpcEndpointsInput {
  38019. s.VpcEndpointIds = v
  38020. return s
  38021. }
  38022. // Contains the output of DescribeVpcEndpoints.
  38023. type DescribeVpcEndpointsOutput struct {
  38024. _ struct{} `type:"structure"`
  38025. // The token to use when requesting the next set of items. If there are no additional
  38026. // items to return, the string is empty.
  38027. NextToken *string `locationName:"nextToken" type:"string"`
  38028. // Information about the endpoints.
  38029. VpcEndpoints []*VpcEndpoint `locationName:"vpcEndpointSet" locationNameList:"item" type:"list"`
  38030. }
  38031. // String returns the string representation
  38032. func (s DescribeVpcEndpointsOutput) String() string {
  38033. return awsutil.Prettify(s)
  38034. }
  38035. // GoString returns the string representation
  38036. func (s DescribeVpcEndpointsOutput) GoString() string {
  38037. return s.String()
  38038. }
  38039. // SetNextToken sets the NextToken field's value.
  38040. func (s *DescribeVpcEndpointsOutput) SetNextToken(v string) *DescribeVpcEndpointsOutput {
  38041. s.NextToken = &v
  38042. return s
  38043. }
  38044. // SetVpcEndpoints sets the VpcEndpoints field's value.
  38045. func (s *DescribeVpcEndpointsOutput) SetVpcEndpoints(v []*VpcEndpoint) *DescribeVpcEndpointsOutput {
  38046. s.VpcEndpoints = v
  38047. return s
  38048. }
  38049. // Contains the parameters for DescribeVpcPeeringConnections.
  38050. type DescribeVpcPeeringConnectionsInput struct {
  38051. _ struct{} `type:"structure"`
  38052. // Checks whether you have the required permissions for the action, without
  38053. // actually making the request, and provides an error response. If you have
  38054. // the required permissions, the error response is DryRunOperation. Otherwise,
  38055. // it is UnauthorizedOperation.
  38056. DryRun *bool `locationName:"dryRun" type:"boolean"`
  38057. // One or more filters.
  38058. //
  38059. // * accepter-vpc-info.cidr-block - The IPv4 CIDR block of the accepter VPC.
  38060. //
  38061. // * accepter-vpc-info.owner-id - The AWS account ID of the owner of the
  38062. // accepter VPC.
  38063. //
  38064. // * accepter-vpc-info.vpc-id - The ID of the accepter VPC.
  38065. //
  38066. // * expiration-time - The expiration date and time for the VPC peering connection.
  38067. //
  38068. // * requester-vpc-info.cidr-block - The IPv4 CIDR block of the requester's
  38069. // VPC.
  38070. //
  38071. // * requester-vpc-info.owner-id - The AWS account ID of the owner of the
  38072. // requester VPC.
  38073. //
  38074. // * requester-vpc-info.vpc-id - The ID of the requester VPC.
  38075. //
  38076. // * status-code - The status of the VPC peering connection (pending-acceptance
  38077. // | failed | expired | provisioning | active | deleting | deleted | rejected).
  38078. //
  38079. // * status-message - A message that provides more information about the
  38080. // status of the VPC peering connection, if applicable.
  38081. //
  38082. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  38083. // Specify the key of the tag in the filter name and the value of the tag
  38084. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  38085. // for the filter name and X for the filter value.
  38086. //
  38087. // * tag-key - The key of a tag assigned to the resource. This filter is
  38088. // independent of the tag-value filter. For example, if you use both the
  38089. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  38090. // assigned both the tag key Purpose (regardless of what the tag's value
  38091. // is), and the tag value X (regardless of what the tag's key is). If you
  38092. // want to list only resources where Purpose is X, see the tag:key=value
  38093. // filter.
  38094. //
  38095. // * tag-value - The value of a tag assigned to the resource. This filter
  38096. // is independent of the tag-key filter.
  38097. //
  38098. // * vpc-peering-connection-id - The ID of the VPC peering connection.
  38099. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  38100. // One or more VPC peering connection IDs.
  38101. //
  38102. // Default: Describes all your VPC peering connections.
  38103. VpcPeeringConnectionIds []*string `locationName:"VpcPeeringConnectionId" locationNameList:"item" type:"list"`
  38104. }
  38105. // String returns the string representation
  38106. func (s DescribeVpcPeeringConnectionsInput) String() string {
  38107. return awsutil.Prettify(s)
  38108. }
  38109. // GoString returns the string representation
  38110. func (s DescribeVpcPeeringConnectionsInput) GoString() string {
  38111. return s.String()
  38112. }
  38113. // SetDryRun sets the DryRun field's value.
  38114. func (s *DescribeVpcPeeringConnectionsInput) SetDryRun(v bool) *DescribeVpcPeeringConnectionsInput {
  38115. s.DryRun = &v
  38116. return s
  38117. }
  38118. // SetFilters sets the Filters field's value.
  38119. func (s *DescribeVpcPeeringConnectionsInput) SetFilters(v []*Filter) *DescribeVpcPeeringConnectionsInput {
  38120. s.Filters = v
  38121. return s
  38122. }
  38123. // SetVpcPeeringConnectionIds sets the VpcPeeringConnectionIds field's value.
  38124. func (s *DescribeVpcPeeringConnectionsInput) SetVpcPeeringConnectionIds(v []*string) *DescribeVpcPeeringConnectionsInput {
  38125. s.VpcPeeringConnectionIds = v
  38126. return s
  38127. }
  38128. // Contains the output of DescribeVpcPeeringConnections.
  38129. type DescribeVpcPeeringConnectionsOutput struct {
  38130. _ struct{} `type:"structure"`
  38131. // Information about the VPC peering connections.
  38132. VpcPeeringConnections []*VpcPeeringConnection `locationName:"vpcPeeringConnectionSet" locationNameList:"item" type:"list"`
  38133. }
  38134. // String returns the string representation
  38135. func (s DescribeVpcPeeringConnectionsOutput) String() string {
  38136. return awsutil.Prettify(s)
  38137. }
  38138. // GoString returns the string representation
  38139. func (s DescribeVpcPeeringConnectionsOutput) GoString() string {
  38140. return s.String()
  38141. }
  38142. // SetVpcPeeringConnections sets the VpcPeeringConnections field's value.
  38143. func (s *DescribeVpcPeeringConnectionsOutput) SetVpcPeeringConnections(v []*VpcPeeringConnection) *DescribeVpcPeeringConnectionsOutput {
  38144. s.VpcPeeringConnections = v
  38145. return s
  38146. }
  38147. // Contains the parameters for DescribeVpcs.
  38148. type DescribeVpcsInput struct {
  38149. _ struct{} `type:"structure"`
  38150. // Checks whether you have the required permissions for the action, without
  38151. // actually making the request, and provides an error response. If you have
  38152. // the required permissions, the error response is DryRunOperation. Otherwise,
  38153. // it is UnauthorizedOperation.
  38154. DryRun *bool `locationName:"dryRun" type:"boolean"`
  38155. // One or more filters.
  38156. //
  38157. // * cidr - The primary IPv4 CIDR block of the VPC. The CIDR block you specify
  38158. // must exactly match the VPC's CIDR block for information to be returned
  38159. // for the VPC. Must contain the slash followed by one or two digits (for
  38160. // example, /28).
  38161. //
  38162. // * cidr-block-association.cidr-block - An IPv4 CIDR block associated with
  38163. // the VPC.
  38164. //
  38165. // * cidr-block-association.association-id - The association ID for an IPv4
  38166. // CIDR block associated with the VPC.
  38167. //
  38168. // * cidr-block-association.state - The state of an IPv4 CIDR block associated
  38169. // with the VPC.
  38170. //
  38171. // * dhcp-options-id - The ID of a set of DHCP options.
  38172. //
  38173. // * ipv6-cidr-block-association.ipv6-cidr-block - An IPv6 CIDR block associated
  38174. // with the VPC.
  38175. //
  38176. // * ipv6-cidr-block-association.association-id - The association ID for
  38177. // an IPv6 CIDR block associated with the VPC.
  38178. //
  38179. // * ipv6-cidr-block-association.state - The state of an IPv6 CIDR block
  38180. // associated with the VPC.
  38181. //
  38182. // * isDefault - Indicates whether the VPC is the default VPC.
  38183. //
  38184. // * state - The state of the VPC (pending | available).
  38185. //
  38186. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  38187. // Specify the key of the tag in the filter name and the value of the tag
  38188. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  38189. // for the filter name and X for the filter value.
  38190. //
  38191. // * tag-key - The key of a tag assigned to the resource. This filter is
  38192. // independent of the tag-value filter. For example, if you use both the
  38193. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  38194. // assigned both the tag key Purpose (regardless of what the tag's value
  38195. // is), and the tag value X (regardless of what the tag's key is). If you
  38196. // want to list only resources where Purpose is X, see the tag:key=value
  38197. // filter.
  38198. //
  38199. // * tag-value - The value of a tag assigned to the resource. This filter
  38200. // is independent of the tag-key filter.
  38201. //
  38202. // * vpc-id - The ID of the VPC.
  38203. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  38204. // One or more VPC IDs.
  38205. //
  38206. // Default: Describes all your VPCs.
  38207. VpcIds []*string `locationName:"VpcId" locationNameList:"VpcId" type:"list"`
  38208. }
  38209. // String returns the string representation
  38210. func (s DescribeVpcsInput) String() string {
  38211. return awsutil.Prettify(s)
  38212. }
  38213. // GoString returns the string representation
  38214. func (s DescribeVpcsInput) GoString() string {
  38215. return s.String()
  38216. }
  38217. // SetDryRun sets the DryRun field's value.
  38218. func (s *DescribeVpcsInput) SetDryRun(v bool) *DescribeVpcsInput {
  38219. s.DryRun = &v
  38220. return s
  38221. }
  38222. // SetFilters sets the Filters field's value.
  38223. func (s *DescribeVpcsInput) SetFilters(v []*Filter) *DescribeVpcsInput {
  38224. s.Filters = v
  38225. return s
  38226. }
  38227. // SetVpcIds sets the VpcIds field's value.
  38228. func (s *DescribeVpcsInput) SetVpcIds(v []*string) *DescribeVpcsInput {
  38229. s.VpcIds = v
  38230. return s
  38231. }
  38232. // Contains the output of DescribeVpcs.
  38233. type DescribeVpcsOutput struct {
  38234. _ struct{} `type:"structure"`
  38235. // Information about one or more VPCs.
  38236. Vpcs []*Vpc `locationName:"vpcSet" locationNameList:"item" type:"list"`
  38237. }
  38238. // String returns the string representation
  38239. func (s DescribeVpcsOutput) String() string {
  38240. return awsutil.Prettify(s)
  38241. }
  38242. // GoString returns the string representation
  38243. func (s DescribeVpcsOutput) GoString() string {
  38244. return s.String()
  38245. }
  38246. // SetVpcs sets the Vpcs field's value.
  38247. func (s *DescribeVpcsOutput) SetVpcs(v []*Vpc) *DescribeVpcsOutput {
  38248. s.Vpcs = v
  38249. return s
  38250. }
  38251. // Contains the parameters for DescribeVpnConnections.
  38252. type DescribeVpnConnectionsInput struct {
  38253. _ struct{} `type:"structure"`
  38254. // Checks whether you have the required permissions for the action, without
  38255. // actually making the request, and provides an error response. If you have
  38256. // the required permissions, the error response is DryRunOperation. Otherwise,
  38257. // it is UnauthorizedOperation.
  38258. DryRun *bool `locationName:"dryRun" type:"boolean"`
  38259. // One or more filters.
  38260. //
  38261. // * customer-gateway-configuration - The configuration information for the
  38262. // customer gateway.
  38263. //
  38264. // * customer-gateway-id - The ID of a customer gateway associated with the
  38265. // VPN connection.
  38266. //
  38267. // * state - The state of the VPN connection (pending | available | deleting
  38268. // | deleted).
  38269. //
  38270. // * option.static-routes-only - Indicates whether the connection has static
  38271. // routes only. Used for devices that do not support Border Gateway Protocol
  38272. // (BGP).
  38273. //
  38274. // * route.destination-cidr-block - The destination CIDR block. This corresponds
  38275. // to the subnet used in a customer data center.
  38276. //
  38277. // * bgp-asn - The BGP Autonomous System Number (ASN) associated with a BGP
  38278. // device.
  38279. //
  38280. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  38281. // Specify the key of the tag in the filter name and the value of the tag
  38282. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  38283. // for the filter name and X for the filter value.
  38284. //
  38285. // * tag-key - The key of a tag assigned to the resource. This filter is
  38286. // independent of the tag-value filter. For example, if you use both the
  38287. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  38288. // assigned both the tag key Purpose (regardless of what the tag's value
  38289. // is), and the tag value X (regardless of what the tag's key is). If you
  38290. // want to list only resources where Purpose is X, see the tag:key=value
  38291. // filter.
  38292. //
  38293. // * tag-value - The value of a tag assigned to the resource. This filter
  38294. // is independent of the tag-key filter.
  38295. //
  38296. // * type - The type of VPN connection. Currently the only supported type
  38297. // is ipsec.1.
  38298. //
  38299. // * vpn-connection-id - The ID of the VPN connection.
  38300. //
  38301. // * vpn-gateway-id - The ID of a virtual private gateway associated with
  38302. // the VPN connection.
  38303. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  38304. // One or more VPN connection IDs.
  38305. //
  38306. // Default: Describes your VPN connections.
  38307. VpnConnectionIds []*string `locationName:"VpnConnectionId" locationNameList:"VpnConnectionId" type:"list"`
  38308. }
  38309. // String returns the string representation
  38310. func (s DescribeVpnConnectionsInput) String() string {
  38311. return awsutil.Prettify(s)
  38312. }
  38313. // GoString returns the string representation
  38314. func (s DescribeVpnConnectionsInput) GoString() string {
  38315. return s.String()
  38316. }
  38317. // SetDryRun sets the DryRun field's value.
  38318. func (s *DescribeVpnConnectionsInput) SetDryRun(v bool) *DescribeVpnConnectionsInput {
  38319. s.DryRun = &v
  38320. return s
  38321. }
  38322. // SetFilters sets the Filters field's value.
  38323. func (s *DescribeVpnConnectionsInput) SetFilters(v []*Filter) *DescribeVpnConnectionsInput {
  38324. s.Filters = v
  38325. return s
  38326. }
  38327. // SetVpnConnectionIds sets the VpnConnectionIds field's value.
  38328. func (s *DescribeVpnConnectionsInput) SetVpnConnectionIds(v []*string) *DescribeVpnConnectionsInput {
  38329. s.VpnConnectionIds = v
  38330. return s
  38331. }
  38332. // Contains the output of DescribeVpnConnections.
  38333. type DescribeVpnConnectionsOutput struct {
  38334. _ struct{} `type:"structure"`
  38335. // Information about one or more VPN connections.
  38336. VpnConnections []*VpnConnection `locationName:"vpnConnectionSet" locationNameList:"item" type:"list"`
  38337. }
  38338. // String returns the string representation
  38339. func (s DescribeVpnConnectionsOutput) String() string {
  38340. return awsutil.Prettify(s)
  38341. }
  38342. // GoString returns the string representation
  38343. func (s DescribeVpnConnectionsOutput) GoString() string {
  38344. return s.String()
  38345. }
  38346. // SetVpnConnections sets the VpnConnections field's value.
  38347. func (s *DescribeVpnConnectionsOutput) SetVpnConnections(v []*VpnConnection) *DescribeVpnConnectionsOutput {
  38348. s.VpnConnections = v
  38349. return s
  38350. }
  38351. // Contains the parameters for DescribeVpnGateways.
  38352. type DescribeVpnGatewaysInput struct {
  38353. _ struct{} `type:"structure"`
  38354. // Checks whether you have the required permissions for the action, without
  38355. // actually making the request, and provides an error response. If you have
  38356. // the required permissions, the error response is DryRunOperation. Otherwise,
  38357. // it is UnauthorizedOperation.
  38358. DryRun *bool `locationName:"dryRun" type:"boolean"`
  38359. // One or more filters.
  38360. //
  38361. // * amazon-side-asn - The Autonomous System Number (ASN) for the Amazon
  38362. // side of the gateway.
  38363. //
  38364. // * attachment.state - The current state of the attachment between the gateway
  38365. // and the VPC (attaching | attached | detaching | detached).
  38366. //
  38367. // * attachment.vpc-id - The ID of an attached VPC.
  38368. //
  38369. // * availability-zone - The Availability Zone for the virtual private gateway
  38370. // (if applicable).
  38371. //
  38372. // * state - The state of the virtual private gateway (pending | available
  38373. // | deleting | deleted).
  38374. //
  38375. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  38376. // Specify the key of the tag in the filter name and the value of the tag
  38377. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  38378. // for the filter name and X for the filter value.
  38379. //
  38380. // * tag-key - The key of a tag assigned to the resource. This filter is
  38381. // independent of the tag-value filter. For example, if you use both the
  38382. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  38383. // assigned both the tag key Purpose (regardless of what the tag's value
  38384. // is), and the tag value X (regardless of what the tag's key is). If you
  38385. // want to list only resources where Purpose is X, see the tag:key=value
  38386. // filter.
  38387. //
  38388. // * tag-value - The value of a tag assigned to the resource. This filter
  38389. // is independent of the tag-key filter.
  38390. //
  38391. // * type - The type of virtual private gateway. Currently the only supported
  38392. // type is ipsec.1.
  38393. //
  38394. // * vpn-gateway-id - The ID of the virtual private gateway.
  38395. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  38396. // One or more virtual private gateway IDs.
  38397. //
  38398. // Default: Describes all your virtual private gateways.
  38399. VpnGatewayIds []*string `locationName:"VpnGatewayId" locationNameList:"VpnGatewayId" type:"list"`
  38400. }
  38401. // String returns the string representation
  38402. func (s DescribeVpnGatewaysInput) String() string {
  38403. return awsutil.Prettify(s)
  38404. }
  38405. // GoString returns the string representation
  38406. func (s DescribeVpnGatewaysInput) GoString() string {
  38407. return s.String()
  38408. }
  38409. // SetDryRun sets the DryRun field's value.
  38410. func (s *DescribeVpnGatewaysInput) SetDryRun(v bool) *DescribeVpnGatewaysInput {
  38411. s.DryRun = &v
  38412. return s
  38413. }
  38414. // SetFilters sets the Filters field's value.
  38415. func (s *DescribeVpnGatewaysInput) SetFilters(v []*Filter) *DescribeVpnGatewaysInput {
  38416. s.Filters = v
  38417. return s
  38418. }
  38419. // SetVpnGatewayIds sets the VpnGatewayIds field's value.
  38420. func (s *DescribeVpnGatewaysInput) SetVpnGatewayIds(v []*string) *DescribeVpnGatewaysInput {
  38421. s.VpnGatewayIds = v
  38422. return s
  38423. }
  38424. // Contains the output of DescribeVpnGateways.
  38425. type DescribeVpnGatewaysOutput struct {
  38426. _ struct{} `type:"structure"`
  38427. // Information about one or more virtual private gateways.
  38428. VpnGateways []*VpnGateway `locationName:"vpnGatewaySet" locationNameList:"item" type:"list"`
  38429. }
  38430. // String returns the string representation
  38431. func (s DescribeVpnGatewaysOutput) String() string {
  38432. return awsutil.Prettify(s)
  38433. }
  38434. // GoString returns the string representation
  38435. func (s DescribeVpnGatewaysOutput) GoString() string {
  38436. return s.String()
  38437. }
  38438. // SetVpnGateways sets the VpnGateways field's value.
  38439. func (s *DescribeVpnGatewaysOutput) SetVpnGateways(v []*VpnGateway) *DescribeVpnGatewaysOutput {
  38440. s.VpnGateways = v
  38441. return s
  38442. }
  38443. // Contains the parameters for DetachClassicLinkVpc.
  38444. type DetachClassicLinkVpcInput struct {
  38445. _ struct{} `type:"structure"`
  38446. // Checks whether you have the required permissions for the action, without
  38447. // actually making the request, and provides an error response. If you have
  38448. // the required permissions, the error response is DryRunOperation. Otherwise,
  38449. // it is UnauthorizedOperation.
  38450. DryRun *bool `locationName:"dryRun" type:"boolean"`
  38451. // The ID of the instance to unlink from the VPC.
  38452. //
  38453. // InstanceId is a required field
  38454. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  38455. // The ID of the VPC to which the instance is linked.
  38456. //
  38457. // VpcId is a required field
  38458. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  38459. }
  38460. // String returns the string representation
  38461. func (s DetachClassicLinkVpcInput) String() string {
  38462. return awsutil.Prettify(s)
  38463. }
  38464. // GoString returns the string representation
  38465. func (s DetachClassicLinkVpcInput) GoString() string {
  38466. return s.String()
  38467. }
  38468. // Validate inspects the fields of the type to determine if they are valid.
  38469. func (s *DetachClassicLinkVpcInput) Validate() error {
  38470. invalidParams := request.ErrInvalidParams{Context: "DetachClassicLinkVpcInput"}
  38471. if s.InstanceId == nil {
  38472. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  38473. }
  38474. if s.VpcId == nil {
  38475. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  38476. }
  38477. if invalidParams.Len() > 0 {
  38478. return invalidParams
  38479. }
  38480. return nil
  38481. }
  38482. // SetDryRun sets the DryRun field's value.
  38483. func (s *DetachClassicLinkVpcInput) SetDryRun(v bool) *DetachClassicLinkVpcInput {
  38484. s.DryRun = &v
  38485. return s
  38486. }
  38487. // SetInstanceId sets the InstanceId field's value.
  38488. func (s *DetachClassicLinkVpcInput) SetInstanceId(v string) *DetachClassicLinkVpcInput {
  38489. s.InstanceId = &v
  38490. return s
  38491. }
  38492. // SetVpcId sets the VpcId field's value.
  38493. func (s *DetachClassicLinkVpcInput) SetVpcId(v string) *DetachClassicLinkVpcInput {
  38494. s.VpcId = &v
  38495. return s
  38496. }
  38497. // Contains the output of DetachClassicLinkVpc.
  38498. type DetachClassicLinkVpcOutput struct {
  38499. _ struct{} `type:"structure"`
  38500. // Returns true if the request succeeds; otherwise, it returns an error.
  38501. Return *bool `locationName:"return" type:"boolean"`
  38502. }
  38503. // String returns the string representation
  38504. func (s DetachClassicLinkVpcOutput) String() string {
  38505. return awsutil.Prettify(s)
  38506. }
  38507. // GoString returns the string representation
  38508. func (s DetachClassicLinkVpcOutput) GoString() string {
  38509. return s.String()
  38510. }
  38511. // SetReturn sets the Return field's value.
  38512. func (s *DetachClassicLinkVpcOutput) SetReturn(v bool) *DetachClassicLinkVpcOutput {
  38513. s.Return = &v
  38514. return s
  38515. }
  38516. // Contains the parameters for DetachInternetGateway.
  38517. type DetachInternetGatewayInput struct {
  38518. _ struct{} `type:"structure"`
  38519. // Checks whether you have the required permissions for the action, without
  38520. // actually making the request, and provides an error response. If you have
  38521. // the required permissions, the error response is DryRunOperation. Otherwise,
  38522. // it is UnauthorizedOperation.
  38523. DryRun *bool `locationName:"dryRun" type:"boolean"`
  38524. // The ID of the Internet gateway.
  38525. //
  38526. // InternetGatewayId is a required field
  38527. InternetGatewayId *string `locationName:"internetGatewayId" type:"string" required:"true"`
  38528. // The ID of the VPC.
  38529. //
  38530. // VpcId is a required field
  38531. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  38532. }
  38533. // String returns the string representation
  38534. func (s DetachInternetGatewayInput) String() string {
  38535. return awsutil.Prettify(s)
  38536. }
  38537. // GoString returns the string representation
  38538. func (s DetachInternetGatewayInput) GoString() string {
  38539. return s.String()
  38540. }
  38541. // Validate inspects the fields of the type to determine if they are valid.
  38542. func (s *DetachInternetGatewayInput) Validate() error {
  38543. invalidParams := request.ErrInvalidParams{Context: "DetachInternetGatewayInput"}
  38544. if s.InternetGatewayId == nil {
  38545. invalidParams.Add(request.NewErrParamRequired("InternetGatewayId"))
  38546. }
  38547. if s.VpcId == nil {
  38548. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  38549. }
  38550. if invalidParams.Len() > 0 {
  38551. return invalidParams
  38552. }
  38553. return nil
  38554. }
  38555. // SetDryRun sets the DryRun field's value.
  38556. func (s *DetachInternetGatewayInput) SetDryRun(v bool) *DetachInternetGatewayInput {
  38557. s.DryRun = &v
  38558. return s
  38559. }
  38560. // SetInternetGatewayId sets the InternetGatewayId field's value.
  38561. func (s *DetachInternetGatewayInput) SetInternetGatewayId(v string) *DetachInternetGatewayInput {
  38562. s.InternetGatewayId = &v
  38563. return s
  38564. }
  38565. // SetVpcId sets the VpcId field's value.
  38566. func (s *DetachInternetGatewayInput) SetVpcId(v string) *DetachInternetGatewayInput {
  38567. s.VpcId = &v
  38568. return s
  38569. }
  38570. type DetachInternetGatewayOutput struct {
  38571. _ struct{} `type:"structure"`
  38572. }
  38573. // String returns the string representation
  38574. func (s DetachInternetGatewayOutput) String() string {
  38575. return awsutil.Prettify(s)
  38576. }
  38577. // GoString returns the string representation
  38578. func (s DetachInternetGatewayOutput) GoString() string {
  38579. return s.String()
  38580. }
  38581. // Contains the parameters for DetachNetworkInterface.
  38582. type DetachNetworkInterfaceInput struct {
  38583. _ struct{} `type:"structure"`
  38584. // The ID of the attachment.
  38585. //
  38586. // AttachmentId is a required field
  38587. AttachmentId *string `locationName:"attachmentId" type:"string" required:"true"`
  38588. // Checks whether you have the required permissions for the action, without
  38589. // actually making the request, and provides an error response. If you have
  38590. // the required permissions, the error response is DryRunOperation. Otherwise,
  38591. // it is UnauthorizedOperation.
  38592. DryRun *bool `locationName:"dryRun" type:"boolean"`
  38593. // Specifies whether to force a detachment.
  38594. Force *bool `locationName:"force" type:"boolean"`
  38595. }
  38596. // String returns the string representation
  38597. func (s DetachNetworkInterfaceInput) String() string {
  38598. return awsutil.Prettify(s)
  38599. }
  38600. // GoString returns the string representation
  38601. func (s DetachNetworkInterfaceInput) GoString() string {
  38602. return s.String()
  38603. }
  38604. // Validate inspects the fields of the type to determine if they are valid.
  38605. func (s *DetachNetworkInterfaceInput) Validate() error {
  38606. invalidParams := request.ErrInvalidParams{Context: "DetachNetworkInterfaceInput"}
  38607. if s.AttachmentId == nil {
  38608. invalidParams.Add(request.NewErrParamRequired("AttachmentId"))
  38609. }
  38610. if invalidParams.Len() > 0 {
  38611. return invalidParams
  38612. }
  38613. return nil
  38614. }
  38615. // SetAttachmentId sets the AttachmentId field's value.
  38616. func (s *DetachNetworkInterfaceInput) SetAttachmentId(v string) *DetachNetworkInterfaceInput {
  38617. s.AttachmentId = &v
  38618. return s
  38619. }
  38620. // SetDryRun sets the DryRun field's value.
  38621. func (s *DetachNetworkInterfaceInput) SetDryRun(v bool) *DetachNetworkInterfaceInput {
  38622. s.DryRun = &v
  38623. return s
  38624. }
  38625. // SetForce sets the Force field's value.
  38626. func (s *DetachNetworkInterfaceInput) SetForce(v bool) *DetachNetworkInterfaceInput {
  38627. s.Force = &v
  38628. return s
  38629. }
  38630. type DetachNetworkInterfaceOutput struct {
  38631. _ struct{} `type:"structure"`
  38632. }
  38633. // String returns the string representation
  38634. func (s DetachNetworkInterfaceOutput) String() string {
  38635. return awsutil.Prettify(s)
  38636. }
  38637. // GoString returns the string representation
  38638. func (s DetachNetworkInterfaceOutput) GoString() string {
  38639. return s.String()
  38640. }
  38641. // Contains the parameters for DetachVolume.
  38642. type DetachVolumeInput struct {
  38643. _ struct{} `type:"structure"`
  38644. // The device name.
  38645. Device *string `type:"string"`
  38646. // Checks whether you have the required permissions for the action, without
  38647. // actually making the request, and provides an error response. If you have
  38648. // the required permissions, the error response is DryRunOperation. Otherwise,
  38649. // it is UnauthorizedOperation.
  38650. DryRun *bool `locationName:"dryRun" type:"boolean"`
  38651. // Forces detachment if the previous detachment attempt did not occur cleanly
  38652. // (for example, logging into an instance, unmounting the volume, and detaching
  38653. // normally). This option can lead to data loss or a corrupted file system.
  38654. // Use this option only as a last resort to detach a volume from a failed instance.
  38655. // The instance won't have an opportunity to flush file system caches or file
  38656. // system metadata. If you use this option, you must perform file system check
  38657. // and repair procedures.
  38658. Force *bool `type:"boolean"`
  38659. // The ID of the instance.
  38660. InstanceId *string `type:"string"`
  38661. // The ID of the volume.
  38662. //
  38663. // VolumeId is a required field
  38664. VolumeId *string `type:"string" required:"true"`
  38665. }
  38666. // String returns the string representation
  38667. func (s DetachVolumeInput) String() string {
  38668. return awsutil.Prettify(s)
  38669. }
  38670. // GoString returns the string representation
  38671. func (s DetachVolumeInput) GoString() string {
  38672. return s.String()
  38673. }
  38674. // Validate inspects the fields of the type to determine if they are valid.
  38675. func (s *DetachVolumeInput) Validate() error {
  38676. invalidParams := request.ErrInvalidParams{Context: "DetachVolumeInput"}
  38677. if s.VolumeId == nil {
  38678. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  38679. }
  38680. if invalidParams.Len() > 0 {
  38681. return invalidParams
  38682. }
  38683. return nil
  38684. }
  38685. // SetDevice sets the Device field's value.
  38686. func (s *DetachVolumeInput) SetDevice(v string) *DetachVolumeInput {
  38687. s.Device = &v
  38688. return s
  38689. }
  38690. // SetDryRun sets the DryRun field's value.
  38691. func (s *DetachVolumeInput) SetDryRun(v bool) *DetachVolumeInput {
  38692. s.DryRun = &v
  38693. return s
  38694. }
  38695. // SetForce sets the Force field's value.
  38696. func (s *DetachVolumeInput) SetForce(v bool) *DetachVolumeInput {
  38697. s.Force = &v
  38698. return s
  38699. }
  38700. // SetInstanceId sets the InstanceId field's value.
  38701. func (s *DetachVolumeInput) SetInstanceId(v string) *DetachVolumeInput {
  38702. s.InstanceId = &v
  38703. return s
  38704. }
  38705. // SetVolumeId sets the VolumeId field's value.
  38706. func (s *DetachVolumeInput) SetVolumeId(v string) *DetachVolumeInput {
  38707. s.VolumeId = &v
  38708. return s
  38709. }
  38710. // Contains the parameters for DetachVpnGateway.
  38711. type DetachVpnGatewayInput struct {
  38712. _ struct{} `type:"structure"`
  38713. // Checks whether you have the required permissions for the action, without
  38714. // actually making the request, and provides an error response. If you have
  38715. // the required permissions, the error response is DryRunOperation. Otherwise,
  38716. // it is UnauthorizedOperation.
  38717. DryRun *bool `locationName:"dryRun" type:"boolean"`
  38718. // The ID of the VPC.
  38719. //
  38720. // VpcId is a required field
  38721. VpcId *string `type:"string" required:"true"`
  38722. // The ID of the virtual private gateway.
  38723. //
  38724. // VpnGatewayId is a required field
  38725. VpnGatewayId *string `type:"string" required:"true"`
  38726. }
  38727. // String returns the string representation
  38728. func (s DetachVpnGatewayInput) String() string {
  38729. return awsutil.Prettify(s)
  38730. }
  38731. // GoString returns the string representation
  38732. func (s DetachVpnGatewayInput) GoString() string {
  38733. return s.String()
  38734. }
  38735. // Validate inspects the fields of the type to determine if they are valid.
  38736. func (s *DetachVpnGatewayInput) Validate() error {
  38737. invalidParams := request.ErrInvalidParams{Context: "DetachVpnGatewayInput"}
  38738. if s.VpcId == nil {
  38739. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  38740. }
  38741. if s.VpnGatewayId == nil {
  38742. invalidParams.Add(request.NewErrParamRequired("VpnGatewayId"))
  38743. }
  38744. if invalidParams.Len() > 0 {
  38745. return invalidParams
  38746. }
  38747. return nil
  38748. }
  38749. // SetDryRun sets the DryRun field's value.
  38750. func (s *DetachVpnGatewayInput) SetDryRun(v bool) *DetachVpnGatewayInput {
  38751. s.DryRun = &v
  38752. return s
  38753. }
  38754. // SetVpcId sets the VpcId field's value.
  38755. func (s *DetachVpnGatewayInput) SetVpcId(v string) *DetachVpnGatewayInput {
  38756. s.VpcId = &v
  38757. return s
  38758. }
  38759. // SetVpnGatewayId sets the VpnGatewayId field's value.
  38760. func (s *DetachVpnGatewayInput) SetVpnGatewayId(v string) *DetachVpnGatewayInput {
  38761. s.VpnGatewayId = &v
  38762. return s
  38763. }
  38764. type DetachVpnGatewayOutput struct {
  38765. _ struct{} `type:"structure"`
  38766. }
  38767. // String returns the string representation
  38768. func (s DetachVpnGatewayOutput) String() string {
  38769. return awsutil.Prettify(s)
  38770. }
  38771. // GoString returns the string representation
  38772. func (s DetachVpnGatewayOutput) GoString() string {
  38773. return s.String()
  38774. }
  38775. // Describes a DHCP configuration option.
  38776. type DhcpConfiguration struct {
  38777. _ struct{} `type:"structure"`
  38778. // The name of a DHCP option.
  38779. Key *string `locationName:"key" type:"string"`
  38780. // One or more values for the DHCP option.
  38781. Values []*AttributeValue `locationName:"valueSet" locationNameList:"item" type:"list"`
  38782. }
  38783. // String returns the string representation
  38784. func (s DhcpConfiguration) String() string {
  38785. return awsutil.Prettify(s)
  38786. }
  38787. // GoString returns the string representation
  38788. func (s DhcpConfiguration) GoString() string {
  38789. return s.String()
  38790. }
  38791. // SetKey sets the Key field's value.
  38792. func (s *DhcpConfiguration) SetKey(v string) *DhcpConfiguration {
  38793. s.Key = &v
  38794. return s
  38795. }
  38796. // SetValues sets the Values field's value.
  38797. func (s *DhcpConfiguration) SetValues(v []*AttributeValue) *DhcpConfiguration {
  38798. s.Values = v
  38799. return s
  38800. }
  38801. // Describes a set of DHCP options.
  38802. type DhcpOptions struct {
  38803. _ struct{} `type:"structure"`
  38804. // One or more DHCP options in the set.
  38805. DhcpConfigurations []*DhcpConfiguration `locationName:"dhcpConfigurationSet" locationNameList:"item" type:"list"`
  38806. // The ID of the set of DHCP options.
  38807. DhcpOptionsId *string `locationName:"dhcpOptionsId" type:"string"`
  38808. // Any tags assigned to the DHCP options set.
  38809. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  38810. }
  38811. // String returns the string representation
  38812. func (s DhcpOptions) String() string {
  38813. return awsutil.Prettify(s)
  38814. }
  38815. // GoString returns the string representation
  38816. func (s DhcpOptions) GoString() string {
  38817. return s.String()
  38818. }
  38819. // SetDhcpConfigurations sets the DhcpConfigurations field's value.
  38820. func (s *DhcpOptions) SetDhcpConfigurations(v []*DhcpConfiguration) *DhcpOptions {
  38821. s.DhcpConfigurations = v
  38822. return s
  38823. }
  38824. // SetDhcpOptionsId sets the DhcpOptionsId field's value.
  38825. func (s *DhcpOptions) SetDhcpOptionsId(v string) *DhcpOptions {
  38826. s.DhcpOptionsId = &v
  38827. return s
  38828. }
  38829. // SetTags sets the Tags field's value.
  38830. func (s *DhcpOptions) SetTags(v []*Tag) *DhcpOptions {
  38831. s.Tags = v
  38832. return s
  38833. }
  38834. // Contains the parameters for DisableVgwRoutePropagation.
  38835. type DisableVgwRoutePropagationInput struct {
  38836. _ struct{} `type:"structure"`
  38837. // The ID of the virtual private gateway.
  38838. //
  38839. // GatewayId is a required field
  38840. GatewayId *string `type:"string" required:"true"`
  38841. // The ID of the route table.
  38842. //
  38843. // RouteTableId is a required field
  38844. RouteTableId *string `type:"string" required:"true"`
  38845. }
  38846. // String returns the string representation
  38847. func (s DisableVgwRoutePropagationInput) String() string {
  38848. return awsutil.Prettify(s)
  38849. }
  38850. // GoString returns the string representation
  38851. func (s DisableVgwRoutePropagationInput) GoString() string {
  38852. return s.String()
  38853. }
  38854. // Validate inspects the fields of the type to determine if they are valid.
  38855. func (s *DisableVgwRoutePropagationInput) Validate() error {
  38856. invalidParams := request.ErrInvalidParams{Context: "DisableVgwRoutePropagationInput"}
  38857. if s.GatewayId == nil {
  38858. invalidParams.Add(request.NewErrParamRequired("GatewayId"))
  38859. }
  38860. if s.RouteTableId == nil {
  38861. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  38862. }
  38863. if invalidParams.Len() > 0 {
  38864. return invalidParams
  38865. }
  38866. return nil
  38867. }
  38868. // SetGatewayId sets the GatewayId field's value.
  38869. func (s *DisableVgwRoutePropagationInput) SetGatewayId(v string) *DisableVgwRoutePropagationInput {
  38870. s.GatewayId = &v
  38871. return s
  38872. }
  38873. // SetRouteTableId sets the RouteTableId field's value.
  38874. func (s *DisableVgwRoutePropagationInput) SetRouteTableId(v string) *DisableVgwRoutePropagationInput {
  38875. s.RouteTableId = &v
  38876. return s
  38877. }
  38878. type DisableVgwRoutePropagationOutput struct {
  38879. _ struct{} `type:"structure"`
  38880. }
  38881. // String returns the string representation
  38882. func (s DisableVgwRoutePropagationOutput) String() string {
  38883. return awsutil.Prettify(s)
  38884. }
  38885. // GoString returns the string representation
  38886. func (s DisableVgwRoutePropagationOutput) GoString() string {
  38887. return s.String()
  38888. }
  38889. // Contains the parameters for DisableVpcClassicLinkDnsSupport.
  38890. type DisableVpcClassicLinkDnsSupportInput struct {
  38891. _ struct{} `type:"structure"`
  38892. // The ID of the VPC.
  38893. VpcId *string `type:"string"`
  38894. }
  38895. // String returns the string representation
  38896. func (s DisableVpcClassicLinkDnsSupportInput) String() string {
  38897. return awsutil.Prettify(s)
  38898. }
  38899. // GoString returns the string representation
  38900. func (s DisableVpcClassicLinkDnsSupportInput) GoString() string {
  38901. return s.String()
  38902. }
  38903. // SetVpcId sets the VpcId field's value.
  38904. func (s *DisableVpcClassicLinkDnsSupportInput) SetVpcId(v string) *DisableVpcClassicLinkDnsSupportInput {
  38905. s.VpcId = &v
  38906. return s
  38907. }
  38908. // Contains the output of DisableVpcClassicLinkDnsSupport.
  38909. type DisableVpcClassicLinkDnsSupportOutput struct {
  38910. _ struct{} `type:"structure"`
  38911. // Returns true if the request succeeds; otherwise, it returns an error.
  38912. Return *bool `locationName:"return" type:"boolean"`
  38913. }
  38914. // String returns the string representation
  38915. func (s DisableVpcClassicLinkDnsSupportOutput) String() string {
  38916. return awsutil.Prettify(s)
  38917. }
  38918. // GoString returns the string representation
  38919. func (s DisableVpcClassicLinkDnsSupportOutput) GoString() string {
  38920. return s.String()
  38921. }
  38922. // SetReturn sets the Return field's value.
  38923. func (s *DisableVpcClassicLinkDnsSupportOutput) SetReturn(v bool) *DisableVpcClassicLinkDnsSupportOutput {
  38924. s.Return = &v
  38925. return s
  38926. }
  38927. // Contains the parameters for DisableVpcClassicLink.
  38928. type DisableVpcClassicLinkInput struct {
  38929. _ struct{} `type:"structure"`
  38930. // Checks whether you have the required permissions for the action, without
  38931. // actually making the request, and provides an error response. If you have
  38932. // the required permissions, the error response is DryRunOperation. Otherwise,
  38933. // it is UnauthorizedOperation.
  38934. DryRun *bool `locationName:"dryRun" type:"boolean"`
  38935. // The ID of the VPC.
  38936. //
  38937. // VpcId is a required field
  38938. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  38939. }
  38940. // String returns the string representation
  38941. func (s DisableVpcClassicLinkInput) String() string {
  38942. return awsutil.Prettify(s)
  38943. }
  38944. // GoString returns the string representation
  38945. func (s DisableVpcClassicLinkInput) GoString() string {
  38946. return s.String()
  38947. }
  38948. // Validate inspects the fields of the type to determine if they are valid.
  38949. func (s *DisableVpcClassicLinkInput) Validate() error {
  38950. invalidParams := request.ErrInvalidParams{Context: "DisableVpcClassicLinkInput"}
  38951. if s.VpcId == nil {
  38952. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  38953. }
  38954. if invalidParams.Len() > 0 {
  38955. return invalidParams
  38956. }
  38957. return nil
  38958. }
  38959. // SetDryRun sets the DryRun field's value.
  38960. func (s *DisableVpcClassicLinkInput) SetDryRun(v bool) *DisableVpcClassicLinkInput {
  38961. s.DryRun = &v
  38962. return s
  38963. }
  38964. // SetVpcId sets the VpcId field's value.
  38965. func (s *DisableVpcClassicLinkInput) SetVpcId(v string) *DisableVpcClassicLinkInput {
  38966. s.VpcId = &v
  38967. return s
  38968. }
  38969. // Contains the output of DisableVpcClassicLink.
  38970. type DisableVpcClassicLinkOutput struct {
  38971. _ struct{} `type:"structure"`
  38972. // Returns true if the request succeeds; otherwise, it returns an error.
  38973. Return *bool `locationName:"return" type:"boolean"`
  38974. }
  38975. // String returns the string representation
  38976. func (s DisableVpcClassicLinkOutput) String() string {
  38977. return awsutil.Prettify(s)
  38978. }
  38979. // GoString returns the string representation
  38980. func (s DisableVpcClassicLinkOutput) GoString() string {
  38981. return s.String()
  38982. }
  38983. // SetReturn sets the Return field's value.
  38984. func (s *DisableVpcClassicLinkOutput) SetReturn(v bool) *DisableVpcClassicLinkOutput {
  38985. s.Return = &v
  38986. return s
  38987. }
  38988. // Contains the parameters for DisassociateAddress.
  38989. type DisassociateAddressInput struct {
  38990. _ struct{} `type:"structure"`
  38991. // [EC2-VPC] The association ID. Required for EC2-VPC.
  38992. AssociationId *string `type:"string"`
  38993. // Checks whether you have the required permissions for the action, without
  38994. // actually making the request, and provides an error response. If you have
  38995. // the required permissions, the error response is DryRunOperation. Otherwise,
  38996. // it is UnauthorizedOperation.
  38997. DryRun *bool `locationName:"dryRun" type:"boolean"`
  38998. // [EC2-Classic] The Elastic IP address. Required for EC2-Classic.
  38999. PublicIp *string `type:"string"`
  39000. }
  39001. // String returns the string representation
  39002. func (s DisassociateAddressInput) String() string {
  39003. return awsutil.Prettify(s)
  39004. }
  39005. // GoString returns the string representation
  39006. func (s DisassociateAddressInput) GoString() string {
  39007. return s.String()
  39008. }
  39009. // SetAssociationId sets the AssociationId field's value.
  39010. func (s *DisassociateAddressInput) SetAssociationId(v string) *DisassociateAddressInput {
  39011. s.AssociationId = &v
  39012. return s
  39013. }
  39014. // SetDryRun sets the DryRun field's value.
  39015. func (s *DisassociateAddressInput) SetDryRun(v bool) *DisassociateAddressInput {
  39016. s.DryRun = &v
  39017. return s
  39018. }
  39019. // SetPublicIp sets the PublicIp field's value.
  39020. func (s *DisassociateAddressInput) SetPublicIp(v string) *DisassociateAddressInput {
  39021. s.PublicIp = &v
  39022. return s
  39023. }
  39024. type DisassociateAddressOutput struct {
  39025. _ struct{} `type:"structure"`
  39026. }
  39027. // String returns the string representation
  39028. func (s DisassociateAddressOutput) String() string {
  39029. return awsutil.Prettify(s)
  39030. }
  39031. // GoString returns the string representation
  39032. func (s DisassociateAddressOutput) GoString() string {
  39033. return s.String()
  39034. }
  39035. type DisassociateIamInstanceProfileInput struct {
  39036. _ struct{} `type:"structure"`
  39037. // The ID of the IAM instance profile association.
  39038. //
  39039. // AssociationId is a required field
  39040. AssociationId *string `type:"string" required:"true"`
  39041. }
  39042. // String returns the string representation
  39043. func (s DisassociateIamInstanceProfileInput) String() string {
  39044. return awsutil.Prettify(s)
  39045. }
  39046. // GoString returns the string representation
  39047. func (s DisassociateIamInstanceProfileInput) GoString() string {
  39048. return s.String()
  39049. }
  39050. // Validate inspects the fields of the type to determine if they are valid.
  39051. func (s *DisassociateIamInstanceProfileInput) Validate() error {
  39052. invalidParams := request.ErrInvalidParams{Context: "DisassociateIamInstanceProfileInput"}
  39053. if s.AssociationId == nil {
  39054. invalidParams.Add(request.NewErrParamRequired("AssociationId"))
  39055. }
  39056. if invalidParams.Len() > 0 {
  39057. return invalidParams
  39058. }
  39059. return nil
  39060. }
  39061. // SetAssociationId sets the AssociationId field's value.
  39062. func (s *DisassociateIamInstanceProfileInput) SetAssociationId(v string) *DisassociateIamInstanceProfileInput {
  39063. s.AssociationId = &v
  39064. return s
  39065. }
  39066. type DisassociateIamInstanceProfileOutput struct {
  39067. _ struct{} `type:"structure"`
  39068. // Information about the IAM instance profile association.
  39069. IamInstanceProfileAssociation *IamInstanceProfileAssociation `locationName:"iamInstanceProfileAssociation" type:"structure"`
  39070. }
  39071. // String returns the string representation
  39072. func (s DisassociateIamInstanceProfileOutput) String() string {
  39073. return awsutil.Prettify(s)
  39074. }
  39075. // GoString returns the string representation
  39076. func (s DisassociateIamInstanceProfileOutput) GoString() string {
  39077. return s.String()
  39078. }
  39079. // SetIamInstanceProfileAssociation sets the IamInstanceProfileAssociation field's value.
  39080. func (s *DisassociateIamInstanceProfileOutput) SetIamInstanceProfileAssociation(v *IamInstanceProfileAssociation) *DisassociateIamInstanceProfileOutput {
  39081. s.IamInstanceProfileAssociation = v
  39082. return s
  39083. }
  39084. // Contains the parameters for DisassociateRouteTable.
  39085. type DisassociateRouteTableInput struct {
  39086. _ struct{} `type:"structure"`
  39087. // The association ID representing the current association between the route
  39088. // table and subnet.
  39089. //
  39090. // AssociationId is a required field
  39091. AssociationId *string `locationName:"associationId" type:"string" required:"true"`
  39092. // Checks whether you have the required permissions for the action, without
  39093. // actually making the request, and provides an error response. If you have
  39094. // the required permissions, the error response is DryRunOperation. Otherwise,
  39095. // it is UnauthorizedOperation.
  39096. DryRun *bool `locationName:"dryRun" type:"boolean"`
  39097. }
  39098. // String returns the string representation
  39099. func (s DisassociateRouteTableInput) String() string {
  39100. return awsutil.Prettify(s)
  39101. }
  39102. // GoString returns the string representation
  39103. func (s DisassociateRouteTableInput) GoString() string {
  39104. return s.String()
  39105. }
  39106. // Validate inspects the fields of the type to determine if they are valid.
  39107. func (s *DisassociateRouteTableInput) Validate() error {
  39108. invalidParams := request.ErrInvalidParams{Context: "DisassociateRouteTableInput"}
  39109. if s.AssociationId == nil {
  39110. invalidParams.Add(request.NewErrParamRequired("AssociationId"))
  39111. }
  39112. if invalidParams.Len() > 0 {
  39113. return invalidParams
  39114. }
  39115. return nil
  39116. }
  39117. // SetAssociationId sets the AssociationId field's value.
  39118. func (s *DisassociateRouteTableInput) SetAssociationId(v string) *DisassociateRouteTableInput {
  39119. s.AssociationId = &v
  39120. return s
  39121. }
  39122. // SetDryRun sets the DryRun field's value.
  39123. func (s *DisassociateRouteTableInput) SetDryRun(v bool) *DisassociateRouteTableInput {
  39124. s.DryRun = &v
  39125. return s
  39126. }
  39127. type DisassociateRouteTableOutput struct {
  39128. _ struct{} `type:"structure"`
  39129. }
  39130. // String returns the string representation
  39131. func (s DisassociateRouteTableOutput) String() string {
  39132. return awsutil.Prettify(s)
  39133. }
  39134. // GoString returns the string representation
  39135. func (s DisassociateRouteTableOutput) GoString() string {
  39136. return s.String()
  39137. }
  39138. type DisassociateSubnetCidrBlockInput struct {
  39139. _ struct{} `type:"structure"`
  39140. // The association ID for the CIDR block.
  39141. //
  39142. // AssociationId is a required field
  39143. AssociationId *string `locationName:"associationId" type:"string" required:"true"`
  39144. }
  39145. // String returns the string representation
  39146. func (s DisassociateSubnetCidrBlockInput) String() string {
  39147. return awsutil.Prettify(s)
  39148. }
  39149. // GoString returns the string representation
  39150. func (s DisassociateSubnetCidrBlockInput) GoString() string {
  39151. return s.String()
  39152. }
  39153. // Validate inspects the fields of the type to determine if they are valid.
  39154. func (s *DisassociateSubnetCidrBlockInput) Validate() error {
  39155. invalidParams := request.ErrInvalidParams{Context: "DisassociateSubnetCidrBlockInput"}
  39156. if s.AssociationId == nil {
  39157. invalidParams.Add(request.NewErrParamRequired("AssociationId"))
  39158. }
  39159. if invalidParams.Len() > 0 {
  39160. return invalidParams
  39161. }
  39162. return nil
  39163. }
  39164. // SetAssociationId sets the AssociationId field's value.
  39165. func (s *DisassociateSubnetCidrBlockInput) SetAssociationId(v string) *DisassociateSubnetCidrBlockInput {
  39166. s.AssociationId = &v
  39167. return s
  39168. }
  39169. type DisassociateSubnetCidrBlockOutput struct {
  39170. _ struct{} `type:"structure"`
  39171. // Information about the IPv6 CIDR block association.
  39172. Ipv6CidrBlockAssociation *SubnetIpv6CidrBlockAssociation `locationName:"ipv6CidrBlockAssociation" type:"structure"`
  39173. // The ID of the subnet.
  39174. SubnetId *string `locationName:"subnetId" type:"string"`
  39175. }
  39176. // String returns the string representation
  39177. func (s DisassociateSubnetCidrBlockOutput) String() string {
  39178. return awsutil.Prettify(s)
  39179. }
  39180. // GoString returns the string representation
  39181. func (s DisassociateSubnetCidrBlockOutput) GoString() string {
  39182. return s.String()
  39183. }
  39184. // SetIpv6CidrBlockAssociation sets the Ipv6CidrBlockAssociation field's value.
  39185. func (s *DisassociateSubnetCidrBlockOutput) SetIpv6CidrBlockAssociation(v *SubnetIpv6CidrBlockAssociation) *DisassociateSubnetCidrBlockOutput {
  39186. s.Ipv6CidrBlockAssociation = v
  39187. return s
  39188. }
  39189. // SetSubnetId sets the SubnetId field's value.
  39190. func (s *DisassociateSubnetCidrBlockOutput) SetSubnetId(v string) *DisassociateSubnetCidrBlockOutput {
  39191. s.SubnetId = &v
  39192. return s
  39193. }
  39194. type DisassociateVpcCidrBlockInput struct {
  39195. _ struct{} `type:"structure"`
  39196. // The association ID for the CIDR block.
  39197. //
  39198. // AssociationId is a required field
  39199. AssociationId *string `locationName:"associationId" type:"string" required:"true"`
  39200. }
  39201. // String returns the string representation
  39202. func (s DisassociateVpcCidrBlockInput) String() string {
  39203. return awsutil.Prettify(s)
  39204. }
  39205. // GoString returns the string representation
  39206. func (s DisassociateVpcCidrBlockInput) GoString() string {
  39207. return s.String()
  39208. }
  39209. // Validate inspects the fields of the type to determine if they are valid.
  39210. func (s *DisassociateVpcCidrBlockInput) Validate() error {
  39211. invalidParams := request.ErrInvalidParams{Context: "DisassociateVpcCidrBlockInput"}
  39212. if s.AssociationId == nil {
  39213. invalidParams.Add(request.NewErrParamRequired("AssociationId"))
  39214. }
  39215. if invalidParams.Len() > 0 {
  39216. return invalidParams
  39217. }
  39218. return nil
  39219. }
  39220. // SetAssociationId sets the AssociationId field's value.
  39221. func (s *DisassociateVpcCidrBlockInput) SetAssociationId(v string) *DisassociateVpcCidrBlockInput {
  39222. s.AssociationId = &v
  39223. return s
  39224. }
  39225. type DisassociateVpcCidrBlockOutput struct {
  39226. _ struct{} `type:"structure"`
  39227. // Information about the IPv4 CIDR block association.
  39228. CidrBlockAssociation *VpcCidrBlockAssociation `locationName:"cidrBlockAssociation" type:"structure"`
  39229. // Information about the IPv6 CIDR block association.
  39230. Ipv6CidrBlockAssociation *VpcIpv6CidrBlockAssociation `locationName:"ipv6CidrBlockAssociation" type:"structure"`
  39231. // The ID of the VPC.
  39232. VpcId *string `locationName:"vpcId" type:"string"`
  39233. }
  39234. // String returns the string representation
  39235. func (s DisassociateVpcCidrBlockOutput) String() string {
  39236. return awsutil.Prettify(s)
  39237. }
  39238. // GoString returns the string representation
  39239. func (s DisassociateVpcCidrBlockOutput) GoString() string {
  39240. return s.String()
  39241. }
  39242. // SetCidrBlockAssociation sets the CidrBlockAssociation field's value.
  39243. func (s *DisassociateVpcCidrBlockOutput) SetCidrBlockAssociation(v *VpcCidrBlockAssociation) *DisassociateVpcCidrBlockOutput {
  39244. s.CidrBlockAssociation = v
  39245. return s
  39246. }
  39247. // SetIpv6CidrBlockAssociation sets the Ipv6CidrBlockAssociation field's value.
  39248. func (s *DisassociateVpcCidrBlockOutput) SetIpv6CidrBlockAssociation(v *VpcIpv6CidrBlockAssociation) *DisassociateVpcCidrBlockOutput {
  39249. s.Ipv6CidrBlockAssociation = v
  39250. return s
  39251. }
  39252. // SetVpcId sets the VpcId field's value.
  39253. func (s *DisassociateVpcCidrBlockOutput) SetVpcId(v string) *DisassociateVpcCidrBlockOutput {
  39254. s.VpcId = &v
  39255. return s
  39256. }
  39257. // Describes a disk image.
  39258. type DiskImage struct {
  39259. _ struct{} `type:"structure"`
  39260. // A description of the disk image.
  39261. Description *string `type:"string"`
  39262. // Information about the disk image.
  39263. Image *DiskImageDetail `type:"structure"`
  39264. // Information about the volume.
  39265. Volume *VolumeDetail `type:"structure"`
  39266. }
  39267. // String returns the string representation
  39268. func (s DiskImage) String() string {
  39269. return awsutil.Prettify(s)
  39270. }
  39271. // GoString returns the string representation
  39272. func (s DiskImage) GoString() string {
  39273. return s.String()
  39274. }
  39275. // Validate inspects the fields of the type to determine if they are valid.
  39276. func (s *DiskImage) Validate() error {
  39277. invalidParams := request.ErrInvalidParams{Context: "DiskImage"}
  39278. if s.Image != nil {
  39279. if err := s.Image.Validate(); err != nil {
  39280. invalidParams.AddNested("Image", err.(request.ErrInvalidParams))
  39281. }
  39282. }
  39283. if s.Volume != nil {
  39284. if err := s.Volume.Validate(); err != nil {
  39285. invalidParams.AddNested("Volume", err.(request.ErrInvalidParams))
  39286. }
  39287. }
  39288. if invalidParams.Len() > 0 {
  39289. return invalidParams
  39290. }
  39291. return nil
  39292. }
  39293. // SetDescription sets the Description field's value.
  39294. func (s *DiskImage) SetDescription(v string) *DiskImage {
  39295. s.Description = &v
  39296. return s
  39297. }
  39298. // SetImage sets the Image field's value.
  39299. func (s *DiskImage) SetImage(v *DiskImageDetail) *DiskImage {
  39300. s.Image = v
  39301. return s
  39302. }
  39303. // SetVolume sets the Volume field's value.
  39304. func (s *DiskImage) SetVolume(v *VolumeDetail) *DiskImage {
  39305. s.Volume = v
  39306. return s
  39307. }
  39308. // Describes a disk image.
  39309. type DiskImageDescription struct {
  39310. _ struct{} `type:"structure"`
  39311. // The checksum computed for the disk image.
  39312. Checksum *string `locationName:"checksum" type:"string"`
  39313. // The disk image format.
  39314. Format *string `locationName:"format" type:"string" enum:"DiskImageFormat"`
  39315. // A presigned URL for the import manifest stored in Amazon S3. For information
  39316. // about creating a presigned URL for an Amazon S3 object, read the "Query String
  39317. // Request Authentication Alternative" section of the Authenticating REST Requests
  39318. // (http://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html)
  39319. // topic in the Amazon Simple Storage Service Developer Guide.
  39320. //
  39321. // For information about the import manifest referenced by this API action,
  39322. // see VM Import Manifest (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html).
  39323. ImportManifestUrl *string `locationName:"importManifestUrl" type:"string"`
  39324. // The size of the disk image, in GiB.
  39325. Size *int64 `locationName:"size" type:"long"`
  39326. }
  39327. // String returns the string representation
  39328. func (s DiskImageDescription) String() string {
  39329. return awsutil.Prettify(s)
  39330. }
  39331. // GoString returns the string representation
  39332. func (s DiskImageDescription) GoString() string {
  39333. return s.String()
  39334. }
  39335. // SetChecksum sets the Checksum field's value.
  39336. func (s *DiskImageDescription) SetChecksum(v string) *DiskImageDescription {
  39337. s.Checksum = &v
  39338. return s
  39339. }
  39340. // SetFormat sets the Format field's value.
  39341. func (s *DiskImageDescription) SetFormat(v string) *DiskImageDescription {
  39342. s.Format = &v
  39343. return s
  39344. }
  39345. // SetImportManifestUrl sets the ImportManifestUrl field's value.
  39346. func (s *DiskImageDescription) SetImportManifestUrl(v string) *DiskImageDescription {
  39347. s.ImportManifestUrl = &v
  39348. return s
  39349. }
  39350. // SetSize sets the Size field's value.
  39351. func (s *DiskImageDescription) SetSize(v int64) *DiskImageDescription {
  39352. s.Size = &v
  39353. return s
  39354. }
  39355. // Describes a disk image.
  39356. type DiskImageDetail struct {
  39357. _ struct{} `type:"structure"`
  39358. // The size of the disk image, in GiB.
  39359. //
  39360. // Bytes is a required field
  39361. Bytes *int64 `locationName:"bytes" type:"long" required:"true"`
  39362. // The disk image format.
  39363. //
  39364. // Format is a required field
  39365. Format *string `locationName:"format" type:"string" required:"true" enum:"DiskImageFormat"`
  39366. // A presigned URL for the import manifest stored in Amazon S3 and presented
  39367. // here as an Amazon S3 presigned URL. For information about creating a presigned
  39368. // URL for an Amazon S3 object, read the "Query String Request Authentication
  39369. // Alternative" section of the Authenticating REST Requests (http://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html)
  39370. // topic in the Amazon Simple Storage Service Developer Guide.
  39371. //
  39372. // For information about the import manifest referenced by this API action,
  39373. // see VM Import Manifest (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html).
  39374. //
  39375. // ImportManifestUrl is a required field
  39376. ImportManifestUrl *string `locationName:"importManifestUrl" type:"string" required:"true"`
  39377. }
  39378. // String returns the string representation
  39379. func (s DiskImageDetail) String() string {
  39380. return awsutil.Prettify(s)
  39381. }
  39382. // GoString returns the string representation
  39383. func (s DiskImageDetail) GoString() string {
  39384. return s.String()
  39385. }
  39386. // Validate inspects the fields of the type to determine if they are valid.
  39387. func (s *DiskImageDetail) Validate() error {
  39388. invalidParams := request.ErrInvalidParams{Context: "DiskImageDetail"}
  39389. if s.Bytes == nil {
  39390. invalidParams.Add(request.NewErrParamRequired("Bytes"))
  39391. }
  39392. if s.Format == nil {
  39393. invalidParams.Add(request.NewErrParamRequired("Format"))
  39394. }
  39395. if s.ImportManifestUrl == nil {
  39396. invalidParams.Add(request.NewErrParamRequired("ImportManifestUrl"))
  39397. }
  39398. if invalidParams.Len() > 0 {
  39399. return invalidParams
  39400. }
  39401. return nil
  39402. }
  39403. // SetBytes sets the Bytes field's value.
  39404. func (s *DiskImageDetail) SetBytes(v int64) *DiskImageDetail {
  39405. s.Bytes = &v
  39406. return s
  39407. }
  39408. // SetFormat sets the Format field's value.
  39409. func (s *DiskImageDetail) SetFormat(v string) *DiskImageDetail {
  39410. s.Format = &v
  39411. return s
  39412. }
  39413. // SetImportManifestUrl sets the ImportManifestUrl field's value.
  39414. func (s *DiskImageDetail) SetImportManifestUrl(v string) *DiskImageDetail {
  39415. s.ImportManifestUrl = &v
  39416. return s
  39417. }
  39418. // Describes a disk image volume.
  39419. type DiskImageVolumeDescription struct {
  39420. _ struct{} `type:"structure"`
  39421. // The volume identifier.
  39422. Id *string `locationName:"id" type:"string"`
  39423. // The size of the volume, in GiB.
  39424. Size *int64 `locationName:"size" type:"long"`
  39425. }
  39426. // String returns the string representation
  39427. func (s DiskImageVolumeDescription) String() string {
  39428. return awsutil.Prettify(s)
  39429. }
  39430. // GoString returns the string representation
  39431. func (s DiskImageVolumeDescription) GoString() string {
  39432. return s.String()
  39433. }
  39434. // SetId sets the Id field's value.
  39435. func (s *DiskImageVolumeDescription) SetId(v string) *DiskImageVolumeDescription {
  39436. s.Id = &v
  39437. return s
  39438. }
  39439. // SetSize sets the Size field's value.
  39440. func (s *DiskImageVolumeDescription) SetSize(v int64) *DiskImageVolumeDescription {
  39441. s.Size = &v
  39442. return s
  39443. }
  39444. // Describes a DNS entry.
  39445. type DnsEntry struct {
  39446. _ struct{} `type:"structure"`
  39447. // The DNS name.
  39448. DnsName *string `locationName:"dnsName" type:"string"`
  39449. // The ID of the private hosted zone.
  39450. HostedZoneId *string `locationName:"hostedZoneId" type:"string"`
  39451. }
  39452. // String returns the string representation
  39453. func (s DnsEntry) String() string {
  39454. return awsutil.Prettify(s)
  39455. }
  39456. // GoString returns the string representation
  39457. func (s DnsEntry) GoString() string {
  39458. return s.String()
  39459. }
  39460. // SetDnsName sets the DnsName field's value.
  39461. func (s *DnsEntry) SetDnsName(v string) *DnsEntry {
  39462. s.DnsName = &v
  39463. return s
  39464. }
  39465. // SetHostedZoneId sets the HostedZoneId field's value.
  39466. func (s *DnsEntry) SetHostedZoneId(v string) *DnsEntry {
  39467. s.HostedZoneId = &v
  39468. return s
  39469. }
  39470. // Describes a block device for an EBS volume.
  39471. type EbsBlockDevice struct {
  39472. _ struct{} `type:"structure"`
  39473. // Indicates whether the EBS volume is deleted on instance termination.
  39474. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  39475. // Indicates whether the EBS volume is encrypted. Encrypted volumes can only
  39476. // be attached to instances that support Amazon EBS encryption. If you are creating
  39477. // a volume from a snapshot, you can't specify an encryption value. This is
  39478. // because only blank volumes can be encrypted on creation.
  39479. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  39480. // The number of I/O operations per second (IOPS) that the volume supports.
  39481. // For io1, this represents the number of IOPS that are provisioned for the
  39482. // volume. For gp2, this represents the baseline performance of the volume and
  39483. // the rate at which the volume accumulates I/O credits for bursting. For more
  39484. // information about General Purpose SSD baseline performance, I/O credits,
  39485. // and bursting, see Amazon EBS Volume Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html)
  39486. // in the Amazon Elastic Compute Cloud User Guide.
  39487. //
  39488. // Constraint: Range is 100-20000 IOPS for io1 volumes and 100-10000 IOPS for
  39489. // gp2 volumes.
  39490. //
  39491. // Condition: This parameter is required for requests to create io1 volumes;
  39492. // it is not used in requests to create gp2, st1, sc1, or standard volumes.
  39493. Iops *int64 `locationName:"iops" type:"integer"`
  39494. // Identifier (key ID, key alias, ID ARN, or alias ARN) for a user-managed CMK
  39495. // under which the EBS volume is encrypted.
  39496. //
  39497. // Note: This parameter is only supported on BlockDeviceMapping objects called
  39498. // by RunInstances (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html),
  39499. // RequestSpotFleet (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestSpotFleet.html),
  39500. // and RequestSpotInstances (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestSpotInstances.html).
  39501. KmsKeyId *string `type:"string"`
  39502. // The ID of the snapshot.
  39503. SnapshotId *string `locationName:"snapshotId" type:"string"`
  39504. // The size of the volume, in GiB.
  39505. //
  39506. // Constraints: 1-16384 for General Purpose SSD (gp2), 4-16384 for Provisioned
  39507. // IOPS SSD (io1), 500-16384 for Throughput Optimized HDD (st1), 500-16384 for
  39508. // Cold HDD (sc1), and 1-1024 for Magnetic (standard) volumes. If you specify
  39509. // a snapshot, the volume size must be equal to or larger than the snapshot
  39510. // size.
  39511. //
  39512. // Default: If you're creating the volume from a snapshot and don't specify
  39513. // a volume size, the default is the snapshot size.
  39514. VolumeSize *int64 `locationName:"volumeSize" type:"integer"`
  39515. // The volume type: gp2, io1, st1, sc1, or standard.
  39516. //
  39517. // Default: standard
  39518. VolumeType *string `locationName:"volumeType" type:"string" enum:"VolumeType"`
  39519. }
  39520. // String returns the string representation
  39521. func (s EbsBlockDevice) String() string {
  39522. return awsutil.Prettify(s)
  39523. }
  39524. // GoString returns the string representation
  39525. func (s EbsBlockDevice) GoString() string {
  39526. return s.String()
  39527. }
  39528. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  39529. func (s *EbsBlockDevice) SetDeleteOnTermination(v bool) *EbsBlockDevice {
  39530. s.DeleteOnTermination = &v
  39531. return s
  39532. }
  39533. // SetEncrypted sets the Encrypted field's value.
  39534. func (s *EbsBlockDevice) SetEncrypted(v bool) *EbsBlockDevice {
  39535. s.Encrypted = &v
  39536. return s
  39537. }
  39538. // SetIops sets the Iops field's value.
  39539. func (s *EbsBlockDevice) SetIops(v int64) *EbsBlockDevice {
  39540. s.Iops = &v
  39541. return s
  39542. }
  39543. // SetKmsKeyId sets the KmsKeyId field's value.
  39544. func (s *EbsBlockDevice) SetKmsKeyId(v string) *EbsBlockDevice {
  39545. s.KmsKeyId = &v
  39546. return s
  39547. }
  39548. // SetSnapshotId sets the SnapshotId field's value.
  39549. func (s *EbsBlockDevice) SetSnapshotId(v string) *EbsBlockDevice {
  39550. s.SnapshotId = &v
  39551. return s
  39552. }
  39553. // SetVolumeSize sets the VolumeSize field's value.
  39554. func (s *EbsBlockDevice) SetVolumeSize(v int64) *EbsBlockDevice {
  39555. s.VolumeSize = &v
  39556. return s
  39557. }
  39558. // SetVolumeType sets the VolumeType field's value.
  39559. func (s *EbsBlockDevice) SetVolumeType(v string) *EbsBlockDevice {
  39560. s.VolumeType = &v
  39561. return s
  39562. }
  39563. // Describes a parameter used to set up an EBS volume in a block device mapping.
  39564. type EbsInstanceBlockDevice struct {
  39565. _ struct{} `type:"structure"`
  39566. // The time stamp when the attachment initiated.
  39567. AttachTime *time.Time `locationName:"attachTime" type:"timestamp" timestampFormat:"iso8601"`
  39568. // Indicates whether the volume is deleted on instance termination.
  39569. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  39570. // The attachment state.
  39571. Status *string `locationName:"status" type:"string" enum:"AttachmentStatus"`
  39572. // The ID of the EBS volume.
  39573. VolumeId *string `locationName:"volumeId" type:"string"`
  39574. }
  39575. // String returns the string representation
  39576. func (s EbsInstanceBlockDevice) String() string {
  39577. return awsutil.Prettify(s)
  39578. }
  39579. // GoString returns the string representation
  39580. func (s EbsInstanceBlockDevice) GoString() string {
  39581. return s.String()
  39582. }
  39583. // SetAttachTime sets the AttachTime field's value.
  39584. func (s *EbsInstanceBlockDevice) SetAttachTime(v time.Time) *EbsInstanceBlockDevice {
  39585. s.AttachTime = &v
  39586. return s
  39587. }
  39588. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  39589. func (s *EbsInstanceBlockDevice) SetDeleteOnTermination(v bool) *EbsInstanceBlockDevice {
  39590. s.DeleteOnTermination = &v
  39591. return s
  39592. }
  39593. // SetStatus sets the Status field's value.
  39594. func (s *EbsInstanceBlockDevice) SetStatus(v string) *EbsInstanceBlockDevice {
  39595. s.Status = &v
  39596. return s
  39597. }
  39598. // SetVolumeId sets the VolumeId field's value.
  39599. func (s *EbsInstanceBlockDevice) SetVolumeId(v string) *EbsInstanceBlockDevice {
  39600. s.VolumeId = &v
  39601. return s
  39602. }
  39603. // Describes information used to set up an EBS volume specified in a block device
  39604. // mapping.
  39605. type EbsInstanceBlockDeviceSpecification struct {
  39606. _ struct{} `type:"structure"`
  39607. // Indicates whether the volume is deleted on instance termination.
  39608. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  39609. // The ID of the EBS volume.
  39610. VolumeId *string `locationName:"volumeId" type:"string"`
  39611. }
  39612. // String returns the string representation
  39613. func (s EbsInstanceBlockDeviceSpecification) String() string {
  39614. return awsutil.Prettify(s)
  39615. }
  39616. // GoString returns the string representation
  39617. func (s EbsInstanceBlockDeviceSpecification) GoString() string {
  39618. return s.String()
  39619. }
  39620. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  39621. func (s *EbsInstanceBlockDeviceSpecification) SetDeleteOnTermination(v bool) *EbsInstanceBlockDeviceSpecification {
  39622. s.DeleteOnTermination = &v
  39623. return s
  39624. }
  39625. // SetVolumeId sets the VolumeId field's value.
  39626. func (s *EbsInstanceBlockDeviceSpecification) SetVolumeId(v string) *EbsInstanceBlockDeviceSpecification {
  39627. s.VolumeId = &v
  39628. return s
  39629. }
  39630. // Describes an egress-only Internet gateway.
  39631. type EgressOnlyInternetGateway struct {
  39632. _ struct{} `type:"structure"`
  39633. // Information about the attachment of the egress-only Internet gateway.
  39634. Attachments []*InternetGatewayAttachment `locationName:"attachmentSet" locationNameList:"item" type:"list"`
  39635. // The ID of the egress-only Internet gateway.
  39636. EgressOnlyInternetGatewayId *string `locationName:"egressOnlyInternetGatewayId" type:"string"`
  39637. }
  39638. // String returns the string representation
  39639. func (s EgressOnlyInternetGateway) String() string {
  39640. return awsutil.Prettify(s)
  39641. }
  39642. // GoString returns the string representation
  39643. func (s EgressOnlyInternetGateway) GoString() string {
  39644. return s.String()
  39645. }
  39646. // SetAttachments sets the Attachments field's value.
  39647. func (s *EgressOnlyInternetGateway) SetAttachments(v []*InternetGatewayAttachment) *EgressOnlyInternetGateway {
  39648. s.Attachments = v
  39649. return s
  39650. }
  39651. // SetEgressOnlyInternetGatewayId sets the EgressOnlyInternetGatewayId field's value.
  39652. func (s *EgressOnlyInternetGateway) SetEgressOnlyInternetGatewayId(v string) *EgressOnlyInternetGateway {
  39653. s.EgressOnlyInternetGatewayId = &v
  39654. return s
  39655. }
  39656. // Describes the association between an instance and an Elastic GPU.
  39657. type ElasticGpuAssociation struct {
  39658. _ struct{} `type:"structure"`
  39659. // The ID of the association.
  39660. ElasticGpuAssociationId *string `locationName:"elasticGpuAssociationId" type:"string"`
  39661. // The state of the association between the instance and the Elastic GPU.
  39662. ElasticGpuAssociationState *string `locationName:"elasticGpuAssociationState" type:"string"`
  39663. // The time the Elastic GPU was associated with the instance.
  39664. ElasticGpuAssociationTime *string `locationName:"elasticGpuAssociationTime" type:"string"`
  39665. // The ID of the Elastic GPU.
  39666. ElasticGpuId *string `locationName:"elasticGpuId" type:"string"`
  39667. }
  39668. // String returns the string representation
  39669. func (s ElasticGpuAssociation) String() string {
  39670. return awsutil.Prettify(s)
  39671. }
  39672. // GoString returns the string representation
  39673. func (s ElasticGpuAssociation) GoString() string {
  39674. return s.String()
  39675. }
  39676. // SetElasticGpuAssociationId sets the ElasticGpuAssociationId field's value.
  39677. func (s *ElasticGpuAssociation) SetElasticGpuAssociationId(v string) *ElasticGpuAssociation {
  39678. s.ElasticGpuAssociationId = &v
  39679. return s
  39680. }
  39681. // SetElasticGpuAssociationState sets the ElasticGpuAssociationState field's value.
  39682. func (s *ElasticGpuAssociation) SetElasticGpuAssociationState(v string) *ElasticGpuAssociation {
  39683. s.ElasticGpuAssociationState = &v
  39684. return s
  39685. }
  39686. // SetElasticGpuAssociationTime sets the ElasticGpuAssociationTime field's value.
  39687. func (s *ElasticGpuAssociation) SetElasticGpuAssociationTime(v string) *ElasticGpuAssociation {
  39688. s.ElasticGpuAssociationTime = &v
  39689. return s
  39690. }
  39691. // SetElasticGpuId sets the ElasticGpuId field's value.
  39692. func (s *ElasticGpuAssociation) SetElasticGpuId(v string) *ElasticGpuAssociation {
  39693. s.ElasticGpuId = &v
  39694. return s
  39695. }
  39696. // Describes the status of an Elastic GPU.
  39697. type ElasticGpuHealth struct {
  39698. _ struct{} `type:"structure"`
  39699. // The health status.
  39700. Status *string `locationName:"status" type:"string" enum:"ElasticGpuStatus"`
  39701. }
  39702. // String returns the string representation
  39703. func (s ElasticGpuHealth) String() string {
  39704. return awsutil.Prettify(s)
  39705. }
  39706. // GoString returns the string representation
  39707. func (s ElasticGpuHealth) GoString() string {
  39708. return s.String()
  39709. }
  39710. // SetStatus sets the Status field's value.
  39711. func (s *ElasticGpuHealth) SetStatus(v string) *ElasticGpuHealth {
  39712. s.Status = &v
  39713. return s
  39714. }
  39715. // A specification for an Elastic GPU.
  39716. type ElasticGpuSpecification struct {
  39717. _ struct{} `type:"structure"`
  39718. // The type of Elastic GPU.
  39719. //
  39720. // Type is a required field
  39721. Type *string `type:"string" required:"true"`
  39722. }
  39723. // String returns the string representation
  39724. func (s ElasticGpuSpecification) String() string {
  39725. return awsutil.Prettify(s)
  39726. }
  39727. // GoString returns the string representation
  39728. func (s ElasticGpuSpecification) GoString() string {
  39729. return s.String()
  39730. }
  39731. // Validate inspects the fields of the type to determine if they are valid.
  39732. func (s *ElasticGpuSpecification) Validate() error {
  39733. invalidParams := request.ErrInvalidParams{Context: "ElasticGpuSpecification"}
  39734. if s.Type == nil {
  39735. invalidParams.Add(request.NewErrParamRequired("Type"))
  39736. }
  39737. if invalidParams.Len() > 0 {
  39738. return invalidParams
  39739. }
  39740. return nil
  39741. }
  39742. // SetType sets the Type field's value.
  39743. func (s *ElasticGpuSpecification) SetType(v string) *ElasticGpuSpecification {
  39744. s.Type = &v
  39745. return s
  39746. }
  39747. // Describes an elastic GPU.
  39748. type ElasticGpuSpecificationResponse struct {
  39749. _ struct{} `type:"structure"`
  39750. // The elastic GPU type.
  39751. Type *string `locationName:"type" type:"string"`
  39752. }
  39753. // String returns the string representation
  39754. func (s ElasticGpuSpecificationResponse) String() string {
  39755. return awsutil.Prettify(s)
  39756. }
  39757. // GoString returns the string representation
  39758. func (s ElasticGpuSpecificationResponse) GoString() string {
  39759. return s.String()
  39760. }
  39761. // SetType sets the Type field's value.
  39762. func (s *ElasticGpuSpecificationResponse) SetType(v string) *ElasticGpuSpecificationResponse {
  39763. s.Type = &v
  39764. return s
  39765. }
  39766. // Describes an Elastic GPU.
  39767. type ElasticGpus struct {
  39768. _ struct{} `type:"structure"`
  39769. // The Availability Zone in the which the Elastic GPU resides.
  39770. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  39771. // The status of the Elastic GPU.
  39772. ElasticGpuHealth *ElasticGpuHealth `locationName:"elasticGpuHealth" type:"structure"`
  39773. // The ID of the Elastic GPU.
  39774. ElasticGpuId *string `locationName:"elasticGpuId" type:"string"`
  39775. // The state of the Elastic GPU.
  39776. ElasticGpuState *string `locationName:"elasticGpuState" type:"string" enum:"ElasticGpuState"`
  39777. // The type of Elastic GPU.
  39778. ElasticGpuType *string `locationName:"elasticGpuType" type:"string"`
  39779. // The ID of the instance to which the Elastic GPU is attached.
  39780. InstanceId *string `locationName:"instanceId" type:"string"`
  39781. }
  39782. // String returns the string representation
  39783. func (s ElasticGpus) String() string {
  39784. return awsutil.Prettify(s)
  39785. }
  39786. // GoString returns the string representation
  39787. func (s ElasticGpus) GoString() string {
  39788. return s.String()
  39789. }
  39790. // SetAvailabilityZone sets the AvailabilityZone field's value.
  39791. func (s *ElasticGpus) SetAvailabilityZone(v string) *ElasticGpus {
  39792. s.AvailabilityZone = &v
  39793. return s
  39794. }
  39795. // SetElasticGpuHealth sets the ElasticGpuHealth field's value.
  39796. func (s *ElasticGpus) SetElasticGpuHealth(v *ElasticGpuHealth) *ElasticGpus {
  39797. s.ElasticGpuHealth = v
  39798. return s
  39799. }
  39800. // SetElasticGpuId sets the ElasticGpuId field's value.
  39801. func (s *ElasticGpus) SetElasticGpuId(v string) *ElasticGpus {
  39802. s.ElasticGpuId = &v
  39803. return s
  39804. }
  39805. // SetElasticGpuState sets the ElasticGpuState field's value.
  39806. func (s *ElasticGpus) SetElasticGpuState(v string) *ElasticGpus {
  39807. s.ElasticGpuState = &v
  39808. return s
  39809. }
  39810. // SetElasticGpuType sets the ElasticGpuType field's value.
  39811. func (s *ElasticGpus) SetElasticGpuType(v string) *ElasticGpus {
  39812. s.ElasticGpuType = &v
  39813. return s
  39814. }
  39815. // SetInstanceId sets the InstanceId field's value.
  39816. func (s *ElasticGpus) SetInstanceId(v string) *ElasticGpus {
  39817. s.InstanceId = &v
  39818. return s
  39819. }
  39820. // Contains the parameters for EnableVgwRoutePropagation.
  39821. type EnableVgwRoutePropagationInput struct {
  39822. _ struct{} `type:"structure"`
  39823. // The ID of the virtual private gateway.
  39824. //
  39825. // GatewayId is a required field
  39826. GatewayId *string `type:"string" required:"true"`
  39827. // The ID of the route table.
  39828. //
  39829. // RouteTableId is a required field
  39830. RouteTableId *string `type:"string" required:"true"`
  39831. }
  39832. // String returns the string representation
  39833. func (s EnableVgwRoutePropagationInput) String() string {
  39834. return awsutil.Prettify(s)
  39835. }
  39836. // GoString returns the string representation
  39837. func (s EnableVgwRoutePropagationInput) GoString() string {
  39838. return s.String()
  39839. }
  39840. // Validate inspects the fields of the type to determine if they are valid.
  39841. func (s *EnableVgwRoutePropagationInput) Validate() error {
  39842. invalidParams := request.ErrInvalidParams{Context: "EnableVgwRoutePropagationInput"}
  39843. if s.GatewayId == nil {
  39844. invalidParams.Add(request.NewErrParamRequired("GatewayId"))
  39845. }
  39846. if s.RouteTableId == nil {
  39847. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  39848. }
  39849. if invalidParams.Len() > 0 {
  39850. return invalidParams
  39851. }
  39852. return nil
  39853. }
  39854. // SetGatewayId sets the GatewayId field's value.
  39855. func (s *EnableVgwRoutePropagationInput) SetGatewayId(v string) *EnableVgwRoutePropagationInput {
  39856. s.GatewayId = &v
  39857. return s
  39858. }
  39859. // SetRouteTableId sets the RouteTableId field's value.
  39860. func (s *EnableVgwRoutePropagationInput) SetRouteTableId(v string) *EnableVgwRoutePropagationInput {
  39861. s.RouteTableId = &v
  39862. return s
  39863. }
  39864. type EnableVgwRoutePropagationOutput struct {
  39865. _ struct{} `type:"structure"`
  39866. }
  39867. // String returns the string representation
  39868. func (s EnableVgwRoutePropagationOutput) String() string {
  39869. return awsutil.Prettify(s)
  39870. }
  39871. // GoString returns the string representation
  39872. func (s EnableVgwRoutePropagationOutput) GoString() string {
  39873. return s.String()
  39874. }
  39875. // Contains the parameters for EnableVolumeIO.
  39876. type EnableVolumeIOInput struct {
  39877. _ struct{} `type:"structure"`
  39878. // Checks whether you have the required permissions for the action, without
  39879. // actually making the request, and provides an error response. If you have
  39880. // the required permissions, the error response is DryRunOperation. Otherwise,
  39881. // it is UnauthorizedOperation.
  39882. DryRun *bool `locationName:"dryRun" type:"boolean"`
  39883. // The ID of the volume.
  39884. //
  39885. // VolumeId is a required field
  39886. VolumeId *string `locationName:"volumeId" type:"string" required:"true"`
  39887. }
  39888. // String returns the string representation
  39889. func (s EnableVolumeIOInput) String() string {
  39890. return awsutil.Prettify(s)
  39891. }
  39892. // GoString returns the string representation
  39893. func (s EnableVolumeIOInput) GoString() string {
  39894. return s.String()
  39895. }
  39896. // Validate inspects the fields of the type to determine if they are valid.
  39897. func (s *EnableVolumeIOInput) Validate() error {
  39898. invalidParams := request.ErrInvalidParams{Context: "EnableVolumeIOInput"}
  39899. if s.VolumeId == nil {
  39900. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  39901. }
  39902. if invalidParams.Len() > 0 {
  39903. return invalidParams
  39904. }
  39905. return nil
  39906. }
  39907. // SetDryRun sets the DryRun field's value.
  39908. func (s *EnableVolumeIOInput) SetDryRun(v bool) *EnableVolumeIOInput {
  39909. s.DryRun = &v
  39910. return s
  39911. }
  39912. // SetVolumeId sets the VolumeId field's value.
  39913. func (s *EnableVolumeIOInput) SetVolumeId(v string) *EnableVolumeIOInput {
  39914. s.VolumeId = &v
  39915. return s
  39916. }
  39917. type EnableVolumeIOOutput struct {
  39918. _ struct{} `type:"structure"`
  39919. }
  39920. // String returns the string representation
  39921. func (s EnableVolumeIOOutput) String() string {
  39922. return awsutil.Prettify(s)
  39923. }
  39924. // GoString returns the string representation
  39925. func (s EnableVolumeIOOutput) GoString() string {
  39926. return s.String()
  39927. }
  39928. // Contains the parameters for EnableVpcClassicLinkDnsSupport.
  39929. type EnableVpcClassicLinkDnsSupportInput struct {
  39930. _ struct{} `type:"structure"`
  39931. // The ID of the VPC.
  39932. VpcId *string `type:"string"`
  39933. }
  39934. // String returns the string representation
  39935. func (s EnableVpcClassicLinkDnsSupportInput) String() string {
  39936. return awsutil.Prettify(s)
  39937. }
  39938. // GoString returns the string representation
  39939. func (s EnableVpcClassicLinkDnsSupportInput) GoString() string {
  39940. return s.String()
  39941. }
  39942. // SetVpcId sets the VpcId field's value.
  39943. func (s *EnableVpcClassicLinkDnsSupportInput) SetVpcId(v string) *EnableVpcClassicLinkDnsSupportInput {
  39944. s.VpcId = &v
  39945. return s
  39946. }
  39947. // Contains the output of EnableVpcClassicLinkDnsSupport.
  39948. type EnableVpcClassicLinkDnsSupportOutput struct {
  39949. _ struct{} `type:"structure"`
  39950. // Returns true if the request succeeds; otherwise, it returns an error.
  39951. Return *bool `locationName:"return" type:"boolean"`
  39952. }
  39953. // String returns the string representation
  39954. func (s EnableVpcClassicLinkDnsSupportOutput) String() string {
  39955. return awsutil.Prettify(s)
  39956. }
  39957. // GoString returns the string representation
  39958. func (s EnableVpcClassicLinkDnsSupportOutput) GoString() string {
  39959. return s.String()
  39960. }
  39961. // SetReturn sets the Return field's value.
  39962. func (s *EnableVpcClassicLinkDnsSupportOutput) SetReturn(v bool) *EnableVpcClassicLinkDnsSupportOutput {
  39963. s.Return = &v
  39964. return s
  39965. }
  39966. // Contains the parameters for EnableVpcClassicLink.
  39967. type EnableVpcClassicLinkInput struct {
  39968. _ struct{} `type:"structure"`
  39969. // Checks whether you have the required permissions for the action, without
  39970. // actually making the request, and provides an error response. If you have
  39971. // the required permissions, the error response is DryRunOperation. Otherwise,
  39972. // it is UnauthorizedOperation.
  39973. DryRun *bool `locationName:"dryRun" type:"boolean"`
  39974. // The ID of the VPC.
  39975. //
  39976. // VpcId is a required field
  39977. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  39978. }
  39979. // String returns the string representation
  39980. func (s EnableVpcClassicLinkInput) String() string {
  39981. return awsutil.Prettify(s)
  39982. }
  39983. // GoString returns the string representation
  39984. func (s EnableVpcClassicLinkInput) GoString() string {
  39985. return s.String()
  39986. }
  39987. // Validate inspects the fields of the type to determine if they are valid.
  39988. func (s *EnableVpcClassicLinkInput) Validate() error {
  39989. invalidParams := request.ErrInvalidParams{Context: "EnableVpcClassicLinkInput"}
  39990. if s.VpcId == nil {
  39991. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  39992. }
  39993. if invalidParams.Len() > 0 {
  39994. return invalidParams
  39995. }
  39996. return nil
  39997. }
  39998. // SetDryRun sets the DryRun field's value.
  39999. func (s *EnableVpcClassicLinkInput) SetDryRun(v bool) *EnableVpcClassicLinkInput {
  40000. s.DryRun = &v
  40001. return s
  40002. }
  40003. // SetVpcId sets the VpcId field's value.
  40004. func (s *EnableVpcClassicLinkInput) SetVpcId(v string) *EnableVpcClassicLinkInput {
  40005. s.VpcId = &v
  40006. return s
  40007. }
  40008. // Contains the output of EnableVpcClassicLink.
  40009. type EnableVpcClassicLinkOutput struct {
  40010. _ struct{} `type:"structure"`
  40011. // Returns true if the request succeeds; otherwise, it returns an error.
  40012. Return *bool `locationName:"return" type:"boolean"`
  40013. }
  40014. // String returns the string representation
  40015. func (s EnableVpcClassicLinkOutput) String() string {
  40016. return awsutil.Prettify(s)
  40017. }
  40018. // GoString returns the string representation
  40019. func (s EnableVpcClassicLinkOutput) GoString() string {
  40020. return s.String()
  40021. }
  40022. // SetReturn sets the Return field's value.
  40023. func (s *EnableVpcClassicLinkOutput) SetReturn(v bool) *EnableVpcClassicLinkOutput {
  40024. s.Return = &v
  40025. return s
  40026. }
  40027. // Describes a Spot Fleet event.
  40028. type EventInformation struct {
  40029. _ struct{} `type:"structure"`
  40030. // The description of the event.
  40031. EventDescription *string `locationName:"eventDescription" type:"string"`
  40032. // The event.
  40033. //
  40034. // The following are the error events:
  40035. //
  40036. // * iamFleetRoleInvalid - The Spot Fleet did not have the required permissions
  40037. // either to launch or terminate an instance.
  40038. //
  40039. // * launchSpecTemporarilyBlacklisted - The configuration is not valid and
  40040. // several attempts to launch instances have failed. For more information,
  40041. // see the description of the event.
  40042. //
  40043. // * spotFleetRequestConfigurationInvalid - The configuration is not valid.
  40044. // For more information, see the description of the event.
  40045. //
  40046. // * spotInstanceCountLimitExceeded - You've reached the limit on the number
  40047. // of Spot Instances that you can launch.
  40048. //
  40049. // The following are the fleetRequestChange events:
  40050. //
  40051. // * active - The Spot Fleet has been validated and Amazon EC2 is attempting
  40052. // to maintain the target number of running Spot Instances.
  40053. //
  40054. // * cancelled - The Spot Fleet is canceled and has no running Spot Instances.
  40055. // The Spot Fleet will be deleted two days after its instances were terminated.
  40056. //
  40057. // * cancelled_running - The Spot Fleet is canceled and does not launch additional
  40058. // Spot Instances. Existing Spot Instances continue to run until they are
  40059. // interrupted or terminated.
  40060. //
  40061. // * cancelled_terminating - The Spot Fleet is canceled and its Spot Instances
  40062. // are terminating.
  40063. //
  40064. // * expired - The Spot Fleet request has expired. A subsequent event indicates
  40065. // that the instances were terminated, if the request was created with TerminateInstancesWithExpiration
  40066. // set.
  40067. //
  40068. // * modify_in_progress - A request to modify the Spot Fleet request was
  40069. // accepted and is in progress.
  40070. //
  40071. // * modify_successful - The Spot Fleet request was modified.
  40072. //
  40073. // * price_update - The price for a launch configuration was adjusted because
  40074. // it was too high. This change is permanent.
  40075. //
  40076. // * submitted - The Spot Fleet request is being evaluated and Amazon EC2
  40077. // is preparing to launch the target number of Spot Instances.
  40078. //
  40079. // The following are the instanceChange events:
  40080. //
  40081. // * launched - A request was fulfilled and a new instance was launched.
  40082. //
  40083. // * terminated - An instance was terminated by the user.
  40084. //
  40085. // The following are the Information events:
  40086. //
  40087. // * launchSpecUnusable - The price in a launch specification is not valid
  40088. // because it is below the Spot price or the Spot price is above the On-Demand
  40089. // price.
  40090. //
  40091. // * fleetProgressHalted - The price in every launch specification is not
  40092. // valid. A launch specification might become valid if the Spot price changes.
  40093. EventSubType *string `locationName:"eventSubType" type:"string"`
  40094. // The ID of the instance. This information is available only for instanceChange
  40095. // events.
  40096. InstanceId *string `locationName:"instanceId" type:"string"`
  40097. }
  40098. // String returns the string representation
  40099. func (s EventInformation) String() string {
  40100. return awsutil.Prettify(s)
  40101. }
  40102. // GoString returns the string representation
  40103. func (s EventInformation) GoString() string {
  40104. return s.String()
  40105. }
  40106. // SetEventDescription sets the EventDescription field's value.
  40107. func (s *EventInformation) SetEventDescription(v string) *EventInformation {
  40108. s.EventDescription = &v
  40109. return s
  40110. }
  40111. // SetEventSubType sets the EventSubType field's value.
  40112. func (s *EventInformation) SetEventSubType(v string) *EventInformation {
  40113. s.EventSubType = &v
  40114. return s
  40115. }
  40116. // SetInstanceId sets the InstanceId field's value.
  40117. func (s *EventInformation) SetInstanceId(v string) *EventInformation {
  40118. s.InstanceId = &v
  40119. return s
  40120. }
  40121. // Describes an instance export task.
  40122. type ExportTask struct {
  40123. _ struct{} `type:"structure"`
  40124. // A description of the resource being exported.
  40125. Description *string `locationName:"description" type:"string"`
  40126. // The ID of the export task.
  40127. ExportTaskId *string `locationName:"exportTaskId" type:"string"`
  40128. // Information about the export task.
  40129. ExportToS3Task *ExportToS3Task `locationName:"exportToS3" type:"structure"`
  40130. // Information about the instance to export.
  40131. InstanceExportDetails *InstanceExportDetails `locationName:"instanceExport" type:"structure"`
  40132. // The state of the export task.
  40133. State *string `locationName:"state" type:"string" enum:"ExportTaskState"`
  40134. // The status message related to the export task.
  40135. StatusMessage *string `locationName:"statusMessage" type:"string"`
  40136. }
  40137. // String returns the string representation
  40138. func (s ExportTask) String() string {
  40139. return awsutil.Prettify(s)
  40140. }
  40141. // GoString returns the string representation
  40142. func (s ExportTask) GoString() string {
  40143. return s.String()
  40144. }
  40145. // SetDescription sets the Description field's value.
  40146. func (s *ExportTask) SetDescription(v string) *ExportTask {
  40147. s.Description = &v
  40148. return s
  40149. }
  40150. // SetExportTaskId sets the ExportTaskId field's value.
  40151. func (s *ExportTask) SetExportTaskId(v string) *ExportTask {
  40152. s.ExportTaskId = &v
  40153. return s
  40154. }
  40155. // SetExportToS3Task sets the ExportToS3Task field's value.
  40156. func (s *ExportTask) SetExportToS3Task(v *ExportToS3Task) *ExportTask {
  40157. s.ExportToS3Task = v
  40158. return s
  40159. }
  40160. // SetInstanceExportDetails sets the InstanceExportDetails field's value.
  40161. func (s *ExportTask) SetInstanceExportDetails(v *InstanceExportDetails) *ExportTask {
  40162. s.InstanceExportDetails = v
  40163. return s
  40164. }
  40165. // SetState sets the State field's value.
  40166. func (s *ExportTask) SetState(v string) *ExportTask {
  40167. s.State = &v
  40168. return s
  40169. }
  40170. // SetStatusMessage sets the StatusMessage field's value.
  40171. func (s *ExportTask) SetStatusMessage(v string) *ExportTask {
  40172. s.StatusMessage = &v
  40173. return s
  40174. }
  40175. // Describes the format and location for an instance export task.
  40176. type ExportToS3Task struct {
  40177. _ struct{} `type:"structure"`
  40178. // The container format used to combine disk images with metadata (such as OVF).
  40179. // If absent, only the disk image is exported.
  40180. ContainerFormat *string `locationName:"containerFormat" type:"string" enum:"ContainerFormat"`
  40181. // The format for the exported image.
  40182. DiskImageFormat *string `locationName:"diskImageFormat" type:"string" enum:"DiskImageFormat"`
  40183. // The S3 bucket for the destination image. The destination bucket must exist
  40184. // and grant WRITE and READ_ACP permissions to the AWS account vm-import-export@amazon.com.
  40185. S3Bucket *string `locationName:"s3Bucket" type:"string"`
  40186. // The encryption key for your S3 bucket.
  40187. S3Key *string `locationName:"s3Key" type:"string"`
  40188. }
  40189. // String returns the string representation
  40190. func (s ExportToS3Task) String() string {
  40191. return awsutil.Prettify(s)
  40192. }
  40193. // GoString returns the string representation
  40194. func (s ExportToS3Task) GoString() string {
  40195. return s.String()
  40196. }
  40197. // SetContainerFormat sets the ContainerFormat field's value.
  40198. func (s *ExportToS3Task) SetContainerFormat(v string) *ExportToS3Task {
  40199. s.ContainerFormat = &v
  40200. return s
  40201. }
  40202. // SetDiskImageFormat sets the DiskImageFormat field's value.
  40203. func (s *ExportToS3Task) SetDiskImageFormat(v string) *ExportToS3Task {
  40204. s.DiskImageFormat = &v
  40205. return s
  40206. }
  40207. // SetS3Bucket sets the S3Bucket field's value.
  40208. func (s *ExportToS3Task) SetS3Bucket(v string) *ExportToS3Task {
  40209. s.S3Bucket = &v
  40210. return s
  40211. }
  40212. // SetS3Key sets the S3Key field's value.
  40213. func (s *ExportToS3Task) SetS3Key(v string) *ExportToS3Task {
  40214. s.S3Key = &v
  40215. return s
  40216. }
  40217. // Describes an instance export task.
  40218. type ExportToS3TaskSpecification struct {
  40219. _ struct{} `type:"structure"`
  40220. // The container format used to combine disk images with metadata (such as OVF).
  40221. // If absent, only the disk image is exported.
  40222. ContainerFormat *string `locationName:"containerFormat" type:"string" enum:"ContainerFormat"`
  40223. // The format for the exported image.
  40224. DiskImageFormat *string `locationName:"diskImageFormat" type:"string" enum:"DiskImageFormat"`
  40225. // The S3 bucket for the destination image. The destination bucket must exist
  40226. // and grant WRITE and READ_ACP permissions to the AWS account vm-import-export@amazon.com.
  40227. S3Bucket *string `locationName:"s3Bucket" type:"string"`
  40228. // The image is written to a single object in the S3 bucket at the S3 key s3prefix
  40229. // + exportTaskId + '.' + diskImageFormat.
  40230. S3Prefix *string `locationName:"s3Prefix" type:"string"`
  40231. }
  40232. // String returns the string representation
  40233. func (s ExportToS3TaskSpecification) String() string {
  40234. return awsutil.Prettify(s)
  40235. }
  40236. // GoString returns the string representation
  40237. func (s ExportToS3TaskSpecification) GoString() string {
  40238. return s.String()
  40239. }
  40240. // SetContainerFormat sets the ContainerFormat field's value.
  40241. func (s *ExportToS3TaskSpecification) SetContainerFormat(v string) *ExportToS3TaskSpecification {
  40242. s.ContainerFormat = &v
  40243. return s
  40244. }
  40245. // SetDiskImageFormat sets the DiskImageFormat field's value.
  40246. func (s *ExportToS3TaskSpecification) SetDiskImageFormat(v string) *ExportToS3TaskSpecification {
  40247. s.DiskImageFormat = &v
  40248. return s
  40249. }
  40250. // SetS3Bucket sets the S3Bucket field's value.
  40251. func (s *ExportToS3TaskSpecification) SetS3Bucket(v string) *ExportToS3TaskSpecification {
  40252. s.S3Bucket = &v
  40253. return s
  40254. }
  40255. // SetS3Prefix sets the S3Prefix field's value.
  40256. func (s *ExportToS3TaskSpecification) SetS3Prefix(v string) *ExportToS3TaskSpecification {
  40257. s.S3Prefix = &v
  40258. return s
  40259. }
  40260. // A filter name and value pair that is used to return a more specific list
  40261. // of results from a describe operation. Filters can be used to match a set
  40262. // of resources by specific criteria, such as tags, attributes, or IDs. The
  40263. // filters supported by a describe operation are documented with the describe
  40264. // operation. For example:
  40265. //
  40266. // * DescribeAvailabilityZones
  40267. //
  40268. // * DescribeImages
  40269. //
  40270. // * DescribeInstances
  40271. //
  40272. // * DescribeKeyPairs
  40273. //
  40274. // * DescribeSecurityGroups
  40275. //
  40276. // * DescribeSnapshots
  40277. //
  40278. // * DescribeSubnets
  40279. //
  40280. // * DescribeTags
  40281. //
  40282. // * DescribeVolumes
  40283. //
  40284. // * DescribeVpcs
  40285. type Filter struct {
  40286. _ struct{} `type:"structure"`
  40287. // The name of the filter. Filter names are case-sensitive.
  40288. Name *string `type:"string"`
  40289. // One or more filter values. Filter values are case-sensitive.
  40290. Values []*string `locationName:"Value" locationNameList:"item" type:"list"`
  40291. }
  40292. // String returns the string representation
  40293. func (s Filter) String() string {
  40294. return awsutil.Prettify(s)
  40295. }
  40296. // GoString returns the string representation
  40297. func (s Filter) GoString() string {
  40298. return s.String()
  40299. }
  40300. // SetName sets the Name field's value.
  40301. func (s *Filter) SetName(v string) *Filter {
  40302. s.Name = &v
  40303. return s
  40304. }
  40305. // SetValues sets the Values field's value.
  40306. func (s *Filter) SetValues(v []*string) *Filter {
  40307. s.Values = v
  40308. return s
  40309. }
  40310. // Describes an EC2 Fleet.
  40311. type FleetData struct {
  40312. _ struct{} `type:"structure"`
  40313. // The progress of the EC2 Fleet. If there is an error, the status is error.
  40314. // After all requests are placed, the status is pending_fulfillment. If the
  40315. // size of the EC2 Fleet is equal to or greater than its target capacity, the
  40316. // status is fulfilled. If the size of the EC2 Fleet is decreased, the status
  40317. // is pending_termination while instances are terminating.
  40318. ActivityStatus *string `locationName:"activityStatus" type:"string" enum:"FleetActivityStatus"`
  40319. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  40320. // the request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  40321. //
  40322. // Constraints: Maximum 64 ASCII characters
  40323. ClientToken *string `locationName:"clientToken" type:"string"`
  40324. // The creation date and time of the EC2 Fleet.
  40325. CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"iso8601"`
  40326. // Indicates whether running instances should be terminated if the target capacity
  40327. // of the EC2 Fleet is decreased below the current size of the EC2 Fleet.
  40328. ExcessCapacityTerminationPolicy *string `locationName:"excessCapacityTerminationPolicy" type:"string" enum:"FleetExcessCapacityTerminationPolicy"`
  40329. // The ID of the EC2 Fleet.
  40330. FleetId *string `locationName:"fleetId" type:"string"`
  40331. // The state of the EC2 Fleet.
  40332. FleetState *string `locationName:"fleetState" type:"string" enum:"FleetStateCode"`
  40333. // The number of units fulfilled by this request compared to the set target
  40334. // capacity.
  40335. FulfilledCapacity *float64 `locationName:"fulfilledCapacity" type:"double"`
  40336. // The number of units fulfilled by this request compared to the set target
  40337. // On-Demand capacity.
  40338. FulfilledOnDemandCapacity *float64 `locationName:"fulfilledOnDemandCapacity" type:"double"`
  40339. // The launch template and overrides.
  40340. LaunchTemplateConfigs []*FleetLaunchTemplateConfig `locationName:"launchTemplateConfigs" locationNameList:"item" type:"list"`
  40341. // Indicates whether EC2 Fleet should replace unhealthy instances.
  40342. ReplaceUnhealthyInstances *bool `locationName:"replaceUnhealthyInstances" type:"boolean"`
  40343. // The configuration of Spot Instances in an EC2 Fleet.
  40344. SpotOptions *SpotOptions `locationName:"spotOptions" type:"structure"`
  40345. // The tags for an EC2 Fleet resource.
  40346. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  40347. // The number of units to request. You can choose to set the target capacity
  40348. // in terms of instances or a performance characteristic that is important to
  40349. // your application workload, such as vCPUs, memory, or I/O. If the request
  40350. // type is maintain, you can specify a target capacity of 0 and add capacity
  40351. // later.
  40352. TargetCapacitySpecification *TargetCapacitySpecification `locationName:"targetCapacitySpecification" type:"structure"`
  40353. // Indicates whether running instances should be terminated when the EC2 Fleet
  40354. // expires.
  40355. TerminateInstancesWithExpiration *bool `locationName:"terminateInstancesWithExpiration" type:"boolean"`
  40356. // The type of request. Indicates whether the EC2 Fleet only requests the target
  40357. // capacity, or also attempts to maintain it. If you request a certain target
  40358. // capacity, EC2 Fleet only places the required requests; it does not attempt
  40359. // to replenish instances if capacity is diminished, and does not submit requests
  40360. // in alternative capacity pools if capacity is unavailable. To maintain a certain
  40361. // target capacity, EC2 Fleet places the required requests to meet this target
  40362. // capacity. It also automatically replenishes any interrupted Spot Instances.
  40363. // Default: maintain.
  40364. Type *string `locationName:"type" type:"string" enum:"FleetType"`
  40365. // The start date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  40366. // The default is to start fulfilling the request immediately.
  40367. ValidFrom *time.Time `locationName:"validFrom" type:"timestamp" timestampFormat:"iso8601"`
  40368. // The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  40369. // At this point, no new instance requests are placed or able to fulfill the
  40370. // request. The default end date is 7 days from the current date.
  40371. ValidUntil *time.Time `locationName:"validUntil" type:"timestamp" timestampFormat:"iso8601"`
  40372. }
  40373. // String returns the string representation
  40374. func (s FleetData) String() string {
  40375. return awsutil.Prettify(s)
  40376. }
  40377. // GoString returns the string representation
  40378. func (s FleetData) GoString() string {
  40379. return s.String()
  40380. }
  40381. // SetActivityStatus sets the ActivityStatus field's value.
  40382. func (s *FleetData) SetActivityStatus(v string) *FleetData {
  40383. s.ActivityStatus = &v
  40384. return s
  40385. }
  40386. // SetClientToken sets the ClientToken field's value.
  40387. func (s *FleetData) SetClientToken(v string) *FleetData {
  40388. s.ClientToken = &v
  40389. return s
  40390. }
  40391. // SetCreateTime sets the CreateTime field's value.
  40392. func (s *FleetData) SetCreateTime(v time.Time) *FleetData {
  40393. s.CreateTime = &v
  40394. return s
  40395. }
  40396. // SetExcessCapacityTerminationPolicy sets the ExcessCapacityTerminationPolicy field's value.
  40397. func (s *FleetData) SetExcessCapacityTerminationPolicy(v string) *FleetData {
  40398. s.ExcessCapacityTerminationPolicy = &v
  40399. return s
  40400. }
  40401. // SetFleetId sets the FleetId field's value.
  40402. func (s *FleetData) SetFleetId(v string) *FleetData {
  40403. s.FleetId = &v
  40404. return s
  40405. }
  40406. // SetFleetState sets the FleetState field's value.
  40407. func (s *FleetData) SetFleetState(v string) *FleetData {
  40408. s.FleetState = &v
  40409. return s
  40410. }
  40411. // SetFulfilledCapacity sets the FulfilledCapacity field's value.
  40412. func (s *FleetData) SetFulfilledCapacity(v float64) *FleetData {
  40413. s.FulfilledCapacity = &v
  40414. return s
  40415. }
  40416. // SetFulfilledOnDemandCapacity sets the FulfilledOnDemandCapacity field's value.
  40417. func (s *FleetData) SetFulfilledOnDemandCapacity(v float64) *FleetData {
  40418. s.FulfilledOnDemandCapacity = &v
  40419. return s
  40420. }
  40421. // SetLaunchTemplateConfigs sets the LaunchTemplateConfigs field's value.
  40422. func (s *FleetData) SetLaunchTemplateConfigs(v []*FleetLaunchTemplateConfig) *FleetData {
  40423. s.LaunchTemplateConfigs = v
  40424. return s
  40425. }
  40426. // SetReplaceUnhealthyInstances sets the ReplaceUnhealthyInstances field's value.
  40427. func (s *FleetData) SetReplaceUnhealthyInstances(v bool) *FleetData {
  40428. s.ReplaceUnhealthyInstances = &v
  40429. return s
  40430. }
  40431. // SetSpotOptions sets the SpotOptions field's value.
  40432. func (s *FleetData) SetSpotOptions(v *SpotOptions) *FleetData {
  40433. s.SpotOptions = v
  40434. return s
  40435. }
  40436. // SetTags sets the Tags field's value.
  40437. func (s *FleetData) SetTags(v []*Tag) *FleetData {
  40438. s.Tags = v
  40439. return s
  40440. }
  40441. // SetTargetCapacitySpecification sets the TargetCapacitySpecification field's value.
  40442. func (s *FleetData) SetTargetCapacitySpecification(v *TargetCapacitySpecification) *FleetData {
  40443. s.TargetCapacitySpecification = v
  40444. return s
  40445. }
  40446. // SetTerminateInstancesWithExpiration sets the TerminateInstancesWithExpiration field's value.
  40447. func (s *FleetData) SetTerminateInstancesWithExpiration(v bool) *FleetData {
  40448. s.TerminateInstancesWithExpiration = &v
  40449. return s
  40450. }
  40451. // SetType sets the Type field's value.
  40452. func (s *FleetData) SetType(v string) *FleetData {
  40453. s.Type = &v
  40454. return s
  40455. }
  40456. // SetValidFrom sets the ValidFrom field's value.
  40457. func (s *FleetData) SetValidFrom(v time.Time) *FleetData {
  40458. s.ValidFrom = &v
  40459. return s
  40460. }
  40461. // SetValidUntil sets the ValidUntil field's value.
  40462. func (s *FleetData) SetValidUntil(v time.Time) *FleetData {
  40463. s.ValidUntil = &v
  40464. return s
  40465. }
  40466. // Describes a launch template and overrides.
  40467. type FleetLaunchTemplateConfig struct {
  40468. _ struct{} `type:"structure"`
  40469. // The launch template.
  40470. LaunchTemplateSpecification *FleetLaunchTemplateSpecification `locationName:"launchTemplateSpecification" type:"structure"`
  40471. // Any parameters that you specify override the same parameters in the launch
  40472. // template.
  40473. Overrides []*FleetLaunchTemplateOverrides `locationName:"overrides" locationNameList:"item" type:"list"`
  40474. }
  40475. // String returns the string representation
  40476. func (s FleetLaunchTemplateConfig) String() string {
  40477. return awsutil.Prettify(s)
  40478. }
  40479. // GoString returns the string representation
  40480. func (s FleetLaunchTemplateConfig) GoString() string {
  40481. return s.String()
  40482. }
  40483. // SetLaunchTemplateSpecification sets the LaunchTemplateSpecification field's value.
  40484. func (s *FleetLaunchTemplateConfig) SetLaunchTemplateSpecification(v *FleetLaunchTemplateSpecification) *FleetLaunchTemplateConfig {
  40485. s.LaunchTemplateSpecification = v
  40486. return s
  40487. }
  40488. // SetOverrides sets the Overrides field's value.
  40489. func (s *FleetLaunchTemplateConfig) SetOverrides(v []*FleetLaunchTemplateOverrides) *FleetLaunchTemplateConfig {
  40490. s.Overrides = v
  40491. return s
  40492. }
  40493. // Describes a launch template and overrides.
  40494. type FleetLaunchTemplateConfigRequest struct {
  40495. _ struct{} `type:"structure"`
  40496. // The launch template to use. You must specify either the launch template ID
  40497. // or launch template name in the request.
  40498. LaunchTemplateSpecification *FleetLaunchTemplateSpecificationRequest `type:"structure"`
  40499. // Any parameters that you specify override the same parameters in the launch
  40500. // template.
  40501. Overrides []*FleetLaunchTemplateOverridesRequest `locationNameList:"item" type:"list"`
  40502. }
  40503. // String returns the string representation
  40504. func (s FleetLaunchTemplateConfigRequest) String() string {
  40505. return awsutil.Prettify(s)
  40506. }
  40507. // GoString returns the string representation
  40508. func (s FleetLaunchTemplateConfigRequest) GoString() string {
  40509. return s.String()
  40510. }
  40511. // Validate inspects the fields of the type to determine if they are valid.
  40512. func (s *FleetLaunchTemplateConfigRequest) Validate() error {
  40513. invalidParams := request.ErrInvalidParams{Context: "FleetLaunchTemplateConfigRequest"}
  40514. if s.LaunchTemplateSpecification != nil {
  40515. if err := s.LaunchTemplateSpecification.Validate(); err != nil {
  40516. invalidParams.AddNested("LaunchTemplateSpecification", err.(request.ErrInvalidParams))
  40517. }
  40518. }
  40519. if invalidParams.Len() > 0 {
  40520. return invalidParams
  40521. }
  40522. return nil
  40523. }
  40524. // SetLaunchTemplateSpecification sets the LaunchTemplateSpecification field's value.
  40525. func (s *FleetLaunchTemplateConfigRequest) SetLaunchTemplateSpecification(v *FleetLaunchTemplateSpecificationRequest) *FleetLaunchTemplateConfigRequest {
  40526. s.LaunchTemplateSpecification = v
  40527. return s
  40528. }
  40529. // SetOverrides sets the Overrides field's value.
  40530. func (s *FleetLaunchTemplateConfigRequest) SetOverrides(v []*FleetLaunchTemplateOverridesRequest) *FleetLaunchTemplateConfigRequest {
  40531. s.Overrides = v
  40532. return s
  40533. }
  40534. // Describes overrides for a launch template.
  40535. type FleetLaunchTemplateOverrides struct {
  40536. _ struct{} `type:"structure"`
  40537. // The Availability Zone in which to launch the instances.
  40538. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  40539. // The instance type.
  40540. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  40541. // The maximum price per unit hour that you are willing to pay for a Spot Instance.
  40542. MaxPrice *string `locationName:"maxPrice" type:"string"`
  40543. // The ID of the subnet in which to launch the instances.
  40544. SubnetId *string `locationName:"subnetId" type:"string"`
  40545. // The number of units provided by the specified instance type.
  40546. WeightedCapacity *float64 `locationName:"weightedCapacity" type:"double"`
  40547. }
  40548. // String returns the string representation
  40549. func (s FleetLaunchTemplateOverrides) String() string {
  40550. return awsutil.Prettify(s)
  40551. }
  40552. // GoString returns the string representation
  40553. func (s FleetLaunchTemplateOverrides) GoString() string {
  40554. return s.String()
  40555. }
  40556. // SetAvailabilityZone sets the AvailabilityZone field's value.
  40557. func (s *FleetLaunchTemplateOverrides) SetAvailabilityZone(v string) *FleetLaunchTemplateOverrides {
  40558. s.AvailabilityZone = &v
  40559. return s
  40560. }
  40561. // SetInstanceType sets the InstanceType field's value.
  40562. func (s *FleetLaunchTemplateOverrides) SetInstanceType(v string) *FleetLaunchTemplateOverrides {
  40563. s.InstanceType = &v
  40564. return s
  40565. }
  40566. // SetMaxPrice sets the MaxPrice field's value.
  40567. func (s *FleetLaunchTemplateOverrides) SetMaxPrice(v string) *FleetLaunchTemplateOverrides {
  40568. s.MaxPrice = &v
  40569. return s
  40570. }
  40571. // SetSubnetId sets the SubnetId field's value.
  40572. func (s *FleetLaunchTemplateOverrides) SetSubnetId(v string) *FleetLaunchTemplateOverrides {
  40573. s.SubnetId = &v
  40574. return s
  40575. }
  40576. // SetWeightedCapacity sets the WeightedCapacity field's value.
  40577. func (s *FleetLaunchTemplateOverrides) SetWeightedCapacity(v float64) *FleetLaunchTemplateOverrides {
  40578. s.WeightedCapacity = &v
  40579. return s
  40580. }
  40581. // Describes overrides for a launch template.
  40582. type FleetLaunchTemplateOverridesRequest struct {
  40583. _ struct{} `type:"structure"`
  40584. // The Availability Zone in which to launch the instances.
  40585. AvailabilityZone *string `type:"string"`
  40586. // The instance type.
  40587. InstanceType *string `type:"string" enum:"InstanceType"`
  40588. // The maximum price per unit hour that you are willing to pay for a Spot Instance.
  40589. MaxPrice *string `type:"string"`
  40590. // The ID of the subnet in which to launch the instances.
  40591. SubnetId *string `type:"string"`
  40592. // The number of units provided by the specified instance type.
  40593. WeightedCapacity *float64 `type:"double"`
  40594. }
  40595. // String returns the string representation
  40596. func (s FleetLaunchTemplateOverridesRequest) String() string {
  40597. return awsutil.Prettify(s)
  40598. }
  40599. // GoString returns the string representation
  40600. func (s FleetLaunchTemplateOverridesRequest) GoString() string {
  40601. return s.String()
  40602. }
  40603. // SetAvailabilityZone sets the AvailabilityZone field's value.
  40604. func (s *FleetLaunchTemplateOverridesRequest) SetAvailabilityZone(v string) *FleetLaunchTemplateOverridesRequest {
  40605. s.AvailabilityZone = &v
  40606. return s
  40607. }
  40608. // SetInstanceType sets the InstanceType field's value.
  40609. func (s *FleetLaunchTemplateOverridesRequest) SetInstanceType(v string) *FleetLaunchTemplateOverridesRequest {
  40610. s.InstanceType = &v
  40611. return s
  40612. }
  40613. // SetMaxPrice sets the MaxPrice field's value.
  40614. func (s *FleetLaunchTemplateOverridesRequest) SetMaxPrice(v string) *FleetLaunchTemplateOverridesRequest {
  40615. s.MaxPrice = &v
  40616. return s
  40617. }
  40618. // SetSubnetId sets the SubnetId field's value.
  40619. func (s *FleetLaunchTemplateOverridesRequest) SetSubnetId(v string) *FleetLaunchTemplateOverridesRequest {
  40620. s.SubnetId = &v
  40621. return s
  40622. }
  40623. // SetWeightedCapacity sets the WeightedCapacity field's value.
  40624. func (s *FleetLaunchTemplateOverridesRequest) SetWeightedCapacity(v float64) *FleetLaunchTemplateOverridesRequest {
  40625. s.WeightedCapacity = &v
  40626. return s
  40627. }
  40628. // Describes a launch template.
  40629. type FleetLaunchTemplateSpecification struct {
  40630. _ struct{} `type:"structure"`
  40631. // The ID of the launch template. You must specify either a template ID or a
  40632. // template name.
  40633. LaunchTemplateId *string `locationName:"launchTemplateId" type:"string"`
  40634. // The name of the launch template. You must specify either a template name
  40635. // or a template ID.
  40636. LaunchTemplateName *string `locationName:"launchTemplateName" min:"3" type:"string"`
  40637. // The version number. By default, the default version of the launch template
  40638. // is used.
  40639. Version *string `locationName:"version" type:"string"`
  40640. }
  40641. // String returns the string representation
  40642. func (s FleetLaunchTemplateSpecification) String() string {
  40643. return awsutil.Prettify(s)
  40644. }
  40645. // GoString returns the string representation
  40646. func (s FleetLaunchTemplateSpecification) GoString() string {
  40647. return s.String()
  40648. }
  40649. // Validate inspects the fields of the type to determine if they are valid.
  40650. func (s *FleetLaunchTemplateSpecification) Validate() error {
  40651. invalidParams := request.ErrInvalidParams{Context: "FleetLaunchTemplateSpecification"}
  40652. if s.LaunchTemplateName != nil && len(*s.LaunchTemplateName) < 3 {
  40653. invalidParams.Add(request.NewErrParamMinLen("LaunchTemplateName", 3))
  40654. }
  40655. if invalidParams.Len() > 0 {
  40656. return invalidParams
  40657. }
  40658. return nil
  40659. }
  40660. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  40661. func (s *FleetLaunchTemplateSpecification) SetLaunchTemplateId(v string) *FleetLaunchTemplateSpecification {
  40662. s.LaunchTemplateId = &v
  40663. return s
  40664. }
  40665. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  40666. func (s *FleetLaunchTemplateSpecification) SetLaunchTemplateName(v string) *FleetLaunchTemplateSpecification {
  40667. s.LaunchTemplateName = &v
  40668. return s
  40669. }
  40670. // SetVersion sets the Version field's value.
  40671. func (s *FleetLaunchTemplateSpecification) SetVersion(v string) *FleetLaunchTemplateSpecification {
  40672. s.Version = &v
  40673. return s
  40674. }
  40675. // The launch template to use. You must specify either the launch template ID
  40676. // or launch template name in the request.
  40677. type FleetLaunchTemplateSpecificationRequest struct {
  40678. _ struct{} `type:"structure"`
  40679. // The ID of the launch template.
  40680. LaunchTemplateId *string `type:"string"`
  40681. // The name of the launch template.
  40682. LaunchTemplateName *string `min:"3" type:"string"`
  40683. // The version number of the launch template.
  40684. Version *string `type:"string"`
  40685. }
  40686. // String returns the string representation
  40687. func (s FleetLaunchTemplateSpecificationRequest) String() string {
  40688. return awsutil.Prettify(s)
  40689. }
  40690. // GoString returns the string representation
  40691. func (s FleetLaunchTemplateSpecificationRequest) GoString() string {
  40692. return s.String()
  40693. }
  40694. // Validate inspects the fields of the type to determine if they are valid.
  40695. func (s *FleetLaunchTemplateSpecificationRequest) Validate() error {
  40696. invalidParams := request.ErrInvalidParams{Context: "FleetLaunchTemplateSpecificationRequest"}
  40697. if s.LaunchTemplateName != nil && len(*s.LaunchTemplateName) < 3 {
  40698. invalidParams.Add(request.NewErrParamMinLen("LaunchTemplateName", 3))
  40699. }
  40700. if invalidParams.Len() > 0 {
  40701. return invalidParams
  40702. }
  40703. return nil
  40704. }
  40705. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  40706. func (s *FleetLaunchTemplateSpecificationRequest) SetLaunchTemplateId(v string) *FleetLaunchTemplateSpecificationRequest {
  40707. s.LaunchTemplateId = &v
  40708. return s
  40709. }
  40710. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  40711. func (s *FleetLaunchTemplateSpecificationRequest) SetLaunchTemplateName(v string) *FleetLaunchTemplateSpecificationRequest {
  40712. s.LaunchTemplateName = &v
  40713. return s
  40714. }
  40715. // SetVersion sets the Version field's value.
  40716. func (s *FleetLaunchTemplateSpecificationRequest) SetVersion(v string) *FleetLaunchTemplateSpecificationRequest {
  40717. s.Version = &v
  40718. return s
  40719. }
  40720. // Describes a flow log.
  40721. type FlowLog struct {
  40722. _ struct{} `type:"structure"`
  40723. // The date and time the flow log was created.
  40724. CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"iso8601"`
  40725. // Information about the error that occurred. Rate limited indicates that CloudWatch
  40726. // logs throttling has been applied for one or more network interfaces, or that
  40727. // you've reached the limit on the number of CloudWatch Logs log groups that
  40728. // you can create. Access error indicates that the IAM role associated with
  40729. // the flow log does not have sufficient permissions to publish to CloudWatch
  40730. // Logs. Unknown error indicates an internal error.
  40731. DeliverLogsErrorMessage *string `locationName:"deliverLogsErrorMessage" type:"string"`
  40732. // The ARN of the IAM role that posts logs to CloudWatch Logs.
  40733. DeliverLogsPermissionArn *string `locationName:"deliverLogsPermissionArn" type:"string"`
  40734. // The status of the logs delivery (SUCCESS | FAILED).
  40735. DeliverLogsStatus *string `locationName:"deliverLogsStatus" type:"string"`
  40736. // The flow log ID.
  40737. FlowLogId *string `locationName:"flowLogId" type:"string"`
  40738. // The status of the flow log (ACTIVE).
  40739. FlowLogStatus *string `locationName:"flowLogStatus" type:"string"`
  40740. // The name of the flow log group.
  40741. LogGroupName *string `locationName:"logGroupName" type:"string"`
  40742. // The ID of the resource on which the flow log was created.
  40743. ResourceId *string `locationName:"resourceId" type:"string"`
  40744. // The type of traffic captured for the flow log.
  40745. TrafficType *string `locationName:"trafficType" type:"string" enum:"TrafficType"`
  40746. }
  40747. // String returns the string representation
  40748. func (s FlowLog) String() string {
  40749. return awsutil.Prettify(s)
  40750. }
  40751. // GoString returns the string representation
  40752. func (s FlowLog) GoString() string {
  40753. return s.String()
  40754. }
  40755. // SetCreationTime sets the CreationTime field's value.
  40756. func (s *FlowLog) SetCreationTime(v time.Time) *FlowLog {
  40757. s.CreationTime = &v
  40758. return s
  40759. }
  40760. // SetDeliverLogsErrorMessage sets the DeliverLogsErrorMessage field's value.
  40761. func (s *FlowLog) SetDeliverLogsErrorMessage(v string) *FlowLog {
  40762. s.DeliverLogsErrorMessage = &v
  40763. return s
  40764. }
  40765. // SetDeliverLogsPermissionArn sets the DeliverLogsPermissionArn field's value.
  40766. func (s *FlowLog) SetDeliverLogsPermissionArn(v string) *FlowLog {
  40767. s.DeliverLogsPermissionArn = &v
  40768. return s
  40769. }
  40770. // SetDeliverLogsStatus sets the DeliverLogsStatus field's value.
  40771. func (s *FlowLog) SetDeliverLogsStatus(v string) *FlowLog {
  40772. s.DeliverLogsStatus = &v
  40773. return s
  40774. }
  40775. // SetFlowLogId sets the FlowLogId field's value.
  40776. func (s *FlowLog) SetFlowLogId(v string) *FlowLog {
  40777. s.FlowLogId = &v
  40778. return s
  40779. }
  40780. // SetFlowLogStatus sets the FlowLogStatus field's value.
  40781. func (s *FlowLog) SetFlowLogStatus(v string) *FlowLog {
  40782. s.FlowLogStatus = &v
  40783. return s
  40784. }
  40785. // SetLogGroupName sets the LogGroupName field's value.
  40786. func (s *FlowLog) SetLogGroupName(v string) *FlowLog {
  40787. s.LogGroupName = &v
  40788. return s
  40789. }
  40790. // SetResourceId sets the ResourceId field's value.
  40791. func (s *FlowLog) SetResourceId(v string) *FlowLog {
  40792. s.ResourceId = &v
  40793. return s
  40794. }
  40795. // SetTrafficType sets the TrafficType field's value.
  40796. func (s *FlowLog) SetTrafficType(v string) *FlowLog {
  40797. s.TrafficType = &v
  40798. return s
  40799. }
  40800. // Describes an Amazon FPGA image (AFI).
  40801. type FpgaImage struct {
  40802. _ struct{} `type:"structure"`
  40803. // The date and time the AFI was created.
  40804. CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"iso8601"`
  40805. // The description of the AFI.
  40806. Description *string `locationName:"description" type:"string"`
  40807. // The global FPGA image identifier (AGFI ID).
  40808. FpgaImageGlobalId *string `locationName:"fpgaImageGlobalId" type:"string"`
  40809. // The FPGA image identifier (AFI ID).
  40810. FpgaImageId *string `locationName:"fpgaImageId" type:"string"`
  40811. // The name of the AFI.
  40812. Name *string `locationName:"name" type:"string"`
  40813. // The alias of the AFI owner. Possible values include self, amazon, and aws-marketplace.
  40814. OwnerAlias *string `locationName:"ownerAlias" type:"string"`
  40815. // The AWS account ID of the AFI owner.
  40816. OwnerId *string `locationName:"ownerId" type:"string"`
  40817. // Information about the PCI bus.
  40818. PciId *PciId `locationName:"pciId" type:"structure"`
  40819. // The product codes for the AFI.
  40820. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  40821. // Indicates whether the AFI is public.
  40822. Public *bool `locationName:"public" type:"boolean"`
  40823. // The version of the AWS Shell that was used to create the bitstream.
  40824. ShellVersion *string `locationName:"shellVersion" type:"string"`
  40825. // Information about the state of the AFI.
  40826. State *FpgaImageState `locationName:"state" type:"structure"`
  40827. // Any tags assigned to the AFI.
  40828. Tags []*Tag `locationName:"tags" locationNameList:"item" type:"list"`
  40829. // The time of the most recent update to the AFI.
  40830. UpdateTime *time.Time `locationName:"updateTime" type:"timestamp" timestampFormat:"iso8601"`
  40831. }
  40832. // String returns the string representation
  40833. func (s FpgaImage) String() string {
  40834. return awsutil.Prettify(s)
  40835. }
  40836. // GoString returns the string representation
  40837. func (s FpgaImage) GoString() string {
  40838. return s.String()
  40839. }
  40840. // SetCreateTime sets the CreateTime field's value.
  40841. func (s *FpgaImage) SetCreateTime(v time.Time) *FpgaImage {
  40842. s.CreateTime = &v
  40843. return s
  40844. }
  40845. // SetDescription sets the Description field's value.
  40846. func (s *FpgaImage) SetDescription(v string) *FpgaImage {
  40847. s.Description = &v
  40848. return s
  40849. }
  40850. // SetFpgaImageGlobalId sets the FpgaImageGlobalId field's value.
  40851. func (s *FpgaImage) SetFpgaImageGlobalId(v string) *FpgaImage {
  40852. s.FpgaImageGlobalId = &v
  40853. return s
  40854. }
  40855. // SetFpgaImageId sets the FpgaImageId field's value.
  40856. func (s *FpgaImage) SetFpgaImageId(v string) *FpgaImage {
  40857. s.FpgaImageId = &v
  40858. return s
  40859. }
  40860. // SetName sets the Name field's value.
  40861. func (s *FpgaImage) SetName(v string) *FpgaImage {
  40862. s.Name = &v
  40863. return s
  40864. }
  40865. // SetOwnerAlias sets the OwnerAlias field's value.
  40866. func (s *FpgaImage) SetOwnerAlias(v string) *FpgaImage {
  40867. s.OwnerAlias = &v
  40868. return s
  40869. }
  40870. // SetOwnerId sets the OwnerId field's value.
  40871. func (s *FpgaImage) SetOwnerId(v string) *FpgaImage {
  40872. s.OwnerId = &v
  40873. return s
  40874. }
  40875. // SetPciId sets the PciId field's value.
  40876. func (s *FpgaImage) SetPciId(v *PciId) *FpgaImage {
  40877. s.PciId = v
  40878. return s
  40879. }
  40880. // SetProductCodes sets the ProductCodes field's value.
  40881. func (s *FpgaImage) SetProductCodes(v []*ProductCode) *FpgaImage {
  40882. s.ProductCodes = v
  40883. return s
  40884. }
  40885. // SetPublic sets the Public field's value.
  40886. func (s *FpgaImage) SetPublic(v bool) *FpgaImage {
  40887. s.Public = &v
  40888. return s
  40889. }
  40890. // SetShellVersion sets the ShellVersion field's value.
  40891. func (s *FpgaImage) SetShellVersion(v string) *FpgaImage {
  40892. s.ShellVersion = &v
  40893. return s
  40894. }
  40895. // SetState sets the State field's value.
  40896. func (s *FpgaImage) SetState(v *FpgaImageState) *FpgaImage {
  40897. s.State = v
  40898. return s
  40899. }
  40900. // SetTags sets the Tags field's value.
  40901. func (s *FpgaImage) SetTags(v []*Tag) *FpgaImage {
  40902. s.Tags = v
  40903. return s
  40904. }
  40905. // SetUpdateTime sets the UpdateTime field's value.
  40906. func (s *FpgaImage) SetUpdateTime(v time.Time) *FpgaImage {
  40907. s.UpdateTime = &v
  40908. return s
  40909. }
  40910. // Describes an Amazon FPGA image (AFI) attribute.
  40911. type FpgaImageAttribute struct {
  40912. _ struct{} `type:"structure"`
  40913. // The description of the AFI.
  40914. Description *string `locationName:"description" type:"string"`
  40915. // The ID of the AFI.
  40916. FpgaImageId *string `locationName:"fpgaImageId" type:"string"`
  40917. // One or more load permissions.
  40918. LoadPermissions []*LoadPermission `locationName:"loadPermissions" locationNameList:"item" type:"list"`
  40919. // The name of the AFI.
  40920. Name *string `locationName:"name" type:"string"`
  40921. // One or more product codes.
  40922. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  40923. }
  40924. // String returns the string representation
  40925. func (s FpgaImageAttribute) String() string {
  40926. return awsutil.Prettify(s)
  40927. }
  40928. // GoString returns the string representation
  40929. func (s FpgaImageAttribute) GoString() string {
  40930. return s.String()
  40931. }
  40932. // SetDescription sets the Description field's value.
  40933. func (s *FpgaImageAttribute) SetDescription(v string) *FpgaImageAttribute {
  40934. s.Description = &v
  40935. return s
  40936. }
  40937. // SetFpgaImageId sets the FpgaImageId field's value.
  40938. func (s *FpgaImageAttribute) SetFpgaImageId(v string) *FpgaImageAttribute {
  40939. s.FpgaImageId = &v
  40940. return s
  40941. }
  40942. // SetLoadPermissions sets the LoadPermissions field's value.
  40943. func (s *FpgaImageAttribute) SetLoadPermissions(v []*LoadPermission) *FpgaImageAttribute {
  40944. s.LoadPermissions = v
  40945. return s
  40946. }
  40947. // SetName sets the Name field's value.
  40948. func (s *FpgaImageAttribute) SetName(v string) *FpgaImageAttribute {
  40949. s.Name = &v
  40950. return s
  40951. }
  40952. // SetProductCodes sets the ProductCodes field's value.
  40953. func (s *FpgaImageAttribute) SetProductCodes(v []*ProductCode) *FpgaImageAttribute {
  40954. s.ProductCodes = v
  40955. return s
  40956. }
  40957. // Describes the state of the bitstream generation process for an Amazon FPGA
  40958. // image (AFI).
  40959. type FpgaImageState struct {
  40960. _ struct{} `type:"structure"`
  40961. // The state. The following are the possible values:
  40962. //
  40963. // * pending - AFI bitstream generation is in progress.
  40964. //
  40965. // * available - The AFI is available for use.
  40966. //
  40967. // * failed - AFI bitstream generation failed.
  40968. //
  40969. // * unavailable - The AFI is no longer available for use.
  40970. Code *string `locationName:"code" type:"string" enum:"FpgaImageStateCode"`
  40971. // If the state is failed, this is the error message.
  40972. Message *string `locationName:"message" type:"string"`
  40973. }
  40974. // String returns the string representation
  40975. func (s FpgaImageState) String() string {
  40976. return awsutil.Prettify(s)
  40977. }
  40978. // GoString returns the string representation
  40979. func (s FpgaImageState) GoString() string {
  40980. return s.String()
  40981. }
  40982. // SetCode sets the Code field's value.
  40983. func (s *FpgaImageState) SetCode(v string) *FpgaImageState {
  40984. s.Code = &v
  40985. return s
  40986. }
  40987. // SetMessage sets the Message field's value.
  40988. func (s *FpgaImageState) SetMessage(v string) *FpgaImageState {
  40989. s.Message = &v
  40990. return s
  40991. }
  40992. // Contains the parameters for GetConsoleOutput.
  40993. type GetConsoleOutputInput struct {
  40994. _ struct{} `type:"structure"`
  40995. // Checks whether you have the required permissions for the action, without
  40996. // actually making the request, and provides an error response. If you have
  40997. // the required permissions, the error response is DryRunOperation. Otherwise,
  40998. // it is UnauthorizedOperation.
  40999. DryRun *bool `locationName:"dryRun" type:"boolean"`
  41000. // The ID of the instance.
  41001. //
  41002. // InstanceId is a required field
  41003. InstanceId *string `type:"string" required:"true"`
  41004. // When enabled, retrieves the latest console output for the instance.
  41005. //
  41006. // Default: disabled (false)
  41007. Latest *bool `type:"boolean"`
  41008. }
  41009. // String returns the string representation
  41010. func (s GetConsoleOutputInput) String() string {
  41011. return awsutil.Prettify(s)
  41012. }
  41013. // GoString returns the string representation
  41014. func (s GetConsoleOutputInput) GoString() string {
  41015. return s.String()
  41016. }
  41017. // Validate inspects the fields of the type to determine if they are valid.
  41018. func (s *GetConsoleOutputInput) Validate() error {
  41019. invalidParams := request.ErrInvalidParams{Context: "GetConsoleOutputInput"}
  41020. if s.InstanceId == nil {
  41021. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  41022. }
  41023. if invalidParams.Len() > 0 {
  41024. return invalidParams
  41025. }
  41026. return nil
  41027. }
  41028. // SetDryRun sets the DryRun field's value.
  41029. func (s *GetConsoleOutputInput) SetDryRun(v bool) *GetConsoleOutputInput {
  41030. s.DryRun = &v
  41031. return s
  41032. }
  41033. // SetInstanceId sets the InstanceId field's value.
  41034. func (s *GetConsoleOutputInput) SetInstanceId(v string) *GetConsoleOutputInput {
  41035. s.InstanceId = &v
  41036. return s
  41037. }
  41038. // SetLatest sets the Latest field's value.
  41039. func (s *GetConsoleOutputInput) SetLatest(v bool) *GetConsoleOutputInput {
  41040. s.Latest = &v
  41041. return s
  41042. }
  41043. // Contains the output of GetConsoleOutput.
  41044. type GetConsoleOutputOutput struct {
  41045. _ struct{} `type:"structure"`
  41046. // The ID of the instance.
  41047. InstanceId *string `locationName:"instanceId" type:"string"`
  41048. // The console output, base64-encoded. If you are using a command line tool,
  41049. // the tool decodes the output for you.
  41050. Output *string `locationName:"output" type:"string"`
  41051. // The time at which the output was last updated.
  41052. Timestamp *time.Time `locationName:"timestamp" type:"timestamp" timestampFormat:"iso8601"`
  41053. }
  41054. // String returns the string representation
  41055. func (s GetConsoleOutputOutput) String() string {
  41056. return awsutil.Prettify(s)
  41057. }
  41058. // GoString returns the string representation
  41059. func (s GetConsoleOutputOutput) GoString() string {
  41060. return s.String()
  41061. }
  41062. // SetInstanceId sets the InstanceId field's value.
  41063. func (s *GetConsoleOutputOutput) SetInstanceId(v string) *GetConsoleOutputOutput {
  41064. s.InstanceId = &v
  41065. return s
  41066. }
  41067. // SetOutput sets the Output field's value.
  41068. func (s *GetConsoleOutputOutput) SetOutput(v string) *GetConsoleOutputOutput {
  41069. s.Output = &v
  41070. return s
  41071. }
  41072. // SetTimestamp sets the Timestamp field's value.
  41073. func (s *GetConsoleOutputOutput) SetTimestamp(v time.Time) *GetConsoleOutputOutput {
  41074. s.Timestamp = &v
  41075. return s
  41076. }
  41077. // Contains the parameters for the request.
  41078. type GetConsoleScreenshotInput struct {
  41079. _ struct{} `type:"structure"`
  41080. // Checks whether you have the required permissions for the action, without
  41081. // actually making the request, and provides an error response. If you have
  41082. // the required permissions, the error response is DryRunOperation. Otherwise,
  41083. // it is UnauthorizedOperation.
  41084. DryRun *bool `type:"boolean"`
  41085. // The ID of the instance.
  41086. //
  41087. // InstanceId is a required field
  41088. InstanceId *string `type:"string" required:"true"`
  41089. // When set to true, acts as keystroke input and wakes up an instance that's
  41090. // in standby or "sleep" mode.
  41091. WakeUp *bool `type:"boolean"`
  41092. }
  41093. // String returns the string representation
  41094. func (s GetConsoleScreenshotInput) String() string {
  41095. return awsutil.Prettify(s)
  41096. }
  41097. // GoString returns the string representation
  41098. func (s GetConsoleScreenshotInput) GoString() string {
  41099. return s.String()
  41100. }
  41101. // Validate inspects the fields of the type to determine if they are valid.
  41102. func (s *GetConsoleScreenshotInput) Validate() error {
  41103. invalidParams := request.ErrInvalidParams{Context: "GetConsoleScreenshotInput"}
  41104. if s.InstanceId == nil {
  41105. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  41106. }
  41107. if invalidParams.Len() > 0 {
  41108. return invalidParams
  41109. }
  41110. return nil
  41111. }
  41112. // SetDryRun sets the DryRun field's value.
  41113. func (s *GetConsoleScreenshotInput) SetDryRun(v bool) *GetConsoleScreenshotInput {
  41114. s.DryRun = &v
  41115. return s
  41116. }
  41117. // SetInstanceId sets the InstanceId field's value.
  41118. func (s *GetConsoleScreenshotInput) SetInstanceId(v string) *GetConsoleScreenshotInput {
  41119. s.InstanceId = &v
  41120. return s
  41121. }
  41122. // SetWakeUp sets the WakeUp field's value.
  41123. func (s *GetConsoleScreenshotInput) SetWakeUp(v bool) *GetConsoleScreenshotInput {
  41124. s.WakeUp = &v
  41125. return s
  41126. }
  41127. // Contains the output of the request.
  41128. type GetConsoleScreenshotOutput struct {
  41129. _ struct{} `type:"structure"`
  41130. // The data that comprises the image.
  41131. ImageData *string `locationName:"imageData" type:"string"`
  41132. // The ID of the instance.
  41133. InstanceId *string `locationName:"instanceId" type:"string"`
  41134. }
  41135. // String returns the string representation
  41136. func (s GetConsoleScreenshotOutput) String() string {
  41137. return awsutil.Prettify(s)
  41138. }
  41139. // GoString returns the string representation
  41140. func (s GetConsoleScreenshotOutput) GoString() string {
  41141. return s.String()
  41142. }
  41143. // SetImageData sets the ImageData field's value.
  41144. func (s *GetConsoleScreenshotOutput) SetImageData(v string) *GetConsoleScreenshotOutput {
  41145. s.ImageData = &v
  41146. return s
  41147. }
  41148. // SetInstanceId sets the InstanceId field's value.
  41149. func (s *GetConsoleScreenshotOutput) SetInstanceId(v string) *GetConsoleScreenshotOutput {
  41150. s.InstanceId = &v
  41151. return s
  41152. }
  41153. type GetHostReservationPurchasePreviewInput struct {
  41154. _ struct{} `type:"structure"`
  41155. // The ID/s of the Dedicated Host/s that the reservation will be associated
  41156. // with.
  41157. //
  41158. // HostIdSet is a required field
  41159. HostIdSet []*string `locationNameList:"item" type:"list" required:"true"`
  41160. // The offering ID of the reservation.
  41161. //
  41162. // OfferingId is a required field
  41163. OfferingId *string `type:"string" required:"true"`
  41164. }
  41165. // String returns the string representation
  41166. func (s GetHostReservationPurchasePreviewInput) String() string {
  41167. return awsutil.Prettify(s)
  41168. }
  41169. // GoString returns the string representation
  41170. func (s GetHostReservationPurchasePreviewInput) GoString() string {
  41171. return s.String()
  41172. }
  41173. // Validate inspects the fields of the type to determine if they are valid.
  41174. func (s *GetHostReservationPurchasePreviewInput) Validate() error {
  41175. invalidParams := request.ErrInvalidParams{Context: "GetHostReservationPurchasePreviewInput"}
  41176. if s.HostIdSet == nil {
  41177. invalidParams.Add(request.NewErrParamRequired("HostIdSet"))
  41178. }
  41179. if s.OfferingId == nil {
  41180. invalidParams.Add(request.NewErrParamRequired("OfferingId"))
  41181. }
  41182. if invalidParams.Len() > 0 {
  41183. return invalidParams
  41184. }
  41185. return nil
  41186. }
  41187. // SetHostIdSet sets the HostIdSet field's value.
  41188. func (s *GetHostReservationPurchasePreviewInput) SetHostIdSet(v []*string) *GetHostReservationPurchasePreviewInput {
  41189. s.HostIdSet = v
  41190. return s
  41191. }
  41192. // SetOfferingId sets the OfferingId field's value.
  41193. func (s *GetHostReservationPurchasePreviewInput) SetOfferingId(v string) *GetHostReservationPurchasePreviewInput {
  41194. s.OfferingId = &v
  41195. return s
  41196. }
  41197. type GetHostReservationPurchasePreviewOutput struct {
  41198. _ struct{} `type:"structure"`
  41199. // The currency in which the totalUpfrontPrice and totalHourlyPrice amounts
  41200. // are specified. At this time, the only supported currency is USD.
  41201. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  41202. // The purchase information of the Dedicated Host Reservation and the Dedicated
  41203. // Hosts associated with it.
  41204. Purchase []*Purchase `locationName:"purchase" locationNameList:"item" type:"list"`
  41205. // The potential total hourly price of the reservation per hour.
  41206. TotalHourlyPrice *string `locationName:"totalHourlyPrice" type:"string"`
  41207. // The potential total upfront price. This is billed immediately.
  41208. TotalUpfrontPrice *string `locationName:"totalUpfrontPrice" type:"string"`
  41209. }
  41210. // String returns the string representation
  41211. func (s GetHostReservationPurchasePreviewOutput) String() string {
  41212. return awsutil.Prettify(s)
  41213. }
  41214. // GoString returns the string representation
  41215. func (s GetHostReservationPurchasePreviewOutput) GoString() string {
  41216. return s.String()
  41217. }
  41218. // SetCurrencyCode sets the CurrencyCode field's value.
  41219. func (s *GetHostReservationPurchasePreviewOutput) SetCurrencyCode(v string) *GetHostReservationPurchasePreviewOutput {
  41220. s.CurrencyCode = &v
  41221. return s
  41222. }
  41223. // SetPurchase sets the Purchase field's value.
  41224. func (s *GetHostReservationPurchasePreviewOutput) SetPurchase(v []*Purchase) *GetHostReservationPurchasePreviewOutput {
  41225. s.Purchase = v
  41226. return s
  41227. }
  41228. // SetTotalHourlyPrice sets the TotalHourlyPrice field's value.
  41229. func (s *GetHostReservationPurchasePreviewOutput) SetTotalHourlyPrice(v string) *GetHostReservationPurchasePreviewOutput {
  41230. s.TotalHourlyPrice = &v
  41231. return s
  41232. }
  41233. // SetTotalUpfrontPrice sets the TotalUpfrontPrice field's value.
  41234. func (s *GetHostReservationPurchasePreviewOutput) SetTotalUpfrontPrice(v string) *GetHostReservationPurchasePreviewOutput {
  41235. s.TotalUpfrontPrice = &v
  41236. return s
  41237. }
  41238. type GetLaunchTemplateDataInput struct {
  41239. _ struct{} `type:"structure"`
  41240. // Checks whether you have the required permissions for the action, without
  41241. // actually making the request, and provides an error response. If you have
  41242. // the required permissions, the error response is DryRunOperation. Otherwise,
  41243. // it is UnauthorizedOperation.
  41244. DryRun *bool `type:"boolean"`
  41245. // The ID of the instance.
  41246. //
  41247. // InstanceId is a required field
  41248. InstanceId *string `type:"string" required:"true"`
  41249. }
  41250. // String returns the string representation
  41251. func (s GetLaunchTemplateDataInput) String() string {
  41252. return awsutil.Prettify(s)
  41253. }
  41254. // GoString returns the string representation
  41255. func (s GetLaunchTemplateDataInput) GoString() string {
  41256. return s.String()
  41257. }
  41258. // Validate inspects the fields of the type to determine if they are valid.
  41259. func (s *GetLaunchTemplateDataInput) Validate() error {
  41260. invalidParams := request.ErrInvalidParams{Context: "GetLaunchTemplateDataInput"}
  41261. if s.InstanceId == nil {
  41262. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  41263. }
  41264. if invalidParams.Len() > 0 {
  41265. return invalidParams
  41266. }
  41267. return nil
  41268. }
  41269. // SetDryRun sets the DryRun field's value.
  41270. func (s *GetLaunchTemplateDataInput) SetDryRun(v bool) *GetLaunchTemplateDataInput {
  41271. s.DryRun = &v
  41272. return s
  41273. }
  41274. // SetInstanceId sets the InstanceId field's value.
  41275. func (s *GetLaunchTemplateDataInput) SetInstanceId(v string) *GetLaunchTemplateDataInput {
  41276. s.InstanceId = &v
  41277. return s
  41278. }
  41279. type GetLaunchTemplateDataOutput struct {
  41280. _ struct{} `type:"structure"`
  41281. // The instance data.
  41282. LaunchTemplateData *ResponseLaunchTemplateData `locationName:"launchTemplateData" type:"structure"`
  41283. }
  41284. // String returns the string representation
  41285. func (s GetLaunchTemplateDataOutput) String() string {
  41286. return awsutil.Prettify(s)
  41287. }
  41288. // GoString returns the string representation
  41289. func (s GetLaunchTemplateDataOutput) GoString() string {
  41290. return s.String()
  41291. }
  41292. // SetLaunchTemplateData sets the LaunchTemplateData field's value.
  41293. func (s *GetLaunchTemplateDataOutput) SetLaunchTemplateData(v *ResponseLaunchTemplateData) *GetLaunchTemplateDataOutput {
  41294. s.LaunchTemplateData = v
  41295. return s
  41296. }
  41297. // Contains the parameters for GetPasswordData.
  41298. type GetPasswordDataInput struct {
  41299. _ struct{} `type:"structure"`
  41300. // Checks whether you have the required permissions for the action, without
  41301. // actually making the request, and provides an error response. If you have
  41302. // the required permissions, the error response is DryRunOperation. Otherwise,
  41303. // it is UnauthorizedOperation.
  41304. DryRun *bool `locationName:"dryRun" type:"boolean"`
  41305. // The ID of the Windows instance.
  41306. //
  41307. // InstanceId is a required field
  41308. InstanceId *string `type:"string" required:"true"`
  41309. }
  41310. // String returns the string representation
  41311. func (s GetPasswordDataInput) String() string {
  41312. return awsutil.Prettify(s)
  41313. }
  41314. // GoString returns the string representation
  41315. func (s GetPasswordDataInput) GoString() string {
  41316. return s.String()
  41317. }
  41318. // Validate inspects the fields of the type to determine if they are valid.
  41319. func (s *GetPasswordDataInput) Validate() error {
  41320. invalidParams := request.ErrInvalidParams{Context: "GetPasswordDataInput"}
  41321. if s.InstanceId == nil {
  41322. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  41323. }
  41324. if invalidParams.Len() > 0 {
  41325. return invalidParams
  41326. }
  41327. return nil
  41328. }
  41329. // SetDryRun sets the DryRun field's value.
  41330. func (s *GetPasswordDataInput) SetDryRun(v bool) *GetPasswordDataInput {
  41331. s.DryRun = &v
  41332. return s
  41333. }
  41334. // SetInstanceId sets the InstanceId field's value.
  41335. func (s *GetPasswordDataInput) SetInstanceId(v string) *GetPasswordDataInput {
  41336. s.InstanceId = &v
  41337. return s
  41338. }
  41339. // Contains the output of GetPasswordData.
  41340. type GetPasswordDataOutput struct {
  41341. _ struct{} `type:"structure"`
  41342. // The ID of the Windows instance.
  41343. InstanceId *string `locationName:"instanceId" type:"string"`
  41344. // The password of the instance. Returns an empty string if the password is
  41345. // not available.
  41346. PasswordData *string `locationName:"passwordData" type:"string"`
  41347. // The time the data was last updated.
  41348. Timestamp *time.Time `locationName:"timestamp" type:"timestamp" timestampFormat:"iso8601"`
  41349. }
  41350. // String returns the string representation
  41351. func (s GetPasswordDataOutput) String() string {
  41352. return awsutil.Prettify(s)
  41353. }
  41354. // GoString returns the string representation
  41355. func (s GetPasswordDataOutput) GoString() string {
  41356. return s.String()
  41357. }
  41358. // SetInstanceId sets the InstanceId field's value.
  41359. func (s *GetPasswordDataOutput) SetInstanceId(v string) *GetPasswordDataOutput {
  41360. s.InstanceId = &v
  41361. return s
  41362. }
  41363. // SetPasswordData sets the PasswordData field's value.
  41364. func (s *GetPasswordDataOutput) SetPasswordData(v string) *GetPasswordDataOutput {
  41365. s.PasswordData = &v
  41366. return s
  41367. }
  41368. // SetTimestamp sets the Timestamp field's value.
  41369. func (s *GetPasswordDataOutput) SetTimestamp(v time.Time) *GetPasswordDataOutput {
  41370. s.Timestamp = &v
  41371. return s
  41372. }
  41373. // Contains the parameters for GetReservedInstanceExchangeQuote.
  41374. type GetReservedInstancesExchangeQuoteInput struct {
  41375. _ struct{} `type:"structure"`
  41376. // Checks whether you have the required permissions for the action, without
  41377. // actually making the request, and provides an error response. If you have
  41378. // the required permissions, the error response is DryRunOperation. Otherwise,
  41379. // it is UnauthorizedOperation.
  41380. DryRun *bool `type:"boolean"`
  41381. // The IDs of the Convertible Reserved Instances to exchange.
  41382. //
  41383. // ReservedInstanceIds is a required field
  41384. ReservedInstanceIds []*string `locationName:"ReservedInstanceId" locationNameList:"ReservedInstanceId" type:"list" required:"true"`
  41385. // The configuration of the target Convertible Reserved Instance to exchange
  41386. // for your current Convertible Reserved Instances.
  41387. TargetConfigurations []*TargetConfigurationRequest `locationName:"TargetConfiguration" locationNameList:"TargetConfigurationRequest" type:"list"`
  41388. }
  41389. // String returns the string representation
  41390. func (s GetReservedInstancesExchangeQuoteInput) String() string {
  41391. return awsutil.Prettify(s)
  41392. }
  41393. // GoString returns the string representation
  41394. func (s GetReservedInstancesExchangeQuoteInput) GoString() string {
  41395. return s.String()
  41396. }
  41397. // Validate inspects the fields of the type to determine if they are valid.
  41398. func (s *GetReservedInstancesExchangeQuoteInput) Validate() error {
  41399. invalidParams := request.ErrInvalidParams{Context: "GetReservedInstancesExchangeQuoteInput"}
  41400. if s.ReservedInstanceIds == nil {
  41401. invalidParams.Add(request.NewErrParamRequired("ReservedInstanceIds"))
  41402. }
  41403. if s.TargetConfigurations != nil {
  41404. for i, v := range s.TargetConfigurations {
  41405. if v == nil {
  41406. continue
  41407. }
  41408. if err := v.Validate(); err != nil {
  41409. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TargetConfigurations", i), err.(request.ErrInvalidParams))
  41410. }
  41411. }
  41412. }
  41413. if invalidParams.Len() > 0 {
  41414. return invalidParams
  41415. }
  41416. return nil
  41417. }
  41418. // SetDryRun sets the DryRun field's value.
  41419. func (s *GetReservedInstancesExchangeQuoteInput) SetDryRun(v bool) *GetReservedInstancesExchangeQuoteInput {
  41420. s.DryRun = &v
  41421. return s
  41422. }
  41423. // SetReservedInstanceIds sets the ReservedInstanceIds field's value.
  41424. func (s *GetReservedInstancesExchangeQuoteInput) SetReservedInstanceIds(v []*string) *GetReservedInstancesExchangeQuoteInput {
  41425. s.ReservedInstanceIds = v
  41426. return s
  41427. }
  41428. // SetTargetConfigurations sets the TargetConfigurations field's value.
  41429. func (s *GetReservedInstancesExchangeQuoteInput) SetTargetConfigurations(v []*TargetConfigurationRequest) *GetReservedInstancesExchangeQuoteInput {
  41430. s.TargetConfigurations = v
  41431. return s
  41432. }
  41433. // Contains the output of GetReservedInstancesExchangeQuote.
  41434. type GetReservedInstancesExchangeQuoteOutput struct {
  41435. _ struct{} `type:"structure"`
  41436. // The currency of the transaction.
  41437. CurrencyCode *string `locationName:"currencyCode" type:"string"`
  41438. // If true, the exchange is valid. If false, the exchange cannot be completed.
  41439. IsValidExchange *bool `locationName:"isValidExchange" type:"boolean"`
  41440. // The new end date of the reservation term.
  41441. OutputReservedInstancesWillExpireAt *time.Time `locationName:"outputReservedInstancesWillExpireAt" type:"timestamp" timestampFormat:"iso8601"`
  41442. // The total true upfront charge for the exchange.
  41443. PaymentDue *string `locationName:"paymentDue" type:"string"`
  41444. // The cost associated with the Reserved Instance.
  41445. ReservedInstanceValueRollup *ReservationValue `locationName:"reservedInstanceValueRollup" type:"structure"`
  41446. // The configuration of your Convertible Reserved Instances.
  41447. ReservedInstanceValueSet []*ReservedInstanceReservationValue `locationName:"reservedInstanceValueSet" locationNameList:"item" type:"list"`
  41448. // The cost associated with the Reserved Instance.
  41449. TargetConfigurationValueRollup *ReservationValue `locationName:"targetConfigurationValueRollup" type:"structure"`
  41450. // The values of the target Convertible Reserved Instances.
  41451. TargetConfigurationValueSet []*TargetReservationValue `locationName:"targetConfigurationValueSet" locationNameList:"item" type:"list"`
  41452. // Describes the reason why the exchange cannot be completed.
  41453. ValidationFailureReason *string `locationName:"validationFailureReason" type:"string"`
  41454. }
  41455. // String returns the string representation
  41456. func (s GetReservedInstancesExchangeQuoteOutput) String() string {
  41457. return awsutil.Prettify(s)
  41458. }
  41459. // GoString returns the string representation
  41460. func (s GetReservedInstancesExchangeQuoteOutput) GoString() string {
  41461. return s.String()
  41462. }
  41463. // SetCurrencyCode sets the CurrencyCode field's value.
  41464. func (s *GetReservedInstancesExchangeQuoteOutput) SetCurrencyCode(v string) *GetReservedInstancesExchangeQuoteOutput {
  41465. s.CurrencyCode = &v
  41466. return s
  41467. }
  41468. // SetIsValidExchange sets the IsValidExchange field's value.
  41469. func (s *GetReservedInstancesExchangeQuoteOutput) SetIsValidExchange(v bool) *GetReservedInstancesExchangeQuoteOutput {
  41470. s.IsValidExchange = &v
  41471. return s
  41472. }
  41473. // SetOutputReservedInstancesWillExpireAt sets the OutputReservedInstancesWillExpireAt field's value.
  41474. func (s *GetReservedInstancesExchangeQuoteOutput) SetOutputReservedInstancesWillExpireAt(v time.Time) *GetReservedInstancesExchangeQuoteOutput {
  41475. s.OutputReservedInstancesWillExpireAt = &v
  41476. return s
  41477. }
  41478. // SetPaymentDue sets the PaymentDue field's value.
  41479. func (s *GetReservedInstancesExchangeQuoteOutput) SetPaymentDue(v string) *GetReservedInstancesExchangeQuoteOutput {
  41480. s.PaymentDue = &v
  41481. return s
  41482. }
  41483. // SetReservedInstanceValueRollup sets the ReservedInstanceValueRollup field's value.
  41484. func (s *GetReservedInstancesExchangeQuoteOutput) SetReservedInstanceValueRollup(v *ReservationValue) *GetReservedInstancesExchangeQuoteOutput {
  41485. s.ReservedInstanceValueRollup = v
  41486. return s
  41487. }
  41488. // SetReservedInstanceValueSet sets the ReservedInstanceValueSet field's value.
  41489. func (s *GetReservedInstancesExchangeQuoteOutput) SetReservedInstanceValueSet(v []*ReservedInstanceReservationValue) *GetReservedInstancesExchangeQuoteOutput {
  41490. s.ReservedInstanceValueSet = v
  41491. return s
  41492. }
  41493. // SetTargetConfigurationValueRollup sets the TargetConfigurationValueRollup field's value.
  41494. func (s *GetReservedInstancesExchangeQuoteOutput) SetTargetConfigurationValueRollup(v *ReservationValue) *GetReservedInstancesExchangeQuoteOutput {
  41495. s.TargetConfigurationValueRollup = v
  41496. return s
  41497. }
  41498. // SetTargetConfigurationValueSet sets the TargetConfigurationValueSet field's value.
  41499. func (s *GetReservedInstancesExchangeQuoteOutput) SetTargetConfigurationValueSet(v []*TargetReservationValue) *GetReservedInstancesExchangeQuoteOutput {
  41500. s.TargetConfigurationValueSet = v
  41501. return s
  41502. }
  41503. // SetValidationFailureReason sets the ValidationFailureReason field's value.
  41504. func (s *GetReservedInstancesExchangeQuoteOutput) SetValidationFailureReason(v string) *GetReservedInstancesExchangeQuoteOutput {
  41505. s.ValidationFailureReason = &v
  41506. return s
  41507. }
  41508. // Describes a security group.
  41509. type GroupIdentifier struct {
  41510. _ struct{} `type:"structure"`
  41511. // The ID of the security group.
  41512. GroupId *string `locationName:"groupId" type:"string"`
  41513. // The name of the security group.
  41514. GroupName *string `locationName:"groupName" type:"string"`
  41515. }
  41516. // String returns the string representation
  41517. func (s GroupIdentifier) String() string {
  41518. return awsutil.Prettify(s)
  41519. }
  41520. // GoString returns the string representation
  41521. func (s GroupIdentifier) GoString() string {
  41522. return s.String()
  41523. }
  41524. // SetGroupId sets the GroupId field's value.
  41525. func (s *GroupIdentifier) SetGroupId(v string) *GroupIdentifier {
  41526. s.GroupId = &v
  41527. return s
  41528. }
  41529. // SetGroupName sets the GroupName field's value.
  41530. func (s *GroupIdentifier) SetGroupName(v string) *GroupIdentifier {
  41531. s.GroupName = &v
  41532. return s
  41533. }
  41534. // Describes an event in the history of the Spot Fleet request.
  41535. type HistoryRecord struct {
  41536. _ struct{} `type:"structure"`
  41537. // Information about the event.
  41538. //
  41539. // EventInformation is a required field
  41540. EventInformation *EventInformation `locationName:"eventInformation" type:"structure" required:"true"`
  41541. // The event type.
  41542. //
  41543. // * error - An error with the Spot Fleet request.
  41544. //
  41545. // * fleetRequestChange - A change in the status or configuration of the
  41546. // Spot Fleet request.
  41547. //
  41548. // * instanceChange - An instance was launched or terminated.
  41549. //
  41550. // * Information - An informational event.
  41551. //
  41552. // EventType is a required field
  41553. EventType *string `locationName:"eventType" type:"string" required:"true" enum:"EventType"`
  41554. // The date and time of the event, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  41555. //
  41556. // Timestamp is a required field
  41557. Timestamp *time.Time `locationName:"timestamp" type:"timestamp" timestampFormat:"iso8601" required:"true"`
  41558. }
  41559. // String returns the string representation
  41560. func (s HistoryRecord) String() string {
  41561. return awsutil.Prettify(s)
  41562. }
  41563. // GoString returns the string representation
  41564. func (s HistoryRecord) GoString() string {
  41565. return s.String()
  41566. }
  41567. // SetEventInformation sets the EventInformation field's value.
  41568. func (s *HistoryRecord) SetEventInformation(v *EventInformation) *HistoryRecord {
  41569. s.EventInformation = v
  41570. return s
  41571. }
  41572. // SetEventType sets the EventType field's value.
  41573. func (s *HistoryRecord) SetEventType(v string) *HistoryRecord {
  41574. s.EventType = &v
  41575. return s
  41576. }
  41577. // SetTimestamp sets the Timestamp field's value.
  41578. func (s *HistoryRecord) SetTimestamp(v time.Time) *HistoryRecord {
  41579. s.Timestamp = &v
  41580. return s
  41581. }
  41582. // Describes an event in the history of the EC2 Fleet.
  41583. type HistoryRecordEntry struct {
  41584. _ struct{} `type:"structure"`
  41585. // Information about the event.
  41586. EventInformation *EventInformation `locationName:"eventInformation" type:"structure"`
  41587. // The event type.
  41588. EventType *string `locationName:"eventType" type:"string" enum:"FleetEventType"`
  41589. // The date and time of the event, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  41590. Timestamp *time.Time `locationName:"timestamp" type:"timestamp" timestampFormat:"iso8601"`
  41591. }
  41592. // String returns the string representation
  41593. func (s HistoryRecordEntry) String() string {
  41594. return awsutil.Prettify(s)
  41595. }
  41596. // GoString returns the string representation
  41597. func (s HistoryRecordEntry) GoString() string {
  41598. return s.String()
  41599. }
  41600. // SetEventInformation sets the EventInformation field's value.
  41601. func (s *HistoryRecordEntry) SetEventInformation(v *EventInformation) *HistoryRecordEntry {
  41602. s.EventInformation = v
  41603. return s
  41604. }
  41605. // SetEventType sets the EventType field's value.
  41606. func (s *HistoryRecordEntry) SetEventType(v string) *HistoryRecordEntry {
  41607. s.EventType = &v
  41608. return s
  41609. }
  41610. // SetTimestamp sets the Timestamp field's value.
  41611. func (s *HistoryRecordEntry) SetTimestamp(v time.Time) *HistoryRecordEntry {
  41612. s.Timestamp = &v
  41613. return s
  41614. }
  41615. // Describes the properties of the Dedicated Host.
  41616. type Host struct {
  41617. _ struct{} `type:"structure"`
  41618. // The time that the Dedicated Host was allocated.
  41619. AllocationTime *time.Time `locationName:"allocationTime" type:"timestamp" timestampFormat:"iso8601"`
  41620. // Whether auto-placement is on or off.
  41621. AutoPlacement *string `locationName:"autoPlacement" type:"string" enum:"AutoPlacement"`
  41622. // The Availability Zone of the Dedicated Host.
  41623. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  41624. // The number of new instances that can be launched onto the Dedicated Host.
  41625. AvailableCapacity *AvailableCapacity `locationName:"availableCapacity" type:"structure"`
  41626. // Unique, case-sensitive identifier you provide to ensure idempotency of the
  41627. // request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html)
  41628. // in the Amazon Elastic Compute Cloud User Guide.
  41629. ClientToken *string `locationName:"clientToken" type:"string"`
  41630. // The ID of the Dedicated Host.
  41631. HostId *string `locationName:"hostId" type:"string"`
  41632. // The hardware specifications of the Dedicated Host.
  41633. HostProperties *HostProperties `locationName:"hostProperties" type:"structure"`
  41634. // The reservation ID of the Dedicated Host. This returns a null response if
  41635. // the Dedicated Host doesn't have an associated reservation.
  41636. HostReservationId *string `locationName:"hostReservationId" type:"string"`
  41637. // The IDs and instance type that are currently running on the Dedicated Host.
  41638. Instances []*HostInstance `locationName:"instances" locationNameList:"item" type:"list"`
  41639. // The time that the Dedicated Host was released.
  41640. ReleaseTime *time.Time `locationName:"releaseTime" type:"timestamp" timestampFormat:"iso8601"`
  41641. // The Dedicated Host's state.
  41642. State *string `locationName:"state" type:"string" enum:"AllocationState"`
  41643. }
  41644. // String returns the string representation
  41645. func (s Host) String() string {
  41646. return awsutil.Prettify(s)
  41647. }
  41648. // GoString returns the string representation
  41649. func (s Host) GoString() string {
  41650. return s.String()
  41651. }
  41652. // SetAllocationTime sets the AllocationTime field's value.
  41653. func (s *Host) SetAllocationTime(v time.Time) *Host {
  41654. s.AllocationTime = &v
  41655. return s
  41656. }
  41657. // SetAutoPlacement sets the AutoPlacement field's value.
  41658. func (s *Host) SetAutoPlacement(v string) *Host {
  41659. s.AutoPlacement = &v
  41660. return s
  41661. }
  41662. // SetAvailabilityZone sets the AvailabilityZone field's value.
  41663. func (s *Host) SetAvailabilityZone(v string) *Host {
  41664. s.AvailabilityZone = &v
  41665. return s
  41666. }
  41667. // SetAvailableCapacity sets the AvailableCapacity field's value.
  41668. func (s *Host) SetAvailableCapacity(v *AvailableCapacity) *Host {
  41669. s.AvailableCapacity = v
  41670. return s
  41671. }
  41672. // SetClientToken sets the ClientToken field's value.
  41673. func (s *Host) SetClientToken(v string) *Host {
  41674. s.ClientToken = &v
  41675. return s
  41676. }
  41677. // SetHostId sets the HostId field's value.
  41678. func (s *Host) SetHostId(v string) *Host {
  41679. s.HostId = &v
  41680. return s
  41681. }
  41682. // SetHostProperties sets the HostProperties field's value.
  41683. func (s *Host) SetHostProperties(v *HostProperties) *Host {
  41684. s.HostProperties = v
  41685. return s
  41686. }
  41687. // SetHostReservationId sets the HostReservationId field's value.
  41688. func (s *Host) SetHostReservationId(v string) *Host {
  41689. s.HostReservationId = &v
  41690. return s
  41691. }
  41692. // SetInstances sets the Instances field's value.
  41693. func (s *Host) SetInstances(v []*HostInstance) *Host {
  41694. s.Instances = v
  41695. return s
  41696. }
  41697. // SetReleaseTime sets the ReleaseTime field's value.
  41698. func (s *Host) SetReleaseTime(v time.Time) *Host {
  41699. s.ReleaseTime = &v
  41700. return s
  41701. }
  41702. // SetState sets the State field's value.
  41703. func (s *Host) SetState(v string) *Host {
  41704. s.State = &v
  41705. return s
  41706. }
  41707. // Describes an instance running on a Dedicated Host.
  41708. type HostInstance struct {
  41709. _ struct{} `type:"structure"`
  41710. // the IDs of instances that are running on the Dedicated Host.
  41711. InstanceId *string `locationName:"instanceId" type:"string"`
  41712. // The instance type size (for example, m3.medium) of the running instance.
  41713. InstanceType *string `locationName:"instanceType" type:"string"`
  41714. }
  41715. // String returns the string representation
  41716. func (s HostInstance) String() string {
  41717. return awsutil.Prettify(s)
  41718. }
  41719. // GoString returns the string representation
  41720. func (s HostInstance) GoString() string {
  41721. return s.String()
  41722. }
  41723. // SetInstanceId sets the InstanceId field's value.
  41724. func (s *HostInstance) SetInstanceId(v string) *HostInstance {
  41725. s.InstanceId = &v
  41726. return s
  41727. }
  41728. // SetInstanceType sets the InstanceType field's value.
  41729. func (s *HostInstance) SetInstanceType(v string) *HostInstance {
  41730. s.InstanceType = &v
  41731. return s
  41732. }
  41733. // Details about the Dedicated Host Reservation offering.
  41734. type HostOffering struct {
  41735. _ struct{} `type:"structure"`
  41736. // The currency of the offering.
  41737. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  41738. // The duration of the offering (in seconds).
  41739. Duration *int64 `locationName:"duration" type:"integer"`
  41740. // The hourly price of the offering.
  41741. HourlyPrice *string `locationName:"hourlyPrice" type:"string"`
  41742. // The instance family of the offering.
  41743. InstanceFamily *string `locationName:"instanceFamily" type:"string"`
  41744. // The ID of the offering.
  41745. OfferingId *string `locationName:"offeringId" type:"string"`
  41746. // The available payment option.
  41747. PaymentOption *string `locationName:"paymentOption" type:"string" enum:"PaymentOption"`
  41748. // The upfront price of the offering. Does not apply to No Upfront offerings.
  41749. UpfrontPrice *string `locationName:"upfrontPrice" type:"string"`
  41750. }
  41751. // String returns the string representation
  41752. func (s HostOffering) String() string {
  41753. return awsutil.Prettify(s)
  41754. }
  41755. // GoString returns the string representation
  41756. func (s HostOffering) GoString() string {
  41757. return s.String()
  41758. }
  41759. // SetCurrencyCode sets the CurrencyCode field's value.
  41760. func (s *HostOffering) SetCurrencyCode(v string) *HostOffering {
  41761. s.CurrencyCode = &v
  41762. return s
  41763. }
  41764. // SetDuration sets the Duration field's value.
  41765. func (s *HostOffering) SetDuration(v int64) *HostOffering {
  41766. s.Duration = &v
  41767. return s
  41768. }
  41769. // SetHourlyPrice sets the HourlyPrice field's value.
  41770. func (s *HostOffering) SetHourlyPrice(v string) *HostOffering {
  41771. s.HourlyPrice = &v
  41772. return s
  41773. }
  41774. // SetInstanceFamily sets the InstanceFamily field's value.
  41775. func (s *HostOffering) SetInstanceFamily(v string) *HostOffering {
  41776. s.InstanceFamily = &v
  41777. return s
  41778. }
  41779. // SetOfferingId sets the OfferingId field's value.
  41780. func (s *HostOffering) SetOfferingId(v string) *HostOffering {
  41781. s.OfferingId = &v
  41782. return s
  41783. }
  41784. // SetPaymentOption sets the PaymentOption field's value.
  41785. func (s *HostOffering) SetPaymentOption(v string) *HostOffering {
  41786. s.PaymentOption = &v
  41787. return s
  41788. }
  41789. // SetUpfrontPrice sets the UpfrontPrice field's value.
  41790. func (s *HostOffering) SetUpfrontPrice(v string) *HostOffering {
  41791. s.UpfrontPrice = &v
  41792. return s
  41793. }
  41794. // Describes properties of a Dedicated Host.
  41795. type HostProperties struct {
  41796. _ struct{} `type:"structure"`
  41797. // The number of cores on the Dedicated Host.
  41798. Cores *int64 `locationName:"cores" type:"integer"`
  41799. // The instance type size that the Dedicated Host supports (for example, m3.medium).
  41800. InstanceType *string `locationName:"instanceType" type:"string"`
  41801. // The number of sockets on the Dedicated Host.
  41802. Sockets *int64 `locationName:"sockets" type:"integer"`
  41803. // The number of vCPUs on the Dedicated Host.
  41804. TotalVCpus *int64 `locationName:"totalVCpus" type:"integer"`
  41805. }
  41806. // String returns the string representation
  41807. func (s HostProperties) String() string {
  41808. return awsutil.Prettify(s)
  41809. }
  41810. // GoString returns the string representation
  41811. func (s HostProperties) GoString() string {
  41812. return s.String()
  41813. }
  41814. // SetCores sets the Cores field's value.
  41815. func (s *HostProperties) SetCores(v int64) *HostProperties {
  41816. s.Cores = &v
  41817. return s
  41818. }
  41819. // SetInstanceType sets the InstanceType field's value.
  41820. func (s *HostProperties) SetInstanceType(v string) *HostProperties {
  41821. s.InstanceType = &v
  41822. return s
  41823. }
  41824. // SetSockets sets the Sockets field's value.
  41825. func (s *HostProperties) SetSockets(v int64) *HostProperties {
  41826. s.Sockets = &v
  41827. return s
  41828. }
  41829. // SetTotalVCpus sets the TotalVCpus field's value.
  41830. func (s *HostProperties) SetTotalVCpus(v int64) *HostProperties {
  41831. s.TotalVCpus = &v
  41832. return s
  41833. }
  41834. // Details about the Dedicated Host Reservation and associated Dedicated Hosts.
  41835. type HostReservation struct {
  41836. _ struct{} `type:"structure"`
  41837. // The number of Dedicated Hosts the reservation is associated with.
  41838. Count *int64 `locationName:"count" type:"integer"`
  41839. // The currency in which the upfrontPrice and hourlyPrice amounts are specified.
  41840. // At this time, the only supported currency is USD.
  41841. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  41842. // The length of the reservation's term, specified in seconds. Can be 31536000
  41843. // (1 year) | 94608000 (3 years).
  41844. Duration *int64 `locationName:"duration" type:"integer"`
  41845. // The date and time that the reservation ends.
  41846. End *time.Time `locationName:"end" type:"timestamp" timestampFormat:"iso8601"`
  41847. // The IDs of the Dedicated Hosts associated with the reservation.
  41848. HostIdSet []*string `locationName:"hostIdSet" locationNameList:"item" type:"list"`
  41849. // The ID of the reservation that specifies the associated Dedicated Hosts.
  41850. HostReservationId *string `locationName:"hostReservationId" type:"string"`
  41851. // The hourly price of the reservation.
  41852. HourlyPrice *string `locationName:"hourlyPrice" type:"string"`
  41853. // The instance family of the Dedicated Host Reservation. The instance family
  41854. // on the Dedicated Host must be the same in order for it to benefit from the
  41855. // reservation.
  41856. InstanceFamily *string `locationName:"instanceFamily" type:"string"`
  41857. // The ID of the reservation. This remains the same regardless of which Dedicated
  41858. // Hosts are associated with it.
  41859. OfferingId *string `locationName:"offeringId" type:"string"`
  41860. // The payment option selected for this reservation.
  41861. PaymentOption *string `locationName:"paymentOption" type:"string" enum:"PaymentOption"`
  41862. // The date and time that the reservation started.
  41863. Start *time.Time `locationName:"start" type:"timestamp" timestampFormat:"iso8601"`
  41864. // The state of the reservation.
  41865. State *string `locationName:"state" type:"string" enum:"ReservationState"`
  41866. // The upfront price of the reservation.
  41867. UpfrontPrice *string `locationName:"upfrontPrice" type:"string"`
  41868. }
  41869. // String returns the string representation
  41870. func (s HostReservation) String() string {
  41871. return awsutil.Prettify(s)
  41872. }
  41873. // GoString returns the string representation
  41874. func (s HostReservation) GoString() string {
  41875. return s.String()
  41876. }
  41877. // SetCount sets the Count field's value.
  41878. func (s *HostReservation) SetCount(v int64) *HostReservation {
  41879. s.Count = &v
  41880. return s
  41881. }
  41882. // SetCurrencyCode sets the CurrencyCode field's value.
  41883. func (s *HostReservation) SetCurrencyCode(v string) *HostReservation {
  41884. s.CurrencyCode = &v
  41885. return s
  41886. }
  41887. // SetDuration sets the Duration field's value.
  41888. func (s *HostReservation) SetDuration(v int64) *HostReservation {
  41889. s.Duration = &v
  41890. return s
  41891. }
  41892. // SetEnd sets the End field's value.
  41893. func (s *HostReservation) SetEnd(v time.Time) *HostReservation {
  41894. s.End = &v
  41895. return s
  41896. }
  41897. // SetHostIdSet sets the HostIdSet field's value.
  41898. func (s *HostReservation) SetHostIdSet(v []*string) *HostReservation {
  41899. s.HostIdSet = v
  41900. return s
  41901. }
  41902. // SetHostReservationId sets the HostReservationId field's value.
  41903. func (s *HostReservation) SetHostReservationId(v string) *HostReservation {
  41904. s.HostReservationId = &v
  41905. return s
  41906. }
  41907. // SetHourlyPrice sets the HourlyPrice field's value.
  41908. func (s *HostReservation) SetHourlyPrice(v string) *HostReservation {
  41909. s.HourlyPrice = &v
  41910. return s
  41911. }
  41912. // SetInstanceFamily sets the InstanceFamily field's value.
  41913. func (s *HostReservation) SetInstanceFamily(v string) *HostReservation {
  41914. s.InstanceFamily = &v
  41915. return s
  41916. }
  41917. // SetOfferingId sets the OfferingId field's value.
  41918. func (s *HostReservation) SetOfferingId(v string) *HostReservation {
  41919. s.OfferingId = &v
  41920. return s
  41921. }
  41922. // SetPaymentOption sets the PaymentOption field's value.
  41923. func (s *HostReservation) SetPaymentOption(v string) *HostReservation {
  41924. s.PaymentOption = &v
  41925. return s
  41926. }
  41927. // SetStart sets the Start field's value.
  41928. func (s *HostReservation) SetStart(v time.Time) *HostReservation {
  41929. s.Start = &v
  41930. return s
  41931. }
  41932. // SetState sets the State field's value.
  41933. func (s *HostReservation) SetState(v string) *HostReservation {
  41934. s.State = &v
  41935. return s
  41936. }
  41937. // SetUpfrontPrice sets the UpfrontPrice field's value.
  41938. func (s *HostReservation) SetUpfrontPrice(v string) *HostReservation {
  41939. s.UpfrontPrice = &v
  41940. return s
  41941. }
  41942. // Describes an IAM instance profile.
  41943. type IamInstanceProfile struct {
  41944. _ struct{} `type:"structure"`
  41945. // The Amazon Resource Name (ARN) of the instance profile.
  41946. Arn *string `locationName:"arn" type:"string"`
  41947. // The ID of the instance profile.
  41948. Id *string `locationName:"id" type:"string"`
  41949. }
  41950. // String returns the string representation
  41951. func (s IamInstanceProfile) String() string {
  41952. return awsutil.Prettify(s)
  41953. }
  41954. // GoString returns the string representation
  41955. func (s IamInstanceProfile) GoString() string {
  41956. return s.String()
  41957. }
  41958. // SetArn sets the Arn field's value.
  41959. func (s *IamInstanceProfile) SetArn(v string) *IamInstanceProfile {
  41960. s.Arn = &v
  41961. return s
  41962. }
  41963. // SetId sets the Id field's value.
  41964. func (s *IamInstanceProfile) SetId(v string) *IamInstanceProfile {
  41965. s.Id = &v
  41966. return s
  41967. }
  41968. // Describes an association between an IAM instance profile and an instance.
  41969. type IamInstanceProfileAssociation struct {
  41970. _ struct{} `type:"structure"`
  41971. // The ID of the association.
  41972. AssociationId *string `locationName:"associationId" type:"string"`
  41973. // The IAM instance profile.
  41974. IamInstanceProfile *IamInstanceProfile `locationName:"iamInstanceProfile" type:"structure"`
  41975. // The ID of the instance.
  41976. InstanceId *string `locationName:"instanceId" type:"string"`
  41977. // The state of the association.
  41978. State *string `locationName:"state" type:"string" enum:"IamInstanceProfileAssociationState"`
  41979. // The time the IAM instance profile was associated with the instance.
  41980. Timestamp *time.Time `locationName:"timestamp" type:"timestamp" timestampFormat:"iso8601"`
  41981. }
  41982. // String returns the string representation
  41983. func (s IamInstanceProfileAssociation) String() string {
  41984. return awsutil.Prettify(s)
  41985. }
  41986. // GoString returns the string representation
  41987. func (s IamInstanceProfileAssociation) GoString() string {
  41988. return s.String()
  41989. }
  41990. // SetAssociationId sets the AssociationId field's value.
  41991. func (s *IamInstanceProfileAssociation) SetAssociationId(v string) *IamInstanceProfileAssociation {
  41992. s.AssociationId = &v
  41993. return s
  41994. }
  41995. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  41996. func (s *IamInstanceProfileAssociation) SetIamInstanceProfile(v *IamInstanceProfile) *IamInstanceProfileAssociation {
  41997. s.IamInstanceProfile = v
  41998. return s
  41999. }
  42000. // SetInstanceId sets the InstanceId field's value.
  42001. func (s *IamInstanceProfileAssociation) SetInstanceId(v string) *IamInstanceProfileAssociation {
  42002. s.InstanceId = &v
  42003. return s
  42004. }
  42005. // SetState sets the State field's value.
  42006. func (s *IamInstanceProfileAssociation) SetState(v string) *IamInstanceProfileAssociation {
  42007. s.State = &v
  42008. return s
  42009. }
  42010. // SetTimestamp sets the Timestamp field's value.
  42011. func (s *IamInstanceProfileAssociation) SetTimestamp(v time.Time) *IamInstanceProfileAssociation {
  42012. s.Timestamp = &v
  42013. return s
  42014. }
  42015. // Describes an IAM instance profile.
  42016. type IamInstanceProfileSpecification struct {
  42017. _ struct{} `type:"structure"`
  42018. // The Amazon Resource Name (ARN) of the instance profile.
  42019. Arn *string `locationName:"arn" type:"string"`
  42020. // The name of the instance profile.
  42021. Name *string `locationName:"name" type:"string"`
  42022. }
  42023. // String returns the string representation
  42024. func (s IamInstanceProfileSpecification) String() string {
  42025. return awsutil.Prettify(s)
  42026. }
  42027. // GoString returns the string representation
  42028. func (s IamInstanceProfileSpecification) GoString() string {
  42029. return s.String()
  42030. }
  42031. // SetArn sets the Arn field's value.
  42032. func (s *IamInstanceProfileSpecification) SetArn(v string) *IamInstanceProfileSpecification {
  42033. s.Arn = &v
  42034. return s
  42035. }
  42036. // SetName sets the Name field's value.
  42037. func (s *IamInstanceProfileSpecification) SetName(v string) *IamInstanceProfileSpecification {
  42038. s.Name = &v
  42039. return s
  42040. }
  42041. // Describes the ICMP type and code.
  42042. type IcmpTypeCode struct {
  42043. _ struct{} `type:"structure"`
  42044. // The ICMP code. A value of -1 means all codes for the specified ICMP type.
  42045. Code *int64 `locationName:"code" type:"integer"`
  42046. // The ICMP type. A value of -1 means all types.
  42047. Type *int64 `locationName:"type" type:"integer"`
  42048. }
  42049. // String returns the string representation
  42050. func (s IcmpTypeCode) String() string {
  42051. return awsutil.Prettify(s)
  42052. }
  42053. // GoString returns the string representation
  42054. func (s IcmpTypeCode) GoString() string {
  42055. return s.String()
  42056. }
  42057. // SetCode sets the Code field's value.
  42058. func (s *IcmpTypeCode) SetCode(v int64) *IcmpTypeCode {
  42059. s.Code = &v
  42060. return s
  42061. }
  42062. // SetType sets the Type field's value.
  42063. func (s *IcmpTypeCode) SetType(v int64) *IcmpTypeCode {
  42064. s.Type = &v
  42065. return s
  42066. }
  42067. // Describes the ID format for a resource.
  42068. type IdFormat struct {
  42069. _ struct{} `type:"structure"`
  42070. // The date in UTC at which you are permanently switched over to using longer
  42071. // IDs. If a deadline is not yet available for this resource type, this field
  42072. // is not returned.
  42073. Deadline *time.Time `locationName:"deadline" type:"timestamp" timestampFormat:"iso8601"`
  42074. // The type of resource.
  42075. Resource *string `locationName:"resource" type:"string"`
  42076. // Indicates whether longer IDs (17-character IDs) are enabled for the resource.
  42077. UseLongIds *bool `locationName:"useLongIds" type:"boolean"`
  42078. }
  42079. // String returns the string representation
  42080. func (s IdFormat) String() string {
  42081. return awsutil.Prettify(s)
  42082. }
  42083. // GoString returns the string representation
  42084. func (s IdFormat) GoString() string {
  42085. return s.String()
  42086. }
  42087. // SetDeadline sets the Deadline field's value.
  42088. func (s *IdFormat) SetDeadline(v time.Time) *IdFormat {
  42089. s.Deadline = &v
  42090. return s
  42091. }
  42092. // SetResource sets the Resource field's value.
  42093. func (s *IdFormat) SetResource(v string) *IdFormat {
  42094. s.Resource = &v
  42095. return s
  42096. }
  42097. // SetUseLongIds sets the UseLongIds field's value.
  42098. func (s *IdFormat) SetUseLongIds(v bool) *IdFormat {
  42099. s.UseLongIds = &v
  42100. return s
  42101. }
  42102. // Describes an image.
  42103. type Image struct {
  42104. _ struct{} `type:"structure"`
  42105. // The architecture of the image.
  42106. Architecture *string `locationName:"architecture" type:"string" enum:"ArchitectureValues"`
  42107. // Any block device mapping entries.
  42108. BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  42109. // The date and time the image was created.
  42110. CreationDate *string `locationName:"creationDate" type:"string"`
  42111. // The description of the AMI that was provided during image creation.
  42112. Description *string `locationName:"description" type:"string"`
  42113. // Specifies whether enhanced networking with ENA is enabled.
  42114. EnaSupport *bool `locationName:"enaSupport" type:"boolean"`
  42115. // The hypervisor type of the image.
  42116. Hypervisor *string `locationName:"hypervisor" type:"string" enum:"HypervisorType"`
  42117. // The ID of the AMI.
  42118. ImageId *string `locationName:"imageId" type:"string"`
  42119. // The location of the AMI.
  42120. ImageLocation *string `locationName:"imageLocation" type:"string"`
  42121. // The AWS account alias (for example, amazon, self) or the AWS account ID of
  42122. // the AMI owner.
  42123. ImageOwnerAlias *string `locationName:"imageOwnerAlias" type:"string"`
  42124. // The type of image.
  42125. ImageType *string `locationName:"imageType" type:"string" enum:"ImageTypeValues"`
  42126. // The kernel associated with the image, if any. Only applicable for machine
  42127. // images.
  42128. KernelId *string `locationName:"kernelId" type:"string"`
  42129. // The name of the AMI that was provided during image creation.
  42130. Name *string `locationName:"name" type:"string"`
  42131. // The AWS account ID of the image owner.
  42132. OwnerId *string `locationName:"imageOwnerId" type:"string"`
  42133. // The value is Windows for Windows AMIs; otherwise blank.
  42134. Platform *string `locationName:"platform" type:"string" enum:"PlatformValues"`
  42135. // Any product codes associated with the AMI.
  42136. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  42137. // Indicates whether the image has public launch permissions. The value is true
  42138. // if this image has public launch permissions or false if it has only implicit
  42139. // and explicit launch permissions.
  42140. Public *bool `locationName:"isPublic" type:"boolean"`
  42141. // The RAM disk associated with the image, if any. Only applicable for machine
  42142. // images.
  42143. RamdiskId *string `locationName:"ramdiskId" type:"string"`
  42144. // The device name of the root device volume (for example, /dev/sda1).
  42145. RootDeviceName *string `locationName:"rootDeviceName" type:"string"`
  42146. // The type of root device used by the AMI. The AMI can use an EBS volume or
  42147. // an instance store volume.
  42148. RootDeviceType *string `locationName:"rootDeviceType" type:"string" enum:"DeviceType"`
  42149. // Specifies whether enhanced networking with the Intel 82599 Virtual Function
  42150. // interface is enabled.
  42151. SriovNetSupport *string `locationName:"sriovNetSupport" type:"string"`
  42152. // The current state of the AMI. If the state is available, the image is successfully
  42153. // registered and can be used to launch an instance.
  42154. State *string `locationName:"imageState" type:"string" enum:"ImageState"`
  42155. // The reason for the state change.
  42156. StateReason *StateReason `locationName:"stateReason" type:"structure"`
  42157. // Any tags assigned to the image.
  42158. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  42159. // The type of virtualization of the AMI.
  42160. VirtualizationType *string `locationName:"virtualizationType" type:"string" enum:"VirtualizationType"`
  42161. }
  42162. // String returns the string representation
  42163. func (s Image) String() string {
  42164. return awsutil.Prettify(s)
  42165. }
  42166. // GoString returns the string representation
  42167. func (s Image) GoString() string {
  42168. return s.String()
  42169. }
  42170. // SetArchitecture sets the Architecture field's value.
  42171. func (s *Image) SetArchitecture(v string) *Image {
  42172. s.Architecture = &v
  42173. return s
  42174. }
  42175. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  42176. func (s *Image) SetBlockDeviceMappings(v []*BlockDeviceMapping) *Image {
  42177. s.BlockDeviceMappings = v
  42178. return s
  42179. }
  42180. // SetCreationDate sets the CreationDate field's value.
  42181. func (s *Image) SetCreationDate(v string) *Image {
  42182. s.CreationDate = &v
  42183. return s
  42184. }
  42185. // SetDescription sets the Description field's value.
  42186. func (s *Image) SetDescription(v string) *Image {
  42187. s.Description = &v
  42188. return s
  42189. }
  42190. // SetEnaSupport sets the EnaSupport field's value.
  42191. func (s *Image) SetEnaSupport(v bool) *Image {
  42192. s.EnaSupport = &v
  42193. return s
  42194. }
  42195. // SetHypervisor sets the Hypervisor field's value.
  42196. func (s *Image) SetHypervisor(v string) *Image {
  42197. s.Hypervisor = &v
  42198. return s
  42199. }
  42200. // SetImageId sets the ImageId field's value.
  42201. func (s *Image) SetImageId(v string) *Image {
  42202. s.ImageId = &v
  42203. return s
  42204. }
  42205. // SetImageLocation sets the ImageLocation field's value.
  42206. func (s *Image) SetImageLocation(v string) *Image {
  42207. s.ImageLocation = &v
  42208. return s
  42209. }
  42210. // SetImageOwnerAlias sets the ImageOwnerAlias field's value.
  42211. func (s *Image) SetImageOwnerAlias(v string) *Image {
  42212. s.ImageOwnerAlias = &v
  42213. return s
  42214. }
  42215. // SetImageType sets the ImageType field's value.
  42216. func (s *Image) SetImageType(v string) *Image {
  42217. s.ImageType = &v
  42218. return s
  42219. }
  42220. // SetKernelId sets the KernelId field's value.
  42221. func (s *Image) SetKernelId(v string) *Image {
  42222. s.KernelId = &v
  42223. return s
  42224. }
  42225. // SetName sets the Name field's value.
  42226. func (s *Image) SetName(v string) *Image {
  42227. s.Name = &v
  42228. return s
  42229. }
  42230. // SetOwnerId sets the OwnerId field's value.
  42231. func (s *Image) SetOwnerId(v string) *Image {
  42232. s.OwnerId = &v
  42233. return s
  42234. }
  42235. // SetPlatform sets the Platform field's value.
  42236. func (s *Image) SetPlatform(v string) *Image {
  42237. s.Platform = &v
  42238. return s
  42239. }
  42240. // SetProductCodes sets the ProductCodes field's value.
  42241. func (s *Image) SetProductCodes(v []*ProductCode) *Image {
  42242. s.ProductCodes = v
  42243. return s
  42244. }
  42245. // SetPublic sets the Public field's value.
  42246. func (s *Image) SetPublic(v bool) *Image {
  42247. s.Public = &v
  42248. return s
  42249. }
  42250. // SetRamdiskId sets the RamdiskId field's value.
  42251. func (s *Image) SetRamdiskId(v string) *Image {
  42252. s.RamdiskId = &v
  42253. return s
  42254. }
  42255. // SetRootDeviceName sets the RootDeviceName field's value.
  42256. func (s *Image) SetRootDeviceName(v string) *Image {
  42257. s.RootDeviceName = &v
  42258. return s
  42259. }
  42260. // SetRootDeviceType sets the RootDeviceType field's value.
  42261. func (s *Image) SetRootDeviceType(v string) *Image {
  42262. s.RootDeviceType = &v
  42263. return s
  42264. }
  42265. // SetSriovNetSupport sets the SriovNetSupport field's value.
  42266. func (s *Image) SetSriovNetSupport(v string) *Image {
  42267. s.SriovNetSupport = &v
  42268. return s
  42269. }
  42270. // SetState sets the State field's value.
  42271. func (s *Image) SetState(v string) *Image {
  42272. s.State = &v
  42273. return s
  42274. }
  42275. // SetStateReason sets the StateReason field's value.
  42276. func (s *Image) SetStateReason(v *StateReason) *Image {
  42277. s.StateReason = v
  42278. return s
  42279. }
  42280. // SetTags sets the Tags field's value.
  42281. func (s *Image) SetTags(v []*Tag) *Image {
  42282. s.Tags = v
  42283. return s
  42284. }
  42285. // SetVirtualizationType sets the VirtualizationType field's value.
  42286. func (s *Image) SetVirtualizationType(v string) *Image {
  42287. s.VirtualizationType = &v
  42288. return s
  42289. }
  42290. // Describes the disk container object for an import image task.
  42291. type ImageDiskContainer struct {
  42292. _ struct{} `type:"structure"`
  42293. // The description of the disk image.
  42294. Description *string `type:"string"`
  42295. // The block device mapping for the disk.
  42296. DeviceName *string `type:"string"`
  42297. // The format of the disk image being imported.
  42298. //
  42299. // Valid values: VHD | VMDK | OVA
  42300. Format *string `type:"string"`
  42301. // The ID of the EBS snapshot to be used for importing the snapshot.
  42302. SnapshotId *string `type:"string"`
  42303. // The URL to the Amazon S3-based disk image being imported. The URL can either
  42304. // be a https URL (https://..) or an Amazon S3 URL (s3://..)
  42305. Url *string `type:"string"`
  42306. // The S3 bucket for the disk image.
  42307. UserBucket *UserBucket `type:"structure"`
  42308. }
  42309. // String returns the string representation
  42310. func (s ImageDiskContainer) String() string {
  42311. return awsutil.Prettify(s)
  42312. }
  42313. // GoString returns the string representation
  42314. func (s ImageDiskContainer) GoString() string {
  42315. return s.String()
  42316. }
  42317. // SetDescription sets the Description field's value.
  42318. func (s *ImageDiskContainer) SetDescription(v string) *ImageDiskContainer {
  42319. s.Description = &v
  42320. return s
  42321. }
  42322. // SetDeviceName sets the DeviceName field's value.
  42323. func (s *ImageDiskContainer) SetDeviceName(v string) *ImageDiskContainer {
  42324. s.DeviceName = &v
  42325. return s
  42326. }
  42327. // SetFormat sets the Format field's value.
  42328. func (s *ImageDiskContainer) SetFormat(v string) *ImageDiskContainer {
  42329. s.Format = &v
  42330. return s
  42331. }
  42332. // SetSnapshotId sets the SnapshotId field's value.
  42333. func (s *ImageDiskContainer) SetSnapshotId(v string) *ImageDiskContainer {
  42334. s.SnapshotId = &v
  42335. return s
  42336. }
  42337. // SetUrl sets the Url field's value.
  42338. func (s *ImageDiskContainer) SetUrl(v string) *ImageDiskContainer {
  42339. s.Url = &v
  42340. return s
  42341. }
  42342. // SetUserBucket sets the UserBucket field's value.
  42343. func (s *ImageDiskContainer) SetUserBucket(v *UserBucket) *ImageDiskContainer {
  42344. s.UserBucket = v
  42345. return s
  42346. }
  42347. // Contains the parameters for ImportImage.
  42348. type ImportImageInput struct {
  42349. _ struct{} `type:"structure"`
  42350. // The architecture of the virtual machine.
  42351. //
  42352. // Valid values: i386 | x86_64
  42353. Architecture *string `type:"string"`
  42354. // The client-specific data.
  42355. ClientData *ClientData `type:"structure"`
  42356. // The token to enable idempotency for VM import requests.
  42357. ClientToken *string `type:"string"`
  42358. // A description string for the import image task.
  42359. Description *string `type:"string"`
  42360. // Information about the disk containers.
  42361. DiskContainers []*ImageDiskContainer `locationName:"DiskContainer" locationNameList:"item" type:"list"`
  42362. // Checks whether you have the required permissions for the action, without
  42363. // actually making the request, and provides an error response. If you have
  42364. // the required permissions, the error response is DryRunOperation. Otherwise,
  42365. // it is UnauthorizedOperation.
  42366. DryRun *bool `type:"boolean"`
  42367. // The target hypervisor platform.
  42368. //
  42369. // Valid values: xen
  42370. Hypervisor *string `type:"string"`
  42371. // The license type to be used for the Amazon Machine Image (AMI) after importing.
  42372. //
  42373. // Note: You may only use BYOL if you have existing licenses with rights to
  42374. // use these licenses in a third party cloud like AWS. For more information,
  42375. // see Prerequisites (http://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html#prerequisites-image)
  42376. // in the VM Import/Export User Guide.
  42377. //
  42378. // Valid values: AWS | BYOL
  42379. LicenseType *string `type:"string"`
  42380. // The operating system of the virtual machine.
  42381. //
  42382. // Valid values: Windows | Linux
  42383. Platform *string `type:"string"`
  42384. // The name of the role to use when not using the default role, 'vmimport'.
  42385. RoleName *string `type:"string"`
  42386. }
  42387. // String returns the string representation
  42388. func (s ImportImageInput) String() string {
  42389. return awsutil.Prettify(s)
  42390. }
  42391. // GoString returns the string representation
  42392. func (s ImportImageInput) GoString() string {
  42393. return s.String()
  42394. }
  42395. // SetArchitecture sets the Architecture field's value.
  42396. func (s *ImportImageInput) SetArchitecture(v string) *ImportImageInput {
  42397. s.Architecture = &v
  42398. return s
  42399. }
  42400. // SetClientData sets the ClientData field's value.
  42401. func (s *ImportImageInput) SetClientData(v *ClientData) *ImportImageInput {
  42402. s.ClientData = v
  42403. return s
  42404. }
  42405. // SetClientToken sets the ClientToken field's value.
  42406. func (s *ImportImageInput) SetClientToken(v string) *ImportImageInput {
  42407. s.ClientToken = &v
  42408. return s
  42409. }
  42410. // SetDescription sets the Description field's value.
  42411. func (s *ImportImageInput) SetDescription(v string) *ImportImageInput {
  42412. s.Description = &v
  42413. return s
  42414. }
  42415. // SetDiskContainers sets the DiskContainers field's value.
  42416. func (s *ImportImageInput) SetDiskContainers(v []*ImageDiskContainer) *ImportImageInput {
  42417. s.DiskContainers = v
  42418. return s
  42419. }
  42420. // SetDryRun sets the DryRun field's value.
  42421. func (s *ImportImageInput) SetDryRun(v bool) *ImportImageInput {
  42422. s.DryRun = &v
  42423. return s
  42424. }
  42425. // SetHypervisor sets the Hypervisor field's value.
  42426. func (s *ImportImageInput) SetHypervisor(v string) *ImportImageInput {
  42427. s.Hypervisor = &v
  42428. return s
  42429. }
  42430. // SetLicenseType sets the LicenseType field's value.
  42431. func (s *ImportImageInput) SetLicenseType(v string) *ImportImageInput {
  42432. s.LicenseType = &v
  42433. return s
  42434. }
  42435. // SetPlatform sets the Platform field's value.
  42436. func (s *ImportImageInput) SetPlatform(v string) *ImportImageInput {
  42437. s.Platform = &v
  42438. return s
  42439. }
  42440. // SetRoleName sets the RoleName field's value.
  42441. func (s *ImportImageInput) SetRoleName(v string) *ImportImageInput {
  42442. s.RoleName = &v
  42443. return s
  42444. }
  42445. // Contains the output for ImportImage.
  42446. type ImportImageOutput struct {
  42447. _ struct{} `type:"structure"`
  42448. // The architecture of the virtual machine.
  42449. Architecture *string `locationName:"architecture" type:"string"`
  42450. // A description of the import task.
  42451. Description *string `locationName:"description" type:"string"`
  42452. // The target hypervisor of the import task.
  42453. Hypervisor *string `locationName:"hypervisor" type:"string"`
  42454. // The ID of the Amazon Machine Image (AMI) created by the import task.
  42455. ImageId *string `locationName:"imageId" type:"string"`
  42456. // The task ID of the import image task.
  42457. ImportTaskId *string `locationName:"importTaskId" type:"string"`
  42458. // The license type of the virtual machine.
  42459. LicenseType *string `locationName:"licenseType" type:"string"`
  42460. // The operating system of the virtual machine.
  42461. Platform *string `locationName:"platform" type:"string"`
  42462. // The progress of the task.
  42463. Progress *string `locationName:"progress" type:"string"`
  42464. // Information about the snapshots.
  42465. SnapshotDetails []*SnapshotDetail `locationName:"snapshotDetailSet" locationNameList:"item" type:"list"`
  42466. // A brief status of the task.
  42467. Status *string `locationName:"status" type:"string"`
  42468. // A detailed status message of the import task.
  42469. StatusMessage *string `locationName:"statusMessage" type:"string"`
  42470. }
  42471. // String returns the string representation
  42472. func (s ImportImageOutput) String() string {
  42473. return awsutil.Prettify(s)
  42474. }
  42475. // GoString returns the string representation
  42476. func (s ImportImageOutput) GoString() string {
  42477. return s.String()
  42478. }
  42479. // SetArchitecture sets the Architecture field's value.
  42480. func (s *ImportImageOutput) SetArchitecture(v string) *ImportImageOutput {
  42481. s.Architecture = &v
  42482. return s
  42483. }
  42484. // SetDescription sets the Description field's value.
  42485. func (s *ImportImageOutput) SetDescription(v string) *ImportImageOutput {
  42486. s.Description = &v
  42487. return s
  42488. }
  42489. // SetHypervisor sets the Hypervisor field's value.
  42490. func (s *ImportImageOutput) SetHypervisor(v string) *ImportImageOutput {
  42491. s.Hypervisor = &v
  42492. return s
  42493. }
  42494. // SetImageId sets the ImageId field's value.
  42495. func (s *ImportImageOutput) SetImageId(v string) *ImportImageOutput {
  42496. s.ImageId = &v
  42497. return s
  42498. }
  42499. // SetImportTaskId sets the ImportTaskId field's value.
  42500. func (s *ImportImageOutput) SetImportTaskId(v string) *ImportImageOutput {
  42501. s.ImportTaskId = &v
  42502. return s
  42503. }
  42504. // SetLicenseType sets the LicenseType field's value.
  42505. func (s *ImportImageOutput) SetLicenseType(v string) *ImportImageOutput {
  42506. s.LicenseType = &v
  42507. return s
  42508. }
  42509. // SetPlatform sets the Platform field's value.
  42510. func (s *ImportImageOutput) SetPlatform(v string) *ImportImageOutput {
  42511. s.Platform = &v
  42512. return s
  42513. }
  42514. // SetProgress sets the Progress field's value.
  42515. func (s *ImportImageOutput) SetProgress(v string) *ImportImageOutput {
  42516. s.Progress = &v
  42517. return s
  42518. }
  42519. // SetSnapshotDetails sets the SnapshotDetails field's value.
  42520. func (s *ImportImageOutput) SetSnapshotDetails(v []*SnapshotDetail) *ImportImageOutput {
  42521. s.SnapshotDetails = v
  42522. return s
  42523. }
  42524. // SetStatus sets the Status field's value.
  42525. func (s *ImportImageOutput) SetStatus(v string) *ImportImageOutput {
  42526. s.Status = &v
  42527. return s
  42528. }
  42529. // SetStatusMessage sets the StatusMessage field's value.
  42530. func (s *ImportImageOutput) SetStatusMessage(v string) *ImportImageOutput {
  42531. s.StatusMessage = &v
  42532. return s
  42533. }
  42534. // Describes an import image task.
  42535. type ImportImageTask struct {
  42536. _ struct{} `type:"structure"`
  42537. // The architecture of the virtual machine.
  42538. //
  42539. // Valid values: i386 | x86_64
  42540. Architecture *string `locationName:"architecture" type:"string"`
  42541. // A description of the import task.
  42542. Description *string `locationName:"description" type:"string"`
  42543. // The target hypervisor for the import task.
  42544. //
  42545. // Valid values: xen
  42546. Hypervisor *string `locationName:"hypervisor" type:"string"`
  42547. // The ID of the Amazon Machine Image (AMI) of the imported virtual machine.
  42548. ImageId *string `locationName:"imageId" type:"string"`
  42549. // The ID of the import image task.
  42550. ImportTaskId *string `locationName:"importTaskId" type:"string"`
  42551. // The license type of the virtual machine.
  42552. LicenseType *string `locationName:"licenseType" type:"string"`
  42553. // The description string for the import image task.
  42554. Platform *string `locationName:"platform" type:"string"`
  42555. // The percentage of progress of the import image task.
  42556. Progress *string `locationName:"progress" type:"string"`
  42557. // Information about the snapshots.
  42558. SnapshotDetails []*SnapshotDetail `locationName:"snapshotDetailSet" locationNameList:"item" type:"list"`
  42559. // A brief status for the import image task.
  42560. Status *string `locationName:"status" type:"string"`
  42561. // A descriptive status message for the import image task.
  42562. StatusMessage *string `locationName:"statusMessage" type:"string"`
  42563. }
  42564. // String returns the string representation
  42565. func (s ImportImageTask) String() string {
  42566. return awsutil.Prettify(s)
  42567. }
  42568. // GoString returns the string representation
  42569. func (s ImportImageTask) GoString() string {
  42570. return s.String()
  42571. }
  42572. // SetArchitecture sets the Architecture field's value.
  42573. func (s *ImportImageTask) SetArchitecture(v string) *ImportImageTask {
  42574. s.Architecture = &v
  42575. return s
  42576. }
  42577. // SetDescription sets the Description field's value.
  42578. func (s *ImportImageTask) SetDescription(v string) *ImportImageTask {
  42579. s.Description = &v
  42580. return s
  42581. }
  42582. // SetHypervisor sets the Hypervisor field's value.
  42583. func (s *ImportImageTask) SetHypervisor(v string) *ImportImageTask {
  42584. s.Hypervisor = &v
  42585. return s
  42586. }
  42587. // SetImageId sets the ImageId field's value.
  42588. func (s *ImportImageTask) SetImageId(v string) *ImportImageTask {
  42589. s.ImageId = &v
  42590. return s
  42591. }
  42592. // SetImportTaskId sets the ImportTaskId field's value.
  42593. func (s *ImportImageTask) SetImportTaskId(v string) *ImportImageTask {
  42594. s.ImportTaskId = &v
  42595. return s
  42596. }
  42597. // SetLicenseType sets the LicenseType field's value.
  42598. func (s *ImportImageTask) SetLicenseType(v string) *ImportImageTask {
  42599. s.LicenseType = &v
  42600. return s
  42601. }
  42602. // SetPlatform sets the Platform field's value.
  42603. func (s *ImportImageTask) SetPlatform(v string) *ImportImageTask {
  42604. s.Platform = &v
  42605. return s
  42606. }
  42607. // SetProgress sets the Progress field's value.
  42608. func (s *ImportImageTask) SetProgress(v string) *ImportImageTask {
  42609. s.Progress = &v
  42610. return s
  42611. }
  42612. // SetSnapshotDetails sets the SnapshotDetails field's value.
  42613. func (s *ImportImageTask) SetSnapshotDetails(v []*SnapshotDetail) *ImportImageTask {
  42614. s.SnapshotDetails = v
  42615. return s
  42616. }
  42617. // SetStatus sets the Status field's value.
  42618. func (s *ImportImageTask) SetStatus(v string) *ImportImageTask {
  42619. s.Status = &v
  42620. return s
  42621. }
  42622. // SetStatusMessage sets the StatusMessage field's value.
  42623. func (s *ImportImageTask) SetStatusMessage(v string) *ImportImageTask {
  42624. s.StatusMessage = &v
  42625. return s
  42626. }
  42627. // Contains the parameters for ImportInstance.
  42628. type ImportInstanceInput struct {
  42629. _ struct{} `type:"structure"`
  42630. // A description for the instance being imported.
  42631. Description *string `locationName:"description" type:"string"`
  42632. // The disk image.
  42633. DiskImages []*DiskImage `locationName:"diskImage" type:"list"`
  42634. // Checks whether you have the required permissions for the action, without
  42635. // actually making the request, and provides an error response. If you have
  42636. // the required permissions, the error response is DryRunOperation. Otherwise,
  42637. // it is UnauthorizedOperation.
  42638. DryRun *bool `locationName:"dryRun" type:"boolean"`
  42639. // The launch specification.
  42640. LaunchSpecification *ImportInstanceLaunchSpecification `locationName:"launchSpecification" type:"structure"`
  42641. // The instance operating system.
  42642. //
  42643. // Platform is a required field
  42644. Platform *string `locationName:"platform" type:"string" required:"true" enum:"PlatformValues"`
  42645. }
  42646. // String returns the string representation
  42647. func (s ImportInstanceInput) String() string {
  42648. return awsutil.Prettify(s)
  42649. }
  42650. // GoString returns the string representation
  42651. func (s ImportInstanceInput) GoString() string {
  42652. return s.String()
  42653. }
  42654. // Validate inspects the fields of the type to determine if they are valid.
  42655. func (s *ImportInstanceInput) Validate() error {
  42656. invalidParams := request.ErrInvalidParams{Context: "ImportInstanceInput"}
  42657. if s.Platform == nil {
  42658. invalidParams.Add(request.NewErrParamRequired("Platform"))
  42659. }
  42660. if s.DiskImages != nil {
  42661. for i, v := range s.DiskImages {
  42662. if v == nil {
  42663. continue
  42664. }
  42665. if err := v.Validate(); err != nil {
  42666. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DiskImages", i), err.(request.ErrInvalidParams))
  42667. }
  42668. }
  42669. }
  42670. if invalidParams.Len() > 0 {
  42671. return invalidParams
  42672. }
  42673. return nil
  42674. }
  42675. // SetDescription sets the Description field's value.
  42676. func (s *ImportInstanceInput) SetDescription(v string) *ImportInstanceInput {
  42677. s.Description = &v
  42678. return s
  42679. }
  42680. // SetDiskImages sets the DiskImages field's value.
  42681. func (s *ImportInstanceInput) SetDiskImages(v []*DiskImage) *ImportInstanceInput {
  42682. s.DiskImages = v
  42683. return s
  42684. }
  42685. // SetDryRun sets the DryRun field's value.
  42686. func (s *ImportInstanceInput) SetDryRun(v bool) *ImportInstanceInput {
  42687. s.DryRun = &v
  42688. return s
  42689. }
  42690. // SetLaunchSpecification sets the LaunchSpecification field's value.
  42691. func (s *ImportInstanceInput) SetLaunchSpecification(v *ImportInstanceLaunchSpecification) *ImportInstanceInput {
  42692. s.LaunchSpecification = v
  42693. return s
  42694. }
  42695. // SetPlatform sets the Platform field's value.
  42696. func (s *ImportInstanceInput) SetPlatform(v string) *ImportInstanceInput {
  42697. s.Platform = &v
  42698. return s
  42699. }
  42700. // Describes the launch specification for VM import.
  42701. type ImportInstanceLaunchSpecification struct {
  42702. _ struct{} `type:"structure"`
  42703. // Reserved.
  42704. AdditionalInfo *string `locationName:"additionalInfo" type:"string"`
  42705. // The architecture of the instance.
  42706. Architecture *string `locationName:"architecture" type:"string" enum:"ArchitectureValues"`
  42707. // One or more security group IDs.
  42708. GroupIds []*string `locationName:"GroupId" locationNameList:"SecurityGroupId" type:"list"`
  42709. // One or more security group names.
  42710. GroupNames []*string `locationName:"GroupName" locationNameList:"SecurityGroup" type:"list"`
  42711. // Indicates whether an instance stops or terminates when you initiate shutdown
  42712. // from the instance (using the operating system command for system shutdown).
  42713. InstanceInitiatedShutdownBehavior *string `locationName:"instanceInitiatedShutdownBehavior" type:"string" enum:"ShutdownBehavior"`
  42714. // The instance type. For more information about the instance types that you
  42715. // can import, see Instance Types (http://docs.aws.amazon.com/vm-import/latest/userguide/vmie_prereqs.html#vmimport-instance-types)
  42716. // in the VM Import/Export User Guide.
  42717. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  42718. // Indicates whether monitoring is enabled.
  42719. Monitoring *bool `locationName:"monitoring" type:"boolean"`
  42720. // The placement information for the instance.
  42721. Placement *Placement `locationName:"placement" type:"structure"`
  42722. // [EC2-VPC] An available IP address from the IP address range of the subnet.
  42723. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  42724. // [EC2-VPC] The ID of the subnet in which to launch the instance.
  42725. SubnetId *string `locationName:"subnetId" type:"string"`
  42726. // The Base64-encoded user data to make available to the instance.
  42727. UserData *UserData `locationName:"userData" type:"structure"`
  42728. }
  42729. // String returns the string representation
  42730. func (s ImportInstanceLaunchSpecification) String() string {
  42731. return awsutil.Prettify(s)
  42732. }
  42733. // GoString returns the string representation
  42734. func (s ImportInstanceLaunchSpecification) GoString() string {
  42735. return s.String()
  42736. }
  42737. // SetAdditionalInfo sets the AdditionalInfo field's value.
  42738. func (s *ImportInstanceLaunchSpecification) SetAdditionalInfo(v string) *ImportInstanceLaunchSpecification {
  42739. s.AdditionalInfo = &v
  42740. return s
  42741. }
  42742. // SetArchitecture sets the Architecture field's value.
  42743. func (s *ImportInstanceLaunchSpecification) SetArchitecture(v string) *ImportInstanceLaunchSpecification {
  42744. s.Architecture = &v
  42745. return s
  42746. }
  42747. // SetGroupIds sets the GroupIds field's value.
  42748. func (s *ImportInstanceLaunchSpecification) SetGroupIds(v []*string) *ImportInstanceLaunchSpecification {
  42749. s.GroupIds = v
  42750. return s
  42751. }
  42752. // SetGroupNames sets the GroupNames field's value.
  42753. func (s *ImportInstanceLaunchSpecification) SetGroupNames(v []*string) *ImportInstanceLaunchSpecification {
  42754. s.GroupNames = v
  42755. return s
  42756. }
  42757. // SetInstanceInitiatedShutdownBehavior sets the InstanceInitiatedShutdownBehavior field's value.
  42758. func (s *ImportInstanceLaunchSpecification) SetInstanceInitiatedShutdownBehavior(v string) *ImportInstanceLaunchSpecification {
  42759. s.InstanceInitiatedShutdownBehavior = &v
  42760. return s
  42761. }
  42762. // SetInstanceType sets the InstanceType field's value.
  42763. func (s *ImportInstanceLaunchSpecification) SetInstanceType(v string) *ImportInstanceLaunchSpecification {
  42764. s.InstanceType = &v
  42765. return s
  42766. }
  42767. // SetMonitoring sets the Monitoring field's value.
  42768. func (s *ImportInstanceLaunchSpecification) SetMonitoring(v bool) *ImportInstanceLaunchSpecification {
  42769. s.Monitoring = &v
  42770. return s
  42771. }
  42772. // SetPlacement sets the Placement field's value.
  42773. func (s *ImportInstanceLaunchSpecification) SetPlacement(v *Placement) *ImportInstanceLaunchSpecification {
  42774. s.Placement = v
  42775. return s
  42776. }
  42777. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  42778. func (s *ImportInstanceLaunchSpecification) SetPrivateIpAddress(v string) *ImportInstanceLaunchSpecification {
  42779. s.PrivateIpAddress = &v
  42780. return s
  42781. }
  42782. // SetSubnetId sets the SubnetId field's value.
  42783. func (s *ImportInstanceLaunchSpecification) SetSubnetId(v string) *ImportInstanceLaunchSpecification {
  42784. s.SubnetId = &v
  42785. return s
  42786. }
  42787. // SetUserData sets the UserData field's value.
  42788. func (s *ImportInstanceLaunchSpecification) SetUserData(v *UserData) *ImportInstanceLaunchSpecification {
  42789. s.UserData = v
  42790. return s
  42791. }
  42792. // Contains the output for ImportInstance.
  42793. type ImportInstanceOutput struct {
  42794. _ struct{} `type:"structure"`
  42795. // Information about the conversion task.
  42796. ConversionTask *ConversionTask `locationName:"conversionTask" type:"structure"`
  42797. }
  42798. // String returns the string representation
  42799. func (s ImportInstanceOutput) String() string {
  42800. return awsutil.Prettify(s)
  42801. }
  42802. // GoString returns the string representation
  42803. func (s ImportInstanceOutput) GoString() string {
  42804. return s.String()
  42805. }
  42806. // SetConversionTask sets the ConversionTask field's value.
  42807. func (s *ImportInstanceOutput) SetConversionTask(v *ConversionTask) *ImportInstanceOutput {
  42808. s.ConversionTask = v
  42809. return s
  42810. }
  42811. // Describes an import instance task.
  42812. type ImportInstanceTaskDetails struct {
  42813. _ struct{} `type:"structure"`
  42814. // A description of the task.
  42815. Description *string `locationName:"description" type:"string"`
  42816. // The ID of the instance.
  42817. InstanceId *string `locationName:"instanceId" type:"string"`
  42818. // The instance operating system.
  42819. Platform *string `locationName:"platform" type:"string" enum:"PlatformValues"`
  42820. // One or more volumes.
  42821. Volumes []*ImportInstanceVolumeDetailItem `locationName:"volumes" locationNameList:"item" type:"list"`
  42822. }
  42823. // String returns the string representation
  42824. func (s ImportInstanceTaskDetails) String() string {
  42825. return awsutil.Prettify(s)
  42826. }
  42827. // GoString returns the string representation
  42828. func (s ImportInstanceTaskDetails) GoString() string {
  42829. return s.String()
  42830. }
  42831. // SetDescription sets the Description field's value.
  42832. func (s *ImportInstanceTaskDetails) SetDescription(v string) *ImportInstanceTaskDetails {
  42833. s.Description = &v
  42834. return s
  42835. }
  42836. // SetInstanceId sets the InstanceId field's value.
  42837. func (s *ImportInstanceTaskDetails) SetInstanceId(v string) *ImportInstanceTaskDetails {
  42838. s.InstanceId = &v
  42839. return s
  42840. }
  42841. // SetPlatform sets the Platform field's value.
  42842. func (s *ImportInstanceTaskDetails) SetPlatform(v string) *ImportInstanceTaskDetails {
  42843. s.Platform = &v
  42844. return s
  42845. }
  42846. // SetVolumes sets the Volumes field's value.
  42847. func (s *ImportInstanceTaskDetails) SetVolumes(v []*ImportInstanceVolumeDetailItem) *ImportInstanceTaskDetails {
  42848. s.Volumes = v
  42849. return s
  42850. }
  42851. // Describes an import volume task.
  42852. type ImportInstanceVolumeDetailItem struct {
  42853. _ struct{} `type:"structure"`
  42854. // The Availability Zone where the resulting instance will reside.
  42855. //
  42856. // AvailabilityZone is a required field
  42857. AvailabilityZone *string `locationName:"availabilityZone" type:"string" required:"true"`
  42858. // The number of bytes converted so far.
  42859. //
  42860. // BytesConverted is a required field
  42861. BytesConverted *int64 `locationName:"bytesConverted" type:"long" required:"true"`
  42862. // A description of the task.
  42863. Description *string `locationName:"description" type:"string"`
  42864. // The image.
  42865. //
  42866. // Image is a required field
  42867. Image *DiskImageDescription `locationName:"image" type:"structure" required:"true"`
  42868. // The status of the import of this particular disk image.
  42869. //
  42870. // Status is a required field
  42871. Status *string `locationName:"status" type:"string" required:"true"`
  42872. // The status information or errors related to the disk image.
  42873. StatusMessage *string `locationName:"statusMessage" type:"string"`
  42874. // The volume.
  42875. //
  42876. // Volume is a required field
  42877. Volume *DiskImageVolumeDescription `locationName:"volume" type:"structure" required:"true"`
  42878. }
  42879. // String returns the string representation
  42880. func (s ImportInstanceVolumeDetailItem) String() string {
  42881. return awsutil.Prettify(s)
  42882. }
  42883. // GoString returns the string representation
  42884. func (s ImportInstanceVolumeDetailItem) GoString() string {
  42885. return s.String()
  42886. }
  42887. // SetAvailabilityZone sets the AvailabilityZone field's value.
  42888. func (s *ImportInstanceVolumeDetailItem) SetAvailabilityZone(v string) *ImportInstanceVolumeDetailItem {
  42889. s.AvailabilityZone = &v
  42890. return s
  42891. }
  42892. // SetBytesConverted sets the BytesConverted field's value.
  42893. func (s *ImportInstanceVolumeDetailItem) SetBytesConverted(v int64) *ImportInstanceVolumeDetailItem {
  42894. s.BytesConverted = &v
  42895. return s
  42896. }
  42897. // SetDescription sets the Description field's value.
  42898. func (s *ImportInstanceVolumeDetailItem) SetDescription(v string) *ImportInstanceVolumeDetailItem {
  42899. s.Description = &v
  42900. return s
  42901. }
  42902. // SetImage sets the Image field's value.
  42903. func (s *ImportInstanceVolumeDetailItem) SetImage(v *DiskImageDescription) *ImportInstanceVolumeDetailItem {
  42904. s.Image = v
  42905. return s
  42906. }
  42907. // SetStatus sets the Status field's value.
  42908. func (s *ImportInstanceVolumeDetailItem) SetStatus(v string) *ImportInstanceVolumeDetailItem {
  42909. s.Status = &v
  42910. return s
  42911. }
  42912. // SetStatusMessage sets the StatusMessage field's value.
  42913. func (s *ImportInstanceVolumeDetailItem) SetStatusMessage(v string) *ImportInstanceVolumeDetailItem {
  42914. s.StatusMessage = &v
  42915. return s
  42916. }
  42917. // SetVolume sets the Volume field's value.
  42918. func (s *ImportInstanceVolumeDetailItem) SetVolume(v *DiskImageVolumeDescription) *ImportInstanceVolumeDetailItem {
  42919. s.Volume = v
  42920. return s
  42921. }
  42922. // Contains the parameters for ImportKeyPair.
  42923. type ImportKeyPairInput struct {
  42924. _ struct{} `type:"structure"`
  42925. // Checks whether you have the required permissions for the action, without
  42926. // actually making the request, and provides an error response. If you have
  42927. // the required permissions, the error response is DryRunOperation. Otherwise,
  42928. // it is UnauthorizedOperation.
  42929. DryRun *bool `locationName:"dryRun" type:"boolean"`
  42930. // A unique name for the key pair.
  42931. //
  42932. // KeyName is a required field
  42933. KeyName *string `locationName:"keyName" type:"string" required:"true"`
  42934. // The public key. For API calls, the text must be base64-encoded. For command
  42935. // line tools, base64 encoding is performed for you.
  42936. //
  42937. // PublicKeyMaterial is automatically base64 encoded/decoded by the SDK.
  42938. //
  42939. // PublicKeyMaterial is a required field
  42940. PublicKeyMaterial []byte `locationName:"publicKeyMaterial" type:"blob" required:"true"`
  42941. }
  42942. // String returns the string representation
  42943. func (s ImportKeyPairInput) String() string {
  42944. return awsutil.Prettify(s)
  42945. }
  42946. // GoString returns the string representation
  42947. func (s ImportKeyPairInput) GoString() string {
  42948. return s.String()
  42949. }
  42950. // Validate inspects the fields of the type to determine if they are valid.
  42951. func (s *ImportKeyPairInput) Validate() error {
  42952. invalidParams := request.ErrInvalidParams{Context: "ImportKeyPairInput"}
  42953. if s.KeyName == nil {
  42954. invalidParams.Add(request.NewErrParamRequired("KeyName"))
  42955. }
  42956. if s.PublicKeyMaterial == nil {
  42957. invalidParams.Add(request.NewErrParamRequired("PublicKeyMaterial"))
  42958. }
  42959. if invalidParams.Len() > 0 {
  42960. return invalidParams
  42961. }
  42962. return nil
  42963. }
  42964. // SetDryRun sets the DryRun field's value.
  42965. func (s *ImportKeyPairInput) SetDryRun(v bool) *ImportKeyPairInput {
  42966. s.DryRun = &v
  42967. return s
  42968. }
  42969. // SetKeyName sets the KeyName field's value.
  42970. func (s *ImportKeyPairInput) SetKeyName(v string) *ImportKeyPairInput {
  42971. s.KeyName = &v
  42972. return s
  42973. }
  42974. // SetPublicKeyMaterial sets the PublicKeyMaterial field's value.
  42975. func (s *ImportKeyPairInput) SetPublicKeyMaterial(v []byte) *ImportKeyPairInput {
  42976. s.PublicKeyMaterial = v
  42977. return s
  42978. }
  42979. // Contains the output of ImportKeyPair.
  42980. type ImportKeyPairOutput struct {
  42981. _ struct{} `type:"structure"`
  42982. // The MD5 public key fingerprint as specified in section 4 of RFC 4716.
  42983. KeyFingerprint *string `locationName:"keyFingerprint" type:"string"`
  42984. // The key pair name you provided.
  42985. KeyName *string `locationName:"keyName" type:"string"`
  42986. }
  42987. // String returns the string representation
  42988. func (s ImportKeyPairOutput) String() string {
  42989. return awsutil.Prettify(s)
  42990. }
  42991. // GoString returns the string representation
  42992. func (s ImportKeyPairOutput) GoString() string {
  42993. return s.String()
  42994. }
  42995. // SetKeyFingerprint sets the KeyFingerprint field's value.
  42996. func (s *ImportKeyPairOutput) SetKeyFingerprint(v string) *ImportKeyPairOutput {
  42997. s.KeyFingerprint = &v
  42998. return s
  42999. }
  43000. // SetKeyName sets the KeyName field's value.
  43001. func (s *ImportKeyPairOutput) SetKeyName(v string) *ImportKeyPairOutput {
  43002. s.KeyName = &v
  43003. return s
  43004. }
  43005. // Contains the parameters for ImportSnapshot.
  43006. type ImportSnapshotInput struct {
  43007. _ struct{} `type:"structure"`
  43008. // The client-specific data.
  43009. ClientData *ClientData `type:"structure"`
  43010. // Token to enable idempotency for VM import requests.
  43011. ClientToken *string `type:"string"`
  43012. // The description string for the import snapshot task.
  43013. Description *string `type:"string"`
  43014. // Information about the disk container.
  43015. DiskContainer *SnapshotDiskContainer `type:"structure"`
  43016. // Checks whether you have the required permissions for the action, without
  43017. // actually making the request, and provides an error response. If you have
  43018. // the required permissions, the error response is DryRunOperation. Otherwise,
  43019. // it is UnauthorizedOperation.
  43020. DryRun *bool `type:"boolean"`
  43021. // The name of the role to use when not using the default role, 'vmimport'.
  43022. RoleName *string `type:"string"`
  43023. }
  43024. // String returns the string representation
  43025. func (s ImportSnapshotInput) String() string {
  43026. return awsutil.Prettify(s)
  43027. }
  43028. // GoString returns the string representation
  43029. func (s ImportSnapshotInput) GoString() string {
  43030. return s.String()
  43031. }
  43032. // SetClientData sets the ClientData field's value.
  43033. func (s *ImportSnapshotInput) SetClientData(v *ClientData) *ImportSnapshotInput {
  43034. s.ClientData = v
  43035. return s
  43036. }
  43037. // SetClientToken sets the ClientToken field's value.
  43038. func (s *ImportSnapshotInput) SetClientToken(v string) *ImportSnapshotInput {
  43039. s.ClientToken = &v
  43040. return s
  43041. }
  43042. // SetDescription sets the Description field's value.
  43043. func (s *ImportSnapshotInput) SetDescription(v string) *ImportSnapshotInput {
  43044. s.Description = &v
  43045. return s
  43046. }
  43047. // SetDiskContainer sets the DiskContainer field's value.
  43048. func (s *ImportSnapshotInput) SetDiskContainer(v *SnapshotDiskContainer) *ImportSnapshotInput {
  43049. s.DiskContainer = v
  43050. return s
  43051. }
  43052. // SetDryRun sets the DryRun field's value.
  43053. func (s *ImportSnapshotInput) SetDryRun(v bool) *ImportSnapshotInput {
  43054. s.DryRun = &v
  43055. return s
  43056. }
  43057. // SetRoleName sets the RoleName field's value.
  43058. func (s *ImportSnapshotInput) SetRoleName(v string) *ImportSnapshotInput {
  43059. s.RoleName = &v
  43060. return s
  43061. }
  43062. // Contains the output for ImportSnapshot.
  43063. type ImportSnapshotOutput struct {
  43064. _ struct{} `type:"structure"`
  43065. // A description of the import snapshot task.
  43066. Description *string `locationName:"description" type:"string"`
  43067. // The ID of the import snapshot task.
  43068. ImportTaskId *string `locationName:"importTaskId" type:"string"`
  43069. // Information about the import snapshot task.
  43070. SnapshotTaskDetail *SnapshotTaskDetail `locationName:"snapshotTaskDetail" type:"structure"`
  43071. }
  43072. // String returns the string representation
  43073. func (s ImportSnapshotOutput) String() string {
  43074. return awsutil.Prettify(s)
  43075. }
  43076. // GoString returns the string representation
  43077. func (s ImportSnapshotOutput) GoString() string {
  43078. return s.String()
  43079. }
  43080. // SetDescription sets the Description field's value.
  43081. func (s *ImportSnapshotOutput) SetDescription(v string) *ImportSnapshotOutput {
  43082. s.Description = &v
  43083. return s
  43084. }
  43085. // SetImportTaskId sets the ImportTaskId field's value.
  43086. func (s *ImportSnapshotOutput) SetImportTaskId(v string) *ImportSnapshotOutput {
  43087. s.ImportTaskId = &v
  43088. return s
  43089. }
  43090. // SetSnapshotTaskDetail sets the SnapshotTaskDetail field's value.
  43091. func (s *ImportSnapshotOutput) SetSnapshotTaskDetail(v *SnapshotTaskDetail) *ImportSnapshotOutput {
  43092. s.SnapshotTaskDetail = v
  43093. return s
  43094. }
  43095. // Describes an import snapshot task.
  43096. type ImportSnapshotTask struct {
  43097. _ struct{} `type:"structure"`
  43098. // A description of the import snapshot task.
  43099. Description *string `locationName:"description" type:"string"`
  43100. // The ID of the import snapshot task.
  43101. ImportTaskId *string `locationName:"importTaskId" type:"string"`
  43102. // Describes an import snapshot task.
  43103. SnapshotTaskDetail *SnapshotTaskDetail `locationName:"snapshotTaskDetail" type:"structure"`
  43104. }
  43105. // String returns the string representation
  43106. func (s ImportSnapshotTask) String() string {
  43107. return awsutil.Prettify(s)
  43108. }
  43109. // GoString returns the string representation
  43110. func (s ImportSnapshotTask) GoString() string {
  43111. return s.String()
  43112. }
  43113. // SetDescription sets the Description field's value.
  43114. func (s *ImportSnapshotTask) SetDescription(v string) *ImportSnapshotTask {
  43115. s.Description = &v
  43116. return s
  43117. }
  43118. // SetImportTaskId sets the ImportTaskId field's value.
  43119. func (s *ImportSnapshotTask) SetImportTaskId(v string) *ImportSnapshotTask {
  43120. s.ImportTaskId = &v
  43121. return s
  43122. }
  43123. // SetSnapshotTaskDetail sets the SnapshotTaskDetail field's value.
  43124. func (s *ImportSnapshotTask) SetSnapshotTaskDetail(v *SnapshotTaskDetail) *ImportSnapshotTask {
  43125. s.SnapshotTaskDetail = v
  43126. return s
  43127. }
  43128. // Contains the parameters for ImportVolume.
  43129. type ImportVolumeInput struct {
  43130. _ struct{} `type:"structure"`
  43131. // The Availability Zone for the resulting EBS volume.
  43132. //
  43133. // AvailabilityZone is a required field
  43134. AvailabilityZone *string `locationName:"availabilityZone" type:"string" required:"true"`
  43135. // A description of the volume.
  43136. Description *string `locationName:"description" type:"string"`
  43137. // Checks whether you have the required permissions for the action, without
  43138. // actually making the request, and provides an error response. If you have
  43139. // the required permissions, the error response is DryRunOperation. Otherwise,
  43140. // it is UnauthorizedOperation.
  43141. DryRun *bool `locationName:"dryRun" type:"boolean"`
  43142. // The disk image.
  43143. //
  43144. // Image is a required field
  43145. Image *DiskImageDetail `locationName:"image" type:"structure" required:"true"`
  43146. // The volume size.
  43147. //
  43148. // Volume is a required field
  43149. Volume *VolumeDetail `locationName:"volume" type:"structure" required:"true"`
  43150. }
  43151. // String returns the string representation
  43152. func (s ImportVolumeInput) String() string {
  43153. return awsutil.Prettify(s)
  43154. }
  43155. // GoString returns the string representation
  43156. func (s ImportVolumeInput) GoString() string {
  43157. return s.String()
  43158. }
  43159. // Validate inspects the fields of the type to determine if they are valid.
  43160. func (s *ImportVolumeInput) Validate() error {
  43161. invalidParams := request.ErrInvalidParams{Context: "ImportVolumeInput"}
  43162. if s.AvailabilityZone == nil {
  43163. invalidParams.Add(request.NewErrParamRequired("AvailabilityZone"))
  43164. }
  43165. if s.Image == nil {
  43166. invalidParams.Add(request.NewErrParamRequired("Image"))
  43167. }
  43168. if s.Volume == nil {
  43169. invalidParams.Add(request.NewErrParamRequired("Volume"))
  43170. }
  43171. if s.Image != nil {
  43172. if err := s.Image.Validate(); err != nil {
  43173. invalidParams.AddNested("Image", err.(request.ErrInvalidParams))
  43174. }
  43175. }
  43176. if s.Volume != nil {
  43177. if err := s.Volume.Validate(); err != nil {
  43178. invalidParams.AddNested("Volume", err.(request.ErrInvalidParams))
  43179. }
  43180. }
  43181. if invalidParams.Len() > 0 {
  43182. return invalidParams
  43183. }
  43184. return nil
  43185. }
  43186. // SetAvailabilityZone sets the AvailabilityZone field's value.
  43187. func (s *ImportVolumeInput) SetAvailabilityZone(v string) *ImportVolumeInput {
  43188. s.AvailabilityZone = &v
  43189. return s
  43190. }
  43191. // SetDescription sets the Description field's value.
  43192. func (s *ImportVolumeInput) SetDescription(v string) *ImportVolumeInput {
  43193. s.Description = &v
  43194. return s
  43195. }
  43196. // SetDryRun sets the DryRun field's value.
  43197. func (s *ImportVolumeInput) SetDryRun(v bool) *ImportVolumeInput {
  43198. s.DryRun = &v
  43199. return s
  43200. }
  43201. // SetImage sets the Image field's value.
  43202. func (s *ImportVolumeInput) SetImage(v *DiskImageDetail) *ImportVolumeInput {
  43203. s.Image = v
  43204. return s
  43205. }
  43206. // SetVolume sets the Volume field's value.
  43207. func (s *ImportVolumeInput) SetVolume(v *VolumeDetail) *ImportVolumeInput {
  43208. s.Volume = v
  43209. return s
  43210. }
  43211. // Contains the output for ImportVolume.
  43212. type ImportVolumeOutput struct {
  43213. _ struct{} `type:"structure"`
  43214. // Information about the conversion task.
  43215. ConversionTask *ConversionTask `locationName:"conversionTask" type:"structure"`
  43216. }
  43217. // String returns the string representation
  43218. func (s ImportVolumeOutput) String() string {
  43219. return awsutil.Prettify(s)
  43220. }
  43221. // GoString returns the string representation
  43222. func (s ImportVolumeOutput) GoString() string {
  43223. return s.String()
  43224. }
  43225. // SetConversionTask sets the ConversionTask field's value.
  43226. func (s *ImportVolumeOutput) SetConversionTask(v *ConversionTask) *ImportVolumeOutput {
  43227. s.ConversionTask = v
  43228. return s
  43229. }
  43230. // Describes an import volume task.
  43231. type ImportVolumeTaskDetails struct {
  43232. _ struct{} `type:"structure"`
  43233. // The Availability Zone where the resulting volume will reside.
  43234. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  43235. // The number of bytes converted so far.
  43236. BytesConverted *int64 `locationName:"bytesConverted" type:"long"`
  43237. // The description you provided when starting the import volume task.
  43238. Description *string `locationName:"description" type:"string"`
  43239. // The image.
  43240. Image *DiskImageDescription `locationName:"image" type:"structure"`
  43241. // The volume.
  43242. Volume *DiskImageVolumeDescription `locationName:"volume" type:"structure"`
  43243. }
  43244. // String returns the string representation
  43245. func (s ImportVolumeTaskDetails) String() string {
  43246. return awsutil.Prettify(s)
  43247. }
  43248. // GoString returns the string representation
  43249. func (s ImportVolumeTaskDetails) GoString() string {
  43250. return s.String()
  43251. }
  43252. // SetAvailabilityZone sets the AvailabilityZone field's value.
  43253. func (s *ImportVolumeTaskDetails) SetAvailabilityZone(v string) *ImportVolumeTaskDetails {
  43254. s.AvailabilityZone = &v
  43255. return s
  43256. }
  43257. // SetBytesConverted sets the BytesConverted field's value.
  43258. func (s *ImportVolumeTaskDetails) SetBytesConverted(v int64) *ImportVolumeTaskDetails {
  43259. s.BytesConverted = &v
  43260. return s
  43261. }
  43262. // SetDescription sets the Description field's value.
  43263. func (s *ImportVolumeTaskDetails) SetDescription(v string) *ImportVolumeTaskDetails {
  43264. s.Description = &v
  43265. return s
  43266. }
  43267. // SetImage sets the Image field's value.
  43268. func (s *ImportVolumeTaskDetails) SetImage(v *DiskImageDescription) *ImportVolumeTaskDetails {
  43269. s.Image = v
  43270. return s
  43271. }
  43272. // SetVolume sets the Volume field's value.
  43273. func (s *ImportVolumeTaskDetails) SetVolume(v *DiskImageVolumeDescription) *ImportVolumeTaskDetails {
  43274. s.Volume = v
  43275. return s
  43276. }
  43277. // Describes an instance.
  43278. type Instance struct {
  43279. _ struct{} `type:"structure"`
  43280. // The AMI launch index, which can be used to find this instance in the launch
  43281. // group.
  43282. AmiLaunchIndex *int64 `locationName:"amiLaunchIndex" type:"integer"`
  43283. // The architecture of the image.
  43284. Architecture *string `locationName:"architecture" type:"string" enum:"ArchitectureValues"`
  43285. // Any block device mapping entries for the instance.
  43286. BlockDeviceMappings []*InstanceBlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  43287. // The idempotency token you provided when you launched the instance, if applicable.
  43288. ClientToken *string `locationName:"clientToken" type:"string"`
  43289. // The CPU options for the instance.
  43290. CpuOptions *CpuOptions `locationName:"cpuOptions" type:"structure"`
  43291. // Indicates whether the instance is optimized for Amazon EBS I/O. This optimization
  43292. // provides dedicated throughput to Amazon EBS and an optimized configuration
  43293. // stack to provide optimal I/O performance. This optimization isn't available
  43294. // with all instance types. Additional usage charges apply when using an EBS
  43295. // Optimized instance.
  43296. EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`
  43297. // The Elastic GPU associated with the instance.
  43298. ElasticGpuAssociations []*ElasticGpuAssociation `locationName:"elasticGpuAssociationSet" locationNameList:"item" type:"list"`
  43299. // Specifies whether enhanced networking with ENA is enabled.
  43300. EnaSupport *bool `locationName:"enaSupport" type:"boolean"`
  43301. // The hypervisor type of the instance.
  43302. Hypervisor *string `locationName:"hypervisor" type:"string" enum:"HypervisorType"`
  43303. // The IAM instance profile associated with the instance, if applicable.
  43304. IamInstanceProfile *IamInstanceProfile `locationName:"iamInstanceProfile" type:"structure"`
  43305. // The ID of the AMI used to launch the instance.
  43306. ImageId *string `locationName:"imageId" type:"string"`
  43307. // The ID of the instance.
  43308. InstanceId *string `locationName:"instanceId" type:"string"`
  43309. // Indicates whether this is a Spot Instance or a Scheduled Instance.
  43310. InstanceLifecycle *string `locationName:"instanceLifecycle" type:"string" enum:"InstanceLifecycleType"`
  43311. // The instance type.
  43312. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  43313. // The kernel associated with this instance, if applicable.
  43314. KernelId *string `locationName:"kernelId" type:"string"`
  43315. // The name of the key pair, if this instance was launched with an associated
  43316. // key pair.
  43317. KeyName *string `locationName:"keyName" type:"string"`
  43318. // The time the instance was launched.
  43319. LaunchTime *time.Time `locationName:"launchTime" type:"timestamp" timestampFormat:"iso8601"`
  43320. // The monitoring for the instance.
  43321. Monitoring *Monitoring `locationName:"monitoring" type:"structure"`
  43322. // [EC2-VPC] One or more network interfaces for the instance.
  43323. NetworkInterfaces []*InstanceNetworkInterface `locationName:"networkInterfaceSet" locationNameList:"item" type:"list"`
  43324. // The location where the instance launched, if applicable.
  43325. Placement *Placement `locationName:"placement" type:"structure"`
  43326. // The value is Windows for Windows instances; otherwise blank.
  43327. Platform *string `locationName:"platform" type:"string" enum:"PlatformValues"`
  43328. // (IPv4 only) The private DNS hostname name assigned to the instance. This
  43329. // DNS hostname can only be used inside the Amazon EC2 network. This name is
  43330. // not available until the instance enters the running state.
  43331. //
  43332. // [EC2-VPC] The Amazon-provided DNS server resolves Amazon-provided private
  43333. // DNS hostnames if you've enabled DNS resolution and DNS hostnames in your
  43334. // VPC. If you are not using the Amazon-provided DNS server in your VPC, your
  43335. // custom domain name servers must resolve the hostname as appropriate.
  43336. PrivateDnsName *string `locationName:"privateDnsName" type:"string"`
  43337. // The private IPv4 address assigned to the instance.
  43338. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  43339. // The product codes attached to this instance, if applicable.
  43340. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  43341. // (IPv4 only) The public DNS name assigned to the instance. This name is not
  43342. // available until the instance enters the running state. For EC2-VPC, this
  43343. // name is only available if you've enabled DNS hostnames for your VPC.
  43344. PublicDnsName *string `locationName:"dnsName" type:"string"`
  43345. // The public IPv4 address assigned to the instance, if applicable.
  43346. PublicIpAddress *string `locationName:"ipAddress" type:"string"`
  43347. // The RAM disk associated with this instance, if applicable.
  43348. RamdiskId *string `locationName:"ramdiskId" type:"string"`
  43349. // The device name of the root device volume (for example, /dev/sda1).
  43350. RootDeviceName *string `locationName:"rootDeviceName" type:"string"`
  43351. // The root device type used by the AMI. The AMI can use an EBS volume or an
  43352. // instance store volume.
  43353. RootDeviceType *string `locationName:"rootDeviceType" type:"string" enum:"DeviceType"`
  43354. // One or more security groups for the instance.
  43355. SecurityGroups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  43356. // Specifies whether to enable an instance launched in a VPC to perform NAT.
  43357. // This controls whether source/destination checking is enabled on the instance.
  43358. // A value of true means that checking is enabled, and false means that checking
  43359. // is disabled. The value must be false for the instance to perform NAT. For
  43360. // more information, see NAT Instances (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html)
  43361. // in the Amazon Virtual Private Cloud User Guide.
  43362. SourceDestCheck *bool `locationName:"sourceDestCheck" type:"boolean"`
  43363. // If the request is a Spot Instance request, the ID of the request.
  43364. SpotInstanceRequestId *string `locationName:"spotInstanceRequestId" type:"string"`
  43365. // Specifies whether enhanced networking with the Intel 82599 Virtual Function
  43366. // interface is enabled.
  43367. SriovNetSupport *string `locationName:"sriovNetSupport" type:"string"`
  43368. // The current state of the instance.
  43369. State *InstanceState `locationName:"instanceState" type:"structure"`
  43370. // The reason for the most recent state transition.
  43371. StateReason *StateReason `locationName:"stateReason" type:"structure"`
  43372. // The reason for the most recent state transition. This might be an empty string.
  43373. StateTransitionReason *string `locationName:"reason" type:"string"`
  43374. // [EC2-VPC] The ID of the subnet in which the instance is running.
  43375. SubnetId *string `locationName:"subnetId" type:"string"`
  43376. // Any tags assigned to the instance.
  43377. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  43378. // The virtualization type of the instance.
  43379. VirtualizationType *string `locationName:"virtualizationType" type:"string" enum:"VirtualizationType"`
  43380. // [EC2-VPC] The ID of the VPC in which the instance is running.
  43381. VpcId *string `locationName:"vpcId" type:"string"`
  43382. }
  43383. // String returns the string representation
  43384. func (s Instance) String() string {
  43385. return awsutil.Prettify(s)
  43386. }
  43387. // GoString returns the string representation
  43388. func (s Instance) GoString() string {
  43389. return s.String()
  43390. }
  43391. // SetAmiLaunchIndex sets the AmiLaunchIndex field's value.
  43392. func (s *Instance) SetAmiLaunchIndex(v int64) *Instance {
  43393. s.AmiLaunchIndex = &v
  43394. return s
  43395. }
  43396. // SetArchitecture sets the Architecture field's value.
  43397. func (s *Instance) SetArchitecture(v string) *Instance {
  43398. s.Architecture = &v
  43399. return s
  43400. }
  43401. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  43402. func (s *Instance) SetBlockDeviceMappings(v []*InstanceBlockDeviceMapping) *Instance {
  43403. s.BlockDeviceMappings = v
  43404. return s
  43405. }
  43406. // SetClientToken sets the ClientToken field's value.
  43407. func (s *Instance) SetClientToken(v string) *Instance {
  43408. s.ClientToken = &v
  43409. return s
  43410. }
  43411. // SetCpuOptions sets the CpuOptions field's value.
  43412. func (s *Instance) SetCpuOptions(v *CpuOptions) *Instance {
  43413. s.CpuOptions = v
  43414. return s
  43415. }
  43416. // SetEbsOptimized sets the EbsOptimized field's value.
  43417. func (s *Instance) SetEbsOptimized(v bool) *Instance {
  43418. s.EbsOptimized = &v
  43419. return s
  43420. }
  43421. // SetElasticGpuAssociations sets the ElasticGpuAssociations field's value.
  43422. func (s *Instance) SetElasticGpuAssociations(v []*ElasticGpuAssociation) *Instance {
  43423. s.ElasticGpuAssociations = v
  43424. return s
  43425. }
  43426. // SetEnaSupport sets the EnaSupport field's value.
  43427. func (s *Instance) SetEnaSupport(v bool) *Instance {
  43428. s.EnaSupport = &v
  43429. return s
  43430. }
  43431. // SetHypervisor sets the Hypervisor field's value.
  43432. func (s *Instance) SetHypervisor(v string) *Instance {
  43433. s.Hypervisor = &v
  43434. return s
  43435. }
  43436. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  43437. func (s *Instance) SetIamInstanceProfile(v *IamInstanceProfile) *Instance {
  43438. s.IamInstanceProfile = v
  43439. return s
  43440. }
  43441. // SetImageId sets the ImageId field's value.
  43442. func (s *Instance) SetImageId(v string) *Instance {
  43443. s.ImageId = &v
  43444. return s
  43445. }
  43446. // SetInstanceId sets the InstanceId field's value.
  43447. func (s *Instance) SetInstanceId(v string) *Instance {
  43448. s.InstanceId = &v
  43449. return s
  43450. }
  43451. // SetInstanceLifecycle sets the InstanceLifecycle field's value.
  43452. func (s *Instance) SetInstanceLifecycle(v string) *Instance {
  43453. s.InstanceLifecycle = &v
  43454. return s
  43455. }
  43456. // SetInstanceType sets the InstanceType field's value.
  43457. func (s *Instance) SetInstanceType(v string) *Instance {
  43458. s.InstanceType = &v
  43459. return s
  43460. }
  43461. // SetKernelId sets the KernelId field's value.
  43462. func (s *Instance) SetKernelId(v string) *Instance {
  43463. s.KernelId = &v
  43464. return s
  43465. }
  43466. // SetKeyName sets the KeyName field's value.
  43467. func (s *Instance) SetKeyName(v string) *Instance {
  43468. s.KeyName = &v
  43469. return s
  43470. }
  43471. // SetLaunchTime sets the LaunchTime field's value.
  43472. func (s *Instance) SetLaunchTime(v time.Time) *Instance {
  43473. s.LaunchTime = &v
  43474. return s
  43475. }
  43476. // SetMonitoring sets the Monitoring field's value.
  43477. func (s *Instance) SetMonitoring(v *Monitoring) *Instance {
  43478. s.Monitoring = v
  43479. return s
  43480. }
  43481. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  43482. func (s *Instance) SetNetworkInterfaces(v []*InstanceNetworkInterface) *Instance {
  43483. s.NetworkInterfaces = v
  43484. return s
  43485. }
  43486. // SetPlacement sets the Placement field's value.
  43487. func (s *Instance) SetPlacement(v *Placement) *Instance {
  43488. s.Placement = v
  43489. return s
  43490. }
  43491. // SetPlatform sets the Platform field's value.
  43492. func (s *Instance) SetPlatform(v string) *Instance {
  43493. s.Platform = &v
  43494. return s
  43495. }
  43496. // SetPrivateDnsName sets the PrivateDnsName field's value.
  43497. func (s *Instance) SetPrivateDnsName(v string) *Instance {
  43498. s.PrivateDnsName = &v
  43499. return s
  43500. }
  43501. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  43502. func (s *Instance) SetPrivateIpAddress(v string) *Instance {
  43503. s.PrivateIpAddress = &v
  43504. return s
  43505. }
  43506. // SetProductCodes sets the ProductCodes field's value.
  43507. func (s *Instance) SetProductCodes(v []*ProductCode) *Instance {
  43508. s.ProductCodes = v
  43509. return s
  43510. }
  43511. // SetPublicDnsName sets the PublicDnsName field's value.
  43512. func (s *Instance) SetPublicDnsName(v string) *Instance {
  43513. s.PublicDnsName = &v
  43514. return s
  43515. }
  43516. // SetPublicIpAddress sets the PublicIpAddress field's value.
  43517. func (s *Instance) SetPublicIpAddress(v string) *Instance {
  43518. s.PublicIpAddress = &v
  43519. return s
  43520. }
  43521. // SetRamdiskId sets the RamdiskId field's value.
  43522. func (s *Instance) SetRamdiskId(v string) *Instance {
  43523. s.RamdiskId = &v
  43524. return s
  43525. }
  43526. // SetRootDeviceName sets the RootDeviceName field's value.
  43527. func (s *Instance) SetRootDeviceName(v string) *Instance {
  43528. s.RootDeviceName = &v
  43529. return s
  43530. }
  43531. // SetRootDeviceType sets the RootDeviceType field's value.
  43532. func (s *Instance) SetRootDeviceType(v string) *Instance {
  43533. s.RootDeviceType = &v
  43534. return s
  43535. }
  43536. // SetSecurityGroups sets the SecurityGroups field's value.
  43537. func (s *Instance) SetSecurityGroups(v []*GroupIdentifier) *Instance {
  43538. s.SecurityGroups = v
  43539. return s
  43540. }
  43541. // SetSourceDestCheck sets the SourceDestCheck field's value.
  43542. func (s *Instance) SetSourceDestCheck(v bool) *Instance {
  43543. s.SourceDestCheck = &v
  43544. return s
  43545. }
  43546. // SetSpotInstanceRequestId sets the SpotInstanceRequestId field's value.
  43547. func (s *Instance) SetSpotInstanceRequestId(v string) *Instance {
  43548. s.SpotInstanceRequestId = &v
  43549. return s
  43550. }
  43551. // SetSriovNetSupport sets the SriovNetSupport field's value.
  43552. func (s *Instance) SetSriovNetSupport(v string) *Instance {
  43553. s.SriovNetSupport = &v
  43554. return s
  43555. }
  43556. // SetState sets the State field's value.
  43557. func (s *Instance) SetState(v *InstanceState) *Instance {
  43558. s.State = v
  43559. return s
  43560. }
  43561. // SetStateReason sets the StateReason field's value.
  43562. func (s *Instance) SetStateReason(v *StateReason) *Instance {
  43563. s.StateReason = v
  43564. return s
  43565. }
  43566. // SetStateTransitionReason sets the StateTransitionReason field's value.
  43567. func (s *Instance) SetStateTransitionReason(v string) *Instance {
  43568. s.StateTransitionReason = &v
  43569. return s
  43570. }
  43571. // SetSubnetId sets the SubnetId field's value.
  43572. func (s *Instance) SetSubnetId(v string) *Instance {
  43573. s.SubnetId = &v
  43574. return s
  43575. }
  43576. // SetTags sets the Tags field's value.
  43577. func (s *Instance) SetTags(v []*Tag) *Instance {
  43578. s.Tags = v
  43579. return s
  43580. }
  43581. // SetVirtualizationType sets the VirtualizationType field's value.
  43582. func (s *Instance) SetVirtualizationType(v string) *Instance {
  43583. s.VirtualizationType = &v
  43584. return s
  43585. }
  43586. // SetVpcId sets the VpcId field's value.
  43587. func (s *Instance) SetVpcId(v string) *Instance {
  43588. s.VpcId = &v
  43589. return s
  43590. }
  43591. // Describes a block device mapping.
  43592. type InstanceBlockDeviceMapping struct {
  43593. _ struct{} `type:"structure"`
  43594. // The device name (for example, /dev/sdh or xvdh).
  43595. DeviceName *string `locationName:"deviceName" type:"string"`
  43596. // Parameters used to automatically set up EBS volumes when the instance is
  43597. // launched.
  43598. Ebs *EbsInstanceBlockDevice `locationName:"ebs" type:"structure"`
  43599. }
  43600. // String returns the string representation
  43601. func (s InstanceBlockDeviceMapping) String() string {
  43602. return awsutil.Prettify(s)
  43603. }
  43604. // GoString returns the string representation
  43605. func (s InstanceBlockDeviceMapping) GoString() string {
  43606. return s.String()
  43607. }
  43608. // SetDeviceName sets the DeviceName field's value.
  43609. func (s *InstanceBlockDeviceMapping) SetDeviceName(v string) *InstanceBlockDeviceMapping {
  43610. s.DeviceName = &v
  43611. return s
  43612. }
  43613. // SetEbs sets the Ebs field's value.
  43614. func (s *InstanceBlockDeviceMapping) SetEbs(v *EbsInstanceBlockDevice) *InstanceBlockDeviceMapping {
  43615. s.Ebs = v
  43616. return s
  43617. }
  43618. // Describes a block device mapping entry.
  43619. type InstanceBlockDeviceMappingSpecification struct {
  43620. _ struct{} `type:"structure"`
  43621. // The device name (for example, /dev/sdh or xvdh).
  43622. DeviceName *string `locationName:"deviceName" type:"string"`
  43623. // Parameters used to automatically set up EBS volumes when the instance is
  43624. // launched.
  43625. Ebs *EbsInstanceBlockDeviceSpecification `locationName:"ebs" type:"structure"`
  43626. // suppress the specified device included in the block device mapping.
  43627. NoDevice *string `locationName:"noDevice" type:"string"`
  43628. // The virtual device name.
  43629. VirtualName *string `locationName:"virtualName" type:"string"`
  43630. }
  43631. // String returns the string representation
  43632. func (s InstanceBlockDeviceMappingSpecification) String() string {
  43633. return awsutil.Prettify(s)
  43634. }
  43635. // GoString returns the string representation
  43636. func (s InstanceBlockDeviceMappingSpecification) GoString() string {
  43637. return s.String()
  43638. }
  43639. // SetDeviceName sets the DeviceName field's value.
  43640. func (s *InstanceBlockDeviceMappingSpecification) SetDeviceName(v string) *InstanceBlockDeviceMappingSpecification {
  43641. s.DeviceName = &v
  43642. return s
  43643. }
  43644. // SetEbs sets the Ebs field's value.
  43645. func (s *InstanceBlockDeviceMappingSpecification) SetEbs(v *EbsInstanceBlockDeviceSpecification) *InstanceBlockDeviceMappingSpecification {
  43646. s.Ebs = v
  43647. return s
  43648. }
  43649. // SetNoDevice sets the NoDevice field's value.
  43650. func (s *InstanceBlockDeviceMappingSpecification) SetNoDevice(v string) *InstanceBlockDeviceMappingSpecification {
  43651. s.NoDevice = &v
  43652. return s
  43653. }
  43654. // SetVirtualName sets the VirtualName field's value.
  43655. func (s *InstanceBlockDeviceMappingSpecification) SetVirtualName(v string) *InstanceBlockDeviceMappingSpecification {
  43656. s.VirtualName = &v
  43657. return s
  43658. }
  43659. // Information about the instance type that the Dedicated Host supports.
  43660. type InstanceCapacity struct {
  43661. _ struct{} `type:"structure"`
  43662. // The number of instances that can still be launched onto the Dedicated Host.
  43663. AvailableCapacity *int64 `locationName:"availableCapacity" type:"integer"`
  43664. // The instance type size supported by the Dedicated Host.
  43665. InstanceType *string `locationName:"instanceType" type:"string"`
  43666. // The total number of instances that can be launched onto the Dedicated Host.
  43667. TotalCapacity *int64 `locationName:"totalCapacity" type:"integer"`
  43668. }
  43669. // String returns the string representation
  43670. func (s InstanceCapacity) String() string {
  43671. return awsutil.Prettify(s)
  43672. }
  43673. // GoString returns the string representation
  43674. func (s InstanceCapacity) GoString() string {
  43675. return s.String()
  43676. }
  43677. // SetAvailableCapacity sets the AvailableCapacity field's value.
  43678. func (s *InstanceCapacity) SetAvailableCapacity(v int64) *InstanceCapacity {
  43679. s.AvailableCapacity = &v
  43680. return s
  43681. }
  43682. // SetInstanceType sets the InstanceType field's value.
  43683. func (s *InstanceCapacity) SetInstanceType(v string) *InstanceCapacity {
  43684. s.InstanceType = &v
  43685. return s
  43686. }
  43687. // SetTotalCapacity sets the TotalCapacity field's value.
  43688. func (s *InstanceCapacity) SetTotalCapacity(v int64) *InstanceCapacity {
  43689. s.TotalCapacity = &v
  43690. return s
  43691. }
  43692. // Describes a Reserved Instance listing state.
  43693. type InstanceCount struct {
  43694. _ struct{} `type:"structure"`
  43695. // The number of listed Reserved Instances in the state specified by the state.
  43696. InstanceCount *int64 `locationName:"instanceCount" type:"integer"`
  43697. // The states of the listed Reserved Instances.
  43698. State *string `locationName:"state" type:"string" enum:"ListingState"`
  43699. }
  43700. // String returns the string representation
  43701. func (s InstanceCount) String() string {
  43702. return awsutil.Prettify(s)
  43703. }
  43704. // GoString returns the string representation
  43705. func (s InstanceCount) GoString() string {
  43706. return s.String()
  43707. }
  43708. // SetInstanceCount sets the InstanceCount field's value.
  43709. func (s *InstanceCount) SetInstanceCount(v int64) *InstanceCount {
  43710. s.InstanceCount = &v
  43711. return s
  43712. }
  43713. // SetState sets the State field's value.
  43714. func (s *InstanceCount) SetState(v string) *InstanceCount {
  43715. s.State = &v
  43716. return s
  43717. }
  43718. // Describes the credit option for CPU usage of a T2 instance.
  43719. type InstanceCreditSpecification struct {
  43720. _ struct{} `type:"structure"`
  43721. // The credit option for CPU usage of the instance. Valid values are standard
  43722. // and unlimited.
  43723. CpuCredits *string `locationName:"cpuCredits" type:"string"`
  43724. // The ID of the instance.
  43725. InstanceId *string `locationName:"instanceId" type:"string"`
  43726. }
  43727. // String returns the string representation
  43728. func (s InstanceCreditSpecification) String() string {
  43729. return awsutil.Prettify(s)
  43730. }
  43731. // GoString returns the string representation
  43732. func (s InstanceCreditSpecification) GoString() string {
  43733. return s.String()
  43734. }
  43735. // SetCpuCredits sets the CpuCredits field's value.
  43736. func (s *InstanceCreditSpecification) SetCpuCredits(v string) *InstanceCreditSpecification {
  43737. s.CpuCredits = &v
  43738. return s
  43739. }
  43740. // SetInstanceId sets the InstanceId field's value.
  43741. func (s *InstanceCreditSpecification) SetInstanceId(v string) *InstanceCreditSpecification {
  43742. s.InstanceId = &v
  43743. return s
  43744. }
  43745. // Describes the credit option for CPU usage of a T2 instance.
  43746. type InstanceCreditSpecificationRequest struct {
  43747. _ struct{} `type:"structure"`
  43748. // The credit option for CPU usage of the instance. Valid values are standard
  43749. // and unlimited.
  43750. CpuCredits *string `type:"string"`
  43751. // The ID of the instance.
  43752. InstanceId *string `type:"string"`
  43753. }
  43754. // String returns the string representation
  43755. func (s InstanceCreditSpecificationRequest) String() string {
  43756. return awsutil.Prettify(s)
  43757. }
  43758. // GoString returns the string representation
  43759. func (s InstanceCreditSpecificationRequest) GoString() string {
  43760. return s.String()
  43761. }
  43762. // SetCpuCredits sets the CpuCredits field's value.
  43763. func (s *InstanceCreditSpecificationRequest) SetCpuCredits(v string) *InstanceCreditSpecificationRequest {
  43764. s.CpuCredits = &v
  43765. return s
  43766. }
  43767. // SetInstanceId sets the InstanceId field's value.
  43768. func (s *InstanceCreditSpecificationRequest) SetInstanceId(v string) *InstanceCreditSpecificationRequest {
  43769. s.InstanceId = &v
  43770. return s
  43771. }
  43772. // Describes an instance to export.
  43773. type InstanceExportDetails struct {
  43774. _ struct{} `type:"structure"`
  43775. // The ID of the resource being exported.
  43776. InstanceId *string `locationName:"instanceId" type:"string"`
  43777. // The target virtualization environment.
  43778. TargetEnvironment *string `locationName:"targetEnvironment" type:"string" enum:"ExportEnvironment"`
  43779. }
  43780. // String returns the string representation
  43781. func (s InstanceExportDetails) String() string {
  43782. return awsutil.Prettify(s)
  43783. }
  43784. // GoString returns the string representation
  43785. func (s InstanceExportDetails) GoString() string {
  43786. return s.String()
  43787. }
  43788. // SetInstanceId sets the InstanceId field's value.
  43789. func (s *InstanceExportDetails) SetInstanceId(v string) *InstanceExportDetails {
  43790. s.InstanceId = &v
  43791. return s
  43792. }
  43793. // SetTargetEnvironment sets the TargetEnvironment field's value.
  43794. func (s *InstanceExportDetails) SetTargetEnvironment(v string) *InstanceExportDetails {
  43795. s.TargetEnvironment = &v
  43796. return s
  43797. }
  43798. // Describes an IPv6 address.
  43799. type InstanceIpv6Address struct {
  43800. _ struct{} `type:"structure"`
  43801. // The IPv6 address.
  43802. Ipv6Address *string `locationName:"ipv6Address" type:"string"`
  43803. }
  43804. // String returns the string representation
  43805. func (s InstanceIpv6Address) String() string {
  43806. return awsutil.Prettify(s)
  43807. }
  43808. // GoString returns the string representation
  43809. func (s InstanceIpv6Address) GoString() string {
  43810. return s.String()
  43811. }
  43812. // SetIpv6Address sets the Ipv6Address field's value.
  43813. func (s *InstanceIpv6Address) SetIpv6Address(v string) *InstanceIpv6Address {
  43814. s.Ipv6Address = &v
  43815. return s
  43816. }
  43817. // Describes an IPv6 address.
  43818. type InstanceIpv6AddressRequest struct {
  43819. _ struct{} `type:"structure"`
  43820. // The IPv6 address.
  43821. Ipv6Address *string `type:"string"`
  43822. }
  43823. // String returns the string representation
  43824. func (s InstanceIpv6AddressRequest) String() string {
  43825. return awsutil.Prettify(s)
  43826. }
  43827. // GoString returns the string representation
  43828. func (s InstanceIpv6AddressRequest) GoString() string {
  43829. return s.String()
  43830. }
  43831. // SetIpv6Address sets the Ipv6Address field's value.
  43832. func (s *InstanceIpv6AddressRequest) SetIpv6Address(v string) *InstanceIpv6AddressRequest {
  43833. s.Ipv6Address = &v
  43834. return s
  43835. }
  43836. // Describes the market (purchasing) option for the instances.
  43837. type InstanceMarketOptionsRequest struct {
  43838. _ struct{} `type:"structure"`
  43839. // The market type.
  43840. MarketType *string `type:"string" enum:"MarketType"`
  43841. // The options for Spot Instances.
  43842. SpotOptions *SpotMarketOptions `type:"structure"`
  43843. }
  43844. // String returns the string representation
  43845. func (s InstanceMarketOptionsRequest) String() string {
  43846. return awsutil.Prettify(s)
  43847. }
  43848. // GoString returns the string representation
  43849. func (s InstanceMarketOptionsRequest) GoString() string {
  43850. return s.String()
  43851. }
  43852. // SetMarketType sets the MarketType field's value.
  43853. func (s *InstanceMarketOptionsRequest) SetMarketType(v string) *InstanceMarketOptionsRequest {
  43854. s.MarketType = &v
  43855. return s
  43856. }
  43857. // SetSpotOptions sets the SpotOptions field's value.
  43858. func (s *InstanceMarketOptionsRequest) SetSpotOptions(v *SpotMarketOptions) *InstanceMarketOptionsRequest {
  43859. s.SpotOptions = v
  43860. return s
  43861. }
  43862. // Describes the monitoring of an instance.
  43863. type InstanceMonitoring struct {
  43864. _ struct{} `type:"structure"`
  43865. // The ID of the instance.
  43866. InstanceId *string `locationName:"instanceId" type:"string"`
  43867. // The monitoring for the instance.
  43868. Monitoring *Monitoring `locationName:"monitoring" type:"structure"`
  43869. }
  43870. // String returns the string representation
  43871. func (s InstanceMonitoring) String() string {
  43872. return awsutil.Prettify(s)
  43873. }
  43874. // GoString returns the string representation
  43875. func (s InstanceMonitoring) GoString() string {
  43876. return s.String()
  43877. }
  43878. // SetInstanceId sets the InstanceId field's value.
  43879. func (s *InstanceMonitoring) SetInstanceId(v string) *InstanceMonitoring {
  43880. s.InstanceId = &v
  43881. return s
  43882. }
  43883. // SetMonitoring sets the Monitoring field's value.
  43884. func (s *InstanceMonitoring) SetMonitoring(v *Monitoring) *InstanceMonitoring {
  43885. s.Monitoring = v
  43886. return s
  43887. }
  43888. // Describes a network interface.
  43889. type InstanceNetworkInterface struct {
  43890. _ struct{} `type:"structure"`
  43891. // The association information for an Elastic IPv4 associated with the network
  43892. // interface.
  43893. Association *InstanceNetworkInterfaceAssociation `locationName:"association" type:"structure"`
  43894. // The network interface attachment.
  43895. Attachment *InstanceNetworkInterfaceAttachment `locationName:"attachment" type:"structure"`
  43896. // The description.
  43897. Description *string `locationName:"description" type:"string"`
  43898. // One or more security groups.
  43899. Groups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  43900. // One or more IPv6 addresses associated with the network interface.
  43901. Ipv6Addresses []*InstanceIpv6Address `locationName:"ipv6AddressesSet" locationNameList:"item" type:"list"`
  43902. // The MAC address.
  43903. MacAddress *string `locationName:"macAddress" type:"string"`
  43904. // The ID of the network interface.
  43905. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  43906. // The ID of the AWS account that created the network interface.
  43907. OwnerId *string `locationName:"ownerId" type:"string"`
  43908. // The private DNS name.
  43909. PrivateDnsName *string `locationName:"privateDnsName" type:"string"`
  43910. // The IPv4 address of the network interface within the subnet.
  43911. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  43912. // One or more private IPv4 addresses associated with the network interface.
  43913. PrivateIpAddresses []*InstancePrivateIpAddress `locationName:"privateIpAddressesSet" locationNameList:"item" type:"list"`
  43914. // Indicates whether to validate network traffic to or from this network interface.
  43915. SourceDestCheck *bool `locationName:"sourceDestCheck" type:"boolean"`
  43916. // The status of the network interface.
  43917. Status *string `locationName:"status" type:"string" enum:"NetworkInterfaceStatus"`
  43918. // The ID of the subnet.
  43919. SubnetId *string `locationName:"subnetId" type:"string"`
  43920. // The ID of the VPC.
  43921. VpcId *string `locationName:"vpcId" type:"string"`
  43922. }
  43923. // String returns the string representation
  43924. func (s InstanceNetworkInterface) String() string {
  43925. return awsutil.Prettify(s)
  43926. }
  43927. // GoString returns the string representation
  43928. func (s InstanceNetworkInterface) GoString() string {
  43929. return s.String()
  43930. }
  43931. // SetAssociation sets the Association field's value.
  43932. func (s *InstanceNetworkInterface) SetAssociation(v *InstanceNetworkInterfaceAssociation) *InstanceNetworkInterface {
  43933. s.Association = v
  43934. return s
  43935. }
  43936. // SetAttachment sets the Attachment field's value.
  43937. func (s *InstanceNetworkInterface) SetAttachment(v *InstanceNetworkInterfaceAttachment) *InstanceNetworkInterface {
  43938. s.Attachment = v
  43939. return s
  43940. }
  43941. // SetDescription sets the Description field's value.
  43942. func (s *InstanceNetworkInterface) SetDescription(v string) *InstanceNetworkInterface {
  43943. s.Description = &v
  43944. return s
  43945. }
  43946. // SetGroups sets the Groups field's value.
  43947. func (s *InstanceNetworkInterface) SetGroups(v []*GroupIdentifier) *InstanceNetworkInterface {
  43948. s.Groups = v
  43949. return s
  43950. }
  43951. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  43952. func (s *InstanceNetworkInterface) SetIpv6Addresses(v []*InstanceIpv6Address) *InstanceNetworkInterface {
  43953. s.Ipv6Addresses = v
  43954. return s
  43955. }
  43956. // SetMacAddress sets the MacAddress field's value.
  43957. func (s *InstanceNetworkInterface) SetMacAddress(v string) *InstanceNetworkInterface {
  43958. s.MacAddress = &v
  43959. return s
  43960. }
  43961. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  43962. func (s *InstanceNetworkInterface) SetNetworkInterfaceId(v string) *InstanceNetworkInterface {
  43963. s.NetworkInterfaceId = &v
  43964. return s
  43965. }
  43966. // SetOwnerId sets the OwnerId field's value.
  43967. func (s *InstanceNetworkInterface) SetOwnerId(v string) *InstanceNetworkInterface {
  43968. s.OwnerId = &v
  43969. return s
  43970. }
  43971. // SetPrivateDnsName sets the PrivateDnsName field's value.
  43972. func (s *InstanceNetworkInterface) SetPrivateDnsName(v string) *InstanceNetworkInterface {
  43973. s.PrivateDnsName = &v
  43974. return s
  43975. }
  43976. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  43977. func (s *InstanceNetworkInterface) SetPrivateIpAddress(v string) *InstanceNetworkInterface {
  43978. s.PrivateIpAddress = &v
  43979. return s
  43980. }
  43981. // SetPrivateIpAddresses sets the PrivateIpAddresses field's value.
  43982. func (s *InstanceNetworkInterface) SetPrivateIpAddresses(v []*InstancePrivateIpAddress) *InstanceNetworkInterface {
  43983. s.PrivateIpAddresses = v
  43984. return s
  43985. }
  43986. // SetSourceDestCheck sets the SourceDestCheck field's value.
  43987. func (s *InstanceNetworkInterface) SetSourceDestCheck(v bool) *InstanceNetworkInterface {
  43988. s.SourceDestCheck = &v
  43989. return s
  43990. }
  43991. // SetStatus sets the Status field's value.
  43992. func (s *InstanceNetworkInterface) SetStatus(v string) *InstanceNetworkInterface {
  43993. s.Status = &v
  43994. return s
  43995. }
  43996. // SetSubnetId sets the SubnetId field's value.
  43997. func (s *InstanceNetworkInterface) SetSubnetId(v string) *InstanceNetworkInterface {
  43998. s.SubnetId = &v
  43999. return s
  44000. }
  44001. // SetVpcId sets the VpcId field's value.
  44002. func (s *InstanceNetworkInterface) SetVpcId(v string) *InstanceNetworkInterface {
  44003. s.VpcId = &v
  44004. return s
  44005. }
  44006. // Describes association information for an Elastic IP address (IPv4).
  44007. type InstanceNetworkInterfaceAssociation struct {
  44008. _ struct{} `type:"structure"`
  44009. // The ID of the owner of the Elastic IP address.
  44010. IpOwnerId *string `locationName:"ipOwnerId" type:"string"`
  44011. // The public DNS name.
  44012. PublicDnsName *string `locationName:"publicDnsName" type:"string"`
  44013. // The public IP address or Elastic IP address bound to the network interface.
  44014. PublicIp *string `locationName:"publicIp" type:"string"`
  44015. }
  44016. // String returns the string representation
  44017. func (s InstanceNetworkInterfaceAssociation) String() string {
  44018. return awsutil.Prettify(s)
  44019. }
  44020. // GoString returns the string representation
  44021. func (s InstanceNetworkInterfaceAssociation) GoString() string {
  44022. return s.String()
  44023. }
  44024. // SetIpOwnerId sets the IpOwnerId field's value.
  44025. func (s *InstanceNetworkInterfaceAssociation) SetIpOwnerId(v string) *InstanceNetworkInterfaceAssociation {
  44026. s.IpOwnerId = &v
  44027. return s
  44028. }
  44029. // SetPublicDnsName sets the PublicDnsName field's value.
  44030. func (s *InstanceNetworkInterfaceAssociation) SetPublicDnsName(v string) *InstanceNetworkInterfaceAssociation {
  44031. s.PublicDnsName = &v
  44032. return s
  44033. }
  44034. // SetPublicIp sets the PublicIp field's value.
  44035. func (s *InstanceNetworkInterfaceAssociation) SetPublicIp(v string) *InstanceNetworkInterfaceAssociation {
  44036. s.PublicIp = &v
  44037. return s
  44038. }
  44039. // Describes a network interface attachment.
  44040. type InstanceNetworkInterfaceAttachment struct {
  44041. _ struct{} `type:"structure"`
  44042. // The time stamp when the attachment initiated.
  44043. AttachTime *time.Time `locationName:"attachTime" type:"timestamp" timestampFormat:"iso8601"`
  44044. // The ID of the network interface attachment.
  44045. AttachmentId *string `locationName:"attachmentId" type:"string"`
  44046. // Indicates whether the network interface is deleted when the instance is terminated.
  44047. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  44048. // The index of the device on the instance for the network interface attachment.
  44049. DeviceIndex *int64 `locationName:"deviceIndex" type:"integer"`
  44050. // The attachment state.
  44051. Status *string `locationName:"status" type:"string" enum:"AttachmentStatus"`
  44052. }
  44053. // String returns the string representation
  44054. func (s InstanceNetworkInterfaceAttachment) String() string {
  44055. return awsutil.Prettify(s)
  44056. }
  44057. // GoString returns the string representation
  44058. func (s InstanceNetworkInterfaceAttachment) GoString() string {
  44059. return s.String()
  44060. }
  44061. // SetAttachTime sets the AttachTime field's value.
  44062. func (s *InstanceNetworkInterfaceAttachment) SetAttachTime(v time.Time) *InstanceNetworkInterfaceAttachment {
  44063. s.AttachTime = &v
  44064. return s
  44065. }
  44066. // SetAttachmentId sets the AttachmentId field's value.
  44067. func (s *InstanceNetworkInterfaceAttachment) SetAttachmentId(v string) *InstanceNetworkInterfaceAttachment {
  44068. s.AttachmentId = &v
  44069. return s
  44070. }
  44071. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  44072. func (s *InstanceNetworkInterfaceAttachment) SetDeleteOnTermination(v bool) *InstanceNetworkInterfaceAttachment {
  44073. s.DeleteOnTermination = &v
  44074. return s
  44075. }
  44076. // SetDeviceIndex sets the DeviceIndex field's value.
  44077. func (s *InstanceNetworkInterfaceAttachment) SetDeviceIndex(v int64) *InstanceNetworkInterfaceAttachment {
  44078. s.DeviceIndex = &v
  44079. return s
  44080. }
  44081. // SetStatus sets the Status field's value.
  44082. func (s *InstanceNetworkInterfaceAttachment) SetStatus(v string) *InstanceNetworkInterfaceAttachment {
  44083. s.Status = &v
  44084. return s
  44085. }
  44086. // Describes a network interface.
  44087. type InstanceNetworkInterfaceSpecification struct {
  44088. _ struct{} `type:"structure"`
  44089. // Indicates whether to assign a public IPv4 address to an instance you launch
  44090. // in a VPC. The public IP address can only be assigned to a network interface
  44091. // for eth0, and can only be assigned to a new network interface, not an existing
  44092. // one. You cannot specify more than one network interface in the request. If
  44093. // launching into a default subnet, the default value is true.
  44094. AssociatePublicIpAddress *bool `locationName:"associatePublicIpAddress" type:"boolean"`
  44095. // If set to true, the interface is deleted when the instance is terminated.
  44096. // You can specify true only if creating a new network interface when launching
  44097. // an instance.
  44098. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  44099. // The description of the network interface. Applies only if creating a network
  44100. // interface when launching an instance.
  44101. Description *string `locationName:"description" type:"string"`
  44102. // The index of the device on the instance for the network interface attachment.
  44103. // If you are specifying a network interface in a RunInstances request, you
  44104. // must provide the device index.
  44105. DeviceIndex *int64 `locationName:"deviceIndex" type:"integer"`
  44106. // The IDs of the security groups for the network interface. Applies only if
  44107. // creating a network interface when launching an instance.
  44108. Groups []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`
  44109. // A number of IPv6 addresses to assign to the network interface. Amazon EC2
  44110. // chooses the IPv6 addresses from the range of the subnet. You cannot specify
  44111. // this option and the option to assign specific IPv6 addresses in the same
  44112. // request. You can specify this option if you've specified a minimum number
  44113. // of instances to launch.
  44114. Ipv6AddressCount *int64 `locationName:"ipv6AddressCount" type:"integer"`
  44115. // One or more IPv6 addresses to assign to the network interface. You cannot
  44116. // specify this option and the option to assign a number of IPv6 addresses in
  44117. // the same request. You cannot specify this option if you've specified a minimum
  44118. // number of instances to launch.
  44119. Ipv6Addresses []*InstanceIpv6Address `locationName:"ipv6AddressesSet" queryName:"Ipv6Addresses" locationNameList:"item" type:"list"`
  44120. // The ID of the network interface.
  44121. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  44122. // The private IPv4 address of the network interface. Applies only if creating
  44123. // a network interface when launching an instance. You cannot specify this option
  44124. // if you're launching more than one instance in a RunInstances request.
  44125. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  44126. // One or more private IPv4 addresses to assign to the network interface. Only
  44127. // one private IPv4 address can be designated as primary. You cannot specify
  44128. // this option if you're launching more than one instance in a RunInstances
  44129. // request.
  44130. PrivateIpAddresses []*PrivateIpAddressSpecification `locationName:"privateIpAddressesSet" queryName:"PrivateIpAddresses" locationNameList:"item" type:"list"`
  44131. // The number of secondary private IPv4 addresses. You can't specify this option
  44132. // and specify more than one private IP address using the private IP addresses
  44133. // option. You cannot specify this option if you're launching more than one
  44134. // instance in a RunInstances request.
  44135. SecondaryPrivateIpAddressCount *int64 `locationName:"secondaryPrivateIpAddressCount" type:"integer"`
  44136. // The ID of the subnet associated with the network string. Applies only if
  44137. // creating a network interface when launching an instance.
  44138. SubnetId *string `locationName:"subnetId" type:"string"`
  44139. }
  44140. // String returns the string representation
  44141. func (s InstanceNetworkInterfaceSpecification) String() string {
  44142. return awsutil.Prettify(s)
  44143. }
  44144. // GoString returns the string representation
  44145. func (s InstanceNetworkInterfaceSpecification) GoString() string {
  44146. return s.String()
  44147. }
  44148. // Validate inspects the fields of the type to determine if they are valid.
  44149. func (s *InstanceNetworkInterfaceSpecification) Validate() error {
  44150. invalidParams := request.ErrInvalidParams{Context: "InstanceNetworkInterfaceSpecification"}
  44151. if s.PrivateIpAddresses != nil {
  44152. for i, v := range s.PrivateIpAddresses {
  44153. if v == nil {
  44154. continue
  44155. }
  44156. if err := v.Validate(); err != nil {
  44157. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PrivateIpAddresses", i), err.(request.ErrInvalidParams))
  44158. }
  44159. }
  44160. }
  44161. if invalidParams.Len() > 0 {
  44162. return invalidParams
  44163. }
  44164. return nil
  44165. }
  44166. // SetAssociatePublicIpAddress sets the AssociatePublicIpAddress field's value.
  44167. func (s *InstanceNetworkInterfaceSpecification) SetAssociatePublicIpAddress(v bool) *InstanceNetworkInterfaceSpecification {
  44168. s.AssociatePublicIpAddress = &v
  44169. return s
  44170. }
  44171. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  44172. func (s *InstanceNetworkInterfaceSpecification) SetDeleteOnTermination(v bool) *InstanceNetworkInterfaceSpecification {
  44173. s.DeleteOnTermination = &v
  44174. return s
  44175. }
  44176. // SetDescription sets the Description field's value.
  44177. func (s *InstanceNetworkInterfaceSpecification) SetDescription(v string) *InstanceNetworkInterfaceSpecification {
  44178. s.Description = &v
  44179. return s
  44180. }
  44181. // SetDeviceIndex sets the DeviceIndex field's value.
  44182. func (s *InstanceNetworkInterfaceSpecification) SetDeviceIndex(v int64) *InstanceNetworkInterfaceSpecification {
  44183. s.DeviceIndex = &v
  44184. return s
  44185. }
  44186. // SetGroups sets the Groups field's value.
  44187. func (s *InstanceNetworkInterfaceSpecification) SetGroups(v []*string) *InstanceNetworkInterfaceSpecification {
  44188. s.Groups = v
  44189. return s
  44190. }
  44191. // SetIpv6AddressCount sets the Ipv6AddressCount field's value.
  44192. func (s *InstanceNetworkInterfaceSpecification) SetIpv6AddressCount(v int64) *InstanceNetworkInterfaceSpecification {
  44193. s.Ipv6AddressCount = &v
  44194. return s
  44195. }
  44196. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  44197. func (s *InstanceNetworkInterfaceSpecification) SetIpv6Addresses(v []*InstanceIpv6Address) *InstanceNetworkInterfaceSpecification {
  44198. s.Ipv6Addresses = v
  44199. return s
  44200. }
  44201. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  44202. func (s *InstanceNetworkInterfaceSpecification) SetNetworkInterfaceId(v string) *InstanceNetworkInterfaceSpecification {
  44203. s.NetworkInterfaceId = &v
  44204. return s
  44205. }
  44206. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  44207. func (s *InstanceNetworkInterfaceSpecification) SetPrivateIpAddress(v string) *InstanceNetworkInterfaceSpecification {
  44208. s.PrivateIpAddress = &v
  44209. return s
  44210. }
  44211. // SetPrivateIpAddresses sets the PrivateIpAddresses field's value.
  44212. func (s *InstanceNetworkInterfaceSpecification) SetPrivateIpAddresses(v []*PrivateIpAddressSpecification) *InstanceNetworkInterfaceSpecification {
  44213. s.PrivateIpAddresses = v
  44214. return s
  44215. }
  44216. // SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value.
  44217. func (s *InstanceNetworkInterfaceSpecification) SetSecondaryPrivateIpAddressCount(v int64) *InstanceNetworkInterfaceSpecification {
  44218. s.SecondaryPrivateIpAddressCount = &v
  44219. return s
  44220. }
  44221. // SetSubnetId sets the SubnetId field's value.
  44222. func (s *InstanceNetworkInterfaceSpecification) SetSubnetId(v string) *InstanceNetworkInterfaceSpecification {
  44223. s.SubnetId = &v
  44224. return s
  44225. }
  44226. // Describes a private IPv4 address.
  44227. type InstancePrivateIpAddress struct {
  44228. _ struct{} `type:"structure"`
  44229. // The association information for an Elastic IP address for the network interface.
  44230. Association *InstanceNetworkInterfaceAssociation `locationName:"association" type:"structure"`
  44231. // Indicates whether this IPv4 address is the primary private IP address of
  44232. // the network interface.
  44233. Primary *bool `locationName:"primary" type:"boolean"`
  44234. // The private IPv4 DNS name.
  44235. PrivateDnsName *string `locationName:"privateDnsName" type:"string"`
  44236. // The private IPv4 address of the network interface.
  44237. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  44238. }
  44239. // String returns the string representation
  44240. func (s InstancePrivateIpAddress) String() string {
  44241. return awsutil.Prettify(s)
  44242. }
  44243. // GoString returns the string representation
  44244. func (s InstancePrivateIpAddress) GoString() string {
  44245. return s.String()
  44246. }
  44247. // SetAssociation sets the Association field's value.
  44248. func (s *InstancePrivateIpAddress) SetAssociation(v *InstanceNetworkInterfaceAssociation) *InstancePrivateIpAddress {
  44249. s.Association = v
  44250. return s
  44251. }
  44252. // SetPrimary sets the Primary field's value.
  44253. func (s *InstancePrivateIpAddress) SetPrimary(v bool) *InstancePrivateIpAddress {
  44254. s.Primary = &v
  44255. return s
  44256. }
  44257. // SetPrivateDnsName sets the PrivateDnsName field's value.
  44258. func (s *InstancePrivateIpAddress) SetPrivateDnsName(v string) *InstancePrivateIpAddress {
  44259. s.PrivateDnsName = &v
  44260. return s
  44261. }
  44262. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  44263. func (s *InstancePrivateIpAddress) SetPrivateIpAddress(v string) *InstancePrivateIpAddress {
  44264. s.PrivateIpAddress = &v
  44265. return s
  44266. }
  44267. // Describes the current state of an instance.
  44268. type InstanceState struct {
  44269. _ struct{} `type:"structure"`
  44270. // The low byte represents the state. The high byte is an opaque internal value
  44271. // and should be ignored.
  44272. //
  44273. // * 0 : pending
  44274. //
  44275. // * 16 : running
  44276. //
  44277. // * 32 : shutting-down
  44278. //
  44279. // * 48 : terminated
  44280. //
  44281. // * 64 : stopping
  44282. //
  44283. // * 80 : stopped
  44284. Code *int64 `locationName:"code" type:"integer"`
  44285. // The current state of the instance.
  44286. Name *string `locationName:"name" type:"string" enum:"InstanceStateName"`
  44287. }
  44288. // String returns the string representation
  44289. func (s InstanceState) String() string {
  44290. return awsutil.Prettify(s)
  44291. }
  44292. // GoString returns the string representation
  44293. func (s InstanceState) GoString() string {
  44294. return s.String()
  44295. }
  44296. // SetCode sets the Code field's value.
  44297. func (s *InstanceState) SetCode(v int64) *InstanceState {
  44298. s.Code = &v
  44299. return s
  44300. }
  44301. // SetName sets the Name field's value.
  44302. func (s *InstanceState) SetName(v string) *InstanceState {
  44303. s.Name = &v
  44304. return s
  44305. }
  44306. // Describes an instance state change.
  44307. type InstanceStateChange struct {
  44308. _ struct{} `type:"structure"`
  44309. // The current state of the instance.
  44310. CurrentState *InstanceState `locationName:"currentState" type:"structure"`
  44311. // The ID of the instance.
  44312. InstanceId *string `locationName:"instanceId" type:"string"`
  44313. // The previous state of the instance.
  44314. PreviousState *InstanceState `locationName:"previousState" type:"structure"`
  44315. }
  44316. // String returns the string representation
  44317. func (s InstanceStateChange) String() string {
  44318. return awsutil.Prettify(s)
  44319. }
  44320. // GoString returns the string representation
  44321. func (s InstanceStateChange) GoString() string {
  44322. return s.String()
  44323. }
  44324. // SetCurrentState sets the CurrentState field's value.
  44325. func (s *InstanceStateChange) SetCurrentState(v *InstanceState) *InstanceStateChange {
  44326. s.CurrentState = v
  44327. return s
  44328. }
  44329. // SetInstanceId sets the InstanceId field's value.
  44330. func (s *InstanceStateChange) SetInstanceId(v string) *InstanceStateChange {
  44331. s.InstanceId = &v
  44332. return s
  44333. }
  44334. // SetPreviousState sets the PreviousState field's value.
  44335. func (s *InstanceStateChange) SetPreviousState(v *InstanceState) *InstanceStateChange {
  44336. s.PreviousState = v
  44337. return s
  44338. }
  44339. // Describes the status of an instance.
  44340. type InstanceStatus struct {
  44341. _ struct{} `type:"structure"`
  44342. // The Availability Zone of the instance.
  44343. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  44344. // Any scheduled events associated with the instance.
  44345. Events []*InstanceStatusEvent `locationName:"eventsSet" locationNameList:"item" type:"list"`
  44346. // The ID of the instance.
  44347. InstanceId *string `locationName:"instanceId" type:"string"`
  44348. // The intended state of the instance. DescribeInstanceStatus requires that
  44349. // an instance be in the running state.
  44350. InstanceState *InstanceState `locationName:"instanceState" type:"structure"`
  44351. // Reports impaired functionality that stems from issues internal to the instance,
  44352. // such as impaired reachability.
  44353. InstanceStatus *InstanceStatusSummary `locationName:"instanceStatus" type:"structure"`
  44354. // Reports impaired functionality that stems from issues related to the systems
  44355. // that support an instance, such as hardware failures and network connectivity
  44356. // problems.
  44357. SystemStatus *InstanceStatusSummary `locationName:"systemStatus" type:"structure"`
  44358. }
  44359. // String returns the string representation
  44360. func (s InstanceStatus) String() string {
  44361. return awsutil.Prettify(s)
  44362. }
  44363. // GoString returns the string representation
  44364. func (s InstanceStatus) GoString() string {
  44365. return s.String()
  44366. }
  44367. // SetAvailabilityZone sets the AvailabilityZone field's value.
  44368. func (s *InstanceStatus) SetAvailabilityZone(v string) *InstanceStatus {
  44369. s.AvailabilityZone = &v
  44370. return s
  44371. }
  44372. // SetEvents sets the Events field's value.
  44373. func (s *InstanceStatus) SetEvents(v []*InstanceStatusEvent) *InstanceStatus {
  44374. s.Events = v
  44375. return s
  44376. }
  44377. // SetInstanceId sets the InstanceId field's value.
  44378. func (s *InstanceStatus) SetInstanceId(v string) *InstanceStatus {
  44379. s.InstanceId = &v
  44380. return s
  44381. }
  44382. // SetInstanceState sets the InstanceState field's value.
  44383. func (s *InstanceStatus) SetInstanceState(v *InstanceState) *InstanceStatus {
  44384. s.InstanceState = v
  44385. return s
  44386. }
  44387. // SetInstanceStatus sets the InstanceStatus field's value.
  44388. func (s *InstanceStatus) SetInstanceStatus(v *InstanceStatusSummary) *InstanceStatus {
  44389. s.InstanceStatus = v
  44390. return s
  44391. }
  44392. // SetSystemStatus sets the SystemStatus field's value.
  44393. func (s *InstanceStatus) SetSystemStatus(v *InstanceStatusSummary) *InstanceStatus {
  44394. s.SystemStatus = v
  44395. return s
  44396. }
  44397. // Describes the instance status.
  44398. type InstanceStatusDetails struct {
  44399. _ struct{} `type:"structure"`
  44400. // The time when a status check failed. For an instance that was launched and
  44401. // impaired, this is the time when the instance was launched.
  44402. ImpairedSince *time.Time `locationName:"impairedSince" type:"timestamp" timestampFormat:"iso8601"`
  44403. // The type of instance status.
  44404. Name *string `locationName:"name" type:"string" enum:"StatusName"`
  44405. // The status.
  44406. Status *string `locationName:"status" type:"string" enum:"StatusType"`
  44407. }
  44408. // String returns the string representation
  44409. func (s InstanceStatusDetails) String() string {
  44410. return awsutil.Prettify(s)
  44411. }
  44412. // GoString returns the string representation
  44413. func (s InstanceStatusDetails) GoString() string {
  44414. return s.String()
  44415. }
  44416. // SetImpairedSince sets the ImpairedSince field's value.
  44417. func (s *InstanceStatusDetails) SetImpairedSince(v time.Time) *InstanceStatusDetails {
  44418. s.ImpairedSince = &v
  44419. return s
  44420. }
  44421. // SetName sets the Name field's value.
  44422. func (s *InstanceStatusDetails) SetName(v string) *InstanceStatusDetails {
  44423. s.Name = &v
  44424. return s
  44425. }
  44426. // SetStatus sets the Status field's value.
  44427. func (s *InstanceStatusDetails) SetStatus(v string) *InstanceStatusDetails {
  44428. s.Status = &v
  44429. return s
  44430. }
  44431. // Describes a scheduled event for an instance.
  44432. type InstanceStatusEvent struct {
  44433. _ struct{} `type:"structure"`
  44434. // The event code.
  44435. Code *string `locationName:"code" type:"string" enum:"EventCode"`
  44436. // A description of the event.
  44437. //
  44438. // After a scheduled event is completed, it can still be described for up to
  44439. // a week. If the event has been completed, this description starts with the
  44440. // following text: [Completed].
  44441. Description *string `locationName:"description" type:"string"`
  44442. // The latest scheduled end time for the event.
  44443. NotAfter *time.Time `locationName:"notAfter" type:"timestamp" timestampFormat:"iso8601"`
  44444. // The earliest scheduled start time for the event.
  44445. NotBefore *time.Time `locationName:"notBefore" type:"timestamp" timestampFormat:"iso8601"`
  44446. }
  44447. // String returns the string representation
  44448. func (s InstanceStatusEvent) String() string {
  44449. return awsutil.Prettify(s)
  44450. }
  44451. // GoString returns the string representation
  44452. func (s InstanceStatusEvent) GoString() string {
  44453. return s.String()
  44454. }
  44455. // SetCode sets the Code field's value.
  44456. func (s *InstanceStatusEvent) SetCode(v string) *InstanceStatusEvent {
  44457. s.Code = &v
  44458. return s
  44459. }
  44460. // SetDescription sets the Description field's value.
  44461. func (s *InstanceStatusEvent) SetDescription(v string) *InstanceStatusEvent {
  44462. s.Description = &v
  44463. return s
  44464. }
  44465. // SetNotAfter sets the NotAfter field's value.
  44466. func (s *InstanceStatusEvent) SetNotAfter(v time.Time) *InstanceStatusEvent {
  44467. s.NotAfter = &v
  44468. return s
  44469. }
  44470. // SetNotBefore sets the NotBefore field's value.
  44471. func (s *InstanceStatusEvent) SetNotBefore(v time.Time) *InstanceStatusEvent {
  44472. s.NotBefore = &v
  44473. return s
  44474. }
  44475. // Describes the status of an instance.
  44476. type InstanceStatusSummary struct {
  44477. _ struct{} `type:"structure"`
  44478. // The system instance health or application instance health.
  44479. Details []*InstanceStatusDetails `locationName:"details" locationNameList:"item" type:"list"`
  44480. // The status.
  44481. Status *string `locationName:"status" type:"string" enum:"SummaryStatus"`
  44482. }
  44483. // String returns the string representation
  44484. func (s InstanceStatusSummary) String() string {
  44485. return awsutil.Prettify(s)
  44486. }
  44487. // GoString returns the string representation
  44488. func (s InstanceStatusSummary) GoString() string {
  44489. return s.String()
  44490. }
  44491. // SetDetails sets the Details field's value.
  44492. func (s *InstanceStatusSummary) SetDetails(v []*InstanceStatusDetails) *InstanceStatusSummary {
  44493. s.Details = v
  44494. return s
  44495. }
  44496. // SetStatus sets the Status field's value.
  44497. func (s *InstanceStatusSummary) SetStatus(v string) *InstanceStatusSummary {
  44498. s.Status = &v
  44499. return s
  44500. }
  44501. // Describes an Internet gateway.
  44502. type InternetGateway struct {
  44503. _ struct{} `type:"structure"`
  44504. // Any VPCs attached to the Internet gateway.
  44505. Attachments []*InternetGatewayAttachment `locationName:"attachmentSet" locationNameList:"item" type:"list"`
  44506. // The ID of the Internet gateway.
  44507. InternetGatewayId *string `locationName:"internetGatewayId" type:"string"`
  44508. // Any tags assigned to the Internet gateway.
  44509. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  44510. }
  44511. // String returns the string representation
  44512. func (s InternetGateway) String() string {
  44513. return awsutil.Prettify(s)
  44514. }
  44515. // GoString returns the string representation
  44516. func (s InternetGateway) GoString() string {
  44517. return s.String()
  44518. }
  44519. // SetAttachments sets the Attachments field's value.
  44520. func (s *InternetGateway) SetAttachments(v []*InternetGatewayAttachment) *InternetGateway {
  44521. s.Attachments = v
  44522. return s
  44523. }
  44524. // SetInternetGatewayId sets the InternetGatewayId field's value.
  44525. func (s *InternetGateway) SetInternetGatewayId(v string) *InternetGateway {
  44526. s.InternetGatewayId = &v
  44527. return s
  44528. }
  44529. // SetTags sets the Tags field's value.
  44530. func (s *InternetGateway) SetTags(v []*Tag) *InternetGateway {
  44531. s.Tags = v
  44532. return s
  44533. }
  44534. // Describes the attachment of a VPC to an Internet gateway or an egress-only
  44535. // Internet gateway.
  44536. type InternetGatewayAttachment struct {
  44537. _ struct{} `type:"structure"`
  44538. // The current state of the attachment. For an Internet gateway, the state is
  44539. // available when attached to a VPC; otherwise, this value is not returned.
  44540. State *string `locationName:"state" type:"string" enum:"AttachmentStatus"`
  44541. // The ID of the VPC.
  44542. VpcId *string `locationName:"vpcId" type:"string"`
  44543. }
  44544. // String returns the string representation
  44545. func (s InternetGatewayAttachment) String() string {
  44546. return awsutil.Prettify(s)
  44547. }
  44548. // GoString returns the string representation
  44549. func (s InternetGatewayAttachment) GoString() string {
  44550. return s.String()
  44551. }
  44552. // SetState sets the State field's value.
  44553. func (s *InternetGatewayAttachment) SetState(v string) *InternetGatewayAttachment {
  44554. s.State = &v
  44555. return s
  44556. }
  44557. // SetVpcId sets the VpcId field's value.
  44558. func (s *InternetGatewayAttachment) SetVpcId(v string) *InternetGatewayAttachment {
  44559. s.VpcId = &v
  44560. return s
  44561. }
  44562. // Describes a set of permissions for a security group rule.
  44563. type IpPermission struct {
  44564. _ struct{} `type:"structure"`
  44565. // The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6
  44566. // type number. A value of -1 indicates all ICMP/ICMPv6 types. If you specify
  44567. // all ICMP/ICMPv6 types, you must specify all codes.
  44568. FromPort *int64 `locationName:"fromPort" type:"integer"`
  44569. // The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)).
  44570. //
  44571. // [EC2-VPC only] Use -1 to specify all protocols. When authorizing security
  44572. // group rules, specifying -1 or a protocol number other than tcp, udp, icmp,
  44573. // or 58 (ICMPv6) allows traffic on all ports, regardless of any port range
  44574. // you specify. For tcp, udp, and icmp, you must specify a port range. For 58
  44575. // (ICMPv6), you can optionally specify a port range; if you don't, traffic
  44576. // for all types and codes is allowed when authorizing rules.
  44577. IpProtocol *string `locationName:"ipProtocol" type:"string"`
  44578. // One or more IPv4 ranges.
  44579. IpRanges []*IpRange `locationName:"ipRanges" locationNameList:"item" type:"list"`
  44580. // [EC2-VPC only] One or more IPv6 ranges.
  44581. Ipv6Ranges []*Ipv6Range `locationName:"ipv6Ranges" locationNameList:"item" type:"list"`
  44582. // (EC2-VPC only; valid for AuthorizeSecurityGroupEgress, RevokeSecurityGroupEgress
  44583. // and DescribeSecurityGroups only) One or more prefix list IDs for an AWS service.
  44584. // In an AuthorizeSecurityGroupEgress request, this is the AWS service that
  44585. // you want to access through a VPC endpoint from instances associated with
  44586. // the security group.
  44587. PrefixListIds []*PrefixListId `locationName:"prefixListIds" locationNameList:"item" type:"list"`
  44588. // The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code.
  44589. // A value of -1 indicates all ICMP/ICMPv6 codes for the specified ICMP type.
  44590. // If you specify all ICMP/ICMPv6 types, you must specify all codes.
  44591. ToPort *int64 `locationName:"toPort" type:"integer"`
  44592. // One or more security group and AWS account ID pairs.
  44593. UserIdGroupPairs []*UserIdGroupPair `locationName:"groups" locationNameList:"item" type:"list"`
  44594. }
  44595. // String returns the string representation
  44596. func (s IpPermission) String() string {
  44597. return awsutil.Prettify(s)
  44598. }
  44599. // GoString returns the string representation
  44600. func (s IpPermission) GoString() string {
  44601. return s.String()
  44602. }
  44603. // SetFromPort sets the FromPort field's value.
  44604. func (s *IpPermission) SetFromPort(v int64) *IpPermission {
  44605. s.FromPort = &v
  44606. return s
  44607. }
  44608. // SetIpProtocol sets the IpProtocol field's value.
  44609. func (s *IpPermission) SetIpProtocol(v string) *IpPermission {
  44610. s.IpProtocol = &v
  44611. return s
  44612. }
  44613. // SetIpRanges sets the IpRanges field's value.
  44614. func (s *IpPermission) SetIpRanges(v []*IpRange) *IpPermission {
  44615. s.IpRanges = v
  44616. return s
  44617. }
  44618. // SetIpv6Ranges sets the Ipv6Ranges field's value.
  44619. func (s *IpPermission) SetIpv6Ranges(v []*Ipv6Range) *IpPermission {
  44620. s.Ipv6Ranges = v
  44621. return s
  44622. }
  44623. // SetPrefixListIds sets the PrefixListIds field's value.
  44624. func (s *IpPermission) SetPrefixListIds(v []*PrefixListId) *IpPermission {
  44625. s.PrefixListIds = v
  44626. return s
  44627. }
  44628. // SetToPort sets the ToPort field's value.
  44629. func (s *IpPermission) SetToPort(v int64) *IpPermission {
  44630. s.ToPort = &v
  44631. return s
  44632. }
  44633. // SetUserIdGroupPairs sets the UserIdGroupPairs field's value.
  44634. func (s *IpPermission) SetUserIdGroupPairs(v []*UserIdGroupPair) *IpPermission {
  44635. s.UserIdGroupPairs = v
  44636. return s
  44637. }
  44638. // Describes an IPv4 range.
  44639. type IpRange struct {
  44640. _ struct{} `type:"structure"`
  44641. // The IPv4 CIDR range. You can either specify a CIDR range or a source security
  44642. // group, not both. To specify a single IPv4 address, use the /32 prefix length.
  44643. CidrIp *string `locationName:"cidrIp" type:"string"`
  44644. // A description for the security group rule that references this IPv4 address
  44645. // range.
  44646. //
  44647. // Constraints: Up to 255 characters in length. Allowed characters are a-z,
  44648. // A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$*
  44649. Description *string `locationName:"description" type:"string"`
  44650. }
  44651. // String returns the string representation
  44652. func (s IpRange) String() string {
  44653. return awsutil.Prettify(s)
  44654. }
  44655. // GoString returns the string representation
  44656. func (s IpRange) GoString() string {
  44657. return s.String()
  44658. }
  44659. // SetCidrIp sets the CidrIp field's value.
  44660. func (s *IpRange) SetCidrIp(v string) *IpRange {
  44661. s.CidrIp = &v
  44662. return s
  44663. }
  44664. // SetDescription sets the Description field's value.
  44665. func (s *IpRange) SetDescription(v string) *IpRange {
  44666. s.Description = &v
  44667. return s
  44668. }
  44669. // Describes an IPv6 CIDR block.
  44670. type Ipv6CidrBlock struct {
  44671. _ struct{} `type:"structure"`
  44672. // The IPv6 CIDR block.
  44673. Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"`
  44674. }
  44675. // String returns the string representation
  44676. func (s Ipv6CidrBlock) String() string {
  44677. return awsutil.Prettify(s)
  44678. }
  44679. // GoString returns the string representation
  44680. func (s Ipv6CidrBlock) GoString() string {
  44681. return s.String()
  44682. }
  44683. // SetIpv6CidrBlock sets the Ipv6CidrBlock field's value.
  44684. func (s *Ipv6CidrBlock) SetIpv6CidrBlock(v string) *Ipv6CidrBlock {
  44685. s.Ipv6CidrBlock = &v
  44686. return s
  44687. }
  44688. // [EC2-VPC only] Describes an IPv6 range.
  44689. type Ipv6Range struct {
  44690. _ struct{} `type:"structure"`
  44691. // The IPv6 CIDR range. You can either specify a CIDR range or a source security
  44692. // group, not both. To specify a single IPv6 address, use the /128 prefix length.
  44693. CidrIpv6 *string `locationName:"cidrIpv6" type:"string"`
  44694. // A description for the security group rule that references this IPv6 address
  44695. // range.
  44696. //
  44697. // Constraints: Up to 255 characters in length. Allowed characters are a-z,
  44698. // A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$*
  44699. Description *string `locationName:"description" type:"string"`
  44700. }
  44701. // String returns the string representation
  44702. func (s Ipv6Range) String() string {
  44703. return awsutil.Prettify(s)
  44704. }
  44705. // GoString returns the string representation
  44706. func (s Ipv6Range) GoString() string {
  44707. return s.String()
  44708. }
  44709. // SetCidrIpv6 sets the CidrIpv6 field's value.
  44710. func (s *Ipv6Range) SetCidrIpv6(v string) *Ipv6Range {
  44711. s.CidrIpv6 = &v
  44712. return s
  44713. }
  44714. // SetDescription sets the Description field's value.
  44715. func (s *Ipv6Range) SetDescription(v string) *Ipv6Range {
  44716. s.Description = &v
  44717. return s
  44718. }
  44719. // Describes a key pair.
  44720. type KeyPairInfo struct {
  44721. _ struct{} `type:"structure"`
  44722. // If you used CreateKeyPair to create the key pair, this is the SHA-1 digest
  44723. // of the DER encoded private key. If you used ImportKeyPair to provide AWS
  44724. // the public key, this is the MD5 public key fingerprint as specified in section
  44725. // 4 of RFC4716.
  44726. KeyFingerprint *string `locationName:"keyFingerprint" type:"string"`
  44727. // The name of the key pair.
  44728. KeyName *string `locationName:"keyName" type:"string"`
  44729. }
  44730. // String returns the string representation
  44731. func (s KeyPairInfo) String() string {
  44732. return awsutil.Prettify(s)
  44733. }
  44734. // GoString returns the string representation
  44735. func (s KeyPairInfo) GoString() string {
  44736. return s.String()
  44737. }
  44738. // SetKeyFingerprint sets the KeyFingerprint field's value.
  44739. func (s *KeyPairInfo) SetKeyFingerprint(v string) *KeyPairInfo {
  44740. s.KeyFingerprint = &v
  44741. return s
  44742. }
  44743. // SetKeyName sets the KeyName field's value.
  44744. func (s *KeyPairInfo) SetKeyName(v string) *KeyPairInfo {
  44745. s.KeyName = &v
  44746. return s
  44747. }
  44748. // Describes a launch permission.
  44749. type LaunchPermission struct {
  44750. _ struct{} `type:"structure"`
  44751. // The name of the group.
  44752. Group *string `locationName:"group" type:"string" enum:"PermissionGroup"`
  44753. // The AWS account ID.
  44754. UserId *string `locationName:"userId" type:"string"`
  44755. }
  44756. // String returns the string representation
  44757. func (s LaunchPermission) String() string {
  44758. return awsutil.Prettify(s)
  44759. }
  44760. // GoString returns the string representation
  44761. func (s LaunchPermission) GoString() string {
  44762. return s.String()
  44763. }
  44764. // SetGroup sets the Group field's value.
  44765. func (s *LaunchPermission) SetGroup(v string) *LaunchPermission {
  44766. s.Group = &v
  44767. return s
  44768. }
  44769. // SetUserId sets the UserId field's value.
  44770. func (s *LaunchPermission) SetUserId(v string) *LaunchPermission {
  44771. s.UserId = &v
  44772. return s
  44773. }
  44774. // Describes a launch permission modification.
  44775. type LaunchPermissionModifications struct {
  44776. _ struct{} `type:"structure"`
  44777. // The AWS account ID to add to the list of launch permissions for the AMI.
  44778. Add []*LaunchPermission `locationNameList:"item" type:"list"`
  44779. // The AWS account ID to remove from the list of launch permissions for the
  44780. // AMI.
  44781. Remove []*LaunchPermission `locationNameList:"item" type:"list"`
  44782. }
  44783. // String returns the string representation
  44784. func (s LaunchPermissionModifications) String() string {
  44785. return awsutil.Prettify(s)
  44786. }
  44787. // GoString returns the string representation
  44788. func (s LaunchPermissionModifications) GoString() string {
  44789. return s.String()
  44790. }
  44791. // SetAdd sets the Add field's value.
  44792. func (s *LaunchPermissionModifications) SetAdd(v []*LaunchPermission) *LaunchPermissionModifications {
  44793. s.Add = v
  44794. return s
  44795. }
  44796. // SetRemove sets the Remove field's value.
  44797. func (s *LaunchPermissionModifications) SetRemove(v []*LaunchPermission) *LaunchPermissionModifications {
  44798. s.Remove = v
  44799. return s
  44800. }
  44801. // Describes the launch specification for an instance.
  44802. type LaunchSpecification struct {
  44803. _ struct{} `type:"structure"`
  44804. // Deprecated.
  44805. AddressingType *string `locationName:"addressingType" type:"string"`
  44806. // One or more block device mapping entries.
  44807. BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  44808. // Indicates whether the instance is optimized for EBS I/O. This optimization
  44809. // provides dedicated throughput to Amazon EBS and an optimized configuration
  44810. // stack to provide optimal EBS I/O performance. This optimization isn't available
  44811. // with all instance types. Additional usage charges apply when using an EBS
  44812. // Optimized instance.
  44813. //
  44814. // Default: false
  44815. EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`
  44816. // The IAM instance profile.
  44817. IamInstanceProfile *IamInstanceProfileSpecification `locationName:"iamInstanceProfile" type:"structure"`
  44818. // The ID of the AMI.
  44819. ImageId *string `locationName:"imageId" type:"string"`
  44820. // The instance type.
  44821. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  44822. // The ID of the kernel.
  44823. KernelId *string `locationName:"kernelId" type:"string"`
  44824. // The name of the key pair.
  44825. KeyName *string `locationName:"keyName" type:"string"`
  44826. // Describes the monitoring of an instance.
  44827. Monitoring *RunInstancesMonitoringEnabled `locationName:"monitoring" type:"structure"`
  44828. // One or more network interfaces. If you specify a network interface, you must
  44829. // specify subnet IDs and security group IDs using the network interface.
  44830. NetworkInterfaces []*InstanceNetworkInterfaceSpecification `locationName:"networkInterfaceSet" locationNameList:"item" type:"list"`
  44831. // The placement information for the instance.
  44832. Placement *SpotPlacement `locationName:"placement" type:"structure"`
  44833. // The ID of the RAM disk.
  44834. RamdiskId *string `locationName:"ramdiskId" type:"string"`
  44835. // One or more security groups. When requesting instances in a VPC, you must
  44836. // specify the IDs of the security groups. When requesting instances in EC2-Classic,
  44837. // you can specify the names or the IDs of the security groups.
  44838. SecurityGroups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  44839. // The ID of the subnet in which to launch the instance.
  44840. SubnetId *string `locationName:"subnetId" type:"string"`
  44841. // The Base64-encoded user data for the instance.
  44842. UserData *string `locationName:"userData" type:"string"`
  44843. }
  44844. // String returns the string representation
  44845. func (s LaunchSpecification) String() string {
  44846. return awsutil.Prettify(s)
  44847. }
  44848. // GoString returns the string representation
  44849. func (s LaunchSpecification) GoString() string {
  44850. return s.String()
  44851. }
  44852. // SetAddressingType sets the AddressingType field's value.
  44853. func (s *LaunchSpecification) SetAddressingType(v string) *LaunchSpecification {
  44854. s.AddressingType = &v
  44855. return s
  44856. }
  44857. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  44858. func (s *LaunchSpecification) SetBlockDeviceMappings(v []*BlockDeviceMapping) *LaunchSpecification {
  44859. s.BlockDeviceMappings = v
  44860. return s
  44861. }
  44862. // SetEbsOptimized sets the EbsOptimized field's value.
  44863. func (s *LaunchSpecification) SetEbsOptimized(v bool) *LaunchSpecification {
  44864. s.EbsOptimized = &v
  44865. return s
  44866. }
  44867. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  44868. func (s *LaunchSpecification) SetIamInstanceProfile(v *IamInstanceProfileSpecification) *LaunchSpecification {
  44869. s.IamInstanceProfile = v
  44870. return s
  44871. }
  44872. // SetImageId sets the ImageId field's value.
  44873. func (s *LaunchSpecification) SetImageId(v string) *LaunchSpecification {
  44874. s.ImageId = &v
  44875. return s
  44876. }
  44877. // SetInstanceType sets the InstanceType field's value.
  44878. func (s *LaunchSpecification) SetInstanceType(v string) *LaunchSpecification {
  44879. s.InstanceType = &v
  44880. return s
  44881. }
  44882. // SetKernelId sets the KernelId field's value.
  44883. func (s *LaunchSpecification) SetKernelId(v string) *LaunchSpecification {
  44884. s.KernelId = &v
  44885. return s
  44886. }
  44887. // SetKeyName sets the KeyName field's value.
  44888. func (s *LaunchSpecification) SetKeyName(v string) *LaunchSpecification {
  44889. s.KeyName = &v
  44890. return s
  44891. }
  44892. // SetMonitoring sets the Monitoring field's value.
  44893. func (s *LaunchSpecification) SetMonitoring(v *RunInstancesMonitoringEnabled) *LaunchSpecification {
  44894. s.Monitoring = v
  44895. return s
  44896. }
  44897. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  44898. func (s *LaunchSpecification) SetNetworkInterfaces(v []*InstanceNetworkInterfaceSpecification) *LaunchSpecification {
  44899. s.NetworkInterfaces = v
  44900. return s
  44901. }
  44902. // SetPlacement sets the Placement field's value.
  44903. func (s *LaunchSpecification) SetPlacement(v *SpotPlacement) *LaunchSpecification {
  44904. s.Placement = v
  44905. return s
  44906. }
  44907. // SetRamdiskId sets the RamdiskId field's value.
  44908. func (s *LaunchSpecification) SetRamdiskId(v string) *LaunchSpecification {
  44909. s.RamdiskId = &v
  44910. return s
  44911. }
  44912. // SetSecurityGroups sets the SecurityGroups field's value.
  44913. func (s *LaunchSpecification) SetSecurityGroups(v []*GroupIdentifier) *LaunchSpecification {
  44914. s.SecurityGroups = v
  44915. return s
  44916. }
  44917. // SetSubnetId sets the SubnetId field's value.
  44918. func (s *LaunchSpecification) SetSubnetId(v string) *LaunchSpecification {
  44919. s.SubnetId = &v
  44920. return s
  44921. }
  44922. // SetUserData sets the UserData field's value.
  44923. func (s *LaunchSpecification) SetUserData(v string) *LaunchSpecification {
  44924. s.UserData = &v
  44925. return s
  44926. }
  44927. // Describes a launch template.
  44928. type LaunchTemplate struct {
  44929. _ struct{} `type:"structure"`
  44930. // The time launch template was created.
  44931. CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"iso8601"`
  44932. // The principal that created the launch template.
  44933. CreatedBy *string `locationName:"createdBy" type:"string"`
  44934. // The version number of the default version of the launch template.
  44935. DefaultVersionNumber *int64 `locationName:"defaultVersionNumber" type:"long"`
  44936. // The version number of the latest version of the launch template.
  44937. LatestVersionNumber *int64 `locationName:"latestVersionNumber" type:"long"`
  44938. // The ID of the launch template.
  44939. LaunchTemplateId *string `locationName:"launchTemplateId" type:"string"`
  44940. // The name of the launch template.
  44941. LaunchTemplateName *string `locationName:"launchTemplateName" min:"3" type:"string"`
  44942. // The tags for the launch template.
  44943. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  44944. }
  44945. // String returns the string representation
  44946. func (s LaunchTemplate) String() string {
  44947. return awsutil.Prettify(s)
  44948. }
  44949. // GoString returns the string representation
  44950. func (s LaunchTemplate) GoString() string {
  44951. return s.String()
  44952. }
  44953. // SetCreateTime sets the CreateTime field's value.
  44954. func (s *LaunchTemplate) SetCreateTime(v time.Time) *LaunchTemplate {
  44955. s.CreateTime = &v
  44956. return s
  44957. }
  44958. // SetCreatedBy sets the CreatedBy field's value.
  44959. func (s *LaunchTemplate) SetCreatedBy(v string) *LaunchTemplate {
  44960. s.CreatedBy = &v
  44961. return s
  44962. }
  44963. // SetDefaultVersionNumber sets the DefaultVersionNumber field's value.
  44964. func (s *LaunchTemplate) SetDefaultVersionNumber(v int64) *LaunchTemplate {
  44965. s.DefaultVersionNumber = &v
  44966. return s
  44967. }
  44968. // SetLatestVersionNumber sets the LatestVersionNumber field's value.
  44969. func (s *LaunchTemplate) SetLatestVersionNumber(v int64) *LaunchTemplate {
  44970. s.LatestVersionNumber = &v
  44971. return s
  44972. }
  44973. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  44974. func (s *LaunchTemplate) SetLaunchTemplateId(v string) *LaunchTemplate {
  44975. s.LaunchTemplateId = &v
  44976. return s
  44977. }
  44978. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  44979. func (s *LaunchTemplate) SetLaunchTemplateName(v string) *LaunchTemplate {
  44980. s.LaunchTemplateName = &v
  44981. return s
  44982. }
  44983. // SetTags sets the Tags field's value.
  44984. func (s *LaunchTemplate) SetTags(v []*Tag) *LaunchTemplate {
  44985. s.Tags = v
  44986. return s
  44987. }
  44988. // Describes a block device mapping.
  44989. type LaunchTemplateBlockDeviceMapping struct {
  44990. _ struct{} `type:"structure"`
  44991. // The device name.
  44992. DeviceName *string `locationName:"deviceName" type:"string"`
  44993. // Information about the block device for an EBS volume.
  44994. Ebs *LaunchTemplateEbsBlockDevice `locationName:"ebs" type:"structure"`
  44995. // Suppresses the specified device included in the block device mapping of the
  44996. // AMI.
  44997. NoDevice *string `locationName:"noDevice" type:"string"`
  44998. // The virtual device name (ephemeralN).
  44999. VirtualName *string `locationName:"virtualName" type:"string"`
  45000. }
  45001. // String returns the string representation
  45002. func (s LaunchTemplateBlockDeviceMapping) String() string {
  45003. return awsutil.Prettify(s)
  45004. }
  45005. // GoString returns the string representation
  45006. func (s LaunchTemplateBlockDeviceMapping) GoString() string {
  45007. return s.String()
  45008. }
  45009. // SetDeviceName sets the DeviceName field's value.
  45010. func (s *LaunchTemplateBlockDeviceMapping) SetDeviceName(v string) *LaunchTemplateBlockDeviceMapping {
  45011. s.DeviceName = &v
  45012. return s
  45013. }
  45014. // SetEbs sets the Ebs field's value.
  45015. func (s *LaunchTemplateBlockDeviceMapping) SetEbs(v *LaunchTemplateEbsBlockDevice) *LaunchTemplateBlockDeviceMapping {
  45016. s.Ebs = v
  45017. return s
  45018. }
  45019. // SetNoDevice sets the NoDevice field's value.
  45020. func (s *LaunchTemplateBlockDeviceMapping) SetNoDevice(v string) *LaunchTemplateBlockDeviceMapping {
  45021. s.NoDevice = &v
  45022. return s
  45023. }
  45024. // SetVirtualName sets the VirtualName field's value.
  45025. func (s *LaunchTemplateBlockDeviceMapping) SetVirtualName(v string) *LaunchTemplateBlockDeviceMapping {
  45026. s.VirtualName = &v
  45027. return s
  45028. }
  45029. // Describes a block device mapping.
  45030. type LaunchTemplateBlockDeviceMappingRequest struct {
  45031. _ struct{} `type:"structure"`
  45032. // The device name (for example, /dev/sdh or xvdh).
  45033. DeviceName *string `type:"string"`
  45034. // Parameters used to automatically set up EBS volumes when the instance is
  45035. // launched.
  45036. Ebs *LaunchTemplateEbsBlockDeviceRequest `type:"structure"`
  45037. // Suppresses the specified device included in the block device mapping of the
  45038. // AMI.
  45039. NoDevice *string `type:"string"`
  45040. // The virtual device name (ephemeralN). Instance store volumes are numbered
  45041. // starting from 0. An instance type with 2 available instance store volumes
  45042. // can specify mappings for ephemeral0 and ephemeral1. The number of available
  45043. // instance store volumes depends on the instance type. After you connect to
  45044. // the instance, you must mount the volume.
  45045. VirtualName *string `type:"string"`
  45046. }
  45047. // String returns the string representation
  45048. func (s LaunchTemplateBlockDeviceMappingRequest) String() string {
  45049. return awsutil.Prettify(s)
  45050. }
  45051. // GoString returns the string representation
  45052. func (s LaunchTemplateBlockDeviceMappingRequest) GoString() string {
  45053. return s.String()
  45054. }
  45055. // SetDeviceName sets the DeviceName field's value.
  45056. func (s *LaunchTemplateBlockDeviceMappingRequest) SetDeviceName(v string) *LaunchTemplateBlockDeviceMappingRequest {
  45057. s.DeviceName = &v
  45058. return s
  45059. }
  45060. // SetEbs sets the Ebs field's value.
  45061. func (s *LaunchTemplateBlockDeviceMappingRequest) SetEbs(v *LaunchTemplateEbsBlockDeviceRequest) *LaunchTemplateBlockDeviceMappingRequest {
  45062. s.Ebs = v
  45063. return s
  45064. }
  45065. // SetNoDevice sets the NoDevice field's value.
  45066. func (s *LaunchTemplateBlockDeviceMappingRequest) SetNoDevice(v string) *LaunchTemplateBlockDeviceMappingRequest {
  45067. s.NoDevice = &v
  45068. return s
  45069. }
  45070. // SetVirtualName sets the VirtualName field's value.
  45071. func (s *LaunchTemplateBlockDeviceMappingRequest) SetVirtualName(v string) *LaunchTemplateBlockDeviceMappingRequest {
  45072. s.VirtualName = &v
  45073. return s
  45074. }
  45075. // Describes a launch template and overrides.
  45076. type LaunchTemplateConfig struct {
  45077. _ struct{} `type:"structure"`
  45078. // The launch template.
  45079. LaunchTemplateSpecification *FleetLaunchTemplateSpecification `locationName:"launchTemplateSpecification" type:"structure"`
  45080. // Any parameters that you specify override the same parameters in the launch
  45081. // template.
  45082. Overrides []*LaunchTemplateOverrides `locationName:"overrides" locationNameList:"item" type:"list"`
  45083. }
  45084. // String returns the string representation
  45085. func (s LaunchTemplateConfig) String() string {
  45086. return awsutil.Prettify(s)
  45087. }
  45088. // GoString returns the string representation
  45089. func (s LaunchTemplateConfig) GoString() string {
  45090. return s.String()
  45091. }
  45092. // Validate inspects the fields of the type to determine if they are valid.
  45093. func (s *LaunchTemplateConfig) Validate() error {
  45094. invalidParams := request.ErrInvalidParams{Context: "LaunchTemplateConfig"}
  45095. if s.LaunchTemplateSpecification != nil {
  45096. if err := s.LaunchTemplateSpecification.Validate(); err != nil {
  45097. invalidParams.AddNested("LaunchTemplateSpecification", err.(request.ErrInvalidParams))
  45098. }
  45099. }
  45100. if invalidParams.Len() > 0 {
  45101. return invalidParams
  45102. }
  45103. return nil
  45104. }
  45105. // SetLaunchTemplateSpecification sets the LaunchTemplateSpecification field's value.
  45106. func (s *LaunchTemplateConfig) SetLaunchTemplateSpecification(v *FleetLaunchTemplateSpecification) *LaunchTemplateConfig {
  45107. s.LaunchTemplateSpecification = v
  45108. return s
  45109. }
  45110. // SetOverrides sets the Overrides field's value.
  45111. func (s *LaunchTemplateConfig) SetOverrides(v []*LaunchTemplateOverrides) *LaunchTemplateConfig {
  45112. s.Overrides = v
  45113. return s
  45114. }
  45115. // Describes a block device for an EBS volume.
  45116. type LaunchTemplateEbsBlockDevice struct {
  45117. _ struct{} `type:"structure"`
  45118. // Indicates whether the EBS volume is deleted on instance termination.
  45119. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  45120. // Indicates whether the EBS volume is encrypted.
  45121. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  45122. // The number of I/O operations per second (IOPS) that the volume supports.
  45123. Iops *int64 `locationName:"iops" type:"integer"`
  45124. // The ARN of the AWS Key Management Service (AWS KMS) CMK used for encryption.
  45125. KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
  45126. // The ID of the snapshot.
  45127. SnapshotId *string `locationName:"snapshotId" type:"string"`
  45128. // The size of the volume, in GiB.
  45129. VolumeSize *int64 `locationName:"volumeSize" type:"integer"`
  45130. // The volume type.
  45131. VolumeType *string `locationName:"volumeType" type:"string" enum:"VolumeType"`
  45132. }
  45133. // String returns the string representation
  45134. func (s LaunchTemplateEbsBlockDevice) String() string {
  45135. return awsutil.Prettify(s)
  45136. }
  45137. // GoString returns the string representation
  45138. func (s LaunchTemplateEbsBlockDevice) GoString() string {
  45139. return s.String()
  45140. }
  45141. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  45142. func (s *LaunchTemplateEbsBlockDevice) SetDeleteOnTermination(v bool) *LaunchTemplateEbsBlockDevice {
  45143. s.DeleteOnTermination = &v
  45144. return s
  45145. }
  45146. // SetEncrypted sets the Encrypted field's value.
  45147. func (s *LaunchTemplateEbsBlockDevice) SetEncrypted(v bool) *LaunchTemplateEbsBlockDevice {
  45148. s.Encrypted = &v
  45149. return s
  45150. }
  45151. // SetIops sets the Iops field's value.
  45152. func (s *LaunchTemplateEbsBlockDevice) SetIops(v int64) *LaunchTemplateEbsBlockDevice {
  45153. s.Iops = &v
  45154. return s
  45155. }
  45156. // SetKmsKeyId sets the KmsKeyId field's value.
  45157. func (s *LaunchTemplateEbsBlockDevice) SetKmsKeyId(v string) *LaunchTemplateEbsBlockDevice {
  45158. s.KmsKeyId = &v
  45159. return s
  45160. }
  45161. // SetSnapshotId sets the SnapshotId field's value.
  45162. func (s *LaunchTemplateEbsBlockDevice) SetSnapshotId(v string) *LaunchTemplateEbsBlockDevice {
  45163. s.SnapshotId = &v
  45164. return s
  45165. }
  45166. // SetVolumeSize sets the VolumeSize field's value.
  45167. func (s *LaunchTemplateEbsBlockDevice) SetVolumeSize(v int64) *LaunchTemplateEbsBlockDevice {
  45168. s.VolumeSize = &v
  45169. return s
  45170. }
  45171. // SetVolumeType sets the VolumeType field's value.
  45172. func (s *LaunchTemplateEbsBlockDevice) SetVolumeType(v string) *LaunchTemplateEbsBlockDevice {
  45173. s.VolumeType = &v
  45174. return s
  45175. }
  45176. // The parameters for a block device for an EBS volume.
  45177. type LaunchTemplateEbsBlockDeviceRequest struct {
  45178. _ struct{} `type:"structure"`
  45179. // Indicates whether the EBS volume is deleted on instance termination.
  45180. DeleteOnTermination *bool `type:"boolean"`
  45181. // Indicates whether the EBS volume is encrypted. Encrypted volumes can only
  45182. // be attached to instances that support Amazon EBS encryption. If you are creating
  45183. // a volume from a snapshot, you can't specify an encryption value.
  45184. Encrypted *bool `type:"boolean"`
  45185. // The number of I/O operations per second (IOPS) that the volume supports.
  45186. // For io1, this represents the number of IOPS that are provisioned for the
  45187. // volume. For gp2, this represents the baseline performance of the volume and
  45188. // the rate at which the volume accumulates I/O credits for bursting. For more
  45189. // information about General Purpose SSD baseline performance, I/O credits,
  45190. // and bursting, see Amazon EBS Volume Types in the Amazon Elastic Compute Cloud
  45191. // User Guide.
  45192. //
  45193. // Condition: This parameter is required for requests to create io1 volumes;
  45194. // it is not used in requests to create gp2, st1, sc1, or standard volumes.
  45195. Iops *int64 `type:"integer"`
  45196. // The ARN of the AWS Key Management Service (AWS KMS) CMK used for encryption.
  45197. KmsKeyId *string `type:"string"`
  45198. // The ID of the snapshot.
  45199. SnapshotId *string `type:"string"`
  45200. // The size of the volume, in GiB.
  45201. //
  45202. // Default: If you're creating the volume from a snapshot and don't specify
  45203. // a volume size, the default is the snapshot size.
  45204. VolumeSize *int64 `type:"integer"`
  45205. // The volume type.
  45206. VolumeType *string `type:"string" enum:"VolumeType"`
  45207. }
  45208. // String returns the string representation
  45209. func (s LaunchTemplateEbsBlockDeviceRequest) String() string {
  45210. return awsutil.Prettify(s)
  45211. }
  45212. // GoString returns the string representation
  45213. func (s LaunchTemplateEbsBlockDeviceRequest) GoString() string {
  45214. return s.String()
  45215. }
  45216. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  45217. func (s *LaunchTemplateEbsBlockDeviceRequest) SetDeleteOnTermination(v bool) *LaunchTemplateEbsBlockDeviceRequest {
  45218. s.DeleteOnTermination = &v
  45219. return s
  45220. }
  45221. // SetEncrypted sets the Encrypted field's value.
  45222. func (s *LaunchTemplateEbsBlockDeviceRequest) SetEncrypted(v bool) *LaunchTemplateEbsBlockDeviceRequest {
  45223. s.Encrypted = &v
  45224. return s
  45225. }
  45226. // SetIops sets the Iops field's value.
  45227. func (s *LaunchTemplateEbsBlockDeviceRequest) SetIops(v int64) *LaunchTemplateEbsBlockDeviceRequest {
  45228. s.Iops = &v
  45229. return s
  45230. }
  45231. // SetKmsKeyId sets the KmsKeyId field's value.
  45232. func (s *LaunchTemplateEbsBlockDeviceRequest) SetKmsKeyId(v string) *LaunchTemplateEbsBlockDeviceRequest {
  45233. s.KmsKeyId = &v
  45234. return s
  45235. }
  45236. // SetSnapshotId sets the SnapshotId field's value.
  45237. func (s *LaunchTemplateEbsBlockDeviceRequest) SetSnapshotId(v string) *LaunchTemplateEbsBlockDeviceRequest {
  45238. s.SnapshotId = &v
  45239. return s
  45240. }
  45241. // SetVolumeSize sets the VolumeSize field's value.
  45242. func (s *LaunchTemplateEbsBlockDeviceRequest) SetVolumeSize(v int64) *LaunchTemplateEbsBlockDeviceRequest {
  45243. s.VolumeSize = &v
  45244. return s
  45245. }
  45246. // SetVolumeType sets the VolumeType field's value.
  45247. func (s *LaunchTemplateEbsBlockDeviceRequest) SetVolumeType(v string) *LaunchTemplateEbsBlockDeviceRequest {
  45248. s.VolumeType = &v
  45249. return s
  45250. }
  45251. // Describes an IAM instance profile.
  45252. type LaunchTemplateIamInstanceProfileSpecification struct {
  45253. _ struct{} `type:"structure"`
  45254. // The Amazon Resource Name (ARN) of the instance profile.
  45255. Arn *string `locationName:"arn" type:"string"`
  45256. // The name of the instance profile.
  45257. Name *string `locationName:"name" type:"string"`
  45258. }
  45259. // String returns the string representation
  45260. func (s LaunchTemplateIamInstanceProfileSpecification) String() string {
  45261. return awsutil.Prettify(s)
  45262. }
  45263. // GoString returns the string representation
  45264. func (s LaunchTemplateIamInstanceProfileSpecification) GoString() string {
  45265. return s.String()
  45266. }
  45267. // SetArn sets the Arn field's value.
  45268. func (s *LaunchTemplateIamInstanceProfileSpecification) SetArn(v string) *LaunchTemplateIamInstanceProfileSpecification {
  45269. s.Arn = &v
  45270. return s
  45271. }
  45272. // SetName sets the Name field's value.
  45273. func (s *LaunchTemplateIamInstanceProfileSpecification) SetName(v string) *LaunchTemplateIamInstanceProfileSpecification {
  45274. s.Name = &v
  45275. return s
  45276. }
  45277. // An IAM instance profile.
  45278. type LaunchTemplateIamInstanceProfileSpecificationRequest struct {
  45279. _ struct{} `type:"structure"`
  45280. // The Amazon Resource Name (ARN) of the instance profile.
  45281. Arn *string `type:"string"`
  45282. // The name of the instance profile.
  45283. Name *string `type:"string"`
  45284. }
  45285. // String returns the string representation
  45286. func (s LaunchTemplateIamInstanceProfileSpecificationRequest) String() string {
  45287. return awsutil.Prettify(s)
  45288. }
  45289. // GoString returns the string representation
  45290. func (s LaunchTemplateIamInstanceProfileSpecificationRequest) GoString() string {
  45291. return s.String()
  45292. }
  45293. // SetArn sets the Arn field's value.
  45294. func (s *LaunchTemplateIamInstanceProfileSpecificationRequest) SetArn(v string) *LaunchTemplateIamInstanceProfileSpecificationRequest {
  45295. s.Arn = &v
  45296. return s
  45297. }
  45298. // SetName sets the Name field's value.
  45299. func (s *LaunchTemplateIamInstanceProfileSpecificationRequest) SetName(v string) *LaunchTemplateIamInstanceProfileSpecificationRequest {
  45300. s.Name = &v
  45301. return s
  45302. }
  45303. // The market (purchasing) option for the instances.
  45304. type LaunchTemplateInstanceMarketOptions struct {
  45305. _ struct{} `type:"structure"`
  45306. // The market type.
  45307. MarketType *string `locationName:"marketType" type:"string" enum:"MarketType"`
  45308. // The options for Spot Instances.
  45309. SpotOptions *LaunchTemplateSpotMarketOptions `locationName:"spotOptions" type:"structure"`
  45310. }
  45311. // String returns the string representation
  45312. func (s LaunchTemplateInstanceMarketOptions) String() string {
  45313. return awsutil.Prettify(s)
  45314. }
  45315. // GoString returns the string representation
  45316. func (s LaunchTemplateInstanceMarketOptions) GoString() string {
  45317. return s.String()
  45318. }
  45319. // SetMarketType sets the MarketType field's value.
  45320. func (s *LaunchTemplateInstanceMarketOptions) SetMarketType(v string) *LaunchTemplateInstanceMarketOptions {
  45321. s.MarketType = &v
  45322. return s
  45323. }
  45324. // SetSpotOptions sets the SpotOptions field's value.
  45325. func (s *LaunchTemplateInstanceMarketOptions) SetSpotOptions(v *LaunchTemplateSpotMarketOptions) *LaunchTemplateInstanceMarketOptions {
  45326. s.SpotOptions = v
  45327. return s
  45328. }
  45329. // The market (purchasing) option for the instances.
  45330. type LaunchTemplateInstanceMarketOptionsRequest struct {
  45331. _ struct{} `type:"structure"`
  45332. // The market type.
  45333. MarketType *string `type:"string" enum:"MarketType"`
  45334. // The options for Spot Instances.
  45335. SpotOptions *LaunchTemplateSpotMarketOptionsRequest `type:"structure"`
  45336. }
  45337. // String returns the string representation
  45338. func (s LaunchTemplateInstanceMarketOptionsRequest) String() string {
  45339. return awsutil.Prettify(s)
  45340. }
  45341. // GoString returns the string representation
  45342. func (s LaunchTemplateInstanceMarketOptionsRequest) GoString() string {
  45343. return s.String()
  45344. }
  45345. // SetMarketType sets the MarketType field's value.
  45346. func (s *LaunchTemplateInstanceMarketOptionsRequest) SetMarketType(v string) *LaunchTemplateInstanceMarketOptionsRequest {
  45347. s.MarketType = &v
  45348. return s
  45349. }
  45350. // SetSpotOptions sets the SpotOptions field's value.
  45351. func (s *LaunchTemplateInstanceMarketOptionsRequest) SetSpotOptions(v *LaunchTemplateSpotMarketOptionsRequest) *LaunchTemplateInstanceMarketOptionsRequest {
  45352. s.SpotOptions = v
  45353. return s
  45354. }
  45355. // Describes a network interface.
  45356. type LaunchTemplateInstanceNetworkInterfaceSpecification struct {
  45357. _ struct{} `type:"structure"`
  45358. // Indicates whether to associate a public IPv4 address with eth0 for a new
  45359. // network interface.
  45360. AssociatePublicIpAddress *bool `locationName:"associatePublicIpAddress" type:"boolean"`
  45361. // Indicates whether the network interface is deleted when the instance is terminated.
  45362. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  45363. // A description for the network interface.
  45364. Description *string `locationName:"description" type:"string"`
  45365. // The device index for the network interface attachment.
  45366. DeviceIndex *int64 `locationName:"deviceIndex" type:"integer"`
  45367. // The IDs of one or more security groups.
  45368. Groups []*string `locationName:"groupSet" locationNameList:"groupId" type:"list"`
  45369. // The number of IPv6 addresses for the network interface.
  45370. Ipv6AddressCount *int64 `locationName:"ipv6AddressCount" type:"integer"`
  45371. // The IPv6 addresses for the network interface.
  45372. Ipv6Addresses []*InstanceIpv6Address `locationName:"ipv6AddressesSet" locationNameList:"item" type:"list"`
  45373. // The ID of the network interface.
  45374. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  45375. // The primary private IPv4 address of the network interface.
  45376. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  45377. // One or more private IPv4 addresses.
  45378. PrivateIpAddresses []*PrivateIpAddressSpecification `locationName:"privateIpAddressesSet" locationNameList:"item" type:"list"`
  45379. // The number of secondary private IPv4 addresses for the network interface.
  45380. SecondaryPrivateIpAddressCount *int64 `locationName:"secondaryPrivateIpAddressCount" type:"integer"`
  45381. // The ID of the subnet for the network interface.
  45382. SubnetId *string `locationName:"subnetId" type:"string"`
  45383. }
  45384. // String returns the string representation
  45385. func (s LaunchTemplateInstanceNetworkInterfaceSpecification) String() string {
  45386. return awsutil.Prettify(s)
  45387. }
  45388. // GoString returns the string representation
  45389. func (s LaunchTemplateInstanceNetworkInterfaceSpecification) GoString() string {
  45390. return s.String()
  45391. }
  45392. // SetAssociatePublicIpAddress sets the AssociatePublicIpAddress field's value.
  45393. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetAssociatePublicIpAddress(v bool) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  45394. s.AssociatePublicIpAddress = &v
  45395. return s
  45396. }
  45397. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  45398. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetDeleteOnTermination(v bool) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  45399. s.DeleteOnTermination = &v
  45400. return s
  45401. }
  45402. // SetDescription sets the Description field's value.
  45403. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetDescription(v string) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  45404. s.Description = &v
  45405. return s
  45406. }
  45407. // SetDeviceIndex sets the DeviceIndex field's value.
  45408. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetDeviceIndex(v int64) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  45409. s.DeviceIndex = &v
  45410. return s
  45411. }
  45412. // SetGroups sets the Groups field's value.
  45413. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetGroups(v []*string) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  45414. s.Groups = v
  45415. return s
  45416. }
  45417. // SetIpv6AddressCount sets the Ipv6AddressCount field's value.
  45418. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetIpv6AddressCount(v int64) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  45419. s.Ipv6AddressCount = &v
  45420. return s
  45421. }
  45422. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  45423. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetIpv6Addresses(v []*InstanceIpv6Address) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  45424. s.Ipv6Addresses = v
  45425. return s
  45426. }
  45427. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  45428. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetNetworkInterfaceId(v string) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  45429. s.NetworkInterfaceId = &v
  45430. return s
  45431. }
  45432. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  45433. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetPrivateIpAddress(v string) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  45434. s.PrivateIpAddress = &v
  45435. return s
  45436. }
  45437. // SetPrivateIpAddresses sets the PrivateIpAddresses field's value.
  45438. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetPrivateIpAddresses(v []*PrivateIpAddressSpecification) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  45439. s.PrivateIpAddresses = v
  45440. return s
  45441. }
  45442. // SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value.
  45443. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetSecondaryPrivateIpAddressCount(v int64) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  45444. s.SecondaryPrivateIpAddressCount = &v
  45445. return s
  45446. }
  45447. // SetSubnetId sets the SubnetId field's value.
  45448. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetSubnetId(v string) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  45449. s.SubnetId = &v
  45450. return s
  45451. }
  45452. // The parameters for a network interface.
  45453. type LaunchTemplateInstanceNetworkInterfaceSpecificationRequest struct {
  45454. _ struct{} `type:"structure"`
  45455. // Associates a public IPv4 address with eth0 for a new network interface.
  45456. AssociatePublicIpAddress *bool `type:"boolean"`
  45457. // Indicates whether the network interface is deleted when the instance is terminated.
  45458. DeleteOnTermination *bool `type:"boolean"`
  45459. // A description for the network interface.
  45460. Description *string `type:"string"`
  45461. // The device index for the network interface attachment.
  45462. DeviceIndex *int64 `type:"integer"`
  45463. // The IDs of one or more security groups.
  45464. Groups []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`
  45465. // The number of IPv6 addresses to assign to a network interface. Amazon EC2
  45466. // automatically selects the IPv6 addresses from the subnet range. You can't
  45467. // use this option if specifying specific IPv6 addresses.
  45468. Ipv6AddressCount *int64 `type:"integer"`
  45469. // One or more specific IPv6 addresses from the IPv6 CIDR block range of your
  45470. // subnet. You can't use this option if you're specifying a number of IPv6 addresses.
  45471. Ipv6Addresses []*InstanceIpv6AddressRequest `locationNameList:"InstanceIpv6Address" type:"list"`
  45472. // The ID of the network interface.
  45473. NetworkInterfaceId *string `type:"string"`
  45474. // The primary private IPv4 address of the network interface.
  45475. PrivateIpAddress *string `type:"string"`
  45476. // One or more private IPv4 addresses.
  45477. PrivateIpAddresses []*PrivateIpAddressSpecification `locationNameList:"item" type:"list"`
  45478. // The number of secondary private IPv4 addresses to assign to a network interface.
  45479. SecondaryPrivateIpAddressCount *int64 `type:"integer"`
  45480. // The ID of the subnet for the network interface.
  45481. SubnetId *string `type:"string"`
  45482. }
  45483. // String returns the string representation
  45484. func (s LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) String() string {
  45485. return awsutil.Prettify(s)
  45486. }
  45487. // GoString returns the string representation
  45488. func (s LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) GoString() string {
  45489. return s.String()
  45490. }
  45491. // Validate inspects the fields of the type to determine if they are valid.
  45492. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) Validate() error {
  45493. invalidParams := request.ErrInvalidParams{Context: "LaunchTemplateInstanceNetworkInterfaceSpecificationRequest"}
  45494. if s.PrivateIpAddresses != nil {
  45495. for i, v := range s.PrivateIpAddresses {
  45496. if v == nil {
  45497. continue
  45498. }
  45499. if err := v.Validate(); err != nil {
  45500. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PrivateIpAddresses", i), err.(request.ErrInvalidParams))
  45501. }
  45502. }
  45503. }
  45504. if invalidParams.Len() > 0 {
  45505. return invalidParams
  45506. }
  45507. return nil
  45508. }
  45509. // SetAssociatePublicIpAddress sets the AssociatePublicIpAddress field's value.
  45510. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetAssociatePublicIpAddress(v bool) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  45511. s.AssociatePublicIpAddress = &v
  45512. return s
  45513. }
  45514. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  45515. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetDeleteOnTermination(v bool) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  45516. s.DeleteOnTermination = &v
  45517. return s
  45518. }
  45519. // SetDescription sets the Description field's value.
  45520. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetDescription(v string) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  45521. s.Description = &v
  45522. return s
  45523. }
  45524. // SetDeviceIndex sets the DeviceIndex field's value.
  45525. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetDeviceIndex(v int64) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  45526. s.DeviceIndex = &v
  45527. return s
  45528. }
  45529. // SetGroups sets the Groups field's value.
  45530. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetGroups(v []*string) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  45531. s.Groups = v
  45532. return s
  45533. }
  45534. // SetIpv6AddressCount sets the Ipv6AddressCount field's value.
  45535. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetIpv6AddressCount(v int64) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  45536. s.Ipv6AddressCount = &v
  45537. return s
  45538. }
  45539. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  45540. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetIpv6Addresses(v []*InstanceIpv6AddressRequest) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  45541. s.Ipv6Addresses = v
  45542. return s
  45543. }
  45544. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  45545. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetNetworkInterfaceId(v string) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  45546. s.NetworkInterfaceId = &v
  45547. return s
  45548. }
  45549. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  45550. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetPrivateIpAddress(v string) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  45551. s.PrivateIpAddress = &v
  45552. return s
  45553. }
  45554. // SetPrivateIpAddresses sets the PrivateIpAddresses field's value.
  45555. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetPrivateIpAddresses(v []*PrivateIpAddressSpecification) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  45556. s.PrivateIpAddresses = v
  45557. return s
  45558. }
  45559. // SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value.
  45560. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetSecondaryPrivateIpAddressCount(v int64) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  45561. s.SecondaryPrivateIpAddressCount = &v
  45562. return s
  45563. }
  45564. // SetSubnetId sets the SubnetId field's value.
  45565. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetSubnetId(v string) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  45566. s.SubnetId = &v
  45567. return s
  45568. }
  45569. // Describes overrides for a launch template.
  45570. type LaunchTemplateOverrides struct {
  45571. _ struct{} `type:"structure"`
  45572. // The Availability Zone in which to launch the instances.
  45573. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  45574. // The instance type.
  45575. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  45576. // The maximum price per unit hour that you are willing to pay for a Spot Instance.
  45577. SpotPrice *string `locationName:"spotPrice" type:"string"`
  45578. // The ID of the subnet in which to launch the instances.
  45579. SubnetId *string `locationName:"subnetId" type:"string"`
  45580. // The number of units provided by the specified instance type.
  45581. WeightedCapacity *float64 `locationName:"weightedCapacity" type:"double"`
  45582. }
  45583. // String returns the string representation
  45584. func (s LaunchTemplateOverrides) String() string {
  45585. return awsutil.Prettify(s)
  45586. }
  45587. // GoString returns the string representation
  45588. func (s LaunchTemplateOverrides) GoString() string {
  45589. return s.String()
  45590. }
  45591. // SetAvailabilityZone sets the AvailabilityZone field's value.
  45592. func (s *LaunchTemplateOverrides) SetAvailabilityZone(v string) *LaunchTemplateOverrides {
  45593. s.AvailabilityZone = &v
  45594. return s
  45595. }
  45596. // SetInstanceType sets the InstanceType field's value.
  45597. func (s *LaunchTemplateOverrides) SetInstanceType(v string) *LaunchTemplateOverrides {
  45598. s.InstanceType = &v
  45599. return s
  45600. }
  45601. // SetSpotPrice sets the SpotPrice field's value.
  45602. func (s *LaunchTemplateOverrides) SetSpotPrice(v string) *LaunchTemplateOverrides {
  45603. s.SpotPrice = &v
  45604. return s
  45605. }
  45606. // SetSubnetId sets the SubnetId field's value.
  45607. func (s *LaunchTemplateOverrides) SetSubnetId(v string) *LaunchTemplateOverrides {
  45608. s.SubnetId = &v
  45609. return s
  45610. }
  45611. // SetWeightedCapacity sets the WeightedCapacity field's value.
  45612. func (s *LaunchTemplateOverrides) SetWeightedCapacity(v float64) *LaunchTemplateOverrides {
  45613. s.WeightedCapacity = &v
  45614. return s
  45615. }
  45616. // Describes the placement of an instance.
  45617. type LaunchTemplatePlacement struct {
  45618. _ struct{} `type:"structure"`
  45619. // The affinity setting for the instance on the Dedicated Host.
  45620. Affinity *string `locationName:"affinity" type:"string"`
  45621. // The Availability Zone of the instance.
  45622. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  45623. // The name of the placement group for the instance.
  45624. GroupName *string `locationName:"groupName" type:"string"`
  45625. // The ID of the Dedicated Host for the instance.
  45626. HostId *string `locationName:"hostId" type:"string"`
  45627. // Reserved for future use.
  45628. SpreadDomain *string `locationName:"spreadDomain" type:"string"`
  45629. // The tenancy of the instance (if the instance is running in a VPC). An instance
  45630. // with a tenancy of dedicated runs on single-tenant hardware.
  45631. Tenancy *string `locationName:"tenancy" type:"string" enum:"Tenancy"`
  45632. }
  45633. // String returns the string representation
  45634. func (s LaunchTemplatePlacement) String() string {
  45635. return awsutil.Prettify(s)
  45636. }
  45637. // GoString returns the string representation
  45638. func (s LaunchTemplatePlacement) GoString() string {
  45639. return s.String()
  45640. }
  45641. // SetAffinity sets the Affinity field's value.
  45642. func (s *LaunchTemplatePlacement) SetAffinity(v string) *LaunchTemplatePlacement {
  45643. s.Affinity = &v
  45644. return s
  45645. }
  45646. // SetAvailabilityZone sets the AvailabilityZone field's value.
  45647. func (s *LaunchTemplatePlacement) SetAvailabilityZone(v string) *LaunchTemplatePlacement {
  45648. s.AvailabilityZone = &v
  45649. return s
  45650. }
  45651. // SetGroupName sets the GroupName field's value.
  45652. func (s *LaunchTemplatePlacement) SetGroupName(v string) *LaunchTemplatePlacement {
  45653. s.GroupName = &v
  45654. return s
  45655. }
  45656. // SetHostId sets the HostId field's value.
  45657. func (s *LaunchTemplatePlacement) SetHostId(v string) *LaunchTemplatePlacement {
  45658. s.HostId = &v
  45659. return s
  45660. }
  45661. // SetSpreadDomain sets the SpreadDomain field's value.
  45662. func (s *LaunchTemplatePlacement) SetSpreadDomain(v string) *LaunchTemplatePlacement {
  45663. s.SpreadDomain = &v
  45664. return s
  45665. }
  45666. // SetTenancy sets the Tenancy field's value.
  45667. func (s *LaunchTemplatePlacement) SetTenancy(v string) *LaunchTemplatePlacement {
  45668. s.Tenancy = &v
  45669. return s
  45670. }
  45671. // The placement for the instance.
  45672. type LaunchTemplatePlacementRequest struct {
  45673. _ struct{} `type:"structure"`
  45674. // The affinity setting for an instance on a Dedicated Host.
  45675. Affinity *string `type:"string"`
  45676. // The Availability Zone for the instance.
  45677. AvailabilityZone *string `type:"string"`
  45678. // The name of the placement group for the instance.
  45679. GroupName *string `type:"string"`
  45680. // The ID of the Dedicated Host for the instance.
  45681. HostId *string `type:"string"`
  45682. // Reserved for future use.
  45683. SpreadDomain *string `type:"string"`
  45684. // The tenancy of the instance (if the instance is running in a VPC). An instance
  45685. // with a tenancy of dedicated runs on single-tenant hardware.
  45686. Tenancy *string `type:"string" enum:"Tenancy"`
  45687. }
  45688. // String returns the string representation
  45689. func (s LaunchTemplatePlacementRequest) String() string {
  45690. return awsutil.Prettify(s)
  45691. }
  45692. // GoString returns the string representation
  45693. func (s LaunchTemplatePlacementRequest) GoString() string {
  45694. return s.String()
  45695. }
  45696. // SetAffinity sets the Affinity field's value.
  45697. func (s *LaunchTemplatePlacementRequest) SetAffinity(v string) *LaunchTemplatePlacementRequest {
  45698. s.Affinity = &v
  45699. return s
  45700. }
  45701. // SetAvailabilityZone sets the AvailabilityZone field's value.
  45702. func (s *LaunchTemplatePlacementRequest) SetAvailabilityZone(v string) *LaunchTemplatePlacementRequest {
  45703. s.AvailabilityZone = &v
  45704. return s
  45705. }
  45706. // SetGroupName sets the GroupName field's value.
  45707. func (s *LaunchTemplatePlacementRequest) SetGroupName(v string) *LaunchTemplatePlacementRequest {
  45708. s.GroupName = &v
  45709. return s
  45710. }
  45711. // SetHostId sets the HostId field's value.
  45712. func (s *LaunchTemplatePlacementRequest) SetHostId(v string) *LaunchTemplatePlacementRequest {
  45713. s.HostId = &v
  45714. return s
  45715. }
  45716. // SetSpreadDomain sets the SpreadDomain field's value.
  45717. func (s *LaunchTemplatePlacementRequest) SetSpreadDomain(v string) *LaunchTemplatePlacementRequest {
  45718. s.SpreadDomain = &v
  45719. return s
  45720. }
  45721. // SetTenancy sets the Tenancy field's value.
  45722. func (s *LaunchTemplatePlacementRequest) SetTenancy(v string) *LaunchTemplatePlacementRequest {
  45723. s.Tenancy = &v
  45724. return s
  45725. }
  45726. // The launch template to use. You must specify either the launch template ID
  45727. // or launch template name in the request, but not both.
  45728. type LaunchTemplateSpecification struct {
  45729. _ struct{} `type:"structure"`
  45730. // The ID of the launch template.
  45731. LaunchTemplateId *string `type:"string"`
  45732. // The name of the launch template.
  45733. LaunchTemplateName *string `type:"string"`
  45734. // The version number of the launch template.
  45735. //
  45736. // Default: The default version for the launch template.
  45737. Version *string `type:"string"`
  45738. }
  45739. // String returns the string representation
  45740. func (s LaunchTemplateSpecification) String() string {
  45741. return awsutil.Prettify(s)
  45742. }
  45743. // GoString returns the string representation
  45744. func (s LaunchTemplateSpecification) GoString() string {
  45745. return s.String()
  45746. }
  45747. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  45748. func (s *LaunchTemplateSpecification) SetLaunchTemplateId(v string) *LaunchTemplateSpecification {
  45749. s.LaunchTemplateId = &v
  45750. return s
  45751. }
  45752. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  45753. func (s *LaunchTemplateSpecification) SetLaunchTemplateName(v string) *LaunchTemplateSpecification {
  45754. s.LaunchTemplateName = &v
  45755. return s
  45756. }
  45757. // SetVersion sets the Version field's value.
  45758. func (s *LaunchTemplateSpecification) SetVersion(v string) *LaunchTemplateSpecification {
  45759. s.Version = &v
  45760. return s
  45761. }
  45762. // The options for Spot Instances.
  45763. type LaunchTemplateSpotMarketOptions struct {
  45764. _ struct{} `type:"structure"`
  45765. // The required duration for the Spot Instances (also known as Spot blocks),
  45766. // in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300,
  45767. // or 360).
  45768. BlockDurationMinutes *int64 `locationName:"blockDurationMinutes" type:"integer"`
  45769. // The behavior when a Spot Instance is interrupted.
  45770. InstanceInterruptionBehavior *string `locationName:"instanceInterruptionBehavior" type:"string" enum:"InstanceInterruptionBehavior"`
  45771. // The maximum hourly price you're willing to pay for the Spot Instances.
  45772. MaxPrice *string `locationName:"maxPrice" type:"string"`
  45773. // The Spot Instance request type.
  45774. SpotInstanceType *string `locationName:"spotInstanceType" type:"string" enum:"SpotInstanceType"`
  45775. // The end date of the request. For a one-time request, the request remains
  45776. // active until all instances launch, the request is canceled, or this date
  45777. // is reached. If the request is persistent, it remains active until it is canceled
  45778. // or this date and time is reached.
  45779. ValidUntil *time.Time `locationName:"validUntil" type:"timestamp" timestampFormat:"iso8601"`
  45780. }
  45781. // String returns the string representation
  45782. func (s LaunchTemplateSpotMarketOptions) String() string {
  45783. return awsutil.Prettify(s)
  45784. }
  45785. // GoString returns the string representation
  45786. func (s LaunchTemplateSpotMarketOptions) GoString() string {
  45787. return s.String()
  45788. }
  45789. // SetBlockDurationMinutes sets the BlockDurationMinutes field's value.
  45790. func (s *LaunchTemplateSpotMarketOptions) SetBlockDurationMinutes(v int64) *LaunchTemplateSpotMarketOptions {
  45791. s.BlockDurationMinutes = &v
  45792. return s
  45793. }
  45794. // SetInstanceInterruptionBehavior sets the InstanceInterruptionBehavior field's value.
  45795. func (s *LaunchTemplateSpotMarketOptions) SetInstanceInterruptionBehavior(v string) *LaunchTemplateSpotMarketOptions {
  45796. s.InstanceInterruptionBehavior = &v
  45797. return s
  45798. }
  45799. // SetMaxPrice sets the MaxPrice field's value.
  45800. func (s *LaunchTemplateSpotMarketOptions) SetMaxPrice(v string) *LaunchTemplateSpotMarketOptions {
  45801. s.MaxPrice = &v
  45802. return s
  45803. }
  45804. // SetSpotInstanceType sets the SpotInstanceType field's value.
  45805. func (s *LaunchTemplateSpotMarketOptions) SetSpotInstanceType(v string) *LaunchTemplateSpotMarketOptions {
  45806. s.SpotInstanceType = &v
  45807. return s
  45808. }
  45809. // SetValidUntil sets the ValidUntil field's value.
  45810. func (s *LaunchTemplateSpotMarketOptions) SetValidUntil(v time.Time) *LaunchTemplateSpotMarketOptions {
  45811. s.ValidUntil = &v
  45812. return s
  45813. }
  45814. // The options for Spot Instances.
  45815. type LaunchTemplateSpotMarketOptionsRequest struct {
  45816. _ struct{} `type:"structure"`
  45817. // The required duration for the Spot Instances (also known as Spot blocks),
  45818. // in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300,
  45819. // or 360).
  45820. BlockDurationMinutes *int64 `type:"integer"`
  45821. // The behavior when a Spot Instance is interrupted. The default is terminate.
  45822. InstanceInterruptionBehavior *string `type:"string" enum:"InstanceInterruptionBehavior"`
  45823. // The maximum hourly price you're willing to pay for the Spot Instances.
  45824. MaxPrice *string `type:"string"`
  45825. // The Spot Instance request type.
  45826. SpotInstanceType *string `type:"string" enum:"SpotInstanceType"`
  45827. // The end date of the request. For a one-time request, the request remains
  45828. // active until all instances launch, the request is canceled, or this date
  45829. // is reached. If the request is persistent, it remains active until it is canceled
  45830. // or this date and time is reached. The default end date is 7 days from the
  45831. // current date.
  45832. ValidUntil *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  45833. }
  45834. // String returns the string representation
  45835. func (s LaunchTemplateSpotMarketOptionsRequest) String() string {
  45836. return awsutil.Prettify(s)
  45837. }
  45838. // GoString returns the string representation
  45839. func (s LaunchTemplateSpotMarketOptionsRequest) GoString() string {
  45840. return s.String()
  45841. }
  45842. // SetBlockDurationMinutes sets the BlockDurationMinutes field's value.
  45843. func (s *LaunchTemplateSpotMarketOptionsRequest) SetBlockDurationMinutes(v int64) *LaunchTemplateSpotMarketOptionsRequest {
  45844. s.BlockDurationMinutes = &v
  45845. return s
  45846. }
  45847. // SetInstanceInterruptionBehavior sets the InstanceInterruptionBehavior field's value.
  45848. func (s *LaunchTemplateSpotMarketOptionsRequest) SetInstanceInterruptionBehavior(v string) *LaunchTemplateSpotMarketOptionsRequest {
  45849. s.InstanceInterruptionBehavior = &v
  45850. return s
  45851. }
  45852. // SetMaxPrice sets the MaxPrice field's value.
  45853. func (s *LaunchTemplateSpotMarketOptionsRequest) SetMaxPrice(v string) *LaunchTemplateSpotMarketOptionsRequest {
  45854. s.MaxPrice = &v
  45855. return s
  45856. }
  45857. // SetSpotInstanceType sets the SpotInstanceType field's value.
  45858. func (s *LaunchTemplateSpotMarketOptionsRequest) SetSpotInstanceType(v string) *LaunchTemplateSpotMarketOptionsRequest {
  45859. s.SpotInstanceType = &v
  45860. return s
  45861. }
  45862. // SetValidUntil sets the ValidUntil field's value.
  45863. func (s *LaunchTemplateSpotMarketOptionsRequest) SetValidUntil(v time.Time) *LaunchTemplateSpotMarketOptionsRequest {
  45864. s.ValidUntil = &v
  45865. return s
  45866. }
  45867. // The tag specification for the launch template.
  45868. type LaunchTemplateTagSpecification struct {
  45869. _ struct{} `type:"structure"`
  45870. // The type of resource.
  45871. ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"`
  45872. // The tags for the resource.
  45873. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  45874. }
  45875. // String returns the string representation
  45876. func (s LaunchTemplateTagSpecification) String() string {
  45877. return awsutil.Prettify(s)
  45878. }
  45879. // GoString returns the string representation
  45880. func (s LaunchTemplateTagSpecification) GoString() string {
  45881. return s.String()
  45882. }
  45883. // SetResourceType sets the ResourceType field's value.
  45884. func (s *LaunchTemplateTagSpecification) SetResourceType(v string) *LaunchTemplateTagSpecification {
  45885. s.ResourceType = &v
  45886. return s
  45887. }
  45888. // SetTags sets the Tags field's value.
  45889. func (s *LaunchTemplateTagSpecification) SetTags(v []*Tag) *LaunchTemplateTagSpecification {
  45890. s.Tags = v
  45891. return s
  45892. }
  45893. // The tags specification for the launch template.
  45894. type LaunchTemplateTagSpecificationRequest struct {
  45895. _ struct{} `type:"structure"`
  45896. // The type of resource to tag. Currently, the resource types that support tagging
  45897. // on creation are instance and volume.
  45898. ResourceType *string `type:"string" enum:"ResourceType"`
  45899. // The tags to apply to the resource.
  45900. Tags []*Tag `locationName:"Tag" locationNameList:"item" type:"list"`
  45901. }
  45902. // String returns the string representation
  45903. func (s LaunchTemplateTagSpecificationRequest) String() string {
  45904. return awsutil.Prettify(s)
  45905. }
  45906. // GoString returns the string representation
  45907. func (s LaunchTemplateTagSpecificationRequest) GoString() string {
  45908. return s.String()
  45909. }
  45910. // SetResourceType sets the ResourceType field's value.
  45911. func (s *LaunchTemplateTagSpecificationRequest) SetResourceType(v string) *LaunchTemplateTagSpecificationRequest {
  45912. s.ResourceType = &v
  45913. return s
  45914. }
  45915. // SetTags sets the Tags field's value.
  45916. func (s *LaunchTemplateTagSpecificationRequest) SetTags(v []*Tag) *LaunchTemplateTagSpecificationRequest {
  45917. s.Tags = v
  45918. return s
  45919. }
  45920. // Describes a launch template version.
  45921. type LaunchTemplateVersion struct {
  45922. _ struct{} `type:"structure"`
  45923. // The time the version was created.
  45924. CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"iso8601"`
  45925. // The principal that created the version.
  45926. CreatedBy *string `locationName:"createdBy" type:"string"`
  45927. // Indicates whether the version is the default version.
  45928. DefaultVersion *bool `locationName:"defaultVersion" type:"boolean"`
  45929. // Information about the launch template.
  45930. LaunchTemplateData *ResponseLaunchTemplateData `locationName:"launchTemplateData" type:"structure"`
  45931. // The ID of the launch template.
  45932. LaunchTemplateId *string `locationName:"launchTemplateId" type:"string"`
  45933. // The name of the launch template.
  45934. LaunchTemplateName *string `locationName:"launchTemplateName" min:"3" type:"string"`
  45935. // The description for the version.
  45936. VersionDescription *string `locationName:"versionDescription" type:"string"`
  45937. // The version number.
  45938. VersionNumber *int64 `locationName:"versionNumber" type:"long"`
  45939. }
  45940. // String returns the string representation
  45941. func (s LaunchTemplateVersion) String() string {
  45942. return awsutil.Prettify(s)
  45943. }
  45944. // GoString returns the string representation
  45945. func (s LaunchTemplateVersion) GoString() string {
  45946. return s.String()
  45947. }
  45948. // SetCreateTime sets the CreateTime field's value.
  45949. func (s *LaunchTemplateVersion) SetCreateTime(v time.Time) *LaunchTemplateVersion {
  45950. s.CreateTime = &v
  45951. return s
  45952. }
  45953. // SetCreatedBy sets the CreatedBy field's value.
  45954. func (s *LaunchTemplateVersion) SetCreatedBy(v string) *LaunchTemplateVersion {
  45955. s.CreatedBy = &v
  45956. return s
  45957. }
  45958. // SetDefaultVersion sets the DefaultVersion field's value.
  45959. func (s *LaunchTemplateVersion) SetDefaultVersion(v bool) *LaunchTemplateVersion {
  45960. s.DefaultVersion = &v
  45961. return s
  45962. }
  45963. // SetLaunchTemplateData sets the LaunchTemplateData field's value.
  45964. func (s *LaunchTemplateVersion) SetLaunchTemplateData(v *ResponseLaunchTemplateData) *LaunchTemplateVersion {
  45965. s.LaunchTemplateData = v
  45966. return s
  45967. }
  45968. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  45969. func (s *LaunchTemplateVersion) SetLaunchTemplateId(v string) *LaunchTemplateVersion {
  45970. s.LaunchTemplateId = &v
  45971. return s
  45972. }
  45973. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  45974. func (s *LaunchTemplateVersion) SetLaunchTemplateName(v string) *LaunchTemplateVersion {
  45975. s.LaunchTemplateName = &v
  45976. return s
  45977. }
  45978. // SetVersionDescription sets the VersionDescription field's value.
  45979. func (s *LaunchTemplateVersion) SetVersionDescription(v string) *LaunchTemplateVersion {
  45980. s.VersionDescription = &v
  45981. return s
  45982. }
  45983. // SetVersionNumber sets the VersionNumber field's value.
  45984. func (s *LaunchTemplateVersion) SetVersionNumber(v int64) *LaunchTemplateVersion {
  45985. s.VersionNumber = &v
  45986. return s
  45987. }
  45988. // Describes the monitoring for the instance.
  45989. type LaunchTemplatesMonitoring struct {
  45990. _ struct{} `type:"structure"`
  45991. // Indicates whether detailed monitoring is enabled. Otherwise, basic monitoring
  45992. // is enabled.
  45993. Enabled *bool `locationName:"enabled" type:"boolean"`
  45994. }
  45995. // String returns the string representation
  45996. func (s LaunchTemplatesMonitoring) String() string {
  45997. return awsutil.Prettify(s)
  45998. }
  45999. // GoString returns the string representation
  46000. func (s LaunchTemplatesMonitoring) GoString() string {
  46001. return s.String()
  46002. }
  46003. // SetEnabled sets the Enabled field's value.
  46004. func (s *LaunchTemplatesMonitoring) SetEnabled(v bool) *LaunchTemplatesMonitoring {
  46005. s.Enabled = &v
  46006. return s
  46007. }
  46008. // Describes the monitoring for the instance.
  46009. type LaunchTemplatesMonitoringRequest struct {
  46010. _ struct{} `type:"structure"`
  46011. // Specify true to enable detailed monitoring. Otherwise, basic monitoring is
  46012. // enabled.
  46013. Enabled *bool `type:"boolean"`
  46014. }
  46015. // String returns the string representation
  46016. func (s LaunchTemplatesMonitoringRequest) String() string {
  46017. return awsutil.Prettify(s)
  46018. }
  46019. // GoString returns the string representation
  46020. func (s LaunchTemplatesMonitoringRequest) GoString() string {
  46021. return s.String()
  46022. }
  46023. // SetEnabled sets the Enabled field's value.
  46024. func (s *LaunchTemplatesMonitoringRequest) SetEnabled(v bool) *LaunchTemplatesMonitoringRequest {
  46025. s.Enabled = &v
  46026. return s
  46027. }
  46028. // Describes the Classic Load Balancers and target groups to attach to a Spot
  46029. // Fleet request.
  46030. type LoadBalancersConfig struct {
  46031. _ struct{} `type:"structure"`
  46032. // The Classic Load Balancers.
  46033. ClassicLoadBalancersConfig *ClassicLoadBalancersConfig `locationName:"classicLoadBalancersConfig" type:"structure"`
  46034. // The target groups.
  46035. TargetGroupsConfig *TargetGroupsConfig `locationName:"targetGroupsConfig" type:"structure"`
  46036. }
  46037. // String returns the string representation
  46038. func (s LoadBalancersConfig) String() string {
  46039. return awsutil.Prettify(s)
  46040. }
  46041. // GoString returns the string representation
  46042. func (s LoadBalancersConfig) GoString() string {
  46043. return s.String()
  46044. }
  46045. // Validate inspects the fields of the type to determine if they are valid.
  46046. func (s *LoadBalancersConfig) Validate() error {
  46047. invalidParams := request.ErrInvalidParams{Context: "LoadBalancersConfig"}
  46048. if s.ClassicLoadBalancersConfig != nil {
  46049. if err := s.ClassicLoadBalancersConfig.Validate(); err != nil {
  46050. invalidParams.AddNested("ClassicLoadBalancersConfig", err.(request.ErrInvalidParams))
  46051. }
  46052. }
  46053. if s.TargetGroupsConfig != nil {
  46054. if err := s.TargetGroupsConfig.Validate(); err != nil {
  46055. invalidParams.AddNested("TargetGroupsConfig", err.(request.ErrInvalidParams))
  46056. }
  46057. }
  46058. if invalidParams.Len() > 0 {
  46059. return invalidParams
  46060. }
  46061. return nil
  46062. }
  46063. // SetClassicLoadBalancersConfig sets the ClassicLoadBalancersConfig field's value.
  46064. func (s *LoadBalancersConfig) SetClassicLoadBalancersConfig(v *ClassicLoadBalancersConfig) *LoadBalancersConfig {
  46065. s.ClassicLoadBalancersConfig = v
  46066. return s
  46067. }
  46068. // SetTargetGroupsConfig sets the TargetGroupsConfig field's value.
  46069. func (s *LoadBalancersConfig) SetTargetGroupsConfig(v *TargetGroupsConfig) *LoadBalancersConfig {
  46070. s.TargetGroupsConfig = v
  46071. return s
  46072. }
  46073. // Describes a load permission.
  46074. type LoadPermission struct {
  46075. _ struct{} `type:"structure"`
  46076. // The name of the group.
  46077. Group *string `locationName:"group" type:"string" enum:"PermissionGroup"`
  46078. // The AWS account ID.
  46079. UserId *string `locationName:"userId" type:"string"`
  46080. }
  46081. // String returns the string representation
  46082. func (s LoadPermission) String() string {
  46083. return awsutil.Prettify(s)
  46084. }
  46085. // GoString returns the string representation
  46086. func (s LoadPermission) GoString() string {
  46087. return s.String()
  46088. }
  46089. // SetGroup sets the Group field's value.
  46090. func (s *LoadPermission) SetGroup(v string) *LoadPermission {
  46091. s.Group = &v
  46092. return s
  46093. }
  46094. // SetUserId sets the UserId field's value.
  46095. func (s *LoadPermission) SetUserId(v string) *LoadPermission {
  46096. s.UserId = &v
  46097. return s
  46098. }
  46099. // Describes modifications to the load permissions of an Amazon FPGA image (AFI).
  46100. type LoadPermissionModifications struct {
  46101. _ struct{} `type:"structure"`
  46102. // The load permissions to add.
  46103. Add []*LoadPermissionRequest `locationNameList:"item" type:"list"`
  46104. // The load permissions to remove.
  46105. Remove []*LoadPermissionRequest `locationNameList:"item" type:"list"`
  46106. }
  46107. // String returns the string representation
  46108. func (s LoadPermissionModifications) String() string {
  46109. return awsutil.Prettify(s)
  46110. }
  46111. // GoString returns the string representation
  46112. func (s LoadPermissionModifications) GoString() string {
  46113. return s.String()
  46114. }
  46115. // SetAdd sets the Add field's value.
  46116. func (s *LoadPermissionModifications) SetAdd(v []*LoadPermissionRequest) *LoadPermissionModifications {
  46117. s.Add = v
  46118. return s
  46119. }
  46120. // SetRemove sets the Remove field's value.
  46121. func (s *LoadPermissionModifications) SetRemove(v []*LoadPermissionRequest) *LoadPermissionModifications {
  46122. s.Remove = v
  46123. return s
  46124. }
  46125. // Describes a load permission.
  46126. type LoadPermissionRequest struct {
  46127. _ struct{} `type:"structure"`
  46128. // The name of the group.
  46129. Group *string `type:"string" enum:"PermissionGroup"`
  46130. // The AWS account ID.
  46131. UserId *string `type:"string"`
  46132. }
  46133. // String returns the string representation
  46134. func (s LoadPermissionRequest) String() string {
  46135. return awsutil.Prettify(s)
  46136. }
  46137. // GoString returns the string representation
  46138. func (s LoadPermissionRequest) GoString() string {
  46139. return s.String()
  46140. }
  46141. // SetGroup sets the Group field's value.
  46142. func (s *LoadPermissionRequest) SetGroup(v string) *LoadPermissionRequest {
  46143. s.Group = &v
  46144. return s
  46145. }
  46146. // SetUserId sets the UserId field's value.
  46147. func (s *LoadPermissionRequest) SetUserId(v string) *LoadPermissionRequest {
  46148. s.UserId = &v
  46149. return s
  46150. }
  46151. type ModifyFleetInput struct {
  46152. _ struct{} `type:"structure"`
  46153. // Checks whether you have the required permissions for the action, without
  46154. // actually making the request, and provides an error response. If you have
  46155. // the required permissions, the error response is DryRunOperation. Otherwise,
  46156. // it is UnauthorizedOperation.
  46157. DryRun *bool `type:"boolean"`
  46158. // Indicates whether running instances should be terminated if the total target
  46159. // capacity of the EC2 Fleet is decreased below the current size of the EC2
  46160. // Fleet.
  46161. ExcessCapacityTerminationPolicy *string `type:"string" enum:"FleetExcessCapacityTerminationPolicy"`
  46162. // The ID of the EC2 Fleet.
  46163. //
  46164. // FleetId is a required field
  46165. FleetId *string `type:"string" required:"true"`
  46166. // The size of the EC2 Fleet.
  46167. //
  46168. // TargetCapacitySpecification is a required field
  46169. TargetCapacitySpecification *TargetCapacitySpecificationRequest `type:"structure" required:"true"`
  46170. }
  46171. // String returns the string representation
  46172. func (s ModifyFleetInput) String() string {
  46173. return awsutil.Prettify(s)
  46174. }
  46175. // GoString returns the string representation
  46176. func (s ModifyFleetInput) GoString() string {
  46177. return s.String()
  46178. }
  46179. // Validate inspects the fields of the type to determine if they are valid.
  46180. func (s *ModifyFleetInput) Validate() error {
  46181. invalidParams := request.ErrInvalidParams{Context: "ModifyFleetInput"}
  46182. if s.FleetId == nil {
  46183. invalidParams.Add(request.NewErrParamRequired("FleetId"))
  46184. }
  46185. if s.TargetCapacitySpecification == nil {
  46186. invalidParams.Add(request.NewErrParamRequired("TargetCapacitySpecification"))
  46187. }
  46188. if s.TargetCapacitySpecification != nil {
  46189. if err := s.TargetCapacitySpecification.Validate(); err != nil {
  46190. invalidParams.AddNested("TargetCapacitySpecification", err.(request.ErrInvalidParams))
  46191. }
  46192. }
  46193. if invalidParams.Len() > 0 {
  46194. return invalidParams
  46195. }
  46196. return nil
  46197. }
  46198. // SetDryRun sets the DryRun field's value.
  46199. func (s *ModifyFleetInput) SetDryRun(v bool) *ModifyFleetInput {
  46200. s.DryRun = &v
  46201. return s
  46202. }
  46203. // SetExcessCapacityTerminationPolicy sets the ExcessCapacityTerminationPolicy field's value.
  46204. func (s *ModifyFleetInput) SetExcessCapacityTerminationPolicy(v string) *ModifyFleetInput {
  46205. s.ExcessCapacityTerminationPolicy = &v
  46206. return s
  46207. }
  46208. // SetFleetId sets the FleetId field's value.
  46209. func (s *ModifyFleetInput) SetFleetId(v string) *ModifyFleetInput {
  46210. s.FleetId = &v
  46211. return s
  46212. }
  46213. // SetTargetCapacitySpecification sets the TargetCapacitySpecification field's value.
  46214. func (s *ModifyFleetInput) SetTargetCapacitySpecification(v *TargetCapacitySpecificationRequest) *ModifyFleetInput {
  46215. s.TargetCapacitySpecification = v
  46216. return s
  46217. }
  46218. type ModifyFleetOutput struct {
  46219. _ struct{} `type:"structure"`
  46220. // Is true if the request succeeds, and an error otherwise.
  46221. Return *bool `locationName:"return" type:"boolean"`
  46222. }
  46223. // String returns the string representation
  46224. func (s ModifyFleetOutput) String() string {
  46225. return awsutil.Prettify(s)
  46226. }
  46227. // GoString returns the string representation
  46228. func (s ModifyFleetOutput) GoString() string {
  46229. return s.String()
  46230. }
  46231. // SetReturn sets the Return field's value.
  46232. func (s *ModifyFleetOutput) SetReturn(v bool) *ModifyFleetOutput {
  46233. s.Return = &v
  46234. return s
  46235. }
  46236. type ModifyFpgaImageAttributeInput struct {
  46237. _ struct{} `type:"structure"`
  46238. // The name of the attribute.
  46239. Attribute *string `type:"string" enum:"FpgaImageAttributeName"`
  46240. // A description for the AFI.
  46241. Description *string `type:"string"`
  46242. // Checks whether you have the required permissions for the action, without
  46243. // actually making the request, and provides an error response. If you have
  46244. // the required permissions, the error response is DryRunOperation. Otherwise,
  46245. // it is UnauthorizedOperation.
  46246. DryRun *bool `type:"boolean"`
  46247. // The ID of the AFI.
  46248. //
  46249. // FpgaImageId is a required field
  46250. FpgaImageId *string `type:"string" required:"true"`
  46251. // The load permission for the AFI.
  46252. LoadPermission *LoadPermissionModifications `type:"structure"`
  46253. // A name for the AFI.
  46254. Name *string `type:"string"`
  46255. // The operation type.
  46256. OperationType *string `type:"string" enum:"OperationType"`
  46257. // One or more product codes. After you add a product code to an AFI, it can't
  46258. // be removed. This parameter is valid only when modifying the productCodes
  46259. // attribute.
  46260. ProductCodes []*string `locationName:"ProductCode" locationNameList:"ProductCode" type:"list"`
  46261. // One or more user groups. This parameter is valid only when modifying the
  46262. // loadPermission attribute.
  46263. UserGroups []*string `locationName:"UserGroup" locationNameList:"UserGroup" type:"list"`
  46264. // One or more AWS account IDs. This parameter is valid only when modifying
  46265. // the loadPermission attribute.
  46266. UserIds []*string `locationName:"UserId" locationNameList:"UserId" type:"list"`
  46267. }
  46268. // String returns the string representation
  46269. func (s ModifyFpgaImageAttributeInput) String() string {
  46270. return awsutil.Prettify(s)
  46271. }
  46272. // GoString returns the string representation
  46273. func (s ModifyFpgaImageAttributeInput) GoString() string {
  46274. return s.String()
  46275. }
  46276. // Validate inspects the fields of the type to determine if they are valid.
  46277. func (s *ModifyFpgaImageAttributeInput) Validate() error {
  46278. invalidParams := request.ErrInvalidParams{Context: "ModifyFpgaImageAttributeInput"}
  46279. if s.FpgaImageId == nil {
  46280. invalidParams.Add(request.NewErrParamRequired("FpgaImageId"))
  46281. }
  46282. if invalidParams.Len() > 0 {
  46283. return invalidParams
  46284. }
  46285. return nil
  46286. }
  46287. // SetAttribute sets the Attribute field's value.
  46288. func (s *ModifyFpgaImageAttributeInput) SetAttribute(v string) *ModifyFpgaImageAttributeInput {
  46289. s.Attribute = &v
  46290. return s
  46291. }
  46292. // SetDescription sets the Description field's value.
  46293. func (s *ModifyFpgaImageAttributeInput) SetDescription(v string) *ModifyFpgaImageAttributeInput {
  46294. s.Description = &v
  46295. return s
  46296. }
  46297. // SetDryRun sets the DryRun field's value.
  46298. func (s *ModifyFpgaImageAttributeInput) SetDryRun(v bool) *ModifyFpgaImageAttributeInput {
  46299. s.DryRun = &v
  46300. return s
  46301. }
  46302. // SetFpgaImageId sets the FpgaImageId field's value.
  46303. func (s *ModifyFpgaImageAttributeInput) SetFpgaImageId(v string) *ModifyFpgaImageAttributeInput {
  46304. s.FpgaImageId = &v
  46305. return s
  46306. }
  46307. // SetLoadPermission sets the LoadPermission field's value.
  46308. func (s *ModifyFpgaImageAttributeInput) SetLoadPermission(v *LoadPermissionModifications) *ModifyFpgaImageAttributeInput {
  46309. s.LoadPermission = v
  46310. return s
  46311. }
  46312. // SetName sets the Name field's value.
  46313. func (s *ModifyFpgaImageAttributeInput) SetName(v string) *ModifyFpgaImageAttributeInput {
  46314. s.Name = &v
  46315. return s
  46316. }
  46317. // SetOperationType sets the OperationType field's value.
  46318. func (s *ModifyFpgaImageAttributeInput) SetOperationType(v string) *ModifyFpgaImageAttributeInput {
  46319. s.OperationType = &v
  46320. return s
  46321. }
  46322. // SetProductCodes sets the ProductCodes field's value.
  46323. func (s *ModifyFpgaImageAttributeInput) SetProductCodes(v []*string) *ModifyFpgaImageAttributeInput {
  46324. s.ProductCodes = v
  46325. return s
  46326. }
  46327. // SetUserGroups sets the UserGroups field's value.
  46328. func (s *ModifyFpgaImageAttributeInput) SetUserGroups(v []*string) *ModifyFpgaImageAttributeInput {
  46329. s.UserGroups = v
  46330. return s
  46331. }
  46332. // SetUserIds sets the UserIds field's value.
  46333. func (s *ModifyFpgaImageAttributeInput) SetUserIds(v []*string) *ModifyFpgaImageAttributeInput {
  46334. s.UserIds = v
  46335. return s
  46336. }
  46337. type ModifyFpgaImageAttributeOutput struct {
  46338. _ struct{} `type:"structure"`
  46339. // Information about the attribute.
  46340. FpgaImageAttribute *FpgaImageAttribute `locationName:"fpgaImageAttribute" type:"structure"`
  46341. }
  46342. // String returns the string representation
  46343. func (s ModifyFpgaImageAttributeOutput) String() string {
  46344. return awsutil.Prettify(s)
  46345. }
  46346. // GoString returns the string representation
  46347. func (s ModifyFpgaImageAttributeOutput) GoString() string {
  46348. return s.String()
  46349. }
  46350. // SetFpgaImageAttribute sets the FpgaImageAttribute field's value.
  46351. func (s *ModifyFpgaImageAttributeOutput) SetFpgaImageAttribute(v *FpgaImageAttribute) *ModifyFpgaImageAttributeOutput {
  46352. s.FpgaImageAttribute = v
  46353. return s
  46354. }
  46355. // Contains the parameters for ModifyHosts.
  46356. type ModifyHostsInput struct {
  46357. _ struct{} `type:"structure"`
  46358. // Specify whether to enable or disable auto-placement.
  46359. //
  46360. // AutoPlacement is a required field
  46361. AutoPlacement *string `locationName:"autoPlacement" type:"string" required:"true" enum:"AutoPlacement"`
  46362. // The host IDs of the Dedicated Hosts you want to modify.
  46363. //
  46364. // HostIds is a required field
  46365. HostIds []*string `locationName:"hostId" locationNameList:"item" type:"list" required:"true"`
  46366. }
  46367. // String returns the string representation
  46368. func (s ModifyHostsInput) String() string {
  46369. return awsutil.Prettify(s)
  46370. }
  46371. // GoString returns the string representation
  46372. func (s ModifyHostsInput) GoString() string {
  46373. return s.String()
  46374. }
  46375. // Validate inspects the fields of the type to determine if they are valid.
  46376. func (s *ModifyHostsInput) Validate() error {
  46377. invalidParams := request.ErrInvalidParams{Context: "ModifyHostsInput"}
  46378. if s.AutoPlacement == nil {
  46379. invalidParams.Add(request.NewErrParamRequired("AutoPlacement"))
  46380. }
  46381. if s.HostIds == nil {
  46382. invalidParams.Add(request.NewErrParamRequired("HostIds"))
  46383. }
  46384. if invalidParams.Len() > 0 {
  46385. return invalidParams
  46386. }
  46387. return nil
  46388. }
  46389. // SetAutoPlacement sets the AutoPlacement field's value.
  46390. func (s *ModifyHostsInput) SetAutoPlacement(v string) *ModifyHostsInput {
  46391. s.AutoPlacement = &v
  46392. return s
  46393. }
  46394. // SetHostIds sets the HostIds field's value.
  46395. func (s *ModifyHostsInput) SetHostIds(v []*string) *ModifyHostsInput {
  46396. s.HostIds = v
  46397. return s
  46398. }
  46399. // Contains the output of ModifyHosts.
  46400. type ModifyHostsOutput struct {
  46401. _ struct{} `type:"structure"`
  46402. // The IDs of the Dedicated Hosts that were successfully modified.
  46403. Successful []*string `locationName:"successful" locationNameList:"item" type:"list"`
  46404. // The IDs of the Dedicated Hosts that could not be modified. Check whether
  46405. // the setting you requested can be used.
  46406. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  46407. }
  46408. // String returns the string representation
  46409. func (s ModifyHostsOutput) String() string {
  46410. return awsutil.Prettify(s)
  46411. }
  46412. // GoString returns the string representation
  46413. func (s ModifyHostsOutput) GoString() string {
  46414. return s.String()
  46415. }
  46416. // SetSuccessful sets the Successful field's value.
  46417. func (s *ModifyHostsOutput) SetSuccessful(v []*string) *ModifyHostsOutput {
  46418. s.Successful = v
  46419. return s
  46420. }
  46421. // SetUnsuccessful sets the Unsuccessful field's value.
  46422. func (s *ModifyHostsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *ModifyHostsOutput {
  46423. s.Unsuccessful = v
  46424. return s
  46425. }
  46426. // Contains the parameters of ModifyIdFormat.
  46427. type ModifyIdFormatInput struct {
  46428. _ struct{} `type:"structure"`
  46429. // The type of resource: bundle | conversion-task | customer-gateway | dhcp-options
  46430. // | elastic-ip-allocation | elastic-ip-association | export-task | flow-log
  46431. // | image | import-task | internet-gateway | network-acl | network-acl-association
  46432. // | network-interface | network-interface-attachment | prefix-list | route-table
  46433. // | route-table-association | security-group | subnet | subnet-cidr-block-association
  46434. // | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection
  46435. // | vpn-connection | vpn-gateway.
  46436. //
  46437. // Alternatively, use the all-current option to include all resource types that
  46438. // are currently within their opt-in period for longer IDs.
  46439. //
  46440. // Resource is a required field
  46441. Resource *string `type:"string" required:"true"`
  46442. // Indicate whether the resource should use longer IDs (17-character IDs).
  46443. //
  46444. // UseLongIds is a required field
  46445. UseLongIds *bool `type:"boolean" required:"true"`
  46446. }
  46447. // String returns the string representation
  46448. func (s ModifyIdFormatInput) String() string {
  46449. return awsutil.Prettify(s)
  46450. }
  46451. // GoString returns the string representation
  46452. func (s ModifyIdFormatInput) GoString() string {
  46453. return s.String()
  46454. }
  46455. // Validate inspects the fields of the type to determine if they are valid.
  46456. func (s *ModifyIdFormatInput) Validate() error {
  46457. invalidParams := request.ErrInvalidParams{Context: "ModifyIdFormatInput"}
  46458. if s.Resource == nil {
  46459. invalidParams.Add(request.NewErrParamRequired("Resource"))
  46460. }
  46461. if s.UseLongIds == nil {
  46462. invalidParams.Add(request.NewErrParamRequired("UseLongIds"))
  46463. }
  46464. if invalidParams.Len() > 0 {
  46465. return invalidParams
  46466. }
  46467. return nil
  46468. }
  46469. // SetResource sets the Resource field's value.
  46470. func (s *ModifyIdFormatInput) SetResource(v string) *ModifyIdFormatInput {
  46471. s.Resource = &v
  46472. return s
  46473. }
  46474. // SetUseLongIds sets the UseLongIds field's value.
  46475. func (s *ModifyIdFormatInput) SetUseLongIds(v bool) *ModifyIdFormatInput {
  46476. s.UseLongIds = &v
  46477. return s
  46478. }
  46479. type ModifyIdFormatOutput struct {
  46480. _ struct{} `type:"structure"`
  46481. }
  46482. // String returns the string representation
  46483. func (s ModifyIdFormatOutput) String() string {
  46484. return awsutil.Prettify(s)
  46485. }
  46486. // GoString returns the string representation
  46487. func (s ModifyIdFormatOutput) GoString() string {
  46488. return s.String()
  46489. }
  46490. // Contains the parameters of ModifyIdentityIdFormat.
  46491. type ModifyIdentityIdFormatInput struct {
  46492. _ struct{} `type:"structure"`
  46493. // The ARN of the principal, which can be an IAM user, IAM role, or the root
  46494. // user. Specify all to modify the ID format for all IAM users, IAM roles, and
  46495. // the root user of the account.
  46496. //
  46497. // PrincipalArn is a required field
  46498. PrincipalArn *string `locationName:"principalArn" type:"string" required:"true"`
  46499. // The type of resource: bundle | conversion-task | customer-gateway | dhcp-options
  46500. // | elastic-ip-allocation | elastic-ip-association | export-task | flow-log
  46501. // | image | import-task | internet-gateway | network-acl | network-acl-association
  46502. // | network-interface | network-interface-attachment | prefix-list | route-table
  46503. // | route-table-association | security-group | subnet | subnet-cidr-block-association
  46504. // | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection
  46505. // | vpn-connection | vpn-gateway.
  46506. //
  46507. // Alternatively, use the all-current option to include all resource types that
  46508. // are currently within their opt-in period for longer IDs.
  46509. //
  46510. // Resource is a required field
  46511. Resource *string `locationName:"resource" type:"string" required:"true"`
  46512. // Indicates whether the resource should use longer IDs (17-character IDs)
  46513. //
  46514. // UseLongIds is a required field
  46515. UseLongIds *bool `locationName:"useLongIds" type:"boolean" required:"true"`
  46516. }
  46517. // String returns the string representation
  46518. func (s ModifyIdentityIdFormatInput) String() string {
  46519. return awsutil.Prettify(s)
  46520. }
  46521. // GoString returns the string representation
  46522. func (s ModifyIdentityIdFormatInput) GoString() string {
  46523. return s.String()
  46524. }
  46525. // Validate inspects the fields of the type to determine if they are valid.
  46526. func (s *ModifyIdentityIdFormatInput) Validate() error {
  46527. invalidParams := request.ErrInvalidParams{Context: "ModifyIdentityIdFormatInput"}
  46528. if s.PrincipalArn == nil {
  46529. invalidParams.Add(request.NewErrParamRequired("PrincipalArn"))
  46530. }
  46531. if s.Resource == nil {
  46532. invalidParams.Add(request.NewErrParamRequired("Resource"))
  46533. }
  46534. if s.UseLongIds == nil {
  46535. invalidParams.Add(request.NewErrParamRequired("UseLongIds"))
  46536. }
  46537. if invalidParams.Len() > 0 {
  46538. return invalidParams
  46539. }
  46540. return nil
  46541. }
  46542. // SetPrincipalArn sets the PrincipalArn field's value.
  46543. func (s *ModifyIdentityIdFormatInput) SetPrincipalArn(v string) *ModifyIdentityIdFormatInput {
  46544. s.PrincipalArn = &v
  46545. return s
  46546. }
  46547. // SetResource sets the Resource field's value.
  46548. func (s *ModifyIdentityIdFormatInput) SetResource(v string) *ModifyIdentityIdFormatInput {
  46549. s.Resource = &v
  46550. return s
  46551. }
  46552. // SetUseLongIds sets the UseLongIds field's value.
  46553. func (s *ModifyIdentityIdFormatInput) SetUseLongIds(v bool) *ModifyIdentityIdFormatInput {
  46554. s.UseLongIds = &v
  46555. return s
  46556. }
  46557. type ModifyIdentityIdFormatOutput struct {
  46558. _ struct{} `type:"structure"`
  46559. }
  46560. // String returns the string representation
  46561. func (s ModifyIdentityIdFormatOutput) String() string {
  46562. return awsutil.Prettify(s)
  46563. }
  46564. // GoString returns the string representation
  46565. func (s ModifyIdentityIdFormatOutput) GoString() string {
  46566. return s.String()
  46567. }
  46568. // Contains the parameters for ModifyImageAttribute.
  46569. type ModifyImageAttributeInput struct {
  46570. _ struct{} `type:"structure"`
  46571. // The name of the attribute to modify. The valid values are description, launchPermission,
  46572. // and productCodes.
  46573. Attribute *string `type:"string"`
  46574. // A new description for the AMI.
  46575. Description *AttributeValue `type:"structure"`
  46576. // Checks whether you have the required permissions for the action, without
  46577. // actually making the request, and provides an error response. If you have
  46578. // the required permissions, the error response is DryRunOperation. Otherwise,
  46579. // it is UnauthorizedOperation.
  46580. DryRun *bool `locationName:"dryRun" type:"boolean"`
  46581. // The ID of the AMI.
  46582. //
  46583. // ImageId is a required field
  46584. ImageId *string `type:"string" required:"true"`
  46585. // A new launch permission for the AMI.
  46586. LaunchPermission *LaunchPermissionModifications `type:"structure"`
  46587. // The operation type. This parameter can be used only when the Attribute parameter
  46588. // is launchPermission.
  46589. OperationType *string `type:"string" enum:"OperationType"`
  46590. // One or more DevPay product codes. After you add a product code to an AMI,
  46591. // it can't be removed.
  46592. ProductCodes []*string `locationName:"ProductCode" locationNameList:"ProductCode" type:"list"`
  46593. // One or more user groups. This parameter can be used only when the Attribute
  46594. // parameter is launchPermission.
  46595. UserGroups []*string `locationName:"UserGroup" locationNameList:"UserGroup" type:"list"`
  46596. // One or more AWS account IDs. This parameter can be used only when the Attribute
  46597. // parameter is launchPermission.
  46598. UserIds []*string `locationName:"UserId" locationNameList:"UserId" type:"list"`
  46599. // The value of the attribute being modified. This parameter can be used only
  46600. // when the Attribute parameter is description or productCodes.
  46601. Value *string `type:"string"`
  46602. }
  46603. // String returns the string representation
  46604. func (s ModifyImageAttributeInput) String() string {
  46605. return awsutil.Prettify(s)
  46606. }
  46607. // GoString returns the string representation
  46608. func (s ModifyImageAttributeInput) GoString() string {
  46609. return s.String()
  46610. }
  46611. // Validate inspects the fields of the type to determine if they are valid.
  46612. func (s *ModifyImageAttributeInput) Validate() error {
  46613. invalidParams := request.ErrInvalidParams{Context: "ModifyImageAttributeInput"}
  46614. if s.ImageId == nil {
  46615. invalidParams.Add(request.NewErrParamRequired("ImageId"))
  46616. }
  46617. if invalidParams.Len() > 0 {
  46618. return invalidParams
  46619. }
  46620. return nil
  46621. }
  46622. // SetAttribute sets the Attribute field's value.
  46623. func (s *ModifyImageAttributeInput) SetAttribute(v string) *ModifyImageAttributeInput {
  46624. s.Attribute = &v
  46625. return s
  46626. }
  46627. // SetDescription sets the Description field's value.
  46628. func (s *ModifyImageAttributeInput) SetDescription(v *AttributeValue) *ModifyImageAttributeInput {
  46629. s.Description = v
  46630. return s
  46631. }
  46632. // SetDryRun sets the DryRun field's value.
  46633. func (s *ModifyImageAttributeInput) SetDryRun(v bool) *ModifyImageAttributeInput {
  46634. s.DryRun = &v
  46635. return s
  46636. }
  46637. // SetImageId sets the ImageId field's value.
  46638. func (s *ModifyImageAttributeInput) SetImageId(v string) *ModifyImageAttributeInput {
  46639. s.ImageId = &v
  46640. return s
  46641. }
  46642. // SetLaunchPermission sets the LaunchPermission field's value.
  46643. func (s *ModifyImageAttributeInput) SetLaunchPermission(v *LaunchPermissionModifications) *ModifyImageAttributeInput {
  46644. s.LaunchPermission = v
  46645. return s
  46646. }
  46647. // SetOperationType sets the OperationType field's value.
  46648. func (s *ModifyImageAttributeInput) SetOperationType(v string) *ModifyImageAttributeInput {
  46649. s.OperationType = &v
  46650. return s
  46651. }
  46652. // SetProductCodes sets the ProductCodes field's value.
  46653. func (s *ModifyImageAttributeInput) SetProductCodes(v []*string) *ModifyImageAttributeInput {
  46654. s.ProductCodes = v
  46655. return s
  46656. }
  46657. // SetUserGroups sets the UserGroups field's value.
  46658. func (s *ModifyImageAttributeInput) SetUserGroups(v []*string) *ModifyImageAttributeInput {
  46659. s.UserGroups = v
  46660. return s
  46661. }
  46662. // SetUserIds sets the UserIds field's value.
  46663. func (s *ModifyImageAttributeInput) SetUserIds(v []*string) *ModifyImageAttributeInput {
  46664. s.UserIds = v
  46665. return s
  46666. }
  46667. // SetValue sets the Value field's value.
  46668. func (s *ModifyImageAttributeInput) SetValue(v string) *ModifyImageAttributeInput {
  46669. s.Value = &v
  46670. return s
  46671. }
  46672. type ModifyImageAttributeOutput struct {
  46673. _ struct{} `type:"structure"`
  46674. }
  46675. // String returns the string representation
  46676. func (s ModifyImageAttributeOutput) String() string {
  46677. return awsutil.Prettify(s)
  46678. }
  46679. // GoString returns the string representation
  46680. func (s ModifyImageAttributeOutput) GoString() string {
  46681. return s.String()
  46682. }
  46683. // Contains the parameters for ModifyInstanceAttribute.
  46684. type ModifyInstanceAttributeInput struct {
  46685. _ struct{} `type:"structure"`
  46686. // The name of the attribute.
  46687. Attribute *string `locationName:"attribute" type:"string" enum:"InstanceAttributeName"`
  46688. // Modifies the DeleteOnTermination attribute for volumes that are currently
  46689. // attached. The volume must be owned by the caller. If no value is specified
  46690. // for DeleteOnTermination, the default is true and the volume is deleted when
  46691. // the instance is terminated.
  46692. //
  46693. // To add instance store volumes to an Amazon EBS-backed instance, you must
  46694. // add them when you launch the instance. For more information, see Updating
  46695. // the Block Device Mapping when Launching an Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html#Using_OverridingAMIBDM)
  46696. // in the Amazon Elastic Compute Cloud User Guide.
  46697. BlockDeviceMappings []*InstanceBlockDeviceMappingSpecification `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  46698. // If the value is true, you can't terminate the instance using the Amazon EC2
  46699. // console, CLI, or API; otherwise, you can. You cannot use this parameter for
  46700. // Spot Instances.
  46701. DisableApiTermination *AttributeBooleanValue `locationName:"disableApiTermination" type:"structure"`
  46702. // Checks whether you have the required permissions for the action, without
  46703. // actually making the request, and provides an error response. If you have
  46704. // the required permissions, the error response is DryRunOperation. Otherwise,
  46705. // it is UnauthorizedOperation.
  46706. DryRun *bool `locationName:"dryRun" type:"boolean"`
  46707. // Specifies whether the instance is optimized for Amazon EBS I/O. This optimization
  46708. // provides dedicated throughput to Amazon EBS and an optimized configuration
  46709. // stack to provide optimal EBS I/O performance. This optimization isn't available
  46710. // with all instance types. Additional usage charges apply when using an EBS
  46711. // Optimized instance.
  46712. EbsOptimized *AttributeBooleanValue `locationName:"ebsOptimized" type:"structure"`
  46713. // Set to true to enable enhanced networking with ENA for the instance.
  46714. //
  46715. // This option is supported only for HVM instances. Specifying this option with
  46716. // a PV instance can make it unreachable.
  46717. EnaSupport *AttributeBooleanValue `locationName:"enaSupport" type:"structure"`
  46718. // [EC2-VPC] Changes the security groups of the instance. You must specify at
  46719. // least one security group, even if it's just the default security group for
  46720. // the VPC. You must specify the security group ID, not the security group name.
  46721. Groups []*string `locationName:"GroupId" locationNameList:"groupId" type:"list"`
  46722. // The ID of the instance.
  46723. //
  46724. // InstanceId is a required field
  46725. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  46726. // Specifies whether an instance stops or terminates when you initiate shutdown
  46727. // from the instance (using the operating system command for system shutdown).
  46728. InstanceInitiatedShutdownBehavior *AttributeValue `locationName:"instanceInitiatedShutdownBehavior" type:"structure"`
  46729. // Changes the instance type to the specified value. For more information, see
  46730. // Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html).
  46731. // If the instance type is not valid, the error returned is InvalidInstanceAttributeValue.
  46732. InstanceType *AttributeValue `locationName:"instanceType" type:"structure"`
  46733. // Changes the instance's kernel to the specified value. We recommend that you
  46734. // use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB
  46735. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedKernels.html).
  46736. Kernel *AttributeValue `locationName:"kernel" type:"structure"`
  46737. // Changes the instance's RAM disk to the specified value. We recommend that
  46738. // you use PV-GRUB instead of kernels and RAM disks. For more information, see
  46739. // PV-GRUB (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedKernels.html).
  46740. Ramdisk *AttributeValue `locationName:"ramdisk" type:"structure"`
  46741. // Specifies whether source/destination checking is enabled. A value of true
  46742. // means that checking is enabled, and false means that checking is disabled.
  46743. // This value must be false for a NAT instance to perform NAT.
  46744. SourceDestCheck *AttributeBooleanValue `type:"structure"`
  46745. // Set to simple to enable enhanced networking with the Intel 82599 Virtual
  46746. // Function interface for the instance.
  46747. //
  46748. // There is no way to disable enhanced networking with the Intel 82599 Virtual
  46749. // Function interface at this time.
  46750. //
  46751. // This option is supported only for HVM instances. Specifying this option with
  46752. // a PV instance can make it unreachable.
  46753. SriovNetSupport *AttributeValue `locationName:"sriovNetSupport" type:"structure"`
  46754. // Changes the instance's user data to the specified value. If you are using
  46755. // an AWS SDK or command line tool, base64-encoding is performed for you, and
  46756. // you can load the text from a file. Otherwise, you must provide base64-encoded
  46757. // text.
  46758. UserData *BlobAttributeValue `locationName:"userData" type:"structure"`
  46759. // A new value for the attribute. Use only with the kernel, ramdisk, userData,
  46760. // disableApiTermination, or instanceInitiatedShutdownBehavior attribute.
  46761. Value *string `locationName:"value" type:"string"`
  46762. }
  46763. // String returns the string representation
  46764. func (s ModifyInstanceAttributeInput) String() string {
  46765. return awsutil.Prettify(s)
  46766. }
  46767. // GoString returns the string representation
  46768. func (s ModifyInstanceAttributeInput) GoString() string {
  46769. return s.String()
  46770. }
  46771. // Validate inspects the fields of the type to determine if they are valid.
  46772. func (s *ModifyInstanceAttributeInput) Validate() error {
  46773. invalidParams := request.ErrInvalidParams{Context: "ModifyInstanceAttributeInput"}
  46774. if s.InstanceId == nil {
  46775. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  46776. }
  46777. if invalidParams.Len() > 0 {
  46778. return invalidParams
  46779. }
  46780. return nil
  46781. }
  46782. // SetAttribute sets the Attribute field's value.
  46783. func (s *ModifyInstanceAttributeInput) SetAttribute(v string) *ModifyInstanceAttributeInput {
  46784. s.Attribute = &v
  46785. return s
  46786. }
  46787. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  46788. func (s *ModifyInstanceAttributeInput) SetBlockDeviceMappings(v []*InstanceBlockDeviceMappingSpecification) *ModifyInstanceAttributeInput {
  46789. s.BlockDeviceMappings = v
  46790. return s
  46791. }
  46792. // SetDisableApiTermination sets the DisableApiTermination field's value.
  46793. func (s *ModifyInstanceAttributeInput) SetDisableApiTermination(v *AttributeBooleanValue) *ModifyInstanceAttributeInput {
  46794. s.DisableApiTermination = v
  46795. return s
  46796. }
  46797. // SetDryRun sets the DryRun field's value.
  46798. func (s *ModifyInstanceAttributeInput) SetDryRun(v bool) *ModifyInstanceAttributeInput {
  46799. s.DryRun = &v
  46800. return s
  46801. }
  46802. // SetEbsOptimized sets the EbsOptimized field's value.
  46803. func (s *ModifyInstanceAttributeInput) SetEbsOptimized(v *AttributeBooleanValue) *ModifyInstanceAttributeInput {
  46804. s.EbsOptimized = v
  46805. return s
  46806. }
  46807. // SetEnaSupport sets the EnaSupport field's value.
  46808. func (s *ModifyInstanceAttributeInput) SetEnaSupport(v *AttributeBooleanValue) *ModifyInstanceAttributeInput {
  46809. s.EnaSupport = v
  46810. return s
  46811. }
  46812. // SetGroups sets the Groups field's value.
  46813. func (s *ModifyInstanceAttributeInput) SetGroups(v []*string) *ModifyInstanceAttributeInput {
  46814. s.Groups = v
  46815. return s
  46816. }
  46817. // SetInstanceId sets the InstanceId field's value.
  46818. func (s *ModifyInstanceAttributeInput) SetInstanceId(v string) *ModifyInstanceAttributeInput {
  46819. s.InstanceId = &v
  46820. return s
  46821. }
  46822. // SetInstanceInitiatedShutdownBehavior sets the InstanceInitiatedShutdownBehavior field's value.
  46823. func (s *ModifyInstanceAttributeInput) SetInstanceInitiatedShutdownBehavior(v *AttributeValue) *ModifyInstanceAttributeInput {
  46824. s.InstanceInitiatedShutdownBehavior = v
  46825. return s
  46826. }
  46827. // SetInstanceType sets the InstanceType field's value.
  46828. func (s *ModifyInstanceAttributeInput) SetInstanceType(v *AttributeValue) *ModifyInstanceAttributeInput {
  46829. s.InstanceType = v
  46830. return s
  46831. }
  46832. // SetKernel sets the Kernel field's value.
  46833. func (s *ModifyInstanceAttributeInput) SetKernel(v *AttributeValue) *ModifyInstanceAttributeInput {
  46834. s.Kernel = v
  46835. return s
  46836. }
  46837. // SetRamdisk sets the Ramdisk field's value.
  46838. func (s *ModifyInstanceAttributeInput) SetRamdisk(v *AttributeValue) *ModifyInstanceAttributeInput {
  46839. s.Ramdisk = v
  46840. return s
  46841. }
  46842. // SetSourceDestCheck sets the SourceDestCheck field's value.
  46843. func (s *ModifyInstanceAttributeInput) SetSourceDestCheck(v *AttributeBooleanValue) *ModifyInstanceAttributeInput {
  46844. s.SourceDestCheck = v
  46845. return s
  46846. }
  46847. // SetSriovNetSupport sets the SriovNetSupport field's value.
  46848. func (s *ModifyInstanceAttributeInput) SetSriovNetSupport(v *AttributeValue) *ModifyInstanceAttributeInput {
  46849. s.SriovNetSupport = v
  46850. return s
  46851. }
  46852. // SetUserData sets the UserData field's value.
  46853. func (s *ModifyInstanceAttributeInput) SetUserData(v *BlobAttributeValue) *ModifyInstanceAttributeInput {
  46854. s.UserData = v
  46855. return s
  46856. }
  46857. // SetValue sets the Value field's value.
  46858. func (s *ModifyInstanceAttributeInput) SetValue(v string) *ModifyInstanceAttributeInput {
  46859. s.Value = &v
  46860. return s
  46861. }
  46862. type ModifyInstanceAttributeOutput struct {
  46863. _ struct{} `type:"structure"`
  46864. }
  46865. // String returns the string representation
  46866. func (s ModifyInstanceAttributeOutput) String() string {
  46867. return awsutil.Prettify(s)
  46868. }
  46869. // GoString returns the string representation
  46870. func (s ModifyInstanceAttributeOutput) GoString() string {
  46871. return s.String()
  46872. }
  46873. type ModifyInstanceCreditSpecificationInput struct {
  46874. _ struct{} `type:"structure"`
  46875. // A unique, case-sensitive token that you provide to ensure idempotency of
  46876. // your modification request. For more information, see Ensuring Idempotency
  46877. // (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  46878. ClientToken *string `type:"string"`
  46879. // Checks whether you have the required permissions for the action, without
  46880. // actually making the request, and provides an error response. If you have
  46881. // the required permissions, the error response is DryRunOperation. Otherwise,
  46882. // it is UnauthorizedOperation.
  46883. DryRun *bool `type:"boolean"`
  46884. // Information about the credit option for CPU usage.
  46885. //
  46886. // InstanceCreditSpecifications is a required field
  46887. InstanceCreditSpecifications []*InstanceCreditSpecificationRequest `locationName:"InstanceCreditSpecification" locationNameList:"item" type:"list" required:"true"`
  46888. }
  46889. // String returns the string representation
  46890. func (s ModifyInstanceCreditSpecificationInput) String() string {
  46891. return awsutil.Prettify(s)
  46892. }
  46893. // GoString returns the string representation
  46894. func (s ModifyInstanceCreditSpecificationInput) GoString() string {
  46895. return s.String()
  46896. }
  46897. // Validate inspects the fields of the type to determine if they are valid.
  46898. func (s *ModifyInstanceCreditSpecificationInput) Validate() error {
  46899. invalidParams := request.ErrInvalidParams{Context: "ModifyInstanceCreditSpecificationInput"}
  46900. if s.InstanceCreditSpecifications == nil {
  46901. invalidParams.Add(request.NewErrParamRequired("InstanceCreditSpecifications"))
  46902. }
  46903. if invalidParams.Len() > 0 {
  46904. return invalidParams
  46905. }
  46906. return nil
  46907. }
  46908. // SetClientToken sets the ClientToken field's value.
  46909. func (s *ModifyInstanceCreditSpecificationInput) SetClientToken(v string) *ModifyInstanceCreditSpecificationInput {
  46910. s.ClientToken = &v
  46911. return s
  46912. }
  46913. // SetDryRun sets the DryRun field's value.
  46914. func (s *ModifyInstanceCreditSpecificationInput) SetDryRun(v bool) *ModifyInstanceCreditSpecificationInput {
  46915. s.DryRun = &v
  46916. return s
  46917. }
  46918. // SetInstanceCreditSpecifications sets the InstanceCreditSpecifications field's value.
  46919. func (s *ModifyInstanceCreditSpecificationInput) SetInstanceCreditSpecifications(v []*InstanceCreditSpecificationRequest) *ModifyInstanceCreditSpecificationInput {
  46920. s.InstanceCreditSpecifications = v
  46921. return s
  46922. }
  46923. type ModifyInstanceCreditSpecificationOutput struct {
  46924. _ struct{} `type:"structure"`
  46925. // Information about the instances whose credit option for CPU usage was successfully
  46926. // modified.
  46927. SuccessfulInstanceCreditSpecifications []*SuccessfulInstanceCreditSpecificationItem `locationName:"successfulInstanceCreditSpecificationSet" locationNameList:"item" type:"list"`
  46928. // Information about the instances whose credit option for CPU usage was not
  46929. // modified.
  46930. UnsuccessfulInstanceCreditSpecifications []*UnsuccessfulInstanceCreditSpecificationItem `locationName:"unsuccessfulInstanceCreditSpecificationSet" locationNameList:"item" type:"list"`
  46931. }
  46932. // String returns the string representation
  46933. func (s ModifyInstanceCreditSpecificationOutput) String() string {
  46934. return awsutil.Prettify(s)
  46935. }
  46936. // GoString returns the string representation
  46937. func (s ModifyInstanceCreditSpecificationOutput) GoString() string {
  46938. return s.String()
  46939. }
  46940. // SetSuccessfulInstanceCreditSpecifications sets the SuccessfulInstanceCreditSpecifications field's value.
  46941. func (s *ModifyInstanceCreditSpecificationOutput) SetSuccessfulInstanceCreditSpecifications(v []*SuccessfulInstanceCreditSpecificationItem) *ModifyInstanceCreditSpecificationOutput {
  46942. s.SuccessfulInstanceCreditSpecifications = v
  46943. return s
  46944. }
  46945. // SetUnsuccessfulInstanceCreditSpecifications sets the UnsuccessfulInstanceCreditSpecifications field's value.
  46946. func (s *ModifyInstanceCreditSpecificationOutput) SetUnsuccessfulInstanceCreditSpecifications(v []*UnsuccessfulInstanceCreditSpecificationItem) *ModifyInstanceCreditSpecificationOutput {
  46947. s.UnsuccessfulInstanceCreditSpecifications = v
  46948. return s
  46949. }
  46950. // Contains the parameters for ModifyInstancePlacement.
  46951. type ModifyInstancePlacementInput struct {
  46952. _ struct{} `type:"structure"`
  46953. // The affinity setting for the instance.
  46954. Affinity *string `locationName:"affinity" type:"string" enum:"Affinity"`
  46955. // The name of the placement group in which to place the instance. For spread
  46956. // placement groups, the instance must have a tenancy of default. For cluster
  46957. // placement groups, the instance must have a tenancy of default or dedicated.
  46958. //
  46959. // To remove an instance from a placement group, specify an empty string ("").
  46960. GroupName *string `type:"string"`
  46961. // The ID of the Dedicated Host with which to associate the instance.
  46962. HostId *string `locationName:"hostId" type:"string"`
  46963. // The ID of the instance that you are modifying.
  46964. //
  46965. // InstanceId is a required field
  46966. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  46967. // The tenancy for the instance.
  46968. Tenancy *string `locationName:"tenancy" type:"string" enum:"HostTenancy"`
  46969. }
  46970. // String returns the string representation
  46971. func (s ModifyInstancePlacementInput) String() string {
  46972. return awsutil.Prettify(s)
  46973. }
  46974. // GoString returns the string representation
  46975. func (s ModifyInstancePlacementInput) GoString() string {
  46976. return s.String()
  46977. }
  46978. // Validate inspects the fields of the type to determine if they are valid.
  46979. func (s *ModifyInstancePlacementInput) Validate() error {
  46980. invalidParams := request.ErrInvalidParams{Context: "ModifyInstancePlacementInput"}
  46981. if s.InstanceId == nil {
  46982. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  46983. }
  46984. if invalidParams.Len() > 0 {
  46985. return invalidParams
  46986. }
  46987. return nil
  46988. }
  46989. // SetAffinity sets the Affinity field's value.
  46990. func (s *ModifyInstancePlacementInput) SetAffinity(v string) *ModifyInstancePlacementInput {
  46991. s.Affinity = &v
  46992. return s
  46993. }
  46994. // SetGroupName sets the GroupName field's value.
  46995. func (s *ModifyInstancePlacementInput) SetGroupName(v string) *ModifyInstancePlacementInput {
  46996. s.GroupName = &v
  46997. return s
  46998. }
  46999. // SetHostId sets the HostId field's value.
  47000. func (s *ModifyInstancePlacementInput) SetHostId(v string) *ModifyInstancePlacementInput {
  47001. s.HostId = &v
  47002. return s
  47003. }
  47004. // SetInstanceId sets the InstanceId field's value.
  47005. func (s *ModifyInstancePlacementInput) SetInstanceId(v string) *ModifyInstancePlacementInput {
  47006. s.InstanceId = &v
  47007. return s
  47008. }
  47009. // SetTenancy sets the Tenancy field's value.
  47010. func (s *ModifyInstancePlacementInput) SetTenancy(v string) *ModifyInstancePlacementInput {
  47011. s.Tenancy = &v
  47012. return s
  47013. }
  47014. // Contains the output of ModifyInstancePlacement.
  47015. type ModifyInstancePlacementOutput struct {
  47016. _ struct{} `type:"structure"`
  47017. // Is true if the request succeeds, and an error otherwise.
  47018. Return *bool `locationName:"return" type:"boolean"`
  47019. }
  47020. // String returns the string representation
  47021. func (s ModifyInstancePlacementOutput) String() string {
  47022. return awsutil.Prettify(s)
  47023. }
  47024. // GoString returns the string representation
  47025. func (s ModifyInstancePlacementOutput) GoString() string {
  47026. return s.String()
  47027. }
  47028. // SetReturn sets the Return field's value.
  47029. func (s *ModifyInstancePlacementOutput) SetReturn(v bool) *ModifyInstancePlacementOutput {
  47030. s.Return = &v
  47031. return s
  47032. }
  47033. type ModifyLaunchTemplateInput struct {
  47034. _ struct{} `type:"structure"`
  47035. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  47036. // the request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  47037. ClientToken *string `type:"string"`
  47038. // The version number of the launch template to set as the default version.
  47039. DefaultVersion *string `locationName:"SetDefaultVersion" type:"string"`
  47040. // Checks whether you have the required permissions for the action, without
  47041. // actually making the request, and provides an error response. If you have
  47042. // the required permissions, the error response is DryRunOperation. Otherwise,
  47043. // it is UnauthorizedOperation.
  47044. DryRun *bool `type:"boolean"`
  47045. // The ID of the launch template. You must specify either the launch template
  47046. // ID or launch template name in the request.
  47047. LaunchTemplateId *string `type:"string"`
  47048. // The name of the launch template. You must specify either the launch template
  47049. // ID or launch template name in the request.
  47050. LaunchTemplateName *string `min:"3" type:"string"`
  47051. }
  47052. // String returns the string representation
  47053. func (s ModifyLaunchTemplateInput) String() string {
  47054. return awsutil.Prettify(s)
  47055. }
  47056. // GoString returns the string representation
  47057. func (s ModifyLaunchTemplateInput) GoString() string {
  47058. return s.String()
  47059. }
  47060. // Validate inspects the fields of the type to determine if they are valid.
  47061. func (s *ModifyLaunchTemplateInput) Validate() error {
  47062. invalidParams := request.ErrInvalidParams{Context: "ModifyLaunchTemplateInput"}
  47063. if s.LaunchTemplateName != nil && len(*s.LaunchTemplateName) < 3 {
  47064. invalidParams.Add(request.NewErrParamMinLen("LaunchTemplateName", 3))
  47065. }
  47066. if invalidParams.Len() > 0 {
  47067. return invalidParams
  47068. }
  47069. return nil
  47070. }
  47071. // SetClientToken sets the ClientToken field's value.
  47072. func (s *ModifyLaunchTemplateInput) SetClientToken(v string) *ModifyLaunchTemplateInput {
  47073. s.ClientToken = &v
  47074. return s
  47075. }
  47076. // SetDefaultVersion sets the DefaultVersion field's value.
  47077. func (s *ModifyLaunchTemplateInput) SetDefaultVersion(v string) *ModifyLaunchTemplateInput {
  47078. s.DefaultVersion = &v
  47079. return s
  47080. }
  47081. // SetDryRun sets the DryRun field's value.
  47082. func (s *ModifyLaunchTemplateInput) SetDryRun(v bool) *ModifyLaunchTemplateInput {
  47083. s.DryRun = &v
  47084. return s
  47085. }
  47086. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  47087. func (s *ModifyLaunchTemplateInput) SetLaunchTemplateId(v string) *ModifyLaunchTemplateInput {
  47088. s.LaunchTemplateId = &v
  47089. return s
  47090. }
  47091. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  47092. func (s *ModifyLaunchTemplateInput) SetLaunchTemplateName(v string) *ModifyLaunchTemplateInput {
  47093. s.LaunchTemplateName = &v
  47094. return s
  47095. }
  47096. type ModifyLaunchTemplateOutput struct {
  47097. _ struct{} `type:"structure"`
  47098. // Information about the launch template.
  47099. LaunchTemplate *LaunchTemplate `locationName:"launchTemplate" type:"structure"`
  47100. }
  47101. // String returns the string representation
  47102. func (s ModifyLaunchTemplateOutput) String() string {
  47103. return awsutil.Prettify(s)
  47104. }
  47105. // GoString returns the string representation
  47106. func (s ModifyLaunchTemplateOutput) GoString() string {
  47107. return s.String()
  47108. }
  47109. // SetLaunchTemplate sets the LaunchTemplate field's value.
  47110. func (s *ModifyLaunchTemplateOutput) SetLaunchTemplate(v *LaunchTemplate) *ModifyLaunchTemplateOutput {
  47111. s.LaunchTemplate = v
  47112. return s
  47113. }
  47114. // Contains the parameters for ModifyNetworkInterfaceAttribute.
  47115. type ModifyNetworkInterfaceAttributeInput struct {
  47116. _ struct{} `type:"structure"`
  47117. // Information about the interface attachment. If modifying the 'delete on termination'
  47118. // attribute, you must specify the ID of the interface attachment.
  47119. Attachment *NetworkInterfaceAttachmentChanges `locationName:"attachment" type:"structure"`
  47120. // A description for the network interface.
  47121. Description *AttributeValue `locationName:"description" type:"structure"`
  47122. // Checks whether you have the required permissions for the action, without
  47123. // actually making the request, and provides an error response. If you have
  47124. // the required permissions, the error response is DryRunOperation. Otherwise,
  47125. // it is UnauthorizedOperation.
  47126. DryRun *bool `locationName:"dryRun" type:"boolean"`
  47127. // Changes the security groups for the network interface. The new set of groups
  47128. // you specify replaces the current set. You must specify at least one group,
  47129. // even if it's just the default security group in the VPC. You must specify
  47130. // the ID of the security group, not the name.
  47131. Groups []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`
  47132. // The ID of the network interface.
  47133. //
  47134. // NetworkInterfaceId is a required field
  47135. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  47136. // Indicates whether source/destination checking is enabled. A value of true
  47137. // means checking is enabled, and false means checking is disabled. This value
  47138. // must be false for a NAT instance to perform NAT. For more information, see
  47139. // NAT Instances (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html)
  47140. // in the Amazon Virtual Private Cloud User Guide.
  47141. SourceDestCheck *AttributeBooleanValue `locationName:"sourceDestCheck" type:"structure"`
  47142. }
  47143. // String returns the string representation
  47144. func (s ModifyNetworkInterfaceAttributeInput) String() string {
  47145. return awsutil.Prettify(s)
  47146. }
  47147. // GoString returns the string representation
  47148. func (s ModifyNetworkInterfaceAttributeInput) GoString() string {
  47149. return s.String()
  47150. }
  47151. // Validate inspects the fields of the type to determine if they are valid.
  47152. func (s *ModifyNetworkInterfaceAttributeInput) Validate() error {
  47153. invalidParams := request.ErrInvalidParams{Context: "ModifyNetworkInterfaceAttributeInput"}
  47154. if s.NetworkInterfaceId == nil {
  47155. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  47156. }
  47157. if invalidParams.Len() > 0 {
  47158. return invalidParams
  47159. }
  47160. return nil
  47161. }
  47162. // SetAttachment sets the Attachment field's value.
  47163. func (s *ModifyNetworkInterfaceAttributeInput) SetAttachment(v *NetworkInterfaceAttachmentChanges) *ModifyNetworkInterfaceAttributeInput {
  47164. s.Attachment = v
  47165. return s
  47166. }
  47167. // SetDescription sets the Description field's value.
  47168. func (s *ModifyNetworkInterfaceAttributeInput) SetDescription(v *AttributeValue) *ModifyNetworkInterfaceAttributeInput {
  47169. s.Description = v
  47170. return s
  47171. }
  47172. // SetDryRun sets the DryRun field's value.
  47173. func (s *ModifyNetworkInterfaceAttributeInput) SetDryRun(v bool) *ModifyNetworkInterfaceAttributeInput {
  47174. s.DryRun = &v
  47175. return s
  47176. }
  47177. // SetGroups sets the Groups field's value.
  47178. func (s *ModifyNetworkInterfaceAttributeInput) SetGroups(v []*string) *ModifyNetworkInterfaceAttributeInput {
  47179. s.Groups = v
  47180. return s
  47181. }
  47182. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  47183. func (s *ModifyNetworkInterfaceAttributeInput) SetNetworkInterfaceId(v string) *ModifyNetworkInterfaceAttributeInput {
  47184. s.NetworkInterfaceId = &v
  47185. return s
  47186. }
  47187. // SetSourceDestCheck sets the SourceDestCheck field's value.
  47188. func (s *ModifyNetworkInterfaceAttributeInput) SetSourceDestCheck(v *AttributeBooleanValue) *ModifyNetworkInterfaceAttributeInput {
  47189. s.SourceDestCheck = v
  47190. return s
  47191. }
  47192. type ModifyNetworkInterfaceAttributeOutput struct {
  47193. _ struct{} `type:"structure"`
  47194. }
  47195. // String returns the string representation
  47196. func (s ModifyNetworkInterfaceAttributeOutput) String() string {
  47197. return awsutil.Prettify(s)
  47198. }
  47199. // GoString returns the string representation
  47200. func (s ModifyNetworkInterfaceAttributeOutput) GoString() string {
  47201. return s.String()
  47202. }
  47203. // Contains the parameters for ModifyReservedInstances.
  47204. type ModifyReservedInstancesInput struct {
  47205. _ struct{} `type:"structure"`
  47206. // A unique, case-sensitive token you provide to ensure idempotency of your
  47207. // modification request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  47208. ClientToken *string `locationName:"clientToken" type:"string"`
  47209. // The IDs of the Reserved Instances to modify.
  47210. //
  47211. // ReservedInstancesIds is a required field
  47212. ReservedInstancesIds []*string `locationName:"ReservedInstancesId" locationNameList:"ReservedInstancesId" type:"list" required:"true"`
  47213. // The configuration settings for the Reserved Instances to modify.
  47214. //
  47215. // TargetConfigurations is a required field
  47216. TargetConfigurations []*ReservedInstancesConfiguration `locationName:"ReservedInstancesConfigurationSetItemType" locationNameList:"item" type:"list" required:"true"`
  47217. }
  47218. // String returns the string representation
  47219. func (s ModifyReservedInstancesInput) String() string {
  47220. return awsutil.Prettify(s)
  47221. }
  47222. // GoString returns the string representation
  47223. func (s ModifyReservedInstancesInput) GoString() string {
  47224. return s.String()
  47225. }
  47226. // Validate inspects the fields of the type to determine if they are valid.
  47227. func (s *ModifyReservedInstancesInput) Validate() error {
  47228. invalidParams := request.ErrInvalidParams{Context: "ModifyReservedInstancesInput"}
  47229. if s.ReservedInstancesIds == nil {
  47230. invalidParams.Add(request.NewErrParamRequired("ReservedInstancesIds"))
  47231. }
  47232. if s.TargetConfigurations == nil {
  47233. invalidParams.Add(request.NewErrParamRequired("TargetConfigurations"))
  47234. }
  47235. if invalidParams.Len() > 0 {
  47236. return invalidParams
  47237. }
  47238. return nil
  47239. }
  47240. // SetClientToken sets the ClientToken field's value.
  47241. func (s *ModifyReservedInstancesInput) SetClientToken(v string) *ModifyReservedInstancesInput {
  47242. s.ClientToken = &v
  47243. return s
  47244. }
  47245. // SetReservedInstancesIds sets the ReservedInstancesIds field's value.
  47246. func (s *ModifyReservedInstancesInput) SetReservedInstancesIds(v []*string) *ModifyReservedInstancesInput {
  47247. s.ReservedInstancesIds = v
  47248. return s
  47249. }
  47250. // SetTargetConfigurations sets the TargetConfigurations field's value.
  47251. func (s *ModifyReservedInstancesInput) SetTargetConfigurations(v []*ReservedInstancesConfiguration) *ModifyReservedInstancesInput {
  47252. s.TargetConfigurations = v
  47253. return s
  47254. }
  47255. // Contains the output of ModifyReservedInstances.
  47256. type ModifyReservedInstancesOutput struct {
  47257. _ struct{} `type:"structure"`
  47258. // The ID for the modification.
  47259. ReservedInstancesModificationId *string `locationName:"reservedInstancesModificationId" type:"string"`
  47260. }
  47261. // String returns the string representation
  47262. func (s ModifyReservedInstancesOutput) String() string {
  47263. return awsutil.Prettify(s)
  47264. }
  47265. // GoString returns the string representation
  47266. func (s ModifyReservedInstancesOutput) GoString() string {
  47267. return s.String()
  47268. }
  47269. // SetReservedInstancesModificationId sets the ReservedInstancesModificationId field's value.
  47270. func (s *ModifyReservedInstancesOutput) SetReservedInstancesModificationId(v string) *ModifyReservedInstancesOutput {
  47271. s.ReservedInstancesModificationId = &v
  47272. return s
  47273. }
  47274. // Contains the parameters for ModifySnapshotAttribute.
  47275. type ModifySnapshotAttributeInput struct {
  47276. _ struct{} `type:"structure"`
  47277. // The snapshot attribute to modify.
  47278. //
  47279. // Only volume creation permissions may be modified at the customer level.
  47280. Attribute *string `type:"string" enum:"SnapshotAttributeName"`
  47281. // A JSON representation of the snapshot attribute modification.
  47282. CreateVolumePermission *CreateVolumePermissionModifications `type:"structure"`
  47283. // Checks whether you have the required permissions for the action, without
  47284. // actually making the request, and provides an error response. If you have
  47285. // the required permissions, the error response is DryRunOperation. Otherwise,
  47286. // it is UnauthorizedOperation.
  47287. DryRun *bool `locationName:"dryRun" type:"boolean"`
  47288. // The group to modify for the snapshot.
  47289. GroupNames []*string `locationName:"UserGroup" locationNameList:"GroupName" type:"list"`
  47290. // The type of operation to perform to the attribute.
  47291. OperationType *string `type:"string" enum:"OperationType"`
  47292. // The ID of the snapshot.
  47293. //
  47294. // SnapshotId is a required field
  47295. SnapshotId *string `type:"string" required:"true"`
  47296. // The account ID to modify for the snapshot.
  47297. UserIds []*string `locationName:"UserId" locationNameList:"UserId" type:"list"`
  47298. }
  47299. // String returns the string representation
  47300. func (s ModifySnapshotAttributeInput) String() string {
  47301. return awsutil.Prettify(s)
  47302. }
  47303. // GoString returns the string representation
  47304. func (s ModifySnapshotAttributeInput) GoString() string {
  47305. return s.String()
  47306. }
  47307. // Validate inspects the fields of the type to determine if they are valid.
  47308. func (s *ModifySnapshotAttributeInput) Validate() error {
  47309. invalidParams := request.ErrInvalidParams{Context: "ModifySnapshotAttributeInput"}
  47310. if s.SnapshotId == nil {
  47311. invalidParams.Add(request.NewErrParamRequired("SnapshotId"))
  47312. }
  47313. if invalidParams.Len() > 0 {
  47314. return invalidParams
  47315. }
  47316. return nil
  47317. }
  47318. // SetAttribute sets the Attribute field's value.
  47319. func (s *ModifySnapshotAttributeInput) SetAttribute(v string) *ModifySnapshotAttributeInput {
  47320. s.Attribute = &v
  47321. return s
  47322. }
  47323. // SetCreateVolumePermission sets the CreateVolumePermission field's value.
  47324. func (s *ModifySnapshotAttributeInput) SetCreateVolumePermission(v *CreateVolumePermissionModifications) *ModifySnapshotAttributeInput {
  47325. s.CreateVolumePermission = v
  47326. return s
  47327. }
  47328. // SetDryRun sets the DryRun field's value.
  47329. func (s *ModifySnapshotAttributeInput) SetDryRun(v bool) *ModifySnapshotAttributeInput {
  47330. s.DryRun = &v
  47331. return s
  47332. }
  47333. // SetGroupNames sets the GroupNames field's value.
  47334. func (s *ModifySnapshotAttributeInput) SetGroupNames(v []*string) *ModifySnapshotAttributeInput {
  47335. s.GroupNames = v
  47336. return s
  47337. }
  47338. // SetOperationType sets the OperationType field's value.
  47339. func (s *ModifySnapshotAttributeInput) SetOperationType(v string) *ModifySnapshotAttributeInput {
  47340. s.OperationType = &v
  47341. return s
  47342. }
  47343. // SetSnapshotId sets the SnapshotId field's value.
  47344. func (s *ModifySnapshotAttributeInput) SetSnapshotId(v string) *ModifySnapshotAttributeInput {
  47345. s.SnapshotId = &v
  47346. return s
  47347. }
  47348. // SetUserIds sets the UserIds field's value.
  47349. func (s *ModifySnapshotAttributeInput) SetUserIds(v []*string) *ModifySnapshotAttributeInput {
  47350. s.UserIds = v
  47351. return s
  47352. }
  47353. type ModifySnapshotAttributeOutput struct {
  47354. _ struct{} `type:"structure"`
  47355. }
  47356. // String returns the string representation
  47357. func (s ModifySnapshotAttributeOutput) String() string {
  47358. return awsutil.Prettify(s)
  47359. }
  47360. // GoString returns the string representation
  47361. func (s ModifySnapshotAttributeOutput) GoString() string {
  47362. return s.String()
  47363. }
  47364. // Contains the parameters for ModifySpotFleetRequest.
  47365. type ModifySpotFleetRequestInput struct {
  47366. _ struct{} `type:"structure"`
  47367. // Indicates whether running Spot Instances should be terminated if the target
  47368. // capacity of the Spot Fleet request is decreased below the current size of
  47369. // the Spot Fleet.
  47370. ExcessCapacityTerminationPolicy *string `locationName:"excessCapacityTerminationPolicy" type:"string" enum:"ExcessCapacityTerminationPolicy"`
  47371. // The ID of the Spot Fleet request.
  47372. //
  47373. // SpotFleetRequestId is a required field
  47374. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
  47375. // The size of the fleet.
  47376. TargetCapacity *int64 `locationName:"targetCapacity" type:"integer"`
  47377. }
  47378. // String returns the string representation
  47379. func (s ModifySpotFleetRequestInput) String() string {
  47380. return awsutil.Prettify(s)
  47381. }
  47382. // GoString returns the string representation
  47383. func (s ModifySpotFleetRequestInput) GoString() string {
  47384. return s.String()
  47385. }
  47386. // Validate inspects the fields of the type to determine if they are valid.
  47387. func (s *ModifySpotFleetRequestInput) Validate() error {
  47388. invalidParams := request.ErrInvalidParams{Context: "ModifySpotFleetRequestInput"}
  47389. if s.SpotFleetRequestId == nil {
  47390. invalidParams.Add(request.NewErrParamRequired("SpotFleetRequestId"))
  47391. }
  47392. if invalidParams.Len() > 0 {
  47393. return invalidParams
  47394. }
  47395. return nil
  47396. }
  47397. // SetExcessCapacityTerminationPolicy sets the ExcessCapacityTerminationPolicy field's value.
  47398. func (s *ModifySpotFleetRequestInput) SetExcessCapacityTerminationPolicy(v string) *ModifySpotFleetRequestInput {
  47399. s.ExcessCapacityTerminationPolicy = &v
  47400. return s
  47401. }
  47402. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  47403. func (s *ModifySpotFleetRequestInput) SetSpotFleetRequestId(v string) *ModifySpotFleetRequestInput {
  47404. s.SpotFleetRequestId = &v
  47405. return s
  47406. }
  47407. // SetTargetCapacity sets the TargetCapacity field's value.
  47408. func (s *ModifySpotFleetRequestInput) SetTargetCapacity(v int64) *ModifySpotFleetRequestInput {
  47409. s.TargetCapacity = &v
  47410. return s
  47411. }
  47412. // Contains the output of ModifySpotFleetRequest.
  47413. type ModifySpotFleetRequestOutput struct {
  47414. _ struct{} `type:"structure"`
  47415. // Is true if the request succeeds, and an error otherwise.
  47416. Return *bool `locationName:"return" type:"boolean"`
  47417. }
  47418. // String returns the string representation
  47419. func (s ModifySpotFleetRequestOutput) String() string {
  47420. return awsutil.Prettify(s)
  47421. }
  47422. // GoString returns the string representation
  47423. func (s ModifySpotFleetRequestOutput) GoString() string {
  47424. return s.String()
  47425. }
  47426. // SetReturn sets the Return field's value.
  47427. func (s *ModifySpotFleetRequestOutput) SetReturn(v bool) *ModifySpotFleetRequestOutput {
  47428. s.Return = &v
  47429. return s
  47430. }
  47431. // Contains the parameters for ModifySubnetAttribute.
  47432. type ModifySubnetAttributeInput struct {
  47433. _ struct{} `type:"structure"`
  47434. // Specify true to indicate that network interfaces created in the specified
  47435. // subnet should be assigned an IPv6 address. This includes a network interface
  47436. // that's created when launching an instance into the subnet (the instance therefore
  47437. // receives an IPv6 address).
  47438. //
  47439. // If you enable the IPv6 addressing feature for your subnet, your network interface
  47440. // or instance only receives an IPv6 address if it's created using version 2016-11-15
  47441. // or later of the Amazon EC2 API.
  47442. AssignIpv6AddressOnCreation *AttributeBooleanValue `type:"structure"`
  47443. // Specify true to indicate that network interfaces created in the specified
  47444. // subnet should be assigned a public IPv4 address. This includes a network
  47445. // interface that's created when launching an instance into the subnet (the
  47446. // instance therefore receives a public IPv4 address).
  47447. MapPublicIpOnLaunch *AttributeBooleanValue `type:"structure"`
  47448. // The ID of the subnet.
  47449. //
  47450. // SubnetId is a required field
  47451. SubnetId *string `locationName:"subnetId" type:"string" required:"true"`
  47452. }
  47453. // String returns the string representation
  47454. func (s ModifySubnetAttributeInput) String() string {
  47455. return awsutil.Prettify(s)
  47456. }
  47457. // GoString returns the string representation
  47458. func (s ModifySubnetAttributeInput) GoString() string {
  47459. return s.String()
  47460. }
  47461. // Validate inspects the fields of the type to determine if they are valid.
  47462. func (s *ModifySubnetAttributeInput) Validate() error {
  47463. invalidParams := request.ErrInvalidParams{Context: "ModifySubnetAttributeInput"}
  47464. if s.SubnetId == nil {
  47465. invalidParams.Add(request.NewErrParamRequired("SubnetId"))
  47466. }
  47467. if invalidParams.Len() > 0 {
  47468. return invalidParams
  47469. }
  47470. return nil
  47471. }
  47472. // SetAssignIpv6AddressOnCreation sets the AssignIpv6AddressOnCreation field's value.
  47473. func (s *ModifySubnetAttributeInput) SetAssignIpv6AddressOnCreation(v *AttributeBooleanValue) *ModifySubnetAttributeInput {
  47474. s.AssignIpv6AddressOnCreation = v
  47475. return s
  47476. }
  47477. // SetMapPublicIpOnLaunch sets the MapPublicIpOnLaunch field's value.
  47478. func (s *ModifySubnetAttributeInput) SetMapPublicIpOnLaunch(v *AttributeBooleanValue) *ModifySubnetAttributeInput {
  47479. s.MapPublicIpOnLaunch = v
  47480. return s
  47481. }
  47482. // SetSubnetId sets the SubnetId field's value.
  47483. func (s *ModifySubnetAttributeInput) SetSubnetId(v string) *ModifySubnetAttributeInput {
  47484. s.SubnetId = &v
  47485. return s
  47486. }
  47487. type ModifySubnetAttributeOutput struct {
  47488. _ struct{} `type:"structure"`
  47489. }
  47490. // String returns the string representation
  47491. func (s ModifySubnetAttributeOutput) String() string {
  47492. return awsutil.Prettify(s)
  47493. }
  47494. // GoString returns the string representation
  47495. func (s ModifySubnetAttributeOutput) GoString() string {
  47496. return s.String()
  47497. }
  47498. // Contains the parameters for ModifyVolumeAttribute.
  47499. type ModifyVolumeAttributeInput struct {
  47500. _ struct{} `type:"structure"`
  47501. // Indicates whether the volume should be auto-enabled for I/O operations.
  47502. AutoEnableIO *AttributeBooleanValue `type:"structure"`
  47503. // Checks whether you have the required permissions for the action, without
  47504. // actually making the request, and provides an error response. If you have
  47505. // the required permissions, the error response is DryRunOperation. Otherwise,
  47506. // it is UnauthorizedOperation.
  47507. DryRun *bool `locationName:"dryRun" type:"boolean"`
  47508. // The ID of the volume.
  47509. //
  47510. // VolumeId is a required field
  47511. VolumeId *string `type:"string" required:"true"`
  47512. }
  47513. // String returns the string representation
  47514. func (s ModifyVolumeAttributeInput) String() string {
  47515. return awsutil.Prettify(s)
  47516. }
  47517. // GoString returns the string representation
  47518. func (s ModifyVolumeAttributeInput) GoString() string {
  47519. return s.String()
  47520. }
  47521. // Validate inspects the fields of the type to determine if they are valid.
  47522. func (s *ModifyVolumeAttributeInput) Validate() error {
  47523. invalidParams := request.ErrInvalidParams{Context: "ModifyVolumeAttributeInput"}
  47524. if s.VolumeId == nil {
  47525. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  47526. }
  47527. if invalidParams.Len() > 0 {
  47528. return invalidParams
  47529. }
  47530. return nil
  47531. }
  47532. // SetAutoEnableIO sets the AutoEnableIO field's value.
  47533. func (s *ModifyVolumeAttributeInput) SetAutoEnableIO(v *AttributeBooleanValue) *ModifyVolumeAttributeInput {
  47534. s.AutoEnableIO = v
  47535. return s
  47536. }
  47537. // SetDryRun sets the DryRun field's value.
  47538. func (s *ModifyVolumeAttributeInput) SetDryRun(v bool) *ModifyVolumeAttributeInput {
  47539. s.DryRun = &v
  47540. return s
  47541. }
  47542. // SetVolumeId sets the VolumeId field's value.
  47543. func (s *ModifyVolumeAttributeInput) SetVolumeId(v string) *ModifyVolumeAttributeInput {
  47544. s.VolumeId = &v
  47545. return s
  47546. }
  47547. type ModifyVolumeAttributeOutput struct {
  47548. _ struct{} `type:"structure"`
  47549. }
  47550. // String returns the string representation
  47551. func (s ModifyVolumeAttributeOutput) String() string {
  47552. return awsutil.Prettify(s)
  47553. }
  47554. // GoString returns the string representation
  47555. func (s ModifyVolumeAttributeOutput) GoString() string {
  47556. return s.String()
  47557. }
  47558. type ModifyVolumeInput struct {
  47559. _ struct{} `type:"structure"`
  47560. // Checks whether you have the required permissions for the action, without
  47561. // actually making the request, and provides an error response. If you have
  47562. // the required permissions, the error response is DryRunOperation. Otherwise,
  47563. // it is UnauthorizedOperation.
  47564. DryRun *bool `type:"boolean"`
  47565. // Target IOPS rate of the volume to be modified.
  47566. //
  47567. // Only valid for Provisioned IOPS SSD (io1) volumes. For more information about
  47568. // io1 IOPS configuration, see http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html#EBSVolumeTypes_piops
  47569. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html#EBSVolumeTypes_piops).
  47570. //
  47571. // Default: If no IOPS value is specified, the existing value is retained.
  47572. Iops *int64 `type:"integer"`
  47573. // Target size in GiB of the volume to be modified. Target volume size must
  47574. // be greater than or equal to than the existing size of the volume. For information
  47575. // about available EBS volume sizes, see http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html
  47576. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html).
  47577. //
  47578. // Default: If no size is specified, the existing size is retained.
  47579. Size *int64 `type:"integer"`
  47580. // The ID of the volume.
  47581. //
  47582. // VolumeId is a required field
  47583. VolumeId *string `type:"string" required:"true"`
  47584. // Target EBS volume type of the volume to be modified
  47585. //
  47586. // The API does not support modifications for volume type standard. You also
  47587. // cannot change the type of a volume to standard.
  47588. //
  47589. // Default: If no type is specified, the existing type is retained.
  47590. VolumeType *string `type:"string" enum:"VolumeType"`
  47591. }
  47592. // String returns the string representation
  47593. func (s ModifyVolumeInput) String() string {
  47594. return awsutil.Prettify(s)
  47595. }
  47596. // GoString returns the string representation
  47597. func (s ModifyVolumeInput) GoString() string {
  47598. return s.String()
  47599. }
  47600. // Validate inspects the fields of the type to determine if they are valid.
  47601. func (s *ModifyVolumeInput) Validate() error {
  47602. invalidParams := request.ErrInvalidParams{Context: "ModifyVolumeInput"}
  47603. if s.VolumeId == nil {
  47604. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  47605. }
  47606. if invalidParams.Len() > 0 {
  47607. return invalidParams
  47608. }
  47609. return nil
  47610. }
  47611. // SetDryRun sets the DryRun field's value.
  47612. func (s *ModifyVolumeInput) SetDryRun(v bool) *ModifyVolumeInput {
  47613. s.DryRun = &v
  47614. return s
  47615. }
  47616. // SetIops sets the Iops field's value.
  47617. func (s *ModifyVolumeInput) SetIops(v int64) *ModifyVolumeInput {
  47618. s.Iops = &v
  47619. return s
  47620. }
  47621. // SetSize sets the Size field's value.
  47622. func (s *ModifyVolumeInput) SetSize(v int64) *ModifyVolumeInput {
  47623. s.Size = &v
  47624. return s
  47625. }
  47626. // SetVolumeId sets the VolumeId field's value.
  47627. func (s *ModifyVolumeInput) SetVolumeId(v string) *ModifyVolumeInput {
  47628. s.VolumeId = &v
  47629. return s
  47630. }
  47631. // SetVolumeType sets the VolumeType field's value.
  47632. func (s *ModifyVolumeInput) SetVolumeType(v string) *ModifyVolumeInput {
  47633. s.VolumeType = &v
  47634. return s
  47635. }
  47636. type ModifyVolumeOutput struct {
  47637. _ struct{} `type:"structure"`
  47638. // A VolumeModification object.
  47639. VolumeModification *VolumeModification `locationName:"volumeModification" type:"structure"`
  47640. }
  47641. // String returns the string representation
  47642. func (s ModifyVolumeOutput) String() string {
  47643. return awsutil.Prettify(s)
  47644. }
  47645. // GoString returns the string representation
  47646. func (s ModifyVolumeOutput) GoString() string {
  47647. return s.String()
  47648. }
  47649. // SetVolumeModification sets the VolumeModification field's value.
  47650. func (s *ModifyVolumeOutput) SetVolumeModification(v *VolumeModification) *ModifyVolumeOutput {
  47651. s.VolumeModification = v
  47652. return s
  47653. }
  47654. // Contains the parameters for ModifyVpcAttribute.
  47655. type ModifyVpcAttributeInput struct {
  47656. _ struct{} `type:"structure"`
  47657. // Indicates whether the instances launched in the VPC get DNS hostnames. If
  47658. // enabled, instances in the VPC get DNS hostnames; otherwise, they do not.
  47659. //
  47660. // You cannot modify the DNS resolution and DNS hostnames attributes in the
  47661. // same request. Use separate requests for each attribute. You can only enable
  47662. // DNS hostnames if you've enabled DNS support.
  47663. EnableDnsHostnames *AttributeBooleanValue `type:"structure"`
  47664. // Indicates whether the DNS resolution is supported for the VPC. If enabled,
  47665. // queries to the Amazon provided DNS server at the 169.254.169.253 IP address,
  47666. // or the reserved IP address at the base of the VPC network range "plus two"
  47667. // will succeed. If disabled, the Amazon provided DNS service in the VPC that
  47668. // resolves public DNS hostnames to IP addresses is not enabled.
  47669. //
  47670. // You cannot modify the DNS resolution and DNS hostnames attributes in the
  47671. // same request. Use separate requests for each attribute.
  47672. EnableDnsSupport *AttributeBooleanValue `type:"structure"`
  47673. // The ID of the VPC.
  47674. //
  47675. // VpcId is a required field
  47676. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  47677. }
  47678. // String returns the string representation
  47679. func (s ModifyVpcAttributeInput) String() string {
  47680. return awsutil.Prettify(s)
  47681. }
  47682. // GoString returns the string representation
  47683. func (s ModifyVpcAttributeInput) GoString() string {
  47684. return s.String()
  47685. }
  47686. // Validate inspects the fields of the type to determine if they are valid.
  47687. func (s *ModifyVpcAttributeInput) Validate() error {
  47688. invalidParams := request.ErrInvalidParams{Context: "ModifyVpcAttributeInput"}
  47689. if s.VpcId == nil {
  47690. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  47691. }
  47692. if invalidParams.Len() > 0 {
  47693. return invalidParams
  47694. }
  47695. return nil
  47696. }
  47697. // SetEnableDnsHostnames sets the EnableDnsHostnames field's value.
  47698. func (s *ModifyVpcAttributeInput) SetEnableDnsHostnames(v *AttributeBooleanValue) *ModifyVpcAttributeInput {
  47699. s.EnableDnsHostnames = v
  47700. return s
  47701. }
  47702. // SetEnableDnsSupport sets the EnableDnsSupport field's value.
  47703. func (s *ModifyVpcAttributeInput) SetEnableDnsSupport(v *AttributeBooleanValue) *ModifyVpcAttributeInput {
  47704. s.EnableDnsSupport = v
  47705. return s
  47706. }
  47707. // SetVpcId sets the VpcId field's value.
  47708. func (s *ModifyVpcAttributeInput) SetVpcId(v string) *ModifyVpcAttributeInput {
  47709. s.VpcId = &v
  47710. return s
  47711. }
  47712. type ModifyVpcAttributeOutput struct {
  47713. _ struct{} `type:"structure"`
  47714. }
  47715. // String returns the string representation
  47716. func (s ModifyVpcAttributeOutput) String() string {
  47717. return awsutil.Prettify(s)
  47718. }
  47719. // GoString returns the string representation
  47720. func (s ModifyVpcAttributeOutput) GoString() string {
  47721. return s.String()
  47722. }
  47723. type ModifyVpcEndpointConnectionNotificationInput struct {
  47724. _ struct{} `type:"structure"`
  47725. // One or more events for the endpoint. Valid values are Accept, Connect, Delete,
  47726. // and Reject.
  47727. ConnectionEvents []*string `locationNameList:"item" type:"list"`
  47728. // The ARN for the SNS topic for the notification.
  47729. ConnectionNotificationArn *string `type:"string"`
  47730. // The ID of the notification.
  47731. //
  47732. // ConnectionNotificationId is a required field
  47733. ConnectionNotificationId *string `type:"string" required:"true"`
  47734. // Checks whether you have the required permissions for the action, without
  47735. // actually making the request, and provides an error response. If you have
  47736. // the required permissions, the error response is DryRunOperation. Otherwise,
  47737. // it is UnauthorizedOperation.
  47738. DryRun *bool `type:"boolean"`
  47739. }
  47740. // String returns the string representation
  47741. func (s ModifyVpcEndpointConnectionNotificationInput) String() string {
  47742. return awsutil.Prettify(s)
  47743. }
  47744. // GoString returns the string representation
  47745. func (s ModifyVpcEndpointConnectionNotificationInput) GoString() string {
  47746. return s.String()
  47747. }
  47748. // Validate inspects the fields of the type to determine if they are valid.
  47749. func (s *ModifyVpcEndpointConnectionNotificationInput) Validate() error {
  47750. invalidParams := request.ErrInvalidParams{Context: "ModifyVpcEndpointConnectionNotificationInput"}
  47751. if s.ConnectionNotificationId == nil {
  47752. invalidParams.Add(request.NewErrParamRequired("ConnectionNotificationId"))
  47753. }
  47754. if invalidParams.Len() > 0 {
  47755. return invalidParams
  47756. }
  47757. return nil
  47758. }
  47759. // SetConnectionEvents sets the ConnectionEvents field's value.
  47760. func (s *ModifyVpcEndpointConnectionNotificationInput) SetConnectionEvents(v []*string) *ModifyVpcEndpointConnectionNotificationInput {
  47761. s.ConnectionEvents = v
  47762. return s
  47763. }
  47764. // SetConnectionNotificationArn sets the ConnectionNotificationArn field's value.
  47765. func (s *ModifyVpcEndpointConnectionNotificationInput) SetConnectionNotificationArn(v string) *ModifyVpcEndpointConnectionNotificationInput {
  47766. s.ConnectionNotificationArn = &v
  47767. return s
  47768. }
  47769. // SetConnectionNotificationId sets the ConnectionNotificationId field's value.
  47770. func (s *ModifyVpcEndpointConnectionNotificationInput) SetConnectionNotificationId(v string) *ModifyVpcEndpointConnectionNotificationInput {
  47771. s.ConnectionNotificationId = &v
  47772. return s
  47773. }
  47774. // SetDryRun sets the DryRun field's value.
  47775. func (s *ModifyVpcEndpointConnectionNotificationInput) SetDryRun(v bool) *ModifyVpcEndpointConnectionNotificationInput {
  47776. s.DryRun = &v
  47777. return s
  47778. }
  47779. type ModifyVpcEndpointConnectionNotificationOutput struct {
  47780. _ struct{} `type:"structure"`
  47781. // Returns true if the request succeeds; otherwise, it returns an error.
  47782. ReturnValue *bool `locationName:"return" type:"boolean"`
  47783. }
  47784. // String returns the string representation
  47785. func (s ModifyVpcEndpointConnectionNotificationOutput) String() string {
  47786. return awsutil.Prettify(s)
  47787. }
  47788. // GoString returns the string representation
  47789. func (s ModifyVpcEndpointConnectionNotificationOutput) GoString() string {
  47790. return s.String()
  47791. }
  47792. // SetReturnValue sets the ReturnValue field's value.
  47793. func (s *ModifyVpcEndpointConnectionNotificationOutput) SetReturnValue(v bool) *ModifyVpcEndpointConnectionNotificationOutput {
  47794. s.ReturnValue = &v
  47795. return s
  47796. }
  47797. // Contains the parameters for ModifyVpcEndpoint.
  47798. type ModifyVpcEndpointInput struct {
  47799. _ struct{} `type:"structure"`
  47800. // (Gateway endpoint) One or more route tables IDs to associate with the endpoint.
  47801. AddRouteTableIds []*string `locationName:"AddRouteTableId" locationNameList:"item" type:"list"`
  47802. // (Interface endpoint) One or more security group IDs to associate with the
  47803. // network interface.
  47804. AddSecurityGroupIds []*string `locationName:"AddSecurityGroupId" locationNameList:"item" type:"list"`
  47805. // (Interface endpoint) One or more subnet IDs in which to serve the endpoint.
  47806. AddSubnetIds []*string `locationName:"AddSubnetId" locationNameList:"item" type:"list"`
  47807. // Checks whether you have the required permissions for the action, without
  47808. // actually making the request, and provides an error response. If you have
  47809. // the required permissions, the error response is DryRunOperation. Otherwise,
  47810. // it is UnauthorizedOperation.
  47811. DryRun *bool `type:"boolean"`
  47812. // (Gateway endpoint) A policy document to attach to the endpoint. The policy
  47813. // must be in valid JSON format.
  47814. PolicyDocument *string `type:"string"`
  47815. // (Interface endpoint) Indicate whether a private hosted zone is associated
  47816. // with the VPC.
  47817. PrivateDnsEnabled *bool `type:"boolean"`
  47818. // (Gateway endpoint) One or more route table IDs to disassociate from the endpoint.
  47819. RemoveRouteTableIds []*string `locationName:"RemoveRouteTableId" locationNameList:"item" type:"list"`
  47820. // (Interface endpoint) One or more security group IDs to disassociate from
  47821. // the network interface.
  47822. RemoveSecurityGroupIds []*string `locationName:"RemoveSecurityGroupId" locationNameList:"item" type:"list"`
  47823. // (Interface endpoint) One or more subnets IDs in which to remove the endpoint.
  47824. RemoveSubnetIds []*string `locationName:"RemoveSubnetId" locationNameList:"item" type:"list"`
  47825. // (Gateway endpoint) Specify true to reset the policy document to the default
  47826. // policy. The default policy allows full access to the service.
  47827. ResetPolicy *bool `type:"boolean"`
  47828. // The ID of the endpoint.
  47829. //
  47830. // VpcEndpointId is a required field
  47831. VpcEndpointId *string `type:"string" required:"true"`
  47832. }
  47833. // String returns the string representation
  47834. func (s ModifyVpcEndpointInput) String() string {
  47835. return awsutil.Prettify(s)
  47836. }
  47837. // GoString returns the string representation
  47838. func (s ModifyVpcEndpointInput) GoString() string {
  47839. return s.String()
  47840. }
  47841. // Validate inspects the fields of the type to determine if they are valid.
  47842. func (s *ModifyVpcEndpointInput) Validate() error {
  47843. invalidParams := request.ErrInvalidParams{Context: "ModifyVpcEndpointInput"}
  47844. if s.VpcEndpointId == nil {
  47845. invalidParams.Add(request.NewErrParamRequired("VpcEndpointId"))
  47846. }
  47847. if invalidParams.Len() > 0 {
  47848. return invalidParams
  47849. }
  47850. return nil
  47851. }
  47852. // SetAddRouteTableIds sets the AddRouteTableIds field's value.
  47853. func (s *ModifyVpcEndpointInput) SetAddRouteTableIds(v []*string) *ModifyVpcEndpointInput {
  47854. s.AddRouteTableIds = v
  47855. return s
  47856. }
  47857. // SetAddSecurityGroupIds sets the AddSecurityGroupIds field's value.
  47858. func (s *ModifyVpcEndpointInput) SetAddSecurityGroupIds(v []*string) *ModifyVpcEndpointInput {
  47859. s.AddSecurityGroupIds = v
  47860. return s
  47861. }
  47862. // SetAddSubnetIds sets the AddSubnetIds field's value.
  47863. func (s *ModifyVpcEndpointInput) SetAddSubnetIds(v []*string) *ModifyVpcEndpointInput {
  47864. s.AddSubnetIds = v
  47865. return s
  47866. }
  47867. // SetDryRun sets the DryRun field's value.
  47868. func (s *ModifyVpcEndpointInput) SetDryRun(v bool) *ModifyVpcEndpointInput {
  47869. s.DryRun = &v
  47870. return s
  47871. }
  47872. // SetPolicyDocument sets the PolicyDocument field's value.
  47873. func (s *ModifyVpcEndpointInput) SetPolicyDocument(v string) *ModifyVpcEndpointInput {
  47874. s.PolicyDocument = &v
  47875. return s
  47876. }
  47877. // SetPrivateDnsEnabled sets the PrivateDnsEnabled field's value.
  47878. func (s *ModifyVpcEndpointInput) SetPrivateDnsEnabled(v bool) *ModifyVpcEndpointInput {
  47879. s.PrivateDnsEnabled = &v
  47880. return s
  47881. }
  47882. // SetRemoveRouteTableIds sets the RemoveRouteTableIds field's value.
  47883. func (s *ModifyVpcEndpointInput) SetRemoveRouteTableIds(v []*string) *ModifyVpcEndpointInput {
  47884. s.RemoveRouteTableIds = v
  47885. return s
  47886. }
  47887. // SetRemoveSecurityGroupIds sets the RemoveSecurityGroupIds field's value.
  47888. func (s *ModifyVpcEndpointInput) SetRemoveSecurityGroupIds(v []*string) *ModifyVpcEndpointInput {
  47889. s.RemoveSecurityGroupIds = v
  47890. return s
  47891. }
  47892. // SetRemoveSubnetIds sets the RemoveSubnetIds field's value.
  47893. func (s *ModifyVpcEndpointInput) SetRemoveSubnetIds(v []*string) *ModifyVpcEndpointInput {
  47894. s.RemoveSubnetIds = v
  47895. return s
  47896. }
  47897. // SetResetPolicy sets the ResetPolicy field's value.
  47898. func (s *ModifyVpcEndpointInput) SetResetPolicy(v bool) *ModifyVpcEndpointInput {
  47899. s.ResetPolicy = &v
  47900. return s
  47901. }
  47902. // SetVpcEndpointId sets the VpcEndpointId field's value.
  47903. func (s *ModifyVpcEndpointInput) SetVpcEndpointId(v string) *ModifyVpcEndpointInput {
  47904. s.VpcEndpointId = &v
  47905. return s
  47906. }
  47907. type ModifyVpcEndpointOutput struct {
  47908. _ struct{} `type:"structure"`
  47909. // Returns true if the request succeeds; otherwise, it returns an error.
  47910. Return *bool `locationName:"return" type:"boolean"`
  47911. }
  47912. // String returns the string representation
  47913. func (s ModifyVpcEndpointOutput) String() string {
  47914. return awsutil.Prettify(s)
  47915. }
  47916. // GoString returns the string representation
  47917. func (s ModifyVpcEndpointOutput) GoString() string {
  47918. return s.String()
  47919. }
  47920. // SetReturn sets the Return field's value.
  47921. func (s *ModifyVpcEndpointOutput) SetReturn(v bool) *ModifyVpcEndpointOutput {
  47922. s.Return = &v
  47923. return s
  47924. }
  47925. type ModifyVpcEndpointServiceConfigurationInput struct {
  47926. _ struct{} `type:"structure"`
  47927. // Indicate whether requests to create an endpoint to your service must be accepted.
  47928. AcceptanceRequired *bool `type:"boolean"`
  47929. // The Amazon Resource Names (ARNs) of Network Load Balancers to add to your
  47930. // service configuration.
  47931. AddNetworkLoadBalancerArns []*string `locationName:"AddNetworkLoadBalancerArn" locationNameList:"item" type:"list"`
  47932. // Checks whether you have the required permissions for the action, without
  47933. // actually making the request, and provides an error response. If you have
  47934. // the required permissions, the error response is DryRunOperation. Otherwise,
  47935. // it is UnauthorizedOperation.
  47936. DryRun *bool `type:"boolean"`
  47937. // The Amazon Resource Names (ARNs) of Network Load Balancers to remove from
  47938. // your service configuration.
  47939. RemoveNetworkLoadBalancerArns []*string `locationName:"RemoveNetworkLoadBalancerArn" locationNameList:"item" type:"list"`
  47940. // The ID of the service.
  47941. //
  47942. // ServiceId is a required field
  47943. ServiceId *string `type:"string" required:"true"`
  47944. }
  47945. // String returns the string representation
  47946. func (s ModifyVpcEndpointServiceConfigurationInput) String() string {
  47947. return awsutil.Prettify(s)
  47948. }
  47949. // GoString returns the string representation
  47950. func (s ModifyVpcEndpointServiceConfigurationInput) GoString() string {
  47951. return s.String()
  47952. }
  47953. // Validate inspects the fields of the type to determine if they are valid.
  47954. func (s *ModifyVpcEndpointServiceConfigurationInput) Validate() error {
  47955. invalidParams := request.ErrInvalidParams{Context: "ModifyVpcEndpointServiceConfigurationInput"}
  47956. if s.ServiceId == nil {
  47957. invalidParams.Add(request.NewErrParamRequired("ServiceId"))
  47958. }
  47959. if invalidParams.Len() > 0 {
  47960. return invalidParams
  47961. }
  47962. return nil
  47963. }
  47964. // SetAcceptanceRequired sets the AcceptanceRequired field's value.
  47965. func (s *ModifyVpcEndpointServiceConfigurationInput) SetAcceptanceRequired(v bool) *ModifyVpcEndpointServiceConfigurationInput {
  47966. s.AcceptanceRequired = &v
  47967. return s
  47968. }
  47969. // SetAddNetworkLoadBalancerArns sets the AddNetworkLoadBalancerArns field's value.
  47970. func (s *ModifyVpcEndpointServiceConfigurationInput) SetAddNetworkLoadBalancerArns(v []*string) *ModifyVpcEndpointServiceConfigurationInput {
  47971. s.AddNetworkLoadBalancerArns = v
  47972. return s
  47973. }
  47974. // SetDryRun sets the DryRun field's value.
  47975. func (s *ModifyVpcEndpointServiceConfigurationInput) SetDryRun(v bool) *ModifyVpcEndpointServiceConfigurationInput {
  47976. s.DryRun = &v
  47977. return s
  47978. }
  47979. // SetRemoveNetworkLoadBalancerArns sets the RemoveNetworkLoadBalancerArns field's value.
  47980. func (s *ModifyVpcEndpointServiceConfigurationInput) SetRemoveNetworkLoadBalancerArns(v []*string) *ModifyVpcEndpointServiceConfigurationInput {
  47981. s.RemoveNetworkLoadBalancerArns = v
  47982. return s
  47983. }
  47984. // SetServiceId sets the ServiceId field's value.
  47985. func (s *ModifyVpcEndpointServiceConfigurationInput) SetServiceId(v string) *ModifyVpcEndpointServiceConfigurationInput {
  47986. s.ServiceId = &v
  47987. return s
  47988. }
  47989. type ModifyVpcEndpointServiceConfigurationOutput struct {
  47990. _ struct{} `type:"structure"`
  47991. // Returns true if the request succeeds; otherwise, it returns an error.
  47992. Return *bool `locationName:"return" type:"boolean"`
  47993. }
  47994. // String returns the string representation
  47995. func (s ModifyVpcEndpointServiceConfigurationOutput) String() string {
  47996. return awsutil.Prettify(s)
  47997. }
  47998. // GoString returns the string representation
  47999. func (s ModifyVpcEndpointServiceConfigurationOutput) GoString() string {
  48000. return s.String()
  48001. }
  48002. // SetReturn sets the Return field's value.
  48003. func (s *ModifyVpcEndpointServiceConfigurationOutput) SetReturn(v bool) *ModifyVpcEndpointServiceConfigurationOutput {
  48004. s.Return = &v
  48005. return s
  48006. }
  48007. type ModifyVpcEndpointServicePermissionsInput struct {
  48008. _ struct{} `type:"structure"`
  48009. // One or more Amazon Resource Names (ARNs) of principals for which to allow
  48010. // permission. Specify * to allow all principals.
  48011. AddAllowedPrincipals []*string `locationNameList:"item" type:"list"`
  48012. // Checks whether you have the required permissions for the action, without
  48013. // actually making the request, and provides an error response. If you have
  48014. // the required permissions, the error response is DryRunOperation. Otherwise,
  48015. // it is UnauthorizedOperation.
  48016. DryRun *bool `type:"boolean"`
  48017. // One or more Amazon Resource Names (ARNs) of principals for which to remove
  48018. // permission.
  48019. RemoveAllowedPrincipals []*string `locationNameList:"item" type:"list"`
  48020. // The ID of the service.
  48021. //
  48022. // ServiceId is a required field
  48023. ServiceId *string `type:"string" required:"true"`
  48024. }
  48025. // String returns the string representation
  48026. func (s ModifyVpcEndpointServicePermissionsInput) String() string {
  48027. return awsutil.Prettify(s)
  48028. }
  48029. // GoString returns the string representation
  48030. func (s ModifyVpcEndpointServicePermissionsInput) GoString() string {
  48031. return s.String()
  48032. }
  48033. // Validate inspects the fields of the type to determine if they are valid.
  48034. func (s *ModifyVpcEndpointServicePermissionsInput) Validate() error {
  48035. invalidParams := request.ErrInvalidParams{Context: "ModifyVpcEndpointServicePermissionsInput"}
  48036. if s.ServiceId == nil {
  48037. invalidParams.Add(request.NewErrParamRequired("ServiceId"))
  48038. }
  48039. if invalidParams.Len() > 0 {
  48040. return invalidParams
  48041. }
  48042. return nil
  48043. }
  48044. // SetAddAllowedPrincipals sets the AddAllowedPrincipals field's value.
  48045. func (s *ModifyVpcEndpointServicePermissionsInput) SetAddAllowedPrincipals(v []*string) *ModifyVpcEndpointServicePermissionsInput {
  48046. s.AddAllowedPrincipals = v
  48047. return s
  48048. }
  48049. // SetDryRun sets the DryRun field's value.
  48050. func (s *ModifyVpcEndpointServicePermissionsInput) SetDryRun(v bool) *ModifyVpcEndpointServicePermissionsInput {
  48051. s.DryRun = &v
  48052. return s
  48053. }
  48054. // SetRemoveAllowedPrincipals sets the RemoveAllowedPrincipals field's value.
  48055. func (s *ModifyVpcEndpointServicePermissionsInput) SetRemoveAllowedPrincipals(v []*string) *ModifyVpcEndpointServicePermissionsInput {
  48056. s.RemoveAllowedPrincipals = v
  48057. return s
  48058. }
  48059. // SetServiceId sets the ServiceId field's value.
  48060. func (s *ModifyVpcEndpointServicePermissionsInput) SetServiceId(v string) *ModifyVpcEndpointServicePermissionsInput {
  48061. s.ServiceId = &v
  48062. return s
  48063. }
  48064. type ModifyVpcEndpointServicePermissionsOutput struct {
  48065. _ struct{} `type:"structure"`
  48066. // Returns true if the request succeeds; otherwise, it returns an error.
  48067. ReturnValue *bool `locationName:"return" type:"boolean"`
  48068. }
  48069. // String returns the string representation
  48070. func (s ModifyVpcEndpointServicePermissionsOutput) String() string {
  48071. return awsutil.Prettify(s)
  48072. }
  48073. // GoString returns the string representation
  48074. func (s ModifyVpcEndpointServicePermissionsOutput) GoString() string {
  48075. return s.String()
  48076. }
  48077. // SetReturnValue sets the ReturnValue field's value.
  48078. func (s *ModifyVpcEndpointServicePermissionsOutput) SetReturnValue(v bool) *ModifyVpcEndpointServicePermissionsOutput {
  48079. s.ReturnValue = &v
  48080. return s
  48081. }
  48082. type ModifyVpcPeeringConnectionOptionsInput struct {
  48083. _ struct{} `type:"structure"`
  48084. // The VPC peering connection options for the accepter VPC.
  48085. AccepterPeeringConnectionOptions *PeeringConnectionOptionsRequest `type:"structure"`
  48086. // Checks whether you have the required permissions for the operation, without
  48087. // actually making the request, and provides an error response. If you have
  48088. // the required permissions, the error response is DryRunOperation. Otherwise,
  48089. // it is UnauthorizedOperation.
  48090. DryRun *bool `type:"boolean"`
  48091. // The VPC peering connection options for the requester VPC.
  48092. RequesterPeeringConnectionOptions *PeeringConnectionOptionsRequest `type:"structure"`
  48093. // The ID of the VPC peering connection.
  48094. //
  48095. // VpcPeeringConnectionId is a required field
  48096. VpcPeeringConnectionId *string `type:"string" required:"true"`
  48097. }
  48098. // String returns the string representation
  48099. func (s ModifyVpcPeeringConnectionOptionsInput) String() string {
  48100. return awsutil.Prettify(s)
  48101. }
  48102. // GoString returns the string representation
  48103. func (s ModifyVpcPeeringConnectionOptionsInput) GoString() string {
  48104. return s.String()
  48105. }
  48106. // Validate inspects the fields of the type to determine if they are valid.
  48107. func (s *ModifyVpcPeeringConnectionOptionsInput) Validate() error {
  48108. invalidParams := request.ErrInvalidParams{Context: "ModifyVpcPeeringConnectionOptionsInput"}
  48109. if s.VpcPeeringConnectionId == nil {
  48110. invalidParams.Add(request.NewErrParamRequired("VpcPeeringConnectionId"))
  48111. }
  48112. if invalidParams.Len() > 0 {
  48113. return invalidParams
  48114. }
  48115. return nil
  48116. }
  48117. // SetAccepterPeeringConnectionOptions sets the AccepterPeeringConnectionOptions field's value.
  48118. func (s *ModifyVpcPeeringConnectionOptionsInput) SetAccepterPeeringConnectionOptions(v *PeeringConnectionOptionsRequest) *ModifyVpcPeeringConnectionOptionsInput {
  48119. s.AccepterPeeringConnectionOptions = v
  48120. return s
  48121. }
  48122. // SetDryRun sets the DryRun field's value.
  48123. func (s *ModifyVpcPeeringConnectionOptionsInput) SetDryRun(v bool) *ModifyVpcPeeringConnectionOptionsInput {
  48124. s.DryRun = &v
  48125. return s
  48126. }
  48127. // SetRequesterPeeringConnectionOptions sets the RequesterPeeringConnectionOptions field's value.
  48128. func (s *ModifyVpcPeeringConnectionOptionsInput) SetRequesterPeeringConnectionOptions(v *PeeringConnectionOptionsRequest) *ModifyVpcPeeringConnectionOptionsInput {
  48129. s.RequesterPeeringConnectionOptions = v
  48130. return s
  48131. }
  48132. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  48133. func (s *ModifyVpcPeeringConnectionOptionsInput) SetVpcPeeringConnectionId(v string) *ModifyVpcPeeringConnectionOptionsInput {
  48134. s.VpcPeeringConnectionId = &v
  48135. return s
  48136. }
  48137. type ModifyVpcPeeringConnectionOptionsOutput struct {
  48138. _ struct{} `type:"structure"`
  48139. // Information about the VPC peering connection options for the accepter VPC.
  48140. AccepterPeeringConnectionOptions *PeeringConnectionOptions `locationName:"accepterPeeringConnectionOptions" type:"structure"`
  48141. // Information about the VPC peering connection options for the requester VPC.
  48142. RequesterPeeringConnectionOptions *PeeringConnectionOptions `locationName:"requesterPeeringConnectionOptions" type:"structure"`
  48143. }
  48144. // String returns the string representation
  48145. func (s ModifyVpcPeeringConnectionOptionsOutput) String() string {
  48146. return awsutil.Prettify(s)
  48147. }
  48148. // GoString returns the string representation
  48149. func (s ModifyVpcPeeringConnectionOptionsOutput) GoString() string {
  48150. return s.String()
  48151. }
  48152. // SetAccepterPeeringConnectionOptions sets the AccepterPeeringConnectionOptions field's value.
  48153. func (s *ModifyVpcPeeringConnectionOptionsOutput) SetAccepterPeeringConnectionOptions(v *PeeringConnectionOptions) *ModifyVpcPeeringConnectionOptionsOutput {
  48154. s.AccepterPeeringConnectionOptions = v
  48155. return s
  48156. }
  48157. // SetRequesterPeeringConnectionOptions sets the RequesterPeeringConnectionOptions field's value.
  48158. func (s *ModifyVpcPeeringConnectionOptionsOutput) SetRequesterPeeringConnectionOptions(v *PeeringConnectionOptions) *ModifyVpcPeeringConnectionOptionsOutput {
  48159. s.RequesterPeeringConnectionOptions = v
  48160. return s
  48161. }
  48162. // Contains the parameters for ModifyVpcTenancy.
  48163. type ModifyVpcTenancyInput struct {
  48164. _ struct{} `type:"structure"`
  48165. // Checks whether you have the required permissions for the operation, without
  48166. // actually making the request, and provides an error response. If you have
  48167. // the required permissions, the error response is DryRunOperation. Otherwise,
  48168. // it is UnauthorizedOperation.
  48169. DryRun *bool `type:"boolean"`
  48170. // The instance tenancy attribute for the VPC.
  48171. //
  48172. // InstanceTenancy is a required field
  48173. InstanceTenancy *string `type:"string" required:"true" enum:"VpcTenancy"`
  48174. // The ID of the VPC.
  48175. //
  48176. // VpcId is a required field
  48177. VpcId *string `type:"string" required:"true"`
  48178. }
  48179. // String returns the string representation
  48180. func (s ModifyVpcTenancyInput) String() string {
  48181. return awsutil.Prettify(s)
  48182. }
  48183. // GoString returns the string representation
  48184. func (s ModifyVpcTenancyInput) GoString() string {
  48185. return s.String()
  48186. }
  48187. // Validate inspects the fields of the type to determine if they are valid.
  48188. func (s *ModifyVpcTenancyInput) Validate() error {
  48189. invalidParams := request.ErrInvalidParams{Context: "ModifyVpcTenancyInput"}
  48190. if s.InstanceTenancy == nil {
  48191. invalidParams.Add(request.NewErrParamRequired("InstanceTenancy"))
  48192. }
  48193. if s.VpcId == nil {
  48194. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  48195. }
  48196. if invalidParams.Len() > 0 {
  48197. return invalidParams
  48198. }
  48199. return nil
  48200. }
  48201. // SetDryRun sets the DryRun field's value.
  48202. func (s *ModifyVpcTenancyInput) SetDryRun(v bool) *ModifyVpcTenancyInput {
  48203. s.DryRun = &v
  48204. return s
  48205. }
  48206. // SetInstanceTenancy sets the InstanceTenancy field's value.
  48207. func (s *ModifyVpcTenancyInput) SetInstanceTenancy(v string) *ModifyVpcTenancyInput {
  48208. s.InstanceTenancy = &v
  48209. return s
  48210. }
  48211. // SetVpcId sets the VpcId field's value.
  48212. func (s *ModifyVpcTenancyInput) SetVpcId(v string) *ModifyVpcTenancyInput {
  48213. s.VpcId = &v
  48214. return s
  48215. }
  48216. // Contains the output of ModifyVpcTenancy.
  48217. type ModifyVpcTenancyOutput struct {
  48218. _ struct{} `type:"structure"`
  48219. // Returns true if the request succeeds; otherwise, returns an error.
  48220. ReturnValue *bool `locationName:"return" type:"boolean"`
  48221. }
  48222. // String returns the string representation
  48223. func (s ModifyVpcTenancyOutput) String() string {
  48224. return awsutil.Prettify(s)
  48225. }
  48226. // GoString returns the string representation
  48227. func (s ModifyVpcTenancyOutput) GoString() string {
  48228. return s.String()
  48229. }
  48230. // SetReturnValue sets the ReturnValue field's value.
  48231. func (s *ModifyVpcTenancyOutput) SetReturnValue(v bool) *ModifyVpcTenancyOutput {
  48232. s.ReturnValue = &v
  48233. return s
  48234. }
  48235. // Contains the parameters for MonitorInstances.
  48236. type MonitorInstancesInput struct {
  48237. _ struct{} `type:"structure"`
  48238. // Checks whether you have the required permissions for the action, without
  48239. // actually making the request, and provides an error response. If you have
  48240. // the required permissions, the error response is DryRunOperation. Otherwise,
  48241. // it is UnauthorizedOperation.
  48242. DryRun *bool `locationName:"dryRun" type:"boolean"`
  48243. // One or more instance IDs.
  48244. //
  48245. // InstanceIds is a required field
  48246. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"`
  48247. }
  48248. // String returns the string representation
  48249. func (s MonitorInstancesInput) String() string {
  48250. return awsutil.Prettify(s)
  48251. }
  48252. // GoString returns the string representation
  48253. func (s MonitorInstancesInput) GoString() string {
  48254. return s.String()
  48255. }
  48256. // Validate inspects the fields of the type to determine if they are valid.
  48257. func (s *MonitorInstancesInput) Validate() error {
  48258. invalidParams := request.ErrInvalidParams{Context: "MonitorInstancesInput"}
  48259. if s.InstanceIds == nil {
  48260. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  48261. }
  48262. if invalidParams.Len() > 0 {
  48263. return invalidParams
  48264. }
  48265. return nil
  48266. }
  48267. // SetDryRun sets the DryRun field's value.
  48268. func (s *MonitorInstancesInput) SetDryRun(v bool) *MonitorInstancesInput {
  48269. s.DryRun = &v
  48270. return s
  48271. }
  48272. // SetInstanceIds sets the InstanceIds field's value.
  48273. func (s *MonitorInstancesInput) SetInstanceIds(v []*string) *MonitorInstancesInput {
  48274. s.InstanceIds = v
  48275. return s
  48276. }
  48277. // Contains the output of MonitorInstances.
  48278. type MonitorInstancesOutput struct {
  48279. _ struct{} `type:"structure"`
  48280. // The monitoring information.
  48281. InstanceMonitorings []*InstanceMonitoring `locationName:"instancesSet" locationNameList:"item" type:"list"`
  48282. }
  48283. // String returns the string representation
  48284. func (s MonitorInstancesOutput) String() string {
  48285. return awsutil.Prettify(s)
  48286. }
  48287. // GoString returns the string representation
  48288. func (s MonitorInstancesOutput) GoString() string {
  48289. return s.String()
  48290. }
  48291. // SetInstanceMonitorings sets the InstanceMonitorings field's value.
  48292. func (s *MonitorInstancesOutput) SetInstanceMonitorings(v []*InstanceMonitoring) *MonitorInstancesOutput {
  48293. s.InstanceMonitorings = v
  48294. return s
  48295. }
  48296. // Describes the monitoring of an instance.
  48297. type Monitoring struct {
  48298. _ struct{} `type:"structure"`
  48299. // Indicates whether detailed monitoring is enabled. Otherwise, basic monitoring
  48300. // is enabled.
  48301. State *string `locationName:"state" type:"string" enum:"MonitoringState"`
  48302. }
  48303. // String returns the string representation
  48304. func (s Monitoring) String() string {
  48305. return awsutil.Prettify(s)
  48306. }
  48307. // GoString returns the string representation
  48308. func (s Monitoring) GoString() string {
  48309. return s.String()
  48310. }
  48311. // SetState sets the State field's value.
  48312. func (s *Monitoring) SetState(v string) *Monitoring {
  48313. s.State = &v
  48314. return s
  48315. }
  48316. // Contains the parameters for MoveAddressToVpc.
  48317. type MoveAddressToVpcInput struct {
  48318. _ struct{} `type:"structure"`
  48319. // Checks whether you have the required permissions for the action, without
  48320. // actually making the request, and provides an error response. If you have
  48321. // the required permissions, the error response is DryRunOperation. Otherwise,
  48322. // it is UnauthorizedOperation.
  48323. DryRun *bool `locationName:"dryRun" type:"boolean"`
  48324. // The Elastic IP address.
  48325. //
  48326. // PublicIp is a required field
  48327. PublicIp *string `locationName:"publicIp" type:"string" required:"true"`
  48328. }
  48329. // String returns the string representation
  48330. func (s MoveAddressToVpcInput) String() string {
  48331. return awsutil.Prettify(s)
  48332. }
  48333. // GoString returns the string representation
  48334. func (s MoveAddressToVpcInput) GoString() string {
  48335. return s.String()
  48336. }
  48337. // Validate inspects the fields of the type to determine if they are valid.
  48338. func (s *MoveAddressToVpcInput) Validate() error {
  48339. invalidParams := request.ErrInvalidParams{Context: "MoveAddressToVpcInput"}
  48340. if s.PublicIp == nil {
  48341. invalidParams.Add(request.NewErrParamRequired("PublicIp"))
  48342. }
  48343. if invalidParams.Len() > 0 {
  48344. return invalidParams
  48345. }
  48346. return nil
  48347. }
  48348. // SetDryRun sets the DryRun field's value.
  48349. func (s *MoveAddressToVpcInput) SetDryRun(v bool) *MoveAddressToVpcInput {
  48350. s.DryRun = &v
  48351. return s
  48352. }
  48353. // SetPublicIp sets the PublicIp field's value.
  48354. func (s *MoveAddressToVpcInput) SetPublicIp(v string) *MoveAddressToVpcInput {
  48355. s.PublicIp = &v
  48356. return s
  48357. }
  48358. // Contains the output of MoveAddressToVpc.
  48359. type MoveAddressToVpcOutput struct {
  48360. _ struct{} `type:"structure"`
  48361. // The allocation ID for the Elastic IP address.
  48362. AllocationId *string `locationName:"allocationId" type:"string"`
  48363. // The status of the move of the IP address.
  48364. Status *string `locationName:"status" type:"string" enum:"Status"`
  48365. }
  48366. // String returns the string representation
  48367. func (s MoveAddressToVpcOutput) String() string {
  48368. return awsutil.Prettify(s)
  48369. }
  48370. // GoString returns the string representation
  48371. func (s MoveAddressToVpcOutput) GoString() string {
  48372. return s.String()
  48373. }
  48374. // SetAllocationId sets the AllocationId field's value.
  48375. func (s *MoveAddressToVpcOutput) SetAllocationId(v string) *MoveAddressToVpcOutput {
  48376. s.AllocationId = &v
  48377. return s
  48378. }
  48379. // SetStatus sets the Status field's value.
  48380. func (s *MoveAddressToVpcOutput) SetStatus(v string) *MoveAddressToVpcOutput {
  48381. s.Status = &v
  48382. return s
  48383. }
  48384. // Describes the status of a moving Elastic IP address.
  48385. type MovingAddressStatus struct {
  48386. _ struct{} `type:"structure"`
  48387. // The status of the Elastic IP address that's being moved to the EC2-VPC platform,
  48388. // or restored to the EC2-Classic platform.
  48389. MoveStatus *string `locationName:"moveStatus" type:"string" enum:"MoveStatus"`
  48390. // The Elastic IP address.
  48391. PublicIp *string `locationName:"publicIp" type:"string"`
  48392. }
  48393. // String returns the string representation
  48394. func (s MovingAddressStatus) String() string {
  48395. return awsutil.Prettify(s)
  48396. }
  48397. // GoString returns the string representation
  48398. func (s MovingAddressStatus) GoString() string {
  48399. return s.String()
  48400. }
  48401. // SetMoveStatus sets the MoveStatus field's value.
  48402. func (s *MovingAddressStatus) SetMoveStatus(v string) *MovingAddressStatus {
  48403. s.MoveStatus = &v
  48404. return s
  48405. }
  48406. // SetPublicIp sets the PublicIp field's value.
  48407. func (s *MovingAddressStatus) SetPublicIp(v string) *MovingAddressStatus {
  48408. s.PublicIp = &v
  48409. return s
  48410. }
  48411. // Describes a NAT gateway.
  48412. type NatGateway struct {
  48413. _ struct{} `type:"structure"`
  48414. // The date and time the NAT gateway was created.
  48415. CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"iso8601"`
  48416. // The date and time the NAT gateway was deleted, if applicable.
  48417. DeleteTime *time.Time `locationName:"deleteTime" type:"timestamp" timestampFormat:"iso8601"`
  48418. // If the NAT gateway could not be created, specifies the error code for the
  48419. // failure. (InsufficientFreeAddressesInSubnet | Gateway.NotAttached | InvalidAllocationID.NotFound
  48420. // | Resource.AlreadyAssociated | InternalError | InvalidSubnetID.NotFound)
  48421. FailureCode *string `locationName:"failureCode" type:"string"`
  48422. // If the NAT gateway could not be created, specifies the error message for
  48423. // the failure, that corresponds to the error code.
  48424. //
  48425. // * For InsufficientFreeAddressesInSubnet: "Subnet has insufficient free
  48426. // addresses to create this NAT gateway"
  48427. //
  48428. // * For Gateway.NotAttached: "Network vpc-xxxxxxxx has no Internet gateway
  48429. // attached"
  48430. //
  48431. // * For InvalidAllocationID.NotFound: "Elastic IP address eipalloc-xxxxxxxx
  48432. // could not be associated with this NAT gateway"
  48433. //
  48434. // * For Resource.AlreadyAssociated: "Elastic IP address eipalloc-xxxxxxxx
  48435. // is already associated"
  48436. //
  48437. // * For InternalError: "Network interface eni-xxxxxxxx, created and used
  48438. // internally by this NAT gateway is in an invalid state. Please try again."
  48439. //
  48440. // * For InvalidSubnetID.NotFound: "The specified subnet subnet-xxxxxxxx
  48441. // does not exist or could not be found."
  48442. FailureMessage *string `locationName:"failureMessage" type:"string"`
  48443. // Information about the IP addresses and network interface associated with
  48444. // the NAT gateway.
  48445. NatGatewayAddresses []*NatGatewayAddress `locationName:"natGatewayAddressSet" locationNameList:"item" type:"list"`
  48446. // The ID of the NAT gateway.
  48447. NatGatewayId *string `locationName:"natGatewayId" type:"string"`
  48448. // Reserved. If you need to sustain traffic greater than the documented limits
  48449. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
  48450. // contact us through the Support Center (https://console.aws.amazon.com/support/home?).
  48451. ProvisionedBandwidth *ProvisionedBandwidth `locationName:"provisionedBandwidth" type:"structure"`
  48452. // The state of the NAT gateway.
  48453. //
  48454. // * pending: The NAT gateway is being created and is not ready to process
  48455. // traffic.
  48456. //
  48457. // * failed: The NAT gateway could not be created. Check the failureCode
  48458. // and failureMessage fields for the reason.
  48459. //
  48460. // * available: The NAT gateway is able to process traffic. This status remains
  48461. // until you delete the NAT gateway, and does not indicate the health of
  48462. // the NAT gateway.
  48463. //
  48464. // * deleting: The NAT gateway is in the process of being terminated and
  48465. // may still be processing traffic.
  48466. //
  48467. // * deleted: The NAT gateway has been terminated and is no longer processing
  48468. // traffic.
  48469. State *string `locationName:"state" type:"string" enum:"NatGatewayState"`
  48470. // The ID of the subnet in which the NAT gateway is located.
  48471. SubnetId *string `locationName:"subnetId" type:"string"`
  48472. // The tags for the NAT gateway.
  48473. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  48474. // The ID of the VPC in which the NAT gateway is located.
  48475. VpcId *string `locationName:"vpcId" type:"string"`
  48476. }
  48477. // String returns the string representation
  48478. func (s NatGateway) String() string {
  48479. return awsutil.Prettify(s)
  48480. }
  48481. // GoString returns the string representation
  48482. func (s NatGateway) GoString() string {
  48483. return s.String()
  48484. }
  48485. // SetCreateTime sets the CreateTime field's value.
  48486. func (s *NatGateway) SetCreateTime(v time.Time) *NatGateway {
  48487. s.CreateTime = &v
  48488. return s
  48489. }
  48490. // SetDeleteTime sets the DeleteTime field's value.
  48491. func (s *NatGateway) SetDeleteTime(v time.Time) *NatGateway {
  48492. s.DeleteTime = &v
  48493. return s
  48494. }
  48495. // SetFailureCode sets the FailureCode field's value.
  48496. func (s *NatGateway) SetFailureCode(v string) *NatGateway {
  48497. s.FailureCode = &v
  48498. return s
  48499. }
  48500. // SetFailureMessage sets the FailureMessage field's value.
  48501. func (s *NatGateway) SetFailureMessage(v string) *NatGateway {
  48502. s.FailureMessage = &v
  48503. return s
  48504. }
  48505. // SetNatGatewayAddresses sets the NatGatewayAddresses field's value.
  48506. func (s *NatGateway) SetNatGatewayAddresses(v []*NatGatewayAddress) *NatGateway {
  48507. s.NatGatewayAddresses = v
  48508. return s
  48509. }
  48510. // SetNatGatewayId sets the NatGatewayId field's value.
  48511. func (s *NatGateway) SetNatGatewayId(v string) *NatGateway {
  48512. s.NatGatewayId = &v
  48513. return s
  48514. }
  48515. // SetProvisionedBandwidth sets the ProvisionedBandwidth field's value.
  48516. func (s *NatGateway) SetProvisionedBandwidth(v *ProvisionedBandwidth) *NatGateway {
  48517. s.ProvisionedBandwidth = v
  48518. return s
  48519. }
  48520. // SetState sets the State field's value.
  48521. func (s *NatGateway) SetState(v string) *NatGateway {
  48522. s.State = &v
  48523. return s
  48524. }
  48525. // SetSubnetId sets the SubnetId field's value.
  48526. func (s *NatGateway) SetSubnetId(v string) *NatGateway {
  48527. s.SubnetId = &v
  48528. return s
  48529. }
  48530. // SetTags sets the Tags field's value.
  48531. func (s *NatGateway) SetTags(v []*Tag) *NatGateway {
  48532. s.Tags = v
  48533. return s
  48534. }
  48535. // SetVpcId sets the VpcId field's value.
  48536. func (s *NatGateway) SetVpcId(v string) *NatGateway {
  48537. s.VpcId = &v
  48538. return s
  48539. }
  48540. // Describes the IP addresses and network interface associated with a NAT gateway.
  48541. type NatGatewayAddress struct {
  48542. _ struct{} `type:"structure"`
  48543. // The allocation ID of the Elastic IP address that's associated with the NAT
  48544. // gateway.
  48545. AllocationId *string `locationName:"allocationId" type:"string"`
  48546. // The ID of the network interface associated with the NAT gateway.
  48547. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  48548. // The private IP address associated with the Elastic IP address.
  48549. PrivateIp *string `locationName:"privateIp" type:"string"`
  48550. // The Elastic IP address associated with the NAT gateway.
  48551. PublicIp *string `locationName:"publicIp" type:"string"`
  48552. }
  48553. // String returns the string representation
  48554. func (s NatGatewayAddress) String() string {
  48555. return awsutil.Prettify(s)
  48556. }
  48557. // GoString returns the string representation
  48558. func (s NatGatewayAddress) GoString() string {
  48559. return s.String()
  48560. }
  48561. // SetAllocationId sets the AllocationId field's value.
  48562. func (s *NatGatewayAddress) SetAllocationId(v string) *NatGatewayAddress {
  48563. s.AllocationId = &v
  48564. return s
  48565. }
  48566. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  48567. func (s *NatGatewayAddress) SetNetworkInterfaceId(v string) *NatGatewayAddress {
  48568. s.NetworkInterfaceId = &v
  48569. return s
  48570. }
  48571. // SetPrivateIp sets the PrivateIp field's value.
  48572. func (s *NatGatewayAddress) SetPrivateIp(v string) *NatGatewayAddress {
  48573. s.PrivateIp = &v
  48574. return s
  48575. }
  48576. // SetPublicIp sets the PublicIp field's value.
  48577. func (s *NatGatewayAddress) SetPublicIp(v string) *NatGatewayAddress {
  48578. s.PublicIp = &v
  48579. return s
  48580. }
  48581. // Describes a network ACL.
  48582. type NetworkAcl struct {
  48583. _ struct{} `type:"structure"`
  48584. // Any associations between the network ACL and one or more subnets
  48585. Associations []*NetworkAclAssociation `locationName:"associationSet" locationNameList:"item" type:"list"`
  48586. // One or more entries (rules) in the network ACL.
  48587. Entries []*NetworkAclEntry `locationName:"entrySet" locationNameList:"item" type:"list"`
  48588. // Indicates whether this is the default network ACL for the VPC.
  48589. IsDefault *bool `locationName:"default" type:"boolean"`
  48590. // The ID of the network ACL.
  48591. NetworkAclId *string `locationName:"networkAclId" type:"string"`
  48592. // Any tags assigned to the network ACL.
  48593. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  48594. // The ID of the VPC for the network ACL.
  48595. VpcId *string `locationName:"vpcId" type:"string"`
  48596. }
  48597. // String returns the string representation
  48598. func (s NetworkAcl) String() string {
  48599. return awsutil.Prettify(s)
  48600. }
  48601. // GoString returns the string representation
  48602. func (s NetworkAcl) GoString() string {
  48603. return s.String()
  48604. }
  48605. // SetAssociations sets the Associations field's value.
  48606. func (s *NetworkAcl) SetAssociations(v []*NetworkAclAssociation) *NetworkAcl {
  48607. s.Associations = v
  48608. return s
  48609. }
  48610. // SetEntries sets the Entries field's value.
  48611. func (s *NetworkAcl) SetEntries(v []*NetworkAclEntry) *NetworkAcl {
  48612. s.Entries = v
  48613. return s
  48614. }
  48615. // SetIsDefault sets the IsDefault field's value.
  48616. func (s *NetworkAcl) SetIsDefault(v bool) *NetworkAcl {
  48617. s.IsDefault = &v
  48618. return s
  48619. }
  48620. // SetNetworkAclId sets the NetworkAclId field's value.
  48621. func (s *NetworkAcl) SetNetworkAclId(v string) *NetworkAcl {
  48622. s.NetworkAclId = &v
  48623. return s
  48624. }
  48625. // SetTags sets the Tags field's value.
  48626. func (s *NetworkAcl) SetTags(v []*Tag) *NetworkAcl {
  48627. s.Tags = v
  48628. return s
  48629. }
  48630. // SetVpcId sets the VpcId field's value.
  48631. func (s *NetworkAcl) SetVpcId(v string) *NetworkAcl {
  48632. s.VpcId = &v
  48633. return s
  48634. }
  48635. // Describes an association between a network ACL and a subnet.
  48636. type NetworkAclAssociation struct {
  48637. _ struct{} `type:"structure"`
  48638. // The ID of the association between a network ACL and a subnet.
  48639. NetworkAclAssociationId *string `locationName:"networkAclAssociationId" type:"string"`
  48640. // The ID of the network ACL.
  48641. NetworkAclId *string `locationName:"networkAclId" type:"string"`
  48642. // The ID of the subnet.
  48643. SubnetId *string `locationName:"subnetId" type:"string"`
  48644. }
  48645. // String returns the string representation
  48646. func (s NetworkAclAssociation) String() string {
  48647. return awsutil.Prettify(s)
  48648. }
  48649. // GoString returns the string representation
  48650. func (s NetworkAclAssociation) GoString() string {
  48651. return s.String()
  48652. }
  48653. // SetNetworkAclAssociationId sets the NetworkAclAssociationId field's value.
  48654. func (s *NetworkAclAssociation) SetNetworkAclAssociationId(v string) *NetworkAclAssociation {
  48655. s.NetworkAclAssociationId = &v
  48656. return s
  48657. }
  48658. // SetNetworkAclId sets the NetworkAclId field's value.
  48659. func (s *NetworkAclAssociation) SetNetworkAclId(v string) *NetworkAclAssociation {
  48660. s.NetworkAclId = &v
  48661. return s
  48662. }
  48663. // SetSubnetId sets the SubnetId field's value.
  48664. func (s *NetworkAclAssociation) SetSubnetId(v string) *NetworkAclAssociation {
  48665. s.SubnetId = &v
  48666. return s
  48667. }
  48668. // Describes an entry in a network ACL.
  48669. type NetworkAclEntry struct {
  48670. _ struct{} `type:"structure"`
  48671. // The IPv4 network range to allow or deny, in CIDR notation.
  48672. CidrBlock *string `locationName:"cidrBlock" type:"string"`
  48673. // Indicates whether the rule is an egress rule (applied to traffic leaving
  48674. // the subnet).
  48675. Egress *bool `locationName:"egress" type:"boolean"`
  48676. // ICMP protocol: The ICMP type and code.
  48677. IcmpTypeCode *IcmpTypeCode `locationName:"icmpTypeCode" type:"structure"`
  48678. // The IPv6 network range to allow or deny, in CIDR notation.
  48679. Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"`
  48680. // TCP or UDP protocols: The range of ports the rule applies to.
  48681. PortRange *PortRange `locationName:"portRange" type:"structure"`
  48682. // The protocol. A value of -1 means all protocols.
  48683. Protocol *string `locationName:"protocol" type:"string"`
  48684. // Indicates whether to allow or deny the traffic that matches the rule.
  48685. RuleAction *string `locationName:"ruleAction" type:"string" enum:"RuleAction"`
  48686. // The rule number for the entry. ACL entries are processed in ascending order
  48687. // by rule number.
  48688. RuleNumber *int64 `locationName:"ruleNumber" type:"integer"`
  48689. }
  48690. // String returns the string representation
  48691. func (s NetworkAclEntry) String() string {
  48692. return awsutil.Prettify(s)
  48693. }
  48694. // GoString returns the string representation
  48695. func (s NetworkAclEntry) GoString() string {
  48696. return s.String()
  48697. }
  48698. // SetCidrBlock sets the CidrBlock field's value.
  48699. func (s *NetworkAclEntry) SetCidrBlock(v string) *NetworkAclEntry {
  48700. s.CidrBlock = &v
  48701. return s
  48702. }
  48703. // SetEgress sets the Egress field's value.
  48704. func (s *NetworkAclEntry) SetEgress(v bool) *NetworkAclEntry {
  48705. s.Egress = &v
  48706. return s
  48707. }
  48708. // SetIcmpTypeCode sets the IcmpTypeCode field's value.
  48709. func (s *NetworkAclEntry) SetIcmpTypeCode(v *IcmpTypeCode) *NetworkAclEntry {
  48710. s.IcmpTypeCode = v
  48711. return s
  48712. }
  48713. // SetIpv6CidrBlock sets the Ipv6CidrBlock field's value.
  48714. func (s *NetworkAclEntry) SetIpv6CidrBlock(v string) *NetworkAclEntry {
  48715. s.Ipv6CidrBlock = &v
  48716. return s
  48717. }
  48718. // SetPortRange sets the PortRange field's value.
  48719. func (s *NetworkAclEntry) SetPortRange(v *PortRange) *NetworkAclEntry {
  48720. s.PortRange = v
  48721. return s
  48722. }
  48723. // SetProtocol sets the Protocol field's value.
  48724. func (s *NetworkAclEntry) SetProtocol(v string) *NetworkAclEntry {
  48725. s.Protocol = &v
  48726. return s
  48727. }
  48728. // SetRuleAction sets the RuleAction field's value.
  48729. func (s *NetworkAclEntry) SetRuleAction(v string) *NetworkAclEntry {
  48730. s.RuleAction = &v
  48731. return s
  48732. }
  48733. // SetRuleNumber sets the RuleNumber field's value.
  48734. func (s *NetworkAclEntry) SetRuleNumber(v int64) *NetworkAclEntry {
  48735. s.RuleNumber = &v
  48736. return s
  48737. }
  48738. // Describes a network interface.
  48739. type NetworkInterface struct {
  48740. _ struct{} `type:"structure"`
  48741. // The association information for an Elastic IP address (IPv4) associated with
  48742. // the network interface.
  48743. Association *NetworkInterfaceAssociation `locationName:"association" type:"structure"`
  48744. // The network interface attachment.
  48745. Attachment *NetworkInterfaceAttachment `locationName:"attachment" type:"structure"`
  48746. // The Availability Zone.
  48747. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  48748. // A description.
  48749. Description *string `locationName:"description" type:"string"`
  48750. // Any security groups for the network interface.
  48751. Groups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  48752. // The type of interface.
  48753. InterfaceType *string `locationName:"interfaceType" type:"string" enum:"NetworkInterfaceType"`
  48754. // The IPv6 addresses associated with the network interface.
  48755. Ipv6Addresses []*NetworkInterfaceIpv6Address `locationName:"ipv6AddressesSet" locationNameList:"item" type:"list"`
  48756. // The MAC address.
  48757. MacAddress *string `locationName:"macAddress" type:"string"`
  48758. // The ID of the network interface.
  48759. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  48760. // The AWS account ID of the owner of the network interface.
  48761. OwnerId *string `locationName:"ownerId" type:"string"`
  48762. // The private DNS name.
  48763. PrivateDnsName *string `locationName:"privateDnsName" type:"string"`
  48764. // The IPv4 address of the network interface within the subnet.
  48765. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  48766. // The private IPv4 addresses associated with the network interface.
  48767. PrivateIpAddresses []*NetworkInterfacePrivateIpAddress `locationName:"privateIpAddressesSet" locationNameList:"item" type:"list"`
  48768. // The ID of the entity that launched the instance on your behalf (for example,
  48769. // AWS Management Console or Auto Scaling).
  48770. RequesterId *string `locationName:"requesterId" type:"string"`
  48771. // Indicates whether the network interface is being managed by AWS.
  48772. RequesterManaged *bool `locationName:"requesterManaged" type:"boolean"`
  48773. // Indicates whether traffic to or from the instance is validated.
  48774. SourceDestCheck *bool `locationName:"sourceDestCheck" type:"boolean"`
  48775. // The status of the network interface.
  48776. Status *string `locationName:"status" type:"string" enum:"NetworkInterfaceStatus"`
  48777. // The ID of the subnet.
  48778. SubnetId *string `locationName:"subnetId" type:"string"`
  48779. // Any tags assigned to the network interface.
  48780. TagSet []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  48781. // The ID of the VPC.
  48782. VpcId *string `locationName:"vpcId" type:"string"`
  48783. }
  48784. // String returns the string representation
  48785. func (s NetworkInterface) String() string {
  48786. return awsutil.Prettify(s)
  48787. }
  48788. // GoString returns the string representation
  48789. func (s NetworkInterface) GoString() string {
  48790. return s.String()
  48791. }
  48792. // SetAssociation sets the Association field's value.
  48793. func (s *NetworkInterface) SetAssociation(v *NetworkInterfaceAssociation) *NetworkInterface {
  48794. s.Association = v
  48795. return s
  48796. }
  48797. // SetAttachment sets the Attachment field's value.
  48798. func (s *NetworkInterface) SetAttachment(v *NetworkInterfaceAttachment) *NetworkInterface {
  48799. s.Attachment = v
  48800. return s
  48801. }
  48802. // SetAvailabilityZone sets the AvailabilityZone field's value.
  48803. func (s *NetworkInterface) SetAvailabilityZone(v string) *NetworkInterface {
  48804. s.AvailabilityZone = &v
  48805. return s
  48806. }
  48807. // SetDescription sets the Description field's value.
  48808. func (s *NetworkInterface) SetDescription(v string) *NetworkInterface {
  48809. s.Description = &v
  48810. return s
  48811. }
  48812. // SetGroups sets the Groups field's value.
  48813. func (s *NetworkInterface) SetGroups(v []*GroupIdentifier) *NetworkInterface {
  48814. s.Groups = v
  48815. return s
  48816. }
  48817. // SetInterfaceType sets the InterfaceType field's value.
  48818. func (s *NetworkInterface) SetInterfaceType(v string) *NetworkInterface {
  48819. s.InterfaceType = &v
  48820. return s
  48821. }
  48822. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  48823. func (s *NetworkInterface) SetIpv6Addresses(v []*NetworkInterfaceIpv6Address) *NetworkInterface {
  48824. s.Ipv6Addresses = v
  48825. return s
  48826. }
  48827. // SetMacAddress sets the MacAddress field's value.
  48828. func (s *NetworkInterface) SetMacAddress(v string) *NetworkInterface {
  48829. s.MacAddress = &v
  48830. return s
  48831. }
  48832. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  48833. func (s *NetworkInterface) SetNetworkInterfaceId(v string) *NetworkInterface {
  48834. s.NetworkInterfaceId = &v
  48835. return s
  48836. }
  48837. // SetOwnerId sets the OwnerId field's value.
  48838. func (s *NetworkInterface) SetOwnerId(v string) *NetworkInterface {
  48839. s.OwnerId = &v
  48840. return s
  48841. }
  48842. // SetPrivateDnsName sets the PrivateDnsName field's value.
  48843. func (s *NetworkInterface) SetPrivateDnsName(v string) *NetworkInterface {
  48844. s.PrivateDnsName = &v
  48845. return s
  48846. }
  48847. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  48848. func (s *NetworkInterface) SetPrivateIpAddress(v string) *NetworkInterface {
  48849. s.PrivateIpAddress = &v
  48850. return s
  48851. }
  48852. // SetPrivateIpAddresses sets the PrivateIpAddresses field's value.
  48853. func (s *NetworkInterface) SetPrivateIpAddresses(v []*NetworkInterfacePrivateIpAddress) *NetworkInterface {
  48854. s.PrivateIpAddresses = v
  48855. return s
  48856. }
  48857. // SetRequesterId sets the RequesterId field's value.
  48858. func (s *NetworkInterface) SetRequesterId(v string) *NetworkInterface {
  48859. s.RequesterId = &v
  48860. return s
  48861. }
  48862. // SetRequesterManaged sets the RequesterManaged field's value.
  48863. func (s *NetworkInterface) SetRequesterManaged(v bool) *NetworkInterface {
  48864. s.RequesterManaged = &v
  48865. return s
  48866. }
  48867. // SetSourceDestCheck sets the SourceDestCheck field's value.
  48868. func (s *NetworkInterface) SetSourceDestCheck(v bool) *NetworkInterface {
  48869. s.SourceDestCheck = &v
  48870. return s
  48871. }
  48872. // SetStatus sets the Status field's value.
  48873. func (s *NetworkInterface) SetStatus(v string) *NetworkInterface {
  48874. s.Status = &v
  48875. return s
  48876. }
  48877. // SetSubnetId sets the SubnetId field's value.
  48878. func (s *NetworkInterface) SetSubnetId(v string) *NetworkInterface {
  48879. s.SubnetId = &v
  48880. return s
  48881. }
  48882. // SetTagSet sets the TagSet field's value.
  48883. func (s *NetworkInterface) SetTagSet(v []*Tag) *NetworkInterface {
  48884. s.TagSet = v
  48885. return s
  48886. }
  48887. // SetVpcId sets the VpcId field's value.
  48888. func (s *NetworkInterface) SetVpcId(v string) *NetworkInterface {
  48889. s.VpcId = &v
  48890. return s
  48891. }
  48892. // Describes association information for an Elastic IP address (IPv4 only).
  48893. type NetworkInterfaceAssociation struct {
  48894. _ struct{} `type:"structure"`
  48895. // The allocation ID.
  48896. AllocationId *string `locationName:"allocationId" type:"string"`
  48897. // The association ID.
  48898. AssociationId *string `locationName:"associationId" type:"string"`
  48899. // The ID of the Elastic IP address owner.
  48900. IpOwnerId *string `locationName:"ipOwnerId" type:"string"`
  48901. // The public DNS name.
  48902. PublicDnsName *string `locationName:"publicDnsName" type:"string"`
  48903. // The address of the Elastic IP address bound to the network interface.
  48904. PublicIp *string `locationName:"publicIp" type:"string"`
  48905. }
  48906. // String returns the string representation
  48907. func (s NetworkInterfaceAssociation) String() string {
  48908. return awsutil.Prettify(s)
  48909. }
  48910. // GoString returns the string representation
  48911. func (s NetworkInterfaceAssociation) GoString() string {
  48912. return s.String()
  48913. }
  48914. // SetAllocationId sets the AllocationId field's value.
  48915. func (s *NetworkInterfaceAssociation) SetAllocationId(v string) *NetworkInterfaceAssociation {
  48916. s.AllocationId = &v
  48917. return s
  48918. }
  48919. // SetAssociationId sets the AssociationId field's value.
  48920. func (s *NetworkInterfaceAssociation) SetAssociationId(v string) *NetworkInterfaceAssociation {
  48921. s.AssociationId = &v
  48922. return s
  48923. }
  48924. // SetIpOwnerId sets the IpOwnerId field's value.
  48925. func (s *NetworkInterfaceAssociation) SetIpOwnerId(v string) *NetworkInterfaceAssociation {
  48926. s.IpOwnerId = &v
  48927. return s
  48928. }
  48929. // SetPublicDnsName sets the PublicDnsName field's value.
  48930. func (s *NetworkInterfaceAssociation) SetPublicDnsName(v string) *NetworkInterfaceAssociation {
  48931. s.PublicDnsName = &v
  48932. return s
  48933. }
  48934. // SetPublicIp sets the PublicIp field's value.
  48935. func (s *NetworkInterfaceAssociation) SetPublicIp(v string) *NetworkInterfaceAssociation {
  48936. s.PublicIp = &v
  48937. return s
  48938. }
  48939. // Describes a network interface attachment.
  48940. type NetworkInterfaceAttachment struct {
  48941. _ struct{} `type:"structure"`
  48942. // The timestamp indicating when the attachment initiated.
  48943. AttachTime *time.Time `locationName:"attachTime" type:"timestamp" timestampFormat:"iso8601"`
  48944. // The ID of the network interface attachment.
  48945. AttachmentId *string `locationName:"attachmentId" type:"string"`
  48946. // Indicates whether the network interface is deleted when the instance is terminated.
  48947. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  48948. // The device index of the network interface attachment on the instance.
  48949. DeviceIndex *int64 `locationName:"deviceIndex" type:"integer"`
  48950. // The ID of the instance.
  48951. InstanceId *string `locationName:"instanceId" type:"string"`
  48952. // The AWS account ID of the owner of the instance.
  48953. InstanceOwnerId *string `locationName:"instanceOwnerId" type:"string"`
  48954. // The attachment state.
  48955. Status *string `locationName:"status" type:"string" enum:"AttachmentStatus"`
  48956. }
  48957. // String returns the string representation
  48958. func (s NetworkInterfaceAttachment) String() string {
  48959. return awsutil.Prettify(s)
  48960. }
  48961. // GoString returns the string representation
  48962. func (s NetworkInterfaceAttachment) GoString() string {
  48963. return s.String()
  48964. }
  48965. // SetAttachTime sets the AttachTime field's value.
  48966. func (s *NetworkInterfaceAttachment) SetAttachTime(v time.Time) *NetworkInterfaceAttachment {
  48967. s.AttachTime = &v
  48968. return s
  48969. }
  48970. // SetAttachmentId sets the AttachmentId field's value.
  48971. func (s *NetworkInterfaceAttachment) SetAttachmentId(v string) *NetworkInterfaceAttachment {
  48972. s.AttachmentId = &v
  48973. return s
  48974. }
  48975. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  48976. func (s *NetworkInterfaceAttachment) SetDeleteOnTermination(v bool) *NetworkInterfaceAttachment {
  48977. s.DeleteOnTermination = &v
  48978. return s
  48979. }
  48980. // SetDeviceIndex sets the DeviceIndex field's value.
  48981. func (s *NetworkInterfaceAttachment) SetDeviceIndex(v int64) *NetworkInterfaceAttachment {
  48982. s.DeviceIndex = &v
  48983. return s
  48984. }
  48985. // SetInstanceId sets the InstanceId field's value.
  48986. func (s *NetworkInterfaceAttachment) SetInstanceId(v string) *NetworkInterfaceAttachment {
  48987. s.InstanceId = &v
  48988. return s
  48989. }
  48990. // SetInstanceOwnerId sets the InstanceOwnerId field's value.
  48991. func (s *NetworkInterfaceAttachment) SetInstanceOwnerId(v string) *NetworkInterfaceAttachment {
  48992. s.InstanceOwnerId = &v
  48993. return s
  48994. }
  48995. // SetStatus sets the Status field's value.
  48996. func (s *NetworkInterfaceAttachment) SetStatus(v string) *NetworkInterfaceAttachment {
  48997. s.Status = &v
  48998. return s
  48999. }
  49000. // Describes an attachment change.
  49001. type NetworkInterfaceAttachmentChanges struct {
  49002. _ struct{} `type:"structure"`
  49003. // The ID of the network interface attachment.
  49004. AttachmentId *string `locationName:"attachmentId" type:"string"`
  49005. // Indicates whether the network interface is deleted when the instance is terminated.
  49006. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  49007. }
  49008. // String returns the string representation
  49009. func (s NetworkInterfaceAttachmentChanges) String() string {
  49010. return awsutil.Prettify(s)
  49011. }
  49012. // GoString returns the string representation
  49013. func (s NetworkInterfaceAttachmentChanges) GoString() string {
  49014. return s.String()
  49015. }
  49016. // SetAttachmentId sets the AttachmentId field's value.
  49017. func (s *NetworkInterfaceAttachmentChanges) SetAttachmentId(v string) *NetworkInterfaceAttachmentChanges {
  49018. s.AttachmentId = &v
  49019. return s
  49020. }
  49021. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  49022. func (s *NetworkInterfaceAttachmentChanges) SetDeleteOnTermination(v bool) *NetworkInterfaceAttachmentChanges {
  49023. s.DeleteOnTermination = &v
  49024. return s
  49025. }
  49026. // Describes an IPv6 address associated with a network interface.
  49027. type NetworkInterfaceIpv6Address struct {
  49028. _ struct{} `type:"structure"`
  49029. // The IPv6 address.
  49030. Ipv6Address *string `locationName:"ipv6Address" type:"string"`
  49031. }
  49032. // String returns the string representation
  49033. func (s NetworkInterfaceIpv6Address) String() string {
  49034. return awsutil.Prettify(s)
  49035. }
  49036. // GoString returns the string representation
  49037. func (s NetworkInterfaceIpv6Address) GoString() string {
  49038. return s.String()
  49039. }
  49040. // SetIpv6Address sets the Ipv6Address field's value.
  49041. func (s *NetworkInterfaceIpv6Address) SetIpv6Address(v string) *NetworkInterfaceIpv6Address {
  49042. s.Ipv6Address = &v
  49043. return s
  49044. }
  49045. // Describes a permission for a network interface.
  49046. type NetworkInterfacePermission struct {
  49047. _ struct{} `type:"structure"`
  49048. // The AWS account ID.
  49049. AwsAccountId *string `locationName:"awsAccountId" type:"string"`
  49050. // The AWS service.
  49051. AwsService *string `locationName:"awsService" type:"string"`
  49052. // The ID of the network interface.
  49053. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  49054. // The ID of the network interface permission.
  49055. NetworkInterfacePermissionId *string `locationName:"networkInterfacePermissionId" type:"string"`
  49056. // The type of permission.
  49057. Permission *string `locationName:"permission" type:"string" enum:"InterfacePermissionType"`
  49058. // Information about the state of the permission.
  49059. PermissionState *NetworkInterfacePermissionState `locationName:"permissionState" type:"structure"`
  49060. }
  49061. // String returns the string representation
  49062. func (s NetworkInterfacePermission) String() string {
  49063. return awsutil.Prettify(s)
  49064. }
  49065. // GoString returns the string representation
  49066. func (s NetworkInterfacePermission) GoString() string {
  49067. return s.String()
  49068. }
  49069. // SetAwsAccountId sets the AwsAccountId field's value.
  49070. func (s *NetworkInterfacePermission) SetAwsAccountId(v string) *NetworkInterfacePermission {
  49071. s.AwsAccountId = &v
  49072. return s
  49073. }
  49074. // SetAwsService sets the AwsService field's value.
  49075. func (s *NetworkInterfacePermission) SetAwsService(v string) *NetworkInterfacePermission {
  49076. s.AwsService = &v
  49077. return s
  49078. }
  49079. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  49080. func (s *NetworkInterfacePermission) SetNetworkInterfaceId(v string) *NetworkInterfacePermission {
  49081. s.NetworkInterfaceId = &v
  49082. return s
  49083. }
  49084. // SetNetworkInterfacePermissionId sets the NetworkInterfacePermissionId field's value.
  49085. func (s *NetworkInterfacePermission) SetNetworkInterfacePermissionId(v string) *NetworkInterfacePermission {
  49086. s.NetworkInterfacePermissionId = &v
  49087. return s
  49088. }
  49089. // SetPermission sets the Permission field's value.
  49090. func (s *NetworkInterfacePermission) SetPermission(v string) *NetworkInterfacePermission {
  49091. s.Permission = &v
  49092. return s
  49093. }
  49094. // SetPermissionState sets the PermissionState field's value.
  49095. func (s *NetworkInterfacePermission) SetPermissionState(v *NetworkInterfacePermissionState) *NetworkInterfacePermission {
  49096. s.PermissionState = v
  49097. return s
  49098. }
  49099. // Describes the state of a network interface permission.
  49100. type NetworkInterfacePermissionState struct {
  49101. _ struct{} `type:"structure"`
  49102. // The state of the permission.
  49103. State *string `locationName:"state" type:"string" enum:"NetworkInterfacePermissionStateCode"`
  49104. // A status message, if applicable.
  49105. StatusMessage *string `locationName:"statusMessage" type:"string"`
  49106. }
  49107. // String returns the string representation
  49108. func (s NetworkInterfacePermissionState) String() string {
  49109. return awsutil.Prettify(s)
  49110. }
  49111. // GoString returns the string representation
  49112. func (s NetworkInterfacePermissionState) GoString() string {
  49113. return s.String()
  49114. }
  49115. // SetState sets the State field's value.
  49116. func (s *NetworkInterfacePermissionState) SetState(v string) *NetworkInterfacePermissionState {
  49117. s.State = &v
  49118. return s
  49119. }
  49120. // SetStatusMessage sets the StatusMessage field's value.
  49121. func (s *NetworkInterfacePermissionState) SetStatusMessage(v string) *NetworkInterfacePermissionState {
  49122. s.StatusMessage = &v
  49123. return s
  49124. }
  49125. // Describes the private IPv4 address of a network interface.
  49126. type NetworkInterfacePrivateIpAddress struct {
  49127. _ struct{} `type:"structure"`
  49128. // The association information for an Elastic IP address (IPv4) associated with
  49129. // the network interface.
  49130. Association *NetworkInterfaceAssociation `locationName:"association" type:"structure"`
  49131. // Indicates whether this IPv4 address is the primary private IPv4 address of
  49132. // the network interface.
  49133. Primary *bool `locationName:"primary" type:"boolean"`
  49134. // The private DNS name.
  49135. PrivateDnsName *string `locationName:"privateDnsName" type:"string"`
  49136. // The private IPv4 address.
  49137. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  49138. }
  49139. // String returns the string representation
  49140. func (s NetworkInterfacePrivateIpAddress) String() string {
  49141. return awsutil.Prettify(s)
  49142. }
  49143. // GoString returns the string representation
  49144. func (s NetworkInterfacePrivateIpAddress) GoString() string {
  49145. return s.String()
  49146. }
  49147. // SetAssociation sets the Association field's value.
  49148. func (s *NetworkInterfacePrivateIpAddress) SetAssociation(v *NetworkInterfaceAssociation) *NetworkInterfacePrivateIpAddress {
  49149. s.Association = v
  49150. return s
  49151. }
  49152. // SetPrimary sets the Primary field's value.
  49153. func (s *NetworkInterfacePrivateIpAddress) SetPrimary(v bool) *NetworkInterfacePrivateIpAddress {
  49154. s.Primary = &v
  49155. return s
  49156. }
  49157. // SetPrivateDnsName sets the PrivateDnsName field's value.
  49158. func (s *NetworkInterfacePrivateIpAddress) SetPrivateDnsName(v string) *NetworkInterfacePrivateIpAddress {
  49159. s.PrivateDnsName = &v
  49160. return s
  49161. }
  49162. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  49163. func (s *NetworkInterfacePrivateIpAddress) SetPrivateIpAddress(v string) *NetworkInterfacePrivateIpAddress {
  49164. s.PrivateIpAddress = &v
  49165. return s
  49166. }
  49167. type NewDhcpConfiguration struct {
  49168. _ struct{} `type:"structure"`
  49169. Key *string `locationName:"key" type:"string"`
  49170. Values []*string `locationName:"Value" locationNameList:"item" type:"list"`
  49171. }
  49172. // String returns the string representation
  49173. func (s NewDhcpConfiguration) String() string {
  49174. return awsutil.Prettify(s)
  49175. }
  49176. // GoString returns the string representation
  49177. func (s NewDhcpConfiguration) GoString() string {
  49178. return s.String()
  49179. }
  49180. // SetKey sets the Key field's value.
  49181. func (s *NewDhcpConfiguration) SetKey(v string) *NewDhcpConfiguration {
  49182. s.Key = &v
  49183. return s
  49184. }
  49185. // SetValues sets the Values field's value.
  49186. func (s *NewDhcpConfiguration) SetValues(v []*string) *NewDhcpConfiguration {
  49187. s.Values = v
  49188. return s
  49189. }
  49190. // Describes the data that identifies an Amazon FPGA image (AFI) on the PCI
  49191. // bus.
  49192. type PciId struct {
  49193. _ struct{} `type:"structure"`
  49194. // The ID of the device.
  49195. DeviceId *string `type:"string"`
  49196. // The ID of the subsystem.
  49197. SubsystemId *string `type:"string"`
  49198. // The ID of the vendor for the subsystem.
  49199. SubsystemVendorId *string `type:"string"`
  49200. // The ID of the vendor.
  49201. VendorId *string `type:"string"`
  49202. }
  49203. // String returns the string representation
  49204. func (s PciId) String() string {
  49205. return awsutil.Prettify(s)
  49206. }
  49207. // GoString returns the string representation
  49208. func (s PciId) GoString() string {
  49209. return s.String()
  49210. }
  49211. // SetDeviceId sets the DeviceId field's value.
  49212. func (s *PciId) SetDeviceId(v string) *PciId {
  49213. s.DeviceId = &v
  49214. return s
  49215. }
  49216. // SetSubsystemId sets the SubsystemId field's value.
  49217. func (s *PciId) SetSubsystemId(v string) *PciId {
  49218. s.SubsystemId = &v
  49219. return s
  49220. }
  49221. // SetSubsystemVendorId sets the SubsystemVendorId field's value.
  49222. func (s *PciId) SetSubsystemVendorId(v string) *PciId {
  49223. s.SubsystemVendorId = &v
  49224. return s
  49225. }
  49226. // SetVendorId sets the VendorId field's value.
  49227. func (s *PciId) SetVendorId(v string) *PciId {
  49228. s.VendorId = &v
  49229. return s
  49230. }
  49231. // Describes the VPC peering connection options.
  49232. type PeeringConnectionOptions struct {
  49233. _ struct{} `type:"structure"`
  49234. // If true, the public DNS hostnames of instances in the specified VPC resolve
  49235. // to private IP addresses when queried from instances in the peer VPC.
  49236. AllowDnsResolutionFromRemoteVpc *bool `locationName:"allowDnsResolutionFromRemoteVpc" type:"boolean"`
  49237. // If true, enables outbound communication from an EC2-Classic instance that's
  49238. // linked to a local VPC via ClassicLink to instances in a peer VPC.
  49239. AllowEgressFromLocalClassicLinkToRemoteVpc *bool `locationName:"allowEgressFromLocalClassicLinkToRemoteVpc" type:"boolean"`
  49240. // If true, enables outbound communication from instances in a local VPC to
  49241. // an EC2-Classic instance that's linked to a peer VPC via ClassicLink.
  49242. AllowEgressFromLocalVpcToRemoteClassicLink *bool `locationName:"allowEgressFromLocalVpcToRemoteClassicLink" type:"boolean"`
  49243. }
  49244. // String returns the string representation
  49245. func (s PeeringConnectionOptions) String() string {
  49246. return awsutil.Prettify(s)
  49247. }
  49248. // GoString returns the string representation
  49249. func (s PeeringConnectionOptions) GoString() string {
  49250. return s.String()
  49251. }
  49252. // SetAllowDnsResolutionFromRemoteVpc sets the AllowDnsResolutionFromRemoteVpc field's value.
  49253. func (s *PeeringConnectionOptions) SetAllowDnsResolutionFromRemoteVpc(v bool) *PeeringConnectionOptions {
  49254. s.AllowDnsResolutionFromRemoteVpc = &v
  49255. return s
  49256. }
  49257. // SetAllowEgressFromLocalClassicLinkToRemoteVpc sets the AllowEgressFromLocalClassicLinkToRemoteVpc field's value.
  49258. func (s *PeeringConnectionOptions) SetAllowEgressFromLocalClassicLinkToRemoteVpc(v bool) *PeeringConnectionOptions {
  49259. s.AllowEgressFromLocalClassicLinkToRemoteVpc = &v
  49260. return s
  49261. }
  49262. // SetAllowEgressFromLocalVpcToRemoteClassicLink sets the AllowEgressFromLocalVpcToRemoteClassicLink field's value.
  49263. func (s *PeeringConnectionOptions) SetAllowEgressFromLocalVpcToRemoteClassicLink(v bool) *PeeringConnectionOptions {
  49264. s.AllowEgressFromLocalVpcToRemoteClassicLink = &v
  49265. return s
  49266. }
  49267. // The VPC peering connection options.
  49268. type PeeringConnectionOptionsRequest struct {
  49269. _ struct{} `type:"structure"`
  49270. // If true, enables a local VPC to resolve public DNS hostnames to private IP
  49271. // addresses when queried from instances in the peer VPC.
  49272. AllowDnsResolutionFromRemoteVpc *bool `type:"boolean"`
  49273. // If true, enables outbound communication from an EC2-Classic instance that's
  49274. // linked to a local VPC via ClassicLink to instances in a peer VPC.
  49275. AllowEgressFromLocalClassicLinkToRemoteVpc *bool `type:"boolean"`
  49276. // If true, enables outbound communication from instances in a local VPC to
  49277. // an EC2-Classic instance that's linked to a peer VPC via ClassicLink.
  49278. AllowEgressFromLocalVpcToRemoteClassicLink *bool `type:"boolean"`
  49279. }
  49280. // String returns the string representation
  49281. func (s PeeringConnectionOptionsRequest) String() string {
  49282. return awsutil.Prettify(s)
  49283. }
  49284. // GoString returns the string representation
  49285. func (s PeeringConnectionOptionsRequest) GoString() string {
  49286. return s.String()
  49287. }
  49288. // SetAllowDnsResolutionFromRemoteVpc sets the AllowDnsResolutionFromRemoteVpc field's value.
  49289. func (s *PeeringConnectionOptionsRequest) SetAllowDnsResolutionFromRemoteVpc(v bool) *PeeringConnectionOptionsRequest {
  49290. s.AllowDnsResolutionFromRemoteVpc = &v
  49291. return s
  49292. }
  49293. // SetAllowEgressFromLocalClassicLinkToRemoteVpc sets the AllowEgressFromLocalClassicLinkToRemoteVpc field's value.
  49294. func (s *PeeringConnectionOptionsRequest) SetAllowEgressFromLocalClassicLinkToRemoteVpc(v bool) *PeeringConnectionOptionsRequest {
  49295. s.AllowEgressFromLocalClassicLinkToRemoteVpc = &v
  49296. return s
  49297. }
  49298. // SetAllowEgressFromLocalVpcToRemoteClassicLink sets the AllowEgressFromLocalVpcToRemoteClassicLink field's value.
  49299. func (s *PeeringConnectionOptionsRequest) SetAllowEgressFromLocalVpcToRemoteClassicLink(v bool) *PeeringConnectionOptionsRequest {
  49300. s.AllowEgressFromLocalVpcToRemoteClassicLink = &v
  49301. return s
  49302. }
  49303. // Describes the placement of an instance.
  49304. type Placement struct {
  49305. _ struct{} `type:"structure"`
  49306. // The affinity setting for the instance on the Dedicated Host. This parameter
  49307. // is not supported for the ImportInstance command.
  49308. Affinity *string `locationName:"affinity" type:"string"`
  49309. // The Availability Zone of the instance.
  49310. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  49311. // The name of the placement group the instance is in (for cluster compute instances).
  49312. GroupName *string `locationName:"groupName" type:"string"`
  49313. // The ID of the Dedicated Host on which the instance resides. This parameter
  49314. // is not supported for the ImportInstance command.
  49315. HostId *string `locationName:"hostId" type:"string"`
  49316. // Reserved for future use.
  49317. SpreadDomain *string `locationName:"spreadDomain" type:"string"`
  49318. // The tenancy of the instance (if the instance is running in a VPC). An instance
  49319. // with a tenancy of dedicated runs on single-tenant hardware. The host tenancy
  49320. // is not supported for the ImportInstance command.
  49321. Tenancy *string `locationName:"tenancy" type:"string" enum:"Tenancy"`
  49322. }
  49323. // String returns the string representation
  49324. func (s Placement) String() string {
  49325. return awsutil.Prettify(s)
  49326. }
  49327. // GoString returns the string representation
  49328. func (s Placement) GoString() string {
  49329. return s.String()
  49330. }
  49331. // SetAffinity sets the Affinity field's value.
  49332. func (s *Placement) SetAffinity(v string) *Placement {
  49333. s.Affinity = &v
  49334. return s
  49335. }
  49336. // SetAvailabilityZone sets the AvailabilityZone field's value.
  49337. func (s *Placement) SetAvailabilityZone(v string) *Placement {
  49338. s.AvailabilityZone = &v
  49339. return s
  49340. }
  49341. // SetGroupName sets the GroupName field's value.
  49342. func (s *Placement) SetGroupName(v string) *Placement {
  49343. s.GroupName = &v
  49344. return s
  49345. }
  49346. // SetHostId sets the HostId field's value.
  49347. func (s *Placement) SetHostId(v string) *Placement {
  49348. s.HostId = &v
  49349. return s
  49350. }
  49351. // SetSpreadDomain sets the SpreadDomain field's value.
  49352. func (s *Placement) SetSpreadDomain(v string) *Placement {
  49353. s.SpreadDomain = &v
  49354. return s
  49355. }
  49356. // SetTenancy sets the Tenancy field's value.
  49357. func (s *Placement) SetTenancy(v string) *Placement {
  49358. s.Tenancy = &v
  49359. return s
  49360. }
  49361. // Describes a placement group.
  49362. type PlacementGroup struct {
  49363. _ struct{} `type:"structure"`
  49364. // The name of the placement group.
  49365. GroupName *string `locationName:"groupName" type:"string"`
  49366. // The state of the placement group.
  49367. State *string `locationName:"state" type:"string" enum:"PlacementGroupState"`
  49368. // The placement strategy.
  49369. Strategy *string `locationName:"strategy" type:"string" enum:"PlacementStrategy"`
  49370. }
  49371. // String returns the string representation
  49372. func (s PlacementGroup) String() string {
  49373. return awsutil.Prettify(s)
  49374. }
  49375. // GoString returns the string representation
  49376. func (s PlacementGroup) GoString() string {
  49377. return s.String()
  49378. }
  49379. // SetGroupName sets the GroupName field's value.
  49380. func (s *PlacementGroup) SetGroupName(v string) *PlacementGroup {
  49381. s.GroupName = &v
  49382. return s
  49383. }
  49384. // SetState sets the State field's value.
  49385. func (s *PlacementGroup) SetState(v string) *PlacementGroup {
  49386. s.State = &v
  49387. return s
  49388. }
  49389. // SetStrategy sets the Strategy field's value.
  49390. func (s *PlacementGroup) SetStrategy(v string) *PlacementGroup {
  49391. s.Strategy = &v
  49392. return s
  49393. }
  49394. // Describes a range of ports.
  49395. type PortRange struct {
  49396. _ struct{} `type:"structure"`
  49397. // The first port in the range.
  49398. From *int64 `locationName:"from" type:"integer"`
  49399. // The last port in the range.
  49400. To *int64 `locationName:"to" type:"integer"`
  49401. }
  49402. // String returns the string representation
  49403. func (s PortRange) String() string {
  49404. return awsutil.Prettify(s)
  49405. }
  49406. // GoString returns the string representation
  49407. func (s PortRange) GoString() string {
  49408. return s.String()
  49409. }
  49410. // SetFrom sets the From field's value.
  49411. func (s *PortRange) SetFrom(v int64) *PortRange {
  49412. s.From = &v
  49413. return s
  49414. }
  49415. // SetTo sets the To field's value.
  49416. func (s *PortRange) SetTo(v int64) *PortRange {
  49417. s.To = &v
  49418. return s
  49419. }
  49420. // Describes prefixes for AWS services.
  49421. type PrefixList struct {
  49422. _ struct{} `type:"structure"`
  49423. // The IP address range of the AWS service.
  49424. Cidrs []*string `locationName:"cidrSet" locationNameList:"item" type:"list"`
  49425. // The ID of the prefix.
  49426. PrefixListId *string `locationName:"prefixListId" type:"string"`
  49427. // The name of the prefix.
  49428. PrefixListName *string `locationName:"prefixListName" type:"string"`
  49429. }
  49430. // String returns the string representation
  49431. func (s PrefixList) String() string {
  49432. return awsutil.Prettify(s)
  49433. }
  49434. // GoString returns the string representation
  49435. func (s PrefixList) GoString() string {
  49436. return s.String()
  49437. }
  49438. // SetCidrs sets the Cidrs field's value.
  49439. func (s *PrefixList) SetCidrs(v []*string) *PrefixList {
  49440. s.Cidrs = v
  49441. return s
  49442. }
  49443. // SetPrefixListId sets the PrefixListId field's value.
  49444. func (s *PrefixList) SetPrefixListId(v string) *PrefixList {
  49445. s.PrefixListId = &v
  49446. return s
  49447. }
  49448. // SetPrefixListName sets the PrefixListName field's value.
  49449. func (s *PrefixList) SetPrefixListName(v string) *PrefixList {
  49450. s.PrefixListName = &v
  49451. return s
  49452. }
  49453. // [EC2-VPC only] The ID of the prefix.
  49454. type PrefixListId struct {
  49455. _ struct{} `type:"structure"`
  49456. // A description for the security group rule that references this prefix list
  49457. // ID.
  49458. //
  49459. // Constraints: Up to 255 characters in length. Allowed characters are a-z,
  49460. // A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$*
  49461. Description *string `locationName:"description" type:"string"`
  49462. // The ID of the prefix.
  49463. PrefixListId *string `locationName:"prefixListId" type:"string"`
  49464. }
  49465. // String returns the string representation
  49466. func (s PrefixListId) String() string {
  49467. return awsutil.Prettify(s)
  49468. }
  49469. // GoString returns the string representation
  49470. func (s PrefixListId) GoString() string {
  49471. return s.String()
  49472. }
  49473. // SetDescription sets the Description field's value.
  49474. func (s *PrefixListId) SetDescription(v string) *PrefixListId {
  49475. s.Description = &v
  49476. return s
  49477. }
  49478. // SetPrefixListId sets the PrefixListId field's value.
  49479. func (s *PrefixListId) SetPrefixListId(v string) *PrefixListId {
  49480. s.PrefixListId = &v
  49481. return s
  49482. }
  49483. // Describes the price for a Reserved Instance.
  49484. type PriceSchedule struct {
  49485. _ struct{} `type:"structure"`
  49486. // The current price schedule, as determined by the term remaining for the Reserved
  49487. // Instance in the listing.
  49488. //
  49489. // A specific price schedule is always in effect, but only one price schedule
  49490. // can be active at any time. Take, for example, a Reserved Instance listing
  49491. // that has five months remaining in its term. When you specify price schedules
  49492. // for five months and two months, this means that schedule 1, covering the
  49493. // first three months of the remaining term, will be active during months 5,
  49494. // 4, and 3. Then schedule 2, covering the last two months of the term, will
  49495. // be active for months 2 and 1.
  49496. Active *bool `locationName:"active" type:"boolean"`
  49497. // The currency for transacting the Reserved Instance resale. At this time,
  49498. // the only supported currency is USD.
  49499. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  49500. // The fixed price for the term.
  49501. Price *float64 `locationName:"price" type:"double"`
  49502. // The number of months remaining in the reservation. For example, 2 is the
  49503. // second to the last month before the capacity reservation expires.
  49504. Term *int64 `locationName:"term" type:"long"`
  49505. }
  49506. // String returns the string representation
  49507. func (s PriceSchedule) String() string {
  49508. return awsutil.Prettify(s)
  49509. }
  49510. // GoString returns the string representation
  49511. func (s PriceSchedule) GoString() string {
  49512. return s.String()
  49513. }
  49514. // SetActive sets the Active field's value.
  49515. func (s *PriceSchedule) SetActive(v bool) *PriceSchedule {
  49516. s.Active = &v
  49517. return s
  49518. }
  49519. // SetCurrencyCode sets the CurrencyCode field's value.
  49520. func (s *PriceSchedule) SetCurrencyCode(v string) *PriceSchedule {
  49521. s.CurrencyCode = &v
  49522. return s
  49523. }
  49524. // SetPrice sets the Price field's value.
  49525. func (s *PriceSchedule) SetPrice(v float64) *PriceSchedule {
  49526. s.Price = &v
  49527. return s
  49528. }
  49529. // SetTerm sets the Term field's value.
  49530. func (s *PriceSchedule) SetTerm(v int64) *PriceSchedule {
  49531. s.Term = &v
  49532. return s
  49533. }
  49534. // Describes the price for a Reserved Instance.
  49535. type PriceScheduleSpecification struct {
  49536. _ struct{} `type:"structure"`
  49537. // The currency for transacting the Reserved Instance resale. At this time,
  49538. // the only supported currency is USD.
  49539. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  49540. // The fixed price for the term.
  49541. Price *float64 `locationName:"price" type:"double"`
  49542. // The number of months remaining in the reservation. For example, 2 is the
  49543. // second to the last month before the capacity reservation expires.
  49544. Term *int64 `locationName:"term" type:"long"`
  49545. }
  49546. // String returns the string representation
  49547. func (s PriceScheduleSpecification) String() string {
  49548. return awsutil.Prettify(s)
  49549. }
  49550. // GoString returns the string representation
  49551. func (s PriceScheduleSpecification) GoString() string {
  49552. return s.String()
  49553. }
  49554. // SetCurrencyCode sets the CurrencyCode field's value.
  49555. func (s *PriceScheduleSpecification) SetCurrencyCode(v string) *PriceScheduleSpecification {
  49556. s.CurrencyCode = &v
  49557. return s
  49558. }
  49559. // SetPrice sets the Price field's value.
  49560. func (s *PriceScheduleSpecification) SetPrice(v float64) *PriceScheduleSpecification {
  49561. s.Price = &v
  49562. return s
  49563. }
  49564. // SetTerm sets the Term field's value.
  49565. func (s *PriceScheduleSpecification) SetTerm(v int64) *PriceScheduleSpecification {
  49566. s.Term = &v
  49567. return s
  49568. }
  49569. // Describes a Reserved Instance offering.
  49570. type PricingDetail struct {
  49571. _ struct{} `type:"structure"`
  49572. // The number of reservations available for the price.
  49573. Count *int64 `locationName:"count" type:"integer"`
  49574. // The price per instance.
  49575. Price *float64 `locationName:"price" type:"double"`
  49576. }
  49577. // String returns the string representation
  49578. func (s PricingDetail) String() string {
  49579. return awsutil.Prettify(s)
  49580. }
  49581. // GoString returns the string representation
  49582. func (s PricingDetail) GoString() string {
  49583. return s.String()
  49584. }
  49585. // SetCount sets the Count field's value.
  49586. func (s *PricingDetail) SetCount(v int64) *PricingDetail {
  49587. s.Count = &v
  49588. return s
  49589. }
  49590. // SetPrice sets the Price field's value.
  49591. func (s *PricingDetail) SetPrice(v float64) *PricingDetail {
  49592. s.Price = &v
  49593. return s
  49594. }
  49595. // PrincipalIdFormat description
  49596. type PrincipalIdFormat struct {
  49597. _ struct{} `type:"structure"`
  49598. // PrincipalIdFormatARN description
  49599. Arn *string `locationName:"arn" type:"string"`
  49600. // PrincipalIdFormatStatuses description
  49601. Statuses []*IdFormat `locationName:"statusSet" locationNameList:"item" type:"list"`
  49602. }
  49603. // String returns the string representation
  49604. func (s PrincipalIdFormat) String() string {
  49605. return awsutil.Prettify(s)
  49606. }
  49607. // GoString returns the string representation
  49608. func (s PrincipalIdFormat) GoString() string {
  49609. return s.String()
  49610. }
  49611. // SetArn sets the Arn field's value.
  49612. func (s *PrincipalIdFormat) SetArn(v string) *PrincipalIdFormat {
  49613. s.Arn = &v
  49614. return s
  49615. }
  49616. // SetStatuses sets the Statuses field's value.
  49617. func (s *PrincipalIdFormat) SetStatuses(v []*IdFormat) *PrincipalIdFormat {
  49618. s.Statuses = v
  49619. return s
  49620. }
  49621. // Describes a secondary private IPv4 address for a network interface.
  49622. type PrivateIpAddressSpecification struct {
  49623. _ struct{} `type:"structure"`
  49624. // Indicates whether the private IPv4 address is the primary private IPv4 address.
  49625. // Only one IPv4 address can be designated as primary.
  49626. Primary *bool `locationName:"primary" type:"boolean"`
  49627. // The private IPv4 addresses.
  49628. //
  49629. // PrivateIpAddress is a required field
  49630. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string" required:"true"`
  49631. }
  49632. // String returns the string representation
  49633. func (s PrivateIpAddressSpecification) String() string {
  49634. return awsutil.Prettify(s)
  49635. }
  49636. // GoString returns the string representation
  49637. func (s PrivateIpAddressSpecification) GoString() string {
  49638. return s.String()
  49639. }
  49640. // Validate inspects the fields of the type to determine if they are valid.
  49641. func (s *PrivateIpAddressSpecification) Validate() error {
  49642. invalidParams := request.ErrInvalidParams{Context: "PrivateIpAddressSpecification"}
  49643. if s.PrivateIpAddress == nil {
  49644. invalidParams.Add(request.NewErrParamRequired("PrivateIpAddress"))
  49645. }
  49646. if invalidParams.Len() > 0 {
  49647. return invalidParams
  49648. }
  49649. return nil
  49650. }
  49651. // SetPrimary sets the Primary field's value.
  49652. func (s *PrivateIpAddressSpecification) SetPrimary(v bool) *PrivateIpAddressSpecification {
  49653. s.Primary = &v
  49654. return s
  49655. }
  49656. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  49657. func (s *PrivateIpAddressSpecification) SetPrivateIpAddress(v string) *PrivateIpAddressSpecification {
  49658. s.PrivateIpAddress = &v
  49659. return s
  49660. }
  49661. // Describes a product code.
  49662. type ProductCode struct {
  49663. _ struct{} `type:"structure"`
  49664. // The product code.
  49665. ProductCodeId *string `locationName:"productCode" type:"string"`
  49666. // The type of product code.
  49667. ProductCodeType *string `locationName:"type" type:"string" enum:"ProductCodeValues"`
  49668. }
  49669. // String returns the string representation
  49670. func (s ProductCode) String() string {
  49671. return awsutil.Prettify(s)
  49672. }
  49673. // GoString returns the string representation
  49674. func (s ProductCode) GoString() string {
  49675. return s.String()
  49676. }
  49677. // SetProductCodeId sets the ProductCodeId field's value.
  49678. func (s *ProductCode) SetProductCodeId(v string) *ProductCode {
  49679. s.ProductCodeId = &v
  49680. return s
  49681. }
  49682. // SetProductCodeType sets the ProductCodeType field's value.
  49683. func (s *ProductCode) SetProductCodeType(v string) *ProductCode {
  49684. s.ProductCodeType = &v
  49685. return s
  49686. }
  49687. // Describes a virtual private gateway propagating route.
  49688. type PropagatingVgw struct {
  49689. _ struct{} `type:"structure"`
  49690. // The ID of the virtual private gateway (VGW).
  49691. GatewayId *string `locationName:"gatewayId" type:"string"`
  49692. }
  49693. // String returns the string representation
  49694. func (s PropagatingVgw) String() string {
  49695. return awsutil.Prettify(s)
  49696. }
  49697. // GoString returns the string representation
  49698. func (s PropagatingVgw) GoString() string {
  49699. return s.String()
  49700. }
  49701. // SetGatewayId sets the GatewayId field's value.
  49702. func (s *PropagatingVgw) SetGatewayId(v string) *PropagatingVgw {
  49703. s.GatewayId = &v
  49704. return s
  49705. }
  49706. // Reserved. If you need to sustain traffic greater than the documented limits
  49707. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
  49708. // contact us through the Support Center (https://console.aws.amazon.com/support/home?).
  49709. type ProvisionedBandwidth struct {
  49710. _ struct{} `type:"structure"`
  49711. // Reserved. If you need to sustain traffic greater than the documented limits
  49712. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
  49713. // contact us through the Support Center (https://console.aws.amazon.com/support/home?).
  49714. ProvisionTime *time.Time `locationName:"provisionTime" type:"timestamp" timestampFormat:"iso8601"`
  49715. // Reserved. If you need to sustain traffic greater than the documented limits
  49716. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
  49717. // contact us through the Support Center (https://console.aws.amazon.com/support/home?).
  49718. Provisioned *string `locationName:"provisioned" type:"string"`
  49719. // Reserved. If you need to sustain traffic greater than the documented limits
  49720. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
  49721. // contact us through the Support Center (https://console.aws.amazon.com/support/home?).
  49722. RequestTime *time.Time `locationName:"requestTime" type:"timestamp" timestampFormat:"iso8601"`
  49723. // Reserved. If you need to sustain traffic greater than the documented limits
  49724. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
  49725. // contact us through the Support Center (https://console.aws.amazon.com/support/home?).
  49726. Requested *string `locationName:"requested" type:"string"`
  49727. // Reserved. If you need to sustain traffic greater than the documented limits
  49728. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
  49729. // contact us through the Support Center (https://console.aws.amazon.com/support/home?).
  49730. Status *string `locationName:"status" type:"string"`
  49731. }
  49732. // String returns the string representation
  49733. func (s ProvisionedBandwidth) String() string {
  49734. return awsutil.Prettify(s)
  49735. }
  49736. // GoString returns the string representation
  49737. func (s ProvisionedBandwidth) GoString() string {
  49738. return s.String()
  49739. }
  49740. // SetProvisionTime sets the ProvisionTime field's value.
  49741. func (s *ProvisionedBandwidth) SetProvisionTime(v time.Time) *ProvisionedBandwidth {
  49742. s.ProvisionTime = &v
  49743. return s
  49744. }
  49745. // SetProvisioned sets the Provisioned field's value.
  49746. func (s *ProvisionedBandwidth) SetProvisioned(v string) *ProvisionedBandwidth {
  49747. s.Provisioned = &v
  49748. return s
  49749. }
  49750. // SetRequestTime sets the RequestTime field's value.
  49751. func (s *ProvisionedBandwidth) SetRequestTime(v time.Time) *ProvisionedBandwidth {
  49752. s.RequestTime = &v
  49753. return s
  49754. }
  49755. // SetRequested sets the Requested field's value.
  49756. func (s *ProvisionedBandwidth) SetRequested(v string) *ProvisionedBandwidth {
  49757. s.Requested = &v
  49758. return s
  49759. }
  49760. // SetStatus sets the Status field's value.
  49761. func (s *ProvisionedBandwidth) SetStatus(v string) *ProvisionedBandwidth {
  49762. s.Status = &v
  49763. return s
  49764. }
  49765. // Describes the result of the purchase.
  49766. type Purchase struct {
  49767. _ struct{} `type:"structure"`
  49768. // The currency in which the UpfrontPrice and HourlyPrice amounts are specified.
  49769. // At this time, the only supported currency is USD.
  49770. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  49771. // The duration of the reservation's term in seconds.
  49772. Duration *int64 `locationName:"duration" type:"integer"`
  49773. // The IDs of the Dedicated Hosts associated with the reservation.
  49774. HostIdSet []*string `locationName:"hostIdSet" locationNameList:"item" type:"list"`
  49775. // The ID of the reservation.
  49776. HostReservationId *string `locationName:"hostReservationId" type:"string"`
  49777. // The hourly price of the reservation per hour.
  49778. HourlyPrice *string `locationName:"hourlyPrice" type:"string"`
  49779. // The instance family on the Dedicated Host that the reservation can be associated
  49780. // with.
  49781. InstanceFamily *string `locationName:"instanceFamily" type:"string"`
  49782. // The payment option for the reservation.
  49783. PaymentOption *string `locationName:"paymentOption" type:"string" enum:"PaymentOption"`
  49784. // The upfront price of the reservation.
  49785. UpfrontPrice *string `locationName:"upfrontPrice" type:"string"`
  49786. }
  49787. // String returns the string representation
  49788. func (s Purchase) String() string {
  49789. return awsutil.Prettify(s)
  49790. }
  49791. // GoString returns the string representation
  49792. func (s Purchase) GoString() string {
  49793. return s.String()
  49794. }
  49795. // SetCurrencyCode sets the CurrencyCode field's value.
  49796. func (s *Purchase) SetCurrencyCode(v string) *Purchase {
  49797. s.CurrencyCode = &v
  49798. return s
  49799. }
  49800. // SetDuration sets the Duration field's value.
  49801. func (s *Purchase) SetDuration(v int64) *Purchase {
  49802. s.Duration = &v
  49803. return s
  49804. }
  49805. // SetHostIdSet sets the HostIdSet field's value.
  49806. func (s *Purchase) SetHostIdSet(v []*string) *Purchase {
  49807. s.HostIdSet = v
  49808. return s
  49809. }
  49810. // SetHostReservationId sets the HostReservationId field's value.
  49811. func (s *Purchase) SetHostReservationId(v string) *Purchase {
  49812. s.HostReservationId = &v
  49813. return s
  49814. }
  49815. // SetHourlyPrice sets the HourlyPrice field's value.
  49816. func (s *Purchase) SetHourlyPrice(v string) *Purchase {
  49817. s.HourlyPrice = &v
  49818. return s
  49819. }
  49820. // SetInstanceFamily sets the InstanceFamily field's value.
  49821. func (s *Purchase) SetInstanceFamily(v string) *Purchase {
  49822. s.InstanceFamily = &v
  49823. return s
  49824. }
  49825. // SetPaymentOption sets the PaymentOption field's value.
  49826. func (s *Purchase) SetPaymentOption(v string) *Purchase {
  49827. s.PaymentOption = &v
  49828. return s
  49829. }
  49830. // SetUpfrontPrice sets the UpfrontPrice field's value.
  49831. func (s *Purchase) SetUpfrontPrice(v string) *Purchase {
  49832. s.UpfrontPrice = &v
  49833. return s
  49834. }
  49835. type PurchaseHostReservationInput struct {
  49836. _ struct{} `type:"structure"`
  49837. // Unique, case-sensitive identifier you provide to ensure idempotency of the
  49838. // request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html)
  49839. // in the Amazon Elastic Compute Cloud User Guide.
  49840. ClientToken *string `type:"string"`
  49841. // The currency in which the totalUpfrontPrice, LimitPrice, and totalHourlyPrice
  49842. // amounts are specified. At this time, the only supported currency is USD.
  49843. CurrencyCode *string `type:"string" enum:"CurrencyCodeValues"`
  49844. // The ID/s of the Dedicated Host/s that the reservation will be associated
  49845. // with.
  49846. //
  49847. // HostIdSet is a required field
  49848. HostIdSet []*string `locationNameList:"item" type:"list" required:"true"`
  49849. // The specified limit is checked against the total upfront cost of the reservation
  49850. // (calculated as the offering's upfront cost multiplied by the host count).
  49851. // If the total upfront cost is greater than the specified price limit, the
  49852. // request will fail. This is used to ensure that the purchase does not exceed
  49853. // the expected upfront cost of the purchase. At this time, the only supported
  49854. // currency is USD. For example, to indicate a limit price of USD 100, specify
  49855. // 100.00.
  49856. LimitPrice *string `type:"string"`
  49857. // The ID of the offering.
  49858. //
  49859. // OfferingId is a required field
  49860. OfferingId *string `type:"string" required:"true"`
  49861. }
  49862. // String returns the string representation
  49863. func (s PurchaseHostReservationInput) String() string {
  49864. return awsutil.Prettify(s)
  49865. }
  49866. // GoString returns the string representation
  49867. func (s PurchaseHostReservationInput) GoString() string {
  49868. return s.String()
  49869. }
  49870. // Validate inspects the fields of the type to determine if they are valid.
  49871. func (s *PurchaseHostReservationInput) Validate() error {
  49872. invalidParams := request.ErrInvalidParams{Context: "PurchaseHostReservationInput"}
  49873. if s.HostIdSet == nil {
  49874. invalidParams.Add(request.NewErrParamRequired("HostIdSet"))
  49875. }
  49876. if s.OfferingId == nil {
  49877. invalidParams.Add(request.NewErrParamRequired("OfferingId"))
  49878. }
  49879. if invalidParams.Len() > 0 {
  49880. return invalidParams
  49881. }
  49882. return nil
  49883. }
  49884. // SetClientToken sets the ClientToken field's value.
  49885. func (s *PurchaseHostReservationInput) SetClientToken(v string) *PurchaseHostReservationInput {
  49886. s.ClientToken = &v
  49887. return s
  49888. }
  49889. // SetCurrencyCode sets the CurrencyCode field's value.
  49890. func (s *PurchaseHostReservationInput) SetCurrencyCode(v string) *PurchaseHostReservationInput {
  49891. s.CurrencyCode = &v
  49892. return s
  49893. }
  49894. // SetHostIdSet sets the HostIdSet field's value.
  49895. func (s *PurchaseHostReservationInput) SetHostIdSet(v []*string) *PurchaseHostReservationInput {
  49896. s.HostIdSet = v
  49897. return s
  49898. }
  49899. // SetLimitPrice sets the LimitPrice field's value.
  49900. func (s *PurchaseHostReservationInput) SetLimitPrice(v string) *PurchaseHostReservationInput {
  49901. s.LimitPrice = &v
  49902. return s
  49903. }
  49904. // SetOfferingId sets the OfferingId field's value.
  49905. func (s *PurchaseHostReservationInput) SetOfferingId(v string) *PurchaseHostReservationInput {
  49906. s.OfferingId = &v
  49907. return s
  49908. }
  49909. type PurchaseHostReservationOutput struct {
  49910. _ struct{} `type:"structure"`
  49911. // Unique, case-sensitive identifier you provide to ensure idempotency of the
  49912. // request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html)
  49913. // in the Amazon Elastic Compute Cloud User Guide
  49914. ClientToken *string `locationName:"clientToken" type:"string"`
  49915. // The currency in which the totalUpfrontPrice and totalHourlyPrice amounts
  49916. // are specified. At this time, the only supported currency is USD.
  49917. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  49918. // Describes the details of the purchase.
  49919. Purchase []*Purchase `locationName:"purchase" locationNameList:"item" type:"list"`
  49920. // The total hourly price of the reservation calculated per hour.
  49921. TotalHourlyPrice *string `locationName:"totalHourlyPrice" type:"string"`
  49922. // The total amount that will be charged to your account when you purchase the
  49923. // reservation.
  49924. TotalUpfrontPrice *string `locationName:"totalUpfrontPrice" type:"string"`
  49925. }
  49926. // String returns the string representation
  49927. func (s PurchaseHostReservationOutput) String() string {
  49928. return awsutil.Prettify(s)
  49929. }
  49930. // GoString returns the string representation
  49931. func (s PurchaseHostReservationOutput) GoString() string {
  49932. return s.String()
  49933. }
  49934. // SetClientToken sets the ClientToken field's value.
  49935. func (s *PurchaseHostReservationOutput) SetClientToken(v string) *PurchaseHostReservationOutput {
  49936. s.ClientToken = &v
  49937. return s
  49938. }
  49939. // SetCurrencyCode sets the CurrencyCode field's value.
  49940. func (s *PurchaseHostReservationOutput) SetCurrencyCode(v string) *PurchaseHostReservationOutput {
  49941. s.CurrencyCode = &v
  49942. return s
  49943. }
  49944. // SetPurchase sets the Purchase field's value.
  49945. func (s *PurchaseHostReservationOutput) SetPurchase(v []*Purchase) *PurchaseHostReservationOutput {
  49946. s.Purchase = v
  49947. return s
  49948. }
  49949. // SetTotalHourlyPrice sets the TotalHourlyPrice field's value.
  49950. func (s *PurchaseHostReservationOutput) SetTotalHourlyPrice(v string) *PurchaseHostReservationOutput {
  49951. s.TotalHourlyPrice = &v
  49952. return s
  49953. }
  49954. // SetTotalUpfrontPrice sets the TotalUpfrontPrice field's value.
  49955. func (s *PurchaseHostReservationOutput) SetTotalUpfrontPrice(v string) *PurchaseHostReservationOutput {
  49956. s.TotalUpfrontPrice = &v
  49957. return s
  49958. }
  49959. // Describes a request to purchase Scheduled Instances.
  49960. type PurchaseRequest struct {
  49961. _ struct{} `type:"structure"`
  49962. // The number of instances.
  49963. //
  49964. // InstanceCount is a required field
  49965. InstanceCount *int64 `type:"integer" required:"true"`
  49966. // The purchase token.
  49967. //
  49968. // PurchaseToken is a required field
  49969. PurchaseToken *string `type:"string" required:"true"`
  49970. }
  49971. // String returns the string representation
  49972. func (s PurchaseRequest) String() string {
  49973. return awsutil.Prettify(s)
  49974. }
  49975. // GoString returns the string representation
  49976. func (s PurchaseRequest) GoString() string {
  49977. return s.String()
  49978. }
  49979. // Validate inspects the fields of the type to determine if they are valid.
  49980. func (s *PurchaseRequest) Validate() error {
  49981. invalidParams := request.ErrInvalidParams{Context: "PurchaseRequest"}
  49982. if s.InstanceCount == nil {
  49983. invalidParams.Add(request.NewErrParamRequired("InstanceCount"))
  49984. }
  49985. if s.PurchaseToken == nil {
  49986. invalidParams.Add(request.NewErrParamRequired("PurchaseToken"))
  49987. }
  49988. if invalidParams.Len() > 0 {
  49989. return invalidParams
  49990. }
  49991. return nil
  49992. }
  49993. // SetInstanceCount sets the InstanceCount field's value.
  49994. func (s *PurchaseRequest) SetInstanceCount(v int64) *PurchaseRequest {
  49995. s.InstanceCount = &v
  49996. return s
  49997. }
  49998. // SetPurchaseToken sets the PurchaseToken field's value.
  49999. func (s *PurchaseRequest) SetPurchaseToken(v string) *PurchaseRequest {
  50000. s.PurchaseToken = &v
  50001. return s
  50002. }
  50003. // Contains the parameters for PurchaseReservedInstancesOffering.
  50004. type PurchaseReservedInstancesOfferingInput struct {
  50005. _ struct{} `type:"structure"`
  50006. // Checks whether you have the required permissions for the action, without
  50007. // actually making the request, and provides an error response. If you have
  50008. // the required permissions, the error response is DryRunOperation. Otherwise,
  50009. // it is UnauthorizedOperation.
  50010. DryRun *bool `locationName:"dryRun" type:"boolean"`
  50011. // The number of Reserved Instances to purchase.
  50012. //
  50013. // InstanceCount is a required field
  50014. InstanceCount *int64 `type:"integer" required:"true"`
  50015. // Specified for Reserved Instance Marketplace offerings to limit the total
  50016. // order and ensure that the Reserved Instances are not purchased at unexpected
  50017. // prices.
  50018. LimitPrice *ReservedInstanceLimitPrice `locationName:"limitPrice" type:"structure"`
  50019. // The ID of the Reserved Instance offering to purchase.
  50020. //
  50021. // ReservedInstancesOfferingId is a required field
  50022. ReservedInstancesOfferingId *string `type:"string" required:"true"`
  50023. }
  50024. // String returns the string representation
  50025. func (s PurchaseReservedInstancesOfferingInput) String() string {
  50026. return awsutil.Prettify(s)
  50027. }
  50028. // GoString returns the string representation
  50029. func (s PurchaseReservedInstancesOfferingInput) GoString() string {
  50030. return s.String()
  50031. }
  50032. // Validate inspects the fields of the type to determine if they are valid.
  50033. func (s *PurchaseReservedInstancesOfferingInput) Validate() error {
  50034. invalidParams := request.ErrInvalidParams{Context: "PurchaseReservedInstancesOfferingInput"}
  50035. if s.InstanceCount == nil {
  50036. invalidParams.Add(request.NewErrParamRequired("InstanceCount"))
  50037. }
  50038. if s.ReservedInstancesOfferingId == nil {
  50039. invalidParams.Add(request.NewErrParamRequired("ReservedInstancesOfferingId"))
  50040. }
  50041. if invalidParams.Len() > 0 {
  50042. return invalidParams
  50043. }
  50044. return nil
  50045. }
  50046. // SetDryRun sets the DryRun field's value.
  50047. func (s *PurchaseReservedInstancesOfferingInput) SetDryRun(v bool) *PurchaseReservedInstancesOfferingInput {
  50048. s.DryRun = &v
  50049. return s
  50050. }
  50051. // SetInstanceCount sets the InstanceCount field's value.
  50052. func (s *PurchaseReservedInstancesOfferingInput) SetInstanceCount(v int64) *PurchaseReservedInstancesOfferingInput {
  50053. s.InstanceCount = &v
  50054. return s
  50055. }
  50056. // SetLimitPrice sets the LimitPrice field's value.
  50057. func (s *PurchaseReservedInstancesOfferingInput) SetLimitPrice(v *ReservedInstanceLimitPrice) *PurchaseReservedInstancesOfferingInput {
  50058. s.LimitPrice = v
  50059. return s
  50060. }
  50061. // SetReservedInstancesOfferingId sets the ReservedInstancesOfferingId field's value.
  50062. func (s *PurchaseReservedInstancesOfferingInput) SetReservedInstancesOfferingId(v string) *PurchaseReservedInstancesOfferingInput {
  50063. s.ReservedInstancesOfferingId = &v
  50064. return s
  50065. }
  50066. // Contains the output of PurchaseReservedInstancesOffering.
  50067. type PurchaseReservedInstancesOfferingOutput struct {
  50068. _ struct{} `type:"structure"`
  50069. // The IDs of the purchased Reserved Instances.
  50070. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`
  50071. }
  50072. // String returns the string representation
  50073. func (s PurchaseReservedInstancesOfferingOutput) String() string {
  50074. return awsutil.Prettify(s)
  50075. }
  50076. // GoString returns the string representation
  50077. func (s PurchaseReservedInstancesOfferingOutput) GoString() string {
  50078. return s.String()
  50079. }
  50080. // SetReservedInstancesId sets the ReservedInstancesId field's value.
  50081. func (s *PurchaseReservedInstancesOfferingOutput) SetReservedInstancesId(v string) *PurchaseReservedInstancesOfferingOutput {
  50082. s.ReservedInstancesId = &v
  50083. return s
  50084. }
  50085. // Contains the parameters for PurchaseScheduledInstances.
  50086. type PurchaseScheduledInstancesInput struct {
  50087. _ struct{} `type:"structure"`
  50088. // Unique, case-sensitive identifier that ensures the idempotency of the request.
  50089. // For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  50090. ClientToken *string `type:"string" idempotencyToken:"true"`
  50091. // Checks whether you have the required permissions for the action, without
  50092. // actually making the request, and provides an error response. If you have
  50093. // the required permissions, the error response is DryRunOperation. Otherwise,
  50094. // it is UnauthorizedOperation.
  50095. DryRun *bool `type:"boolean"`
  50096. // One or more purchase requests.
  50097. //
  50098. // PurchaseRequests is a required field
  50099. PurchaseRequests []*PurchaseRequest `locationName:"PurchaseRequest" locationNameList:"PurchaseRequest" min:"1" type:"list" required:"true"`
  50100. }
  50101. // String returns the string representation
  50102. func (s PurchaseScheduledInstancesInput) String() string {
  50103. return awsutil.Prettify(s)
  50104. }
  50105. // GoString returns the string representation
  50106. func (s PurchaseScheduledInstancesInput) GoString() string {
  50107. return s.String()
  50108. }
  50109. // Validate inspects the fields of the type to determine if they are valid.
  50110. func (s *PurchaseScheduledInstancesInput) Validate() error {
  50111. invalidParams := request.ErrInvalidParams{Context: "PurchaseScheduledInstancesInput"}
  50112. if s.PurchaseRequests == nil {
  50113. invalidParams.Add(request.NewErrParamRequired("PurchaseRequests"))
  50114. }
  50115. if s.PurchaseRequests != nil && len(s.PurchaseRequests) < 1 {
  50116. invalidParams.Add(request.NewErrParamMinLen("PurchaseRequests", 1))
  50117. }
  50118. if s.PurchaseRequests != nil {
  50119. for i, v := range s.PurchaseRequests {
  50120. if v == nil {
  50121. continue
  50122. }
  50123. if err := v.Validate(); err != nil {
  50124. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PurchaseRequests", i), err.(request.ErrInvalidParams))
  50125. }
  50126. }
  50127. }
  50128. if invalidParams.Len() > 0 {
  50129. return invalidParams
  50130. }
  50131. return nil
  50132. }
  50133. // SetClientToken sets the ClientToken field's value.
  50134. func (s *PurchaseScheduledInstancesInput) SetClientToken(v string) *PurchaseScheduledInstancesInput {
  50135. s.ClientToken = &v
  50136. return s
  50137. }
  50138. // SetDryRun sets the DryRun field's value.
  50139. func (s *PurchaseScheduledInstancesInput) SetDryRun(v bool) *PurchaseScheduledInstancesInput {
  50140. s.DryRun = &v
  50141. return s
  50142. }
  50143. // SetPurchaseRequests sets the PurchaseRequests field's value.
  50144. func (s *PurchaseScheduledInstancesInput) SetPurchaseRequests(v []*PurchaseRequest) *PurchaseScheduledInstancesInput {
  50145. s.PurchaseRequests = v
  50146. return s
  50147. }
  50148. // Contains the output of PurchaseScheduledInstances.
  50149. type PurchaseScheduledInstancesOutput struct {
  50150. _ struct{} `type:"structure"`
  50151. // Information about the Scheduled Instances.
  50152. ScheduledInstanceSet []*ScheduledInstance `locationName:"scheduledInstanceSet" locationNameList:"item" type:"list"`
  50153. }
  50154. // String returns the string representation
  50155. func (s PurchaseScheduledInstancesOutput) String() string {
  50156. return awsutil.Prettify(s)
  50157. }
  50158. // GoString returns the string representation
  50159. func (s PurchaseScheduledInstancesOutput) GoString() string {
  50160. return s.String()
  50161. }
  50162. // SetScheduledInstanceSet sets the ScheduledInstanceSet field's value.
  50163. func (s *PurchaseScheduledInstancesOutput) SetScheduledInstanceSet(v []*ScheduledInstance) *PurchaseScheduledInstancesOutput {
  50164. s.ScheduledInstanceSet = v
  50165. return s
  50166. }
  50167. // Contains the parameters for RebootInstances.
  50168. type RebootInstancesInput struct {
  50169. _ struct{} `type:"structure"`
  50170. // Checks whether you have the required permissions for the action, without
  50171. // actually making the request, and provides an error response. If you have
  50172. // the required permissions, the error response is DryRunOperation. Otherwise,
  50173. // it is UnauthorizedOperation.
  50174. DryRun *bool `locationName:"dryRun" type:"boolean"`
  50175. // One or more instance IDs.
  50176. //
  50177. // InstanceIds is a required field
  50178. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"`
  50179. }
  50180. // String returns the string representation
  50181. func (s RebootInstancesInput) String() string {
  50182. return awsutil.Prettify(s)
  50183. }
  50184. // GoString returns the string representation
  50185. func (s RebootInstancesInput) GoString() string {
  50186. return s.String()
  50187. }
  50188. // Validate inspects the fields of the type to determine if they are valid.
  50189. func (s *RebootInstancesInput) Validate() error {
  50190. invalidParams := request.ErrInvalidParams{Context: "RebootInstancesInput"}
  50191. if s.InstanceIds == nil {
  50192. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  50193. }
  50194. if invalidParams.Len() > 0 {
  50195. return invalidParams
  50196. }
  50197. return nil
  50198. }
  50199. // SetDryRun sets the DryRun field's value.
  50200. func (s *RebootInstancesInput) SetDryRun(v bool) *RebootInstancesInput {
  50201. s.DryRun = &v
  50202. return s
  50203. }
  50204. // SetInstanceIds sets the InstanceIds field's value.
  50205. func (s *RebootInstancesInput) SetInstanceIds(v []*string) *RebootInstancesInput {
  50206. s.InstanceIds = v
  50207. return s
  50208. }
  50209. type RebootInstancesOutput struct {
  50210. _ struct{} `type:"structure"`
  50211. }
  50212. // String returns the string representation
  50213. func (s RebootInstancesOutput) String() string {
  50214. return awsutil.Prettify(s)
  50215. }
  50216. // GoString returns the string representation
  50217. func (s RebootInstancesOutput) GoString() string {
  50218. return s.String()
  50219. }
  50220. // Describes a recurring charge.
  50221. type RecurringCharge struct {
  50222. _ struct{} `type:"structure"`
  50223. // The amount of the recurring charge.
  50224. Amount *float64 `locationName:"amount" type:"double"`
  50225. // The frequency of the recurring charge.
  50226. Frequency *string `locationName:"frequency" type:"string" enum:"RecurringChargeFrequency"`
  50227. }
  50228. // String returns the string representation
  50229. func (s RecurringCharge) String() string {
  50230. return awsutil.Prettify(s)
  50231. }
  50232. // GoString returns the string representation
  50233. func (s RecurringCharge) GoString() string {
  50234. return s.String()
  50235. }
  50236. // SetAmount sets the Amount field's value.
  50237. func (s *RecurringCharge) SetAmount(v float64) *RecurringCharge {
  50238. s.Amount = &v
  50239. return s
  50240. }
  50241. // SetFrequency sets the Frequency field's value.
  50242. func (s *RecurringCharge) SetFrequency(v string) *RecurringCharge {
  50243. s.Frequency = &v
  50244. return s
  50245. }
  50246. // Describes a region.
  50247. type Region struct {
  50248. _ struct{} `type:"structure"`
  50249. // The region service endpoint.
  50250. Endpoint *string `locationName:"regionEndpoint" type:"string"`
  50251. // The name of the region.
  50252. RegionName *string `locationName:"regionName" type:"string"`
  50253. }
  50254. // String returns the string representation
  50255. func (s Region) String() string {
  50256. return awsutil.Prettify(s)
  50257. }
  50258. // GoString returns the string representation
  50259. func (s Region) GoString() string {
  50260. return s.String()
  50261. }
  50262. // SetEndpoint sets the Endpoint field's value.
  50263. func (s *Region) SetEndpoint(v string) *Region {
  50264. s.Endpoint = &v
  50265. return s
  50266. }
  50267. // SetRegionName sets the RegionName field's value.
  50268. func (s *Region) SetRegionName(v string) *Region {
  50269. s.RegionName = &v
  50270. return s
  50271. }
  50272. // Contains the parameters for RegisterImage.
  50273. type RegisterImageInput struct {
  50274. _ struct{} `type:"structure"`
  50275. // The architecture of the AMI.
  50276. //
  50277. // Default: For Amazon EBS-backed AMIs, i386. For instance store-backed AMIs,
  50278. // the architecture specified in the manifest file.
  50279. Architecture *string `locationName:"architecture" type:"string" enum:"ArchitectureValues"`
  50280. // The billing product codes. Your account must be authorized to specify billing
  50281. // product codes. Otherwise, you can use the AWS Marketplace to bill for the
  50282. // use of an AMI.
  50283. BillingProducts []*string `locationName:"BillingProduct" locationNameList:"item" type:"list"`
  50284. // One or more block device mapping entries.
  50285. BlockDeviceMappings []*BlockDeviceMapping `locationName:"BlockDeviceMapping" locationNameList:"BlockDeviceMapping" type:"list"`
  50286. // A description for your AMI.
  50287. Description *string `locationName:"description" type:"string"`
  50288. // Checks whether you have the required permissions for the action, without
  50289. // actually making the request, and provides an error response. If you have
  50290. // the required permissions, the error response is DryRunOperation. Otherwise,
  50291. // it is UnauthorizedOperation.
  50292. DryRun *bool `locationName:"dryRun" type:"boolean"`
  50293. // Set to true to enable enhanced networking with ENA for the AMI and any instances
  50294. // that you launch from the AMI.
  50295. //
  50296. // This option is supported only for HVM AMIs. Specifying this option with a
  50297. // PV AMI can make instances launched from the AMI unreachable.
  50298. EnaSupport *bool `locationName:"enaSupport" type:"boolean"`
  50299. // The full path to your AMI manifest in Amazon S3 storage.
  50300. ImageLocation *string `type:"string"`
  50301. // The ID of the kernel.
  50302. KernelId *string `locationName:"kernelId" type:"string"`
  50303. // A name for your AMI.
  50304. //
  50305. // Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets
  50306. // ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('),
  50307. // at-signs (@), or underscores(_)
  50308. //
  50309. // Name is a required field
  50310. Name *string `locationName:"name" type:"string" required:"true"`
  50311. // The ID of the RAM disk.
  50312. RamdiskId *string `locationName:"ramdiskId" type:"string"`
  50313. // The device name of the root device volume (for example, /dev/sda1).
  50314. RootDeviceName *string `locationName:"rootDeviceName" type:"string"`
  50315. // Set to simple to enable enhanced networking with the Intel 82599 Virtual
  50316. // Function interface for the AMI and any instances that you launch from the
  50317. // AMI.
  50318. //
  50319. // There is no way to disable sriovNetSupport at this time.
  50320. //
  50321. // This option is supported only for HVM AMIs. Specifying this option with a
  50322. // PV AMI can make instances launched from the AMI unreachable.
  50323. SriovNetSupport *string `locationName:"sriovNetSupport" type:"string"`
  50324. // The type of virtualization (hvm | paravirtual).
  50325. //
  50326. // Default: paravirtual
  50327. VirtualizationType *string `locationName:"virtualizationType" type:"string"`
  50328. }
  50329. // String returns the string representation
  50330. func (s RegisterImageInput) String() string {
  50331. return awsutil.Prettify(s)
  50332. }
  50333. // GoString returns the string representation
  50334. func (s RegisterImageInput) GoString() string {
  50335. return s.String()
  50336. }
  50337. // Validate inspects the fields of the type to determine if they are valid.
  50338. func (s *RegisterImageInput) Validate() error {
  50339. invalidParams := request.ErrInvalidParams{Context: "RegisterImageInput"}
  50340. if s.Name == nil {
  50341. invalidParams.Add(request.NewErrParamRequired("Name"))
  50342. }
  50343. if invalidParams.Len() > 0 {
  50344. return invalidParams
  50345. }
  50346. return nil
  50347. }
  50348. // SetArchitecture sets the Architecture field's value.
  50349. func (s *RegisterImageInput) SetArchitecture(v string) *RegisterImageInput {
  50350. s.Architecture = &v
  50351. return s
  50352. }
  50353. // SetBillingProducts sets the BillingProducts field's value.
  50354. func (s *RegisterImageInput) SetBillingProducts(v []*string) *RegisterImageInput {
  50355. s.BillingProducts = v
  50356. return s
  50357. }
  50358. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  50359. func (s *RegisterImageInput) SetBlockDeviceMappings(v []*BlockDeviceMapping) *RegisterImageInput {
  50360. s.BlockDeviceMappings = v
  50361. return s
  50362. }
  50363. // SetDescription sets the Description field's value.
  50364. func (s *RegisterImageInput) SetDescription(v string) *RegisterImageInput {
  50365. s.Description = &v
  50366. return s
  50367. }
  50368. // SetDryRun sets the DryRun field's value.
  50369. func (s *RegisterImageInput) SetDryRun(v bool) *RegisterImageInput {
  50370. s.DryRun = &v
  50371. return s
  50372. }
  50373. // SetEnaSupport sets the EnaSupport field's value.
  50374. func (s *RegisterImageInput) SetEnaSupport(v bool) *RegisterImageInput {
  50375. s.EnaSupport = &v
  50376. return s
  50377. }
  50378. // SetImageLocation sets the ImageLocation field's value.
  50379. func (s *RegisterImageInput) SetImageLocation(v string) *RegisterImageInput {
  50380. s.ImageLocation = &v
  50381. return s
  50382. }
  50383. // SetKernelId sets the KernelId field's value.
  50384. func (s *RegisterImageInput) SetKernelId(v string) *RegisterImageInput {
  50385. s.KernelId = &v
  50386. return s
  50387. }
  50388. // SetName sets the Name field's value.
  50389. func (s *RegisterImageInput) SetName(v string) *RegisterImageInput {
  50390. s.Name = &v
  50391. return s
  50392. }
  50393. // SetRamdiskId sets the RamdiskId field's value.
  50394. func (s *RegisterImageInput) SetRamdiskId(v string) *RegisterImageInput {
  50395. s.RamdiskId = &v
  50396. return s
  50397. }
  50398. // SetRootDeviceName sets the RootDeviceName field's value.
  50399. func (s *RegisterImageInput) SetRootDeviceName(v string) *RegisterImageInput {
  50400. s.RootDeviceName = &v
  50401. return s
  50402. }
  50403. // SetSriovNetSupport sets the SriovNetSupport field's value.
  50404. func (s *RegisterImageInput) SetSriovNetSupport(v string) *RegisterImageInput {
  50405. s.SriovNetSupport = &v
  50406. return s
  50407. }
  50408. // SetVirtualizationType sets the VirtualizationType field's value.
  50409. func (s *RegisterImageInput) SetVirtualizationType(v string) *RegisterImageInput {
  50410. s.VirtualizationType = &v
  50411. return s
  50412. }
  50413. // Contains the output of RegisterImage.
  50414. type RegisterImageOutput struct {
  50415. _ struct{} `type:"structure"`
  50416. // The ID of the newly registered AMI.
  50417. ImageId *string `locationName:"imageId" type:"string"`
  50418. }
  50419. // String returns the string representation
  50420. func (s RegisterImageOutput) String() string {
  50421. return awsutil.Prettify(s)
  50422. }
  50423. // GoString returns the string representation
  50424. func (s RegisterImageOutput) GoString() string {
  50425. return s.String()
  50426. }
  50427. // SetImageId sets the ImageId field's value.
  50428. func (s *RegisterImageOutput) SetImageId(v string) *RegisterImageOutput {
  50429. s.ImageId = &v
  50430. return s
  50431. }
  50432. type RejectVpcEndpointConnectionsInput struct {
  50433. _ struct{} `type:"structure"`
  50434. // Checks whether you have the required permissions for the action, without
  50435. // actually making the request, and provides an error response. If you have
  50436. // the required permissions, the error response is DryRunOperation. Otherwise,
  50437. // it is UnauthorizedOperation.
  50438. DryRun *bool `type:"boolean"`
  50439. // The ID of the service.
  50440. //
  50441. // ServiceId is a required field
  50442. ServiceId *string `type:"string" required:"true"`
  50443. // The IDs of one or more VPC endpoints.
  50444. //
  50445. // VpcEndpointIds is a required field
  50446. VpcEndpointIds []*string `locationName:"VpcEndpointId" locationNameList:"item" type:"list" required:"true"`
  50447. }
  50448. // String returns the string representation
  50449. func (s RejectVpcEndpointConnectionsInput) String() string {
  50450. return awsutil.Prettify(s)
  50451. }
  50452. // GoString returns the string representation
  50453. func (s RejectVpcEndpointConnectionsInput) GoString() string {
  50454. return s.String()
  50455. }
  50456. // Validate inspects the fields of the type to determine if they are valid.
  50457. func (s *RejectVpcEndpointConnectionsInput) Validate() error {
  50458. invalidParams := request.ErrInvalidParams{Context: "RejectVpcEndpointConnectionsInput"}
  50459. if s.ServiceId == nil {
  50460. invalidParams.Add(request.NewErrParamRequired("ServiceId"))
  50461. }
  50462. if s.VpcEndpointIds == nil {
  50463. invalidParams.Add(request.NewErrParamRequired("VpcEndpointIds"))
  50464. }
  50465. if invalidParams.Len() > 0 {
  50466. return invalidParams
  50467. }
  50468. return nil
  50469. }
  50470. // SetDryRun sets the DryRun field's value.
  50471. func (s *RejectVpcEndpointConnectionsInput) SetDryRun(v bool) *RejectVpcEndpointConnectionsInput {
  50472. s.DryRun = &v
  50473. return s
  50474. }
  50475. // SetServiceId sets the ServiceId field's value.
  50476. func (s *RejectVpcEndpointConnectionsInput) SetServiceId(v string) *RejectVpcEndpointConnectionsInput {
  50477. s.ServiceId = &v
  50478. return s
  50479. }
  50480. // SetVpcEndpointIds sets the VpcEndpointIds field's value.
  50481. func (s *RejectVpcEndpointConnectionsInput) SetVpcEndpointIds(v []*string) *RejectVpcEndpointConnectionsInput {
  50482. s.VpcEndpointIds = v
  50483. return s
  50484. }
  50485. type RejectVpcEndpointConnectionsOutput struct {
  50486. _ struct{} `type:"structure"`
  50487. // Information about the endpoints that were not rejected, if applicable.
  50488. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  50489. }
  50490. // String returns the string representation
  50491. func (s RejectVpcEndpointConnectionsOutput) String() string {
  50492. return awsutil.Prettify(s)
  50493. }
  50494. // GoString returns the string representation
  50495. func (s RejectVpcEndpointConnectionsOutput) GoString() string {
  50496. return s.String()
  50497. }
  50498. // SetUnsuccessful sets the Unsuccessful field's value.
  50499. func (s *RejectVpcEndpointConnectionsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *RejectVpcEndpointConnectionsOutput {
  50500. s.Unsuccessful = v
  50501. return s
  50502. }
  50503. // Contains the parameters for RejectVpcPeeringConnection.
  50504. type RejectVpcPeeringConnectionInput struct {
  50505. _ struct{} `type:"structure"`
  50506. // Checks whether you have the required permissions for the action, without
  50507. // actually making the request, and provides an error response. If you have
  50508. // the required permissions, the error response is DryRunOperation. Otherwise,
  50509. // it is UnauthorizedOperation.
  50510. DryRun *bool `locationName:"dryRun" type:"boolean"`
  50511. // The ID of the VPC peering connection.
  50512. //
  50513. // VpcPeeringConnectionId is a required field
  50514. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string" required:"true"`
  50515. }
  50516. // String returns the string representation
  50517. func (s RejectVpcPeeringConnectionInput) String() string {
  50518. return awsutil.Prettify(s)
  50519. }
  50520. // GoString returns the string representation
  50521. func (s RejectVpcPeeringConnectionInput) GoString() string {
  50522. return s.String()
  50523. }
  50524. // Validate inspects the fields of the type to determine if they are valid.
  50525. func (s *RejectVpcPeeringConnectionInput) Validate() error {
  50526. invalidParams := request.ErrInvalidParams{Context: "RejectVpcPeeringConnectionInput"}
  50527. if s.VpcPeeringConnectionId == nil {
  50528. invalidParams.Add(request.NewErrParamRequired("VpcPeeringConnectionId"))
  50529. }
  50530. if invalidParams.Len() > 0 {
  50531. return invalidParams
  50532. }
  50533. return nil
  50534. }
  50535. // SetDryRun sets the DryRun field's value.
  50536. func (s *RejectVpcPeeringConnectionInput) SetDryRun(v bool) *RejectVpcPeeringConnectionInput {
  50537. s.DryRun = &v
  50538. return s
  50539. }
  50540. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  50541. func (s *RejectVpcPeeringConnectionInput) SetVpcPeeringConnectionId(v string) *RejectVpcPeeringConnectionInput {
  50542. s.VpcPeeringConnectionId = &v
  50543. return s
  50544. }
  50545. // Contains the output of RejectVpcPeeringConnection.
  50546. type RejectVpcPeeringConnectionOutput struct {
  50547. _ struct{} `type:"structure"`
  50548. // Returns true if the request succeeds; otherwise, it returns an error.
  50549. Return *bool `locationName:"return" type:"boolean"`
  50550. }
  50551. // String returns the string representation
  50552. func (s RejectVpcPeeringConnectionOutput) String() string {
  50553. return awsutil.Prettify(s)
  50554. }
  50555. // GoString returns the string representation
  50556. func (s RejectVpcPeeringConnectionOutput) GoString() string {
  50557. return s.String()
  50558. }
  50559. // SetReturn sets the Return field's value.
  50560. func (s *RejectVpcPeeringConnectionOutput) SetReturn(v bool) *RejectVpcPeeringConnectionOutput {
  50561. s.Return = &v
  50562. return s
  50563. }
  50564. // Contains the parameters for ReleaseAddress.
  50565. type ReleaseAddressInput struct {
  50566. _ struct{} `type:"structure"`
  50567. // [EC2-VPC] The allocation ID. Required for EC2-VPC.
  50568. AllocationId *string `type:"string"`
  50569. // Checks whether you have the required permissions for the action, without
  50570. // actually making the request, and provides an error response. If you have
  50571. // the required permissions, the error response is DryRunOperation. Otherwise,
  50572. // it is UnauthorizedOperation.
  50573. DryRun *bool `locationName:"dryRun" type:"boolean"`
  50574. // [EC2-Classic] The Elastic IP address. Required for EC2-Classic.
  50575. PublicIp *string `type:"string"`
  50576. }
  50577. // String returns the string representation
  50578. func (s ReleaseAddressInput) String() string {
  50579. return awsutil.Prettify(s)
  50580. }
  50581. // GoString returns the string representation
  50582. func (s ReleaseAddressInput) GoString() string {
  50583. return s.String()
  50584. }
  50585. // SetAllocationId sets the AllocationId field's value.
  50586. func (s *ReleaseAddressInput) SetAllocationId(v string) *ReleaseAddressInput {
  50587. s.AllocationId = &v
  50588. return s
  50589. }
  50590. // SetDryRun sets the DryRun field's value.
  50591. func (s *ReleaseAddressInput) SetDryRun(v bool) *ReleaseAddressInput {
  50592. s.DryRun = &v
  50593. return s
  50594. }
  50595. // SetPublicIp sets the PublicIp field's value.
  50596. func (s *ReleaseAddressInput) SetPublicIp(v string) *ReleaseAddressInput {
  50597. s.PublicIp = &v
  50598. return s
  50599. }
  50600. type ReleaseAddressOutput struct {
  50601. _ struct{} `type:"structure"`
  50602. }
  50603. // String returns the string representation
  50604. func (s ReleaseAddressOutput) String() string {
  50605. return awsutil.Prettify(s)
  50606. }
  50607. // GoString returns the string representation
  50608. func (s ReleaseAddressOutput) GoString() string {
  50609. return s.String()
  50610. }
  50611. // Contains the parameters for ReleaseHosts.
  50612. type ReleaseHostsInput struct {
  50613. _ struct{} `type:"structure"`
  50614. // The IDs of the Dedicated Hosts you want to release.
  50615. //
  50616. // HostIds is a required field
  50617. HostIds []*string `locationName:"hostId" locationNameList:"item" type:"list" required:"true"`
  50618. }
  50619. // String returns the string representation
  50620. func (s ReleaseHostsInput) String() string {
  50621. return awsutil.Prettify(s)
  50622. }
  50623. // GoString returns the string representation
  50624. func (s ReleaseHostsInput) GoString() string {
  50625. return s.String()
  50626. }
  50627. // Validate inspects the fields of the type to determine if they are valid.
  50628. func (s *ReleaseHostsInput) Validate() error {
  50629. invalidParams := request.ErrInvalidParams{Context: "ReleaseHostsInput"}
  50630. if s.HostIds == nil {
  50631. invalidParams.Add(request.NewErrParamRequired("HostIds"))
  50632. }
  50633. if invalidParams.Len() > 0 {
  50634. return invalidParams
  50635. }
  50636. return nil
  50637. }
  50638. // SetHostIds sets the HostIds field's value.
  50639. func (s *ReleaseHostsInput) SetHostIds(v []*string) *ReleaseHostsInput {
  50640. s.HostIds = v
  50641. return s
  50642. }
  50643. // Contains the output of ReleaseHosts.
  50644. type ReleaseHostsOutput struct {
  50645. _ struct{} `type:"structure"`
  50646. // The IDs of the Dedicated Hosts that were successfully released.
  50647. Successful []*string `locationName:"successful" locationNameList:"item" type:"list"`
  50648. // The IDs of the Dedicated Hosts that could not be released, including an error
  50649. // message.
  50650. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  50651. }
  50652. // String returns the string representation
  50653. func (s ReleaseHostsOutput) String() string {
  50654. return awsutil.Prettify(s)
  50655. }
  50656. // GoString returns the string representation
  50657. func (s ReleaseHostsOutput) GoString() string {
  50658. return s.String()
  50659. }
  50660. // SetSuccessful sets the Successful field's value.
  50661. func (s *ReleaseHostsOutput) SetSuccessful(v []*string) *ReleaseHostsOutput {
  50662. s.Successful = v
  50663. return s
  50664. }
  50665. // SetUnsuccessful sets the Unsuccessful field's value.
  50666. func (s *ReleaseHostsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *ReleaseHostsOutput {
  50667. s.Unsuccessful = v
  50668. return s
  50669. }
  50670. type ReplaceIamInstanceProfileAssociationInput struct {
  50671. _ struct{} `type:"structure"`
  50672. // The ID of the existing IAM instance profile association.
  50673. //
  50674. // AssociationId is a required field
  50675. AssociationId *string `type:"string" required:"true"`
  50676. // The IAM instance profile.
  50677. //
  50678. // IamInstanceProfile is a required field
  50679. IamInstanceProfile *IamInstanceProfileSpecification `type:"structure" required:"true"`
  50680. }
  50681. // String returns the string representation
  50682. func (s ReplaceIamInstanceProfileAssociationInput) String() string {
  50683. return awsutil.Prettify(s)
  50684. }
  50685. // GoString returns the string representation
  50686. func (s ReplaceIamInstanceProfileAssociationInput) GoString() string {
  50687. return s.String()
  50688. }
  50689. // Validate inspects the fields of the type to determine if they are valid.
  50690. func (s *ReplaceIamInstanceProfileAssociationInput) Validate() error {
  50691. invalidParams := request.ErrInvalidParams{Context: "ReplaceIamInstanceProfileAssociationInput"}
  50692. if s.AssociationId == nil {
  50693. invalidParams.Add(request.NewErrParamRequired("AssociationId"))
  50694. }
  50695. if s.IamInstanceProfile == nil {
  50696. invalidParams.Add(request.NewErrParamRequired("IamInstanceProfile"))
  50697. }
  50698. if invalidParams.Len() > 0 {
  50699. return invalidParams
  50700. }
  50701. return nil
  50702. }
  50703. // SetAssociationId sets the AssociationId field's value.
  50704. func (s *ReplaceIamInstanceProfileAssociationInput) SetAssociationId(v string) *ReplaceIamInstanceProfileAssociationInput {
  50705. s.AssociationId = &v
  50706. return s
  50707. }
  50708. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  50709. func (s *ReplaceIamInstanceProfileAssociationInput) SetIamInstanceProfile(v *IamInstanceProfileSpecification) *ReplaceIamInstanceProfileAssociationInput {
  50710. s.IamInstanceProfile = v
  50711. return s
  50712. }
  50713. type ReplaceIamInstanceProfileAssociationOutput struct {
  50714. _ struct{} `type:"structure"`
  50715. // Information about the IAM instance profile association.
  50716. IamInstanceProfileAssociation *IamInstanceProfileAssociation `locationName:"iamInstanceProfileAssociation" type:"structure"`
  50717. }
  50718. // String returns the string representation
  50719. func (s ReplaceIamInstanceProfileAssociationOutput) String() string {
  50720. return awsutil.Prettify(s)
  50721. }
  50722. // GoString returns the string representation
  50723. func (s ReplaceIamInstanceProfileAssociationOutput) GoString() string {
  50724. return s.String()
  50725. }
  50726. // SetIamInstanceProfileAssociation sets the IamInstanceProfileAssociation field's value.
  50727. func (s *ReplaceIamInstanceProfileAssociationOutput) SetIamInstanceProfileAssociation(v *IamInstanceProfileAssociation) *ReplaceIamInstanceProfileAssociationOutput {
  50728. s.IamInstanceProfileAssociation = v
  50729. return s
  50730. }
  50731. // Contains the parameters for ReplaceNetworkAclAssociation.
  50732. type ReplaceNetworkAclAssociationInput struct {
  50733. _ struct{} `type:"structure"`
  50734. // The ID of the current association between the original network ACL and the
  50735. // subnet.
  50736. //
  50737. // AssociationId is a required field
  50738. AssociationId *string `locationName:"associationId" type:"string" required:"true"`
  50739. // Checks whether you have the required permissions for the action, without
  50740. // actually making the request, and provides an error response. If you have
  50741. // the required permissions, the error response is DryRunOperation. Otherwise,
  50742. // it is UnauthorizedOperation.
  50743. DryRun *bool `locationName:"dryRun" type:"boolean"`
  50744. // The ID of the new network ACL to associate with the subnet.
  50745. //
  50746. // NetworkAclId is a required field
  50747. NetworkAclId *string `locationName:"networkAclId" type:"string" required:"true"`
  50748. }
  50749. // String returns the string representation
  50750. func (s ReplaceNetworkAclAssociationInput) String() string {
  50751. return awsutil.Prettify(s)
  50752. }
  50753. // GoString returns the string representation
  50754. func (s ReplaceNetworkAclAssociationInput) GoString() string {
  50755. return s.String()
  50756. }
  50757. // Validate inspects the fields of the type to determine if they are valid.
  50758. func (s *ReplaceNetworkAclAssociationInput) Validate() error {
  50759. invalidParams := request.ErrInvalidParams{Context: "ReplaceNetworkAclAssociationInput"}
  50760. if s.AssociationId == nil {
  50761. invalidParams.Add(request.NewErrParamRequired("AssociationId"))
  50762. }
  50763. if s.NetworkAclId == nil {
  50764. invalidParams.Add(request.NewErrParamRequired("NetworkAclId"))
  50765. }
  50766. if invalidParams.Len() > 0 {
  50767. return invalidParams
  50768. }
  50769. return nil
  50770. }
  50771. // SetAssociationId sets the AssociationId field's value.
  50772. func (s *ReplaceNetworkAclAssociationInput) SetAssociationId(v string) *ReplaceNetworkAclAssociationInput {
  50773. s.AssociationId = &v
  50774. return s
  50775. }
  50776. // SetDryRun sets the DryRun field's value.
  50777. func (s *ReplaceNetworkAclAssociationInput) SetDryRun(v bool) *ReplaceNetworkAclAssociationInput {
  50778. s.DryRun = &v
  50779. return s
  50780. }
  50781. // SetNetworkAclId sets the NetworkAclId field's value.
  50782. func (s *ReplaceNetworkAclAssociationInput) SetNetworkAclId(v string) *ReplaceNetworkAclAssociationInput {
  50783. s.NetworkAclId = &v
  50784. return s
  50785. }
  50786. // Contains the output of ReplaceNetworkAclAssociation.
  50787. type ReplaceNetworkAclAssociationOutput struct {
  50788. _ struct{} `type:"structure"`
  50789. // The ID of the new association.
  50790. NewAssociationId *string `locationName:"newAssociationId" type:"string"`
  50791. }
  50792. // String returns the string representation
  50793. func (s ReplaceNetworkAclAssociationOutput) String() string {
  50794. return awsutil.Prettify(s)
  50795. }
  50796. // GoString returns the string representation
  50797. func (s ReplaceNetworkAclAssociationOutput) GoString() string {
  50798. return s.String()
  50799. }
  50800. // SetNewAssociationId sets the NewAssociationId field's value.
  50801. func (s *ReplaceNetworkAclAssociationOutput) SetNewAssociationId(v string) *ReplaceNetworkAclAssociationOutput {
  50802. s.NewAssociationId = &v
  50803. return s
  50804. }
  50805. // Contains the parameters for ReplaceNetworkAclEntry.
  50806. type ReplaceNetworkAclEntryInput struct {
  50807. _ struct{} `type:"structure"`
  50808. // The IPv4 network range to allow or deny, in CIDR notation (for example 172.16.0.0/24).
  50809. CidrBlock *string `locationName:"cidrBlock" type:"string"`
  50810. // Checks whether you have the required permissions for the action, without
  50811. // actually making the request, and provides an error response. If you have
  50812. // the required permissions, the error response is DryRunOperation. Otherwise,
  50813. // it is UnauthorizedOperation.
  50814. DryRun *bool `locationName:"dryRun" type:"boolean"`
  50815. // Indicates whether to replace the egress rule.
  50816. //
  50817. // Default: If no value is specified, we replace the ingress rule.
  50818. //
  50819. // Egress is a required field
  50820. Egress *bool `locationName:"egress" type:"boolean" required:"true"`
  50821. // ICMP protocol: The ICMP or ICMPv6 type and code. Required if specifying the
  50822. // ICMP (1) protocol, or protocol 58 (ICMPv6) with an IPv6 CIDR block.
  50823. IcmpTypeCode *IcmpTypeCode `locationName:"Icmp" type:"structure"`
  50824. // The IPv6 network range to allow or deny, in CIDR notation (for example 2001:bd8:1234:1a00::/64).
  50825. Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"`
  50826. // The ID of the ACL.
  50827. //
  50828. // NetworkAclId is a required field
  50829. NetworkAclId *string `locationName:"networkAclId" type:"string" required:"true"`
  50830. // TCP or UDP protocols: The range of ports the rule applies to. Required if
  50831. // specifying TCP (6) or UDP (17) for the protocol.
  50832. PortRange *PortRange `locationName:"portRange" type:"structure"`
  50833. // The IP protocol. You can specify all or -1 to mean all protocols. If you
  50834. // specify all, -1, or a protocol number other than tcp, udp, or icmp, traffic
  50835. // on all ports is allowed, regardless of any ports or ICMP types or codes you
  50836. // specify. If you specify protocol 58 (ICMPv6) and specify an IPv4 CIDR block,
  50837. // traffic for all ICMP types and codes allowed, regardless of any that you
  50838. // specify. If you specify protocol 58 (ICMPv6) and specify an IPv6 CIDR block,
  50839. // you must specify an ICMP type and code.
  50840. //
  50841. // Protocol is a required field
  50842. Protocol *string `locationName:"protocol" type:"string" required:"true"`
  50843. // Indicates whether to allow or deny the traffic that matches the rule.
  50844. //
  50845. // RuleAction is a required field
  50846. RuleAction *string `locationName:"ruleAction" type:"string" required:"true" enum:"RuleAction"`
  50847. // The rule number of the entry to replace.
  50848. //
  50849. // RuleNumber is a required field
  50850. RuleNumber *int64 `locationName:"ruleNumber" type:"integer" required:"true"`
  50851. }
  50852. // String returns the string representation
  50853. func (s ReplaceNetworkAclEntryInput) String() string {
  50854. return awsutil.Prettify(s)
  50855. }
  50856. // GoString returns the string representation
  50857. func (s ReplaceNetworkAclEntryInput) GoString() string {
  50858. return s.String()
  50859. }
  50860. // Validate inspects the fields of the type to determine if they are valid.
  50861. func (s *ReplaceNetworkAclEntryInput) Validate() error {
  50862. invalidParams := request.ErrInvalidParams{Context: "ReplaceNetworkAclEntryInput"}
  50863. if s.Egress == nil {
  50864. invalidParams.Add(request.NewErrParamRequired("Egress"))
  50865. }
  50866. if s.NetworkAclId == nil {
  50867. invalidParams.Add(request.NewErrParamRequired("NetworkAclId"))
  50868. }
  50869. if s.Protocol == nil {
  50870. invalidParams.Add(request.NewErrParamRequired("Protocol"))
  50871. }
  50872. if s.RuleAction == nil {
  50873. invalidParams.Add(request.NewErrParamRequired("RuleAction"))
  50874. }
  50875. if s.RuleNumber == nil {
  50876. invalidParams.Add(request.NewErrParamRequired("RuleNumber"))
  50877. }
  50878. if invalidParams.Len() > 0 {
  50879. return invalidParams
  50880. }
  50881. return nil
  50882. }
  50883. // SetCidrBlock sets the CidrBlock field's value.
  50884. func (s *ReplaceNetworkAclEntryInput) SetCidrBlock(v string) *ReplaceNetworkAclEntryInput {
  50885. s.CidrBlock = &v
  50886. return s
  50887. }
  50888. // SetDryRun sets the DryRun field's value.
  50889. func (s *ReplaceNetworkAclEntryInput) SetDryRun(v bool) *ReplaceNetworkAclEntryInput {
  50890. s.DryRun = &v
  50891. return s
  50892. }
  50893. // SetEgress sets the Egress field's value.
  50894. func (s *ReplaceNetworkAclEntryInput) SetEgress(v bool) *ReplaceNetworkAclEntryInput {
  50895. s.Egress = &v
  50896. return s
  50897. }
  50898. // SetIcmpTypeCode sets the IcmpTypeCode field's value.
  50899. func (s *ReplaceNetworkAclEntryInput) SetIcmpTypeCode(v *IcmpTypeCode) *ReplaceNetworkAclEntryInput {
  50900. s.IcmpTypeCode = v
  50901. return s
  50902. }
  50903. // SetIpv6CidrBlock sets the Ipv6CidrBlock field's value.
  50904. func (s *ReplaceNetworkAclEntryInput) SetIpv6CidrBlock(v string) *ReplaceNetworkAclEntryInput {
  50905. s.Ipv6CidrBlock = &v
  50906. return s
  50907. }
  50908. // SetNetworkAclId sets the NetworkAclId field's value.
  50909. func (s *ReplaceNetworkAclEntryInput) SetNetworkAclId(v string) *ReplaceNetworkAclEntryInput {
  50910. s.NetworkAclId = &v
  50911. return s
  50912. }
  50913. // SetPortRange sets the PortRange field's value.
  50914. func (s *ReplaceNetworkAclEntryInput) SetPortRange(v *PortRange) *ReplaceNetworkAclEntryInput {
  50915. s.PortRange = v
  50916. return s
  50917. }
  50918. // SetProtocol sets the Protocol field's value.
  50919. func (s *ReplaceNetworkAclEntryInput) SetProtocol(v string) *ReplaceNetworkAclEntryInput {
  50920. s.Protocol = &v
  50921. return s
  50922. }
  50923. // SetRuleAction sets the RuleAction field's value.
  50924. func (s *ReplaceNetworkAclEntryInput) SetRuleAction(v string) *ReplaceNetworkAclEntryInput {
  50925. s.RuleAction = &v
  50926. return s
  50927. }
  50928. // SetRuleNumber sets the RuleNumber field's value.
  50929. func (s *ReplaceNetworkAclEntryInput) SetRuleNumber(v int64) *ReplaceNetworkAclEntryInput {
  50930. s.RuleNumber = &v
  50931. return s
  50932. }
  50933. type ReplaceNetworkAclEntryOutput struct {
  50934. _ struct{} `type:"structure"`
  50935. }
  50936. // String returns the string representation
  50937. func (s ReplaceNetworkAclEntryOutput) String() string {
  50938. return awsutil.Prettify(s)
  50939. }
  50940. // GoString returns the string representation
  50941. func (s ReplaceNetworkAclEntryOutput) GoString() string {
  50942. return s.String()
  50943. }
  50944. // Contains the parameters for ReplaceRoute.
  50945. type ReplaceRouteInput struct {
  50946. _ struct{} `type:"structure"`
  50947. // The IPv4 CIDR address block used for the destination match. The value you
  50948. // provide must match the CIDR of an existing route in the table.
  50949. DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"`
  50950. // The IPv6 CIDR address block used for the destination match. The value you
  50951. // provide must match the CIDR of an existing route in the table.
  50952. DestinationIpv6CidrBlock *string `locationName:"destinationIpv6CidrBlock" type:"string"`
  50953. // Checks whether you have the required permissions for the action, without
  50954. // actually making the request, and provides an error response. If you have
  50955. // the required permissions, the error response is DryRunOperation. Otherwise,
  50956. // it is UnauthorizedOperation.
  50957. DryRun *bool `locationName:"dryRun" type:"boolean"`
  50958. // [IPv6 traffic only] The ID of an egress-only Internet gateway.
  50959. EgressOnlyInternetGatewayId *string `locationName:"egressOnlyInternetGatewayId" type:"string"`
  50960. // The ID of an Internet gateway or virtual private gateway.
  50961. GatewayId *string `locationName:"gatewayId" type:"string"`
  50962. // The ID of a NAT instance in your VPC.
  50963. InstanceId *string `locationName:"instanceId" type:"string"`
  50964. // [IPv4 traffic only] The ID of a NAT gateway.
  50965. NatGatewayId *string `locationName:"natGatewayId" type:"string"`
  50966. // The ID of a network interface.
  50967. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  50968. // The ID of the route table.
  50969. //
  50970. // RouteTableId is a required field
  50971. RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"`
  50972. // The ID of a VPC peering connection.
  50973. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
  50974. }
  50975. // String returns the string representation
  50976. func (s ReplaceRouteInput) String() string {
  50977. return awsutil.Prettify(s)
  50978. }
  50979. // GoString returns the string representation
  50980. func (s ReplaceRouteInput) GoString() string {
  50981. return s.String()
  50982. }
  50983. // Validate inspects the fields of the type to determine if they are valid.
  50984. func (s *ReplaceRouteInput) Validate() error {
  50985. invalidParams := request.ErrInvalidParams{Context: "ReplaceRouteInput"}
  50986. if s.RouteTableId == nil {
  50987. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  50988. }
  50989. if invalidParams.Len() > 0 {
  50990. return invalidParams
  50991. }
  50992. return nil
  50993. }
  50994. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  50995. func (s *ReplaceRouteInput) SetDestinationCidrBlock(v string) *ReplaceRouteInput {
  50996. s.DestinationCidrBlock = &v
  50997. return s
  50998. }
  50999. // SetDestinationIpv6CidrBlock sets the DestinationIpv6CidrBlock field's value.
  51000. func (s *ReplaceRouteInput) SetDestinationIpv6CidrBlock(v string) *ReplaceRouteInput {
  51001. s.DestinationIpv6CidrBlock = &v
  51002. return s
  51003. }
  51004. // SetDryRun sets the DryRun field's value.
  51005. func (s *ReplaceRouteInput) SetDryRun(v bool) *ReplaceRouteInput {
  51006. s.DryRun = &v
  51007. return s
  51008. }
  51009. // SetEgressOnlyInternetGatewayId sets the EgressOnlyInternetGatewayId field's value.
  51010. func (s *ReplaceRouteInput) SetEgressOnlyInternetGatewayId(v string) *ReplaceRouteInput {
  51011. s.EgressOnlyInternetGatewayId = &v
  51012. return s
  51013. }
  51014. // SetGatewayId sets the GatewayId field's value.
  51015. func (s *ReplaceRouteInput) SetGatewayId(v string) *ReplaceRouteInput {
  51016. s.GatewayId = &v
  51017. return s
  51018. }
  51019. // SetInstanceId sets the InstanceId field's value.
  51020. func (s *ReplaceRouteInput) SetInstanceId(v string) *ReplaceRouteInput {
  51021. s.InstanceId = &v
  51022. return s
  51023. }
  51024. // SetNatGatewayId sets the NatGatewayId field's value.
  51025. func (s *ReplaceRouteInput) SetNatGatewayId(v string) *ReplaceRouteInput {
  51026. s.NatGatewayId = &v
  51027. return s
  51028. }
  51029. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  51030. func (s *ReplaceRouteInput) SetNetworkInterfaceId(v string) *ReplaceRouteInput {
  51031. s.NetworkInterfaceId = &v
  51032. return s
  51033. }
  51034. // SetRouteTableId sets the RouteTableId field's value.
  51035. func (s *ReplaceRouteInput) SetRouteTableId(v string) *ReplaceRouteInput {
  51036. s.RouteTableId = &v
  51037. return s
  51038. }
  51039. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  51040. func (s *ReplaceRouteInput) SetVpcPeeringConnectionId(v string) *ReplaceRouteInput {
  51041. s.VpcPeeringConnectionId = &v
  51042. return s
  51043. }
  51044. type ReplaceRouteOutput struct {
  51045. _ struct{} `type:"structure"`
  51046. }
  51047. // String returns the string representation
  51048. func (s ReplaceRouteOutput) String() string {
  51049. return awsutil.Prettify(s)
  51050. }
  51051. // GoString returns the string representation
  51052. func (s ReplaceRouteOutput) GoString() string {
  51053. return s.String()
  51054. }
  51055. // Contains the parameters for ReplaceRouteTableAssociation.
  51056. type ReplaceRouteTableAssociationInput struct {
  51057. _ struct{} `type:"structure"`
  51058. // The association ID.
  51059. //
  51060. // AssociationId is a required field
  51061. AssociationId *string `locationName:"associationId" type:"string" required:"true"`
  51062. // Checks whether you have the required permissions for the action, without
  51063. // actually making the request, and provides an error response. If you have
  51064. // the required permissions, the error response is DryRunOperation. Otherwise,
  51065. // it is UnauthorizedOperation.
  51066. DryRun *bool `locationName:"dryRun" type:"boolean"`
  51067. // The ID of the new route table to associate with the subnet.
  51068. //
  51069. // RouteTableId is a required field
  51070. RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"`
  51071. }
  51072. // String returns the string representation
  51073. func (s ReplaceRouteTableAssociationInput) String() string {
  51074. return awsutil.Prettify(s)
  51075. }
  51076. // GoString returns the string representation
  51077. func (s ReplaceRouteTableAssociationInput) GoString() string {
  51078. return s.String()
  51079. }
  51080. // Validate inspects the fields of the type to determine if they are valid.
  51081. func (s *ReplaceRouteTableAssociationInput) Validate() error {
  51082. invalidParams := request.ErrInvalidParams{Context: "ReplaceRouteTableAssociationInput"}
  51083. if s.AssociationId == nil {
  51084. invalidParams.Add(request.NewErrParamRequired("AssociationId"))
  51085. }
  51086. if s.RouteTableId == nil {
  51087. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  51088. }
  51089. if invalidParams.Len() > 0 {
  51090. return invalidParams
  51091. }
  51092. return nil
  51093. }
  51094. // SetAssociationId sets the AssociationId field's value.
  51095. func (s *ReplaceRouteTableAssociationInput) SetAssociationId(v string) *ReplaceRouteTableAssociationInput {
  51096. s.AssociationId = &v
  51097. return s
  51098. }
  51099. // SetDryRun sets the DryRun field's value.
  51100. func (s *ReplaceRouteTableAssociationInput) SetDryRun(v bool) *ReplaceRouteTableAssociationInput {
  51101. s.DryRun = &v
  51102. return s
  51103. }
  51104. // SetRouteTableId sets the RouteTableId field's value.
  51105. func (s *ReplaceRouteTableAssociationInput) SetRouteTableId(v string) *ReplaceRouteTableAssociationInput {
  51106. s.RouteTableId = &v
  51107. return s
  51108. }
  51109. // Contains the output of ReplaceRouteTableAssociation.
  51110. type ReplaceRouteTableAssociationOutput struct {
  51111. _ struct{} `type:"structure"`
  51112. // The ID of the new association.
  51113. NewAssociationId *string `locationName:"newAssociationId" type:"string"`
  51114. }
  51115. // String returns the string representation
  51116. func (s ReplaceRouteTableAssociationOutput) String() string {
  51117. return awsutil.Prettify(s)
  51118. }
  51119. // GoString returns the string representation
  51120. func (s ReplaceRouteTableAssociationOutput) GoString() string {
  51121. return s.String()
  51122. }
  51123. // SetNewAssociationId sets the NewAssociationId field's value.
  51124. func (s *ReplaceRouteTableAssociationOutput) SetNewAssociationId(v string) *ReplaceRouteTableAssociationOutput {
  51125. s.NewAssociationId = &v
  51126. return s
  51127. }
  51128. // Contains the parameters for ReportInstanceStatus.
  51129. type ReportInstanceStatusInput struct {
  51130. _ struct{} `type:"structure"`
  51131. // Descriptive text about the health state of your instance.
  51132. Description *string `locationName:"description" type:"string"`
  51133. // Checks whether you have the required permissions for the action, without
  51134. // actually making the request, and provides an error response. If you have
  51135. // the required permissions, the error response is DryRunOperation. Otherwise,
  51136. // it is UnauthorizedOperation.
  51137. DryRun *bool `locationName:"dryRun" type:"boolean"`
  51138. // The time at which the reported instance health state ended.
  51139. EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"iso8601"`
  51140. // One or more instances.
  51141. //
  51142. // Instances is a required field
  51143. Instances []*string `locationName:"instanceId" locationNameList:"InstanceId" type:"list" required:"true"`
  51144. // One or more reason codes that describe the health state of your instance.
  51145. //
  51146. // * instance-stuck-in-state: My instance is stuck in a state.
  51147. //
  51148. // * unresponsive: My instance is unresponsive.
  51149. //
  51150. // * not-accepting-credentials: My instance is not accepting my credentials.
  51151. //
  51152. // * password-not-available: A password is not available for my instance.
  51153. //
  51154. // * performance-network: My instance is experiencing performance problems
  51155. // that I believe are network related.
  51156. //
  51157. // * performance-instance-store: My instance is experiencing performance
  51158. // problems that I believe are related to the instance stores.
  51159. //
  51160. // * performance-ebs-volume: My instance is experiencing performance problems
  51161. // that I believe are related to an EBS volume.
  51162. //
  51163. // * performance-other: My instance is experiencing performance problems.
  51164. //
  51165. // * other: [explain using the description parameter]
  51166. //
  51167. // ReasonCodes is a required field
  51168. ReasonCodes []*string `locationName:"reasonCode" locationNameList:"item" type:"list" required:"true"`
  51169. // The time at which the reported instance health state began.
  51170. StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601"`
  51171. // The status of all instances listed.
  51172. //
  51173. // Status is a required field
  51174. Status *string `locationName:"status" type:"string" required:"true" enum:"ReportStatusType"`
  51175. }
  51176. // String returns the string representation
  51177. func (s ReportInstanceStatusInput) String() string {
  51178. return awsutil.Prettify(s)
  51179. }
  51180. // GoString returns the string representation
  51181. func (s ReportInstanceStatusInput) GoString() string {
  51182. return s.String()
  51183. }
  51184. // Validate inspects the fields of the type to determine if they are valid.
  51185. func (s *ReportInstanceStatusInput) Validate() error {
  51186. invalidParams := request.ErrInvalidParams{Context: "ReportInstanceStatusInput"}
  51187. if s.Instances == nil {
  51188. invalidParams.Add(request.NewErrParamRequired("Instances"))
  51189. }
  51190. if s.ReasonCodes == nil {
  51191. invalidParams.Add(request.NewErrParamRequired("ReasonCodes"))
  51192. }
  51193. if s.Status == nil {
  51194. invalidParams.Add(request.NewErrParamRequired("Status"))
  51195. }
  51196. if invalidParams.Len() > 0 {
  51197. return invalidParams
  51198. }
  51199. return nil
  51200. }
  51201. // SetDescription sets the Description field's value.
  51202. func (s *ReportInstanceStatusInput) SetDescription(v string) *ReportInstanceStatusInput {
  51203. s.Description = &v
  51204. return s
  51205. }
  51206. // SetDryRun sets the DryRun field's value.
  51207. func (s *ReportInstanceStatusInput) SetDryRun(v bool) *ReportInstanceStatusInput {
  51208. s.DryRun = &v
  51209. return s
  51210. }
  51211. // SetEndTime sets the EndTime field's value.
  51212. func (s *ReportInstanceStatusInput) SetEndTime(v time.Time) *ReportInstanceStatusInput {
  51213. s.EndTime = &v
  51214. return s
  51215. }
  51216. // SetInstances sets the Instances field's value.
  51217. func (s *ReportInstanceStatusInput) SetInstances(v []*string) *ReportInstanceStatusInput {
  51218. s.Instances = v
  51219. return s
  51220. }
  51221. // SetReasonCodes sets the ReasonCodes field's value.
  51222. func (s *ReportInstanceStatusInput) SetReasonCodes(v []*string) *ReportInstanceStatusInput {
  51223. s.ReasonCodes = v
  51224. return s
  51225. }
  51226. // SetStartTime sets the StartTime field's value.
  51227. func (s *ReportInstanceStatusInput) SetStartTime(v time.Time) *ReportInstanceStatusInput {
  51228. s.StartTime = &v
  51229. return s
  51230. }
  51231. // SetStatus sets the Status field's value.
  51232. func (s *ReportInstanceStatusInput) SetStatus(v string) *ReportInstanceStatusInput {
  51233. s.Status = &v
  51234. return s
  51235. }
  51236. type ReportInstanceStatusOutput struct {
  51237. _ struct{} `type:"structure"`
  51238. }
  51239. // String returns the string representation
  51240. func (s ReportInstanceStatusOutput) String() string {
  51241. return awsutil.Prettify(s)
  51242. }
  51243. // GoString returns the string representation
  51244. func (s ReportInstanceStatusOutput) GoString() string {
  51245. return s.String()
  51246. }
  51247. // The information to include in the launch template.
  51248. type RequestLaunchTemplateData struct {
  51249. _ struct{} `type:"structure"`
  51250. // The block device mapping.
  51251. //
  51252. // Supplying both a snapshot ID and an encryption value as arguments for block-device
  51253. // mapping results in an error. This is because only blank volumes can be encrypted
  51254. // on start, and these are not created from a snapshot. If a snapshot is the
  51255. // basis for the volume, it contains data by definition and its encryption status
  51256. // cannot be changed using this action.
  51257. BlockDeviceMappings []*LaunchTemplateBlockDeviceMappingRequest `locationName:"BlockDeviceMapping" locationNameList:"BlockDeviceMapping" type:"list"`
  51258. // The credit option for CPU usage of the instance. Valid for T2 instances only.
  51259. CreditSpecification *CreditSpecificationRequest `type:"structure"`
  51260. // If set to true, you can't terminate the instance using the Amazon EC2 console,
  51261. // CLI, or API. To change this attribute to false after launch, use ModifyInstanceAttribute.
  51262. DisableApiTermination *bool `type:"boolean"`
  51263. // Indicates whether the instance is optimized for Amazon EBS I/O. This optimization
  51264. // provides dedicated throughput to Amazon EBS and an optimized configuration
  51265. // stack to provide optimal Amazon EBS I/O performance. This optimization isn't
  51266. // available with all instance types. Additional usage charges apply when using
  51267. // an EBS-optimized instance.
  51268. EbsOptimized *bool `type:"boolean"`
  51269. // An elastic GPU to associate with the instance.
  51270. ElasticGpuSpecifications []*ElasticGpuSpecification `locationName:"ElasticGpuSpecification" locationNameList:"ElasticGpuSpecification" type:"list"`
  51271. // The IAM instance profile.
  51272. IamInstanceProfile *LaunchTemplateIamInstanceProfileSpecificationRequest `type:"structure"`
  51273. // The ID of the AMI, which you can get by using DescribeImages.
  51274. ImageId *string `type:"string"`
  51275. // Indicates whether an instance stops or terminates when you initiate shutdown
  51276. // from the instance (using the operating system command for system shutdown).
  51277. //
  51278. // Default: stop
  51279. InstanceInitiatedShutdownBehavior *string `type:"string" enum:"ShutdownBehavior"`
  51280. // The market (purchasing) option for the instances.
  51281. InstanceMarketOptions *LaunchTemplateInstanceMarketOptionsRequest `type:"structure"`
  51282. // The instance type. For more information, see Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html)
  51283. // in the Amazon Elastic Compute Cloud User Guide.
  51284. InstanceType *string `type:"string" enum:"InstanceType"`
  51285. // The ID of the kernel.
  51286. //
  51287. // We recommend that you use PV-GRUB instead of kernels and RAM disks. For more
  51288. // information, see User Provided Kernels (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html)
  51289. // in the Amazon Elastic Compute Cloud User Guide.
  51290. KernelId *string `type:"string"`
  51291. // The name of the key pair. You can create a key pair using CreateKeyPair or
  51292. // ImportKeyPair.
  51293. //
  51294. // If you do not specify a key pair, you can't connect to the instance unless
  51295. // you choose an AMI that is configured to allow users another way to log in.
  51296. KeyName *string `type:"string"`
  51297. // The monitoring for the instance.
  51298. Monitoring *LaunchTemplatesMonitoringRequest `type:"structure"`
  51299. // One or more network interfaces.
  51300. NetworkInterfaces []*LaunchTemplateInstanceNetworkInterfaceSpecificationRequest `locationName:"NetworkInterface" locationNameList:"InstanceNetworkInterfaceSpecification" type:"list"`
  51301. // The placement for the instance.
  51302. Placement *LaunchTemplatePlacementRequest `type:"structure"`
  51303. // The ID of the RAM disk.
  51304. //
  51305. // We recommend that you use PV-GRUB instead of kernels and RAM disks. For more
  51306. // information, see User Provided Kernels (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html)
  51307. // in the Amazon Elastic Compute Cloud User Guide.
  51308. RamDiskId *string `type:"string"`
  51309. // One or more security group IDs. You can create a security group using CreateSecurityGroup.
  51310. // You cannot specify both a security group ID and security name in the same
  51311. // request.
  51312. SecurityGroupIds []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`
  51313. // [EC2-Classic, default VPC] One or more security group names. For a nondefault
  51314. // VPC, you must use security group IDs instead. You cannot specify both a security
  51315. // group ID and security name in the same request.
  51316. SecurityGroups []*string `locationName:"SecurityGroup" locationNameList:"SecurityGroup" type:"list"`
  51317. // The tags to apply to the resources during launch. You can tag instances and
  51318. // volumes. The specified tags are applied to all instances or volumes that
  51319. // are created during launch.
  51320. TagSpecifications []*LaunchTemplateTagSpecificationRequest `locationName:"TagSpecification" locationNameList:"LaunchTemplateTagSpecificationRequest" type:"list"`
  51321. // The Base64-encoded user data to make available to the instance. For more
  51322. // information, see Running Commands on Your Linux Instance at Launch (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html)
  51323. // (Linux) and Adding User Data (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-instance-metadata.html#instancedata-add-user-data)
  51324. // (Windows).
  51325. UserData *string `type:"string"`
  51326. }
  51327. // String returns the string representation
  51328. func (s RequestLaunchTemplateData) String() string {
  51329. return awsutil.Prettify(s)
  51330. }
  51331. // GoString returns the string representation
  51332. func (s RequestLaunchTemplateData) GoString() string {
  51333. return s.String()
  51334. }
  51335. // Validate inspects the fields of the type to determine if they are valid.
  51336. func (s *RequestLaunchTemplateData) Validate() error {
  51337. invalidParams := request.ErrInvalidParams{Context: "RequestLaunchTemplateData"}
  51338. if s.CreditSpecification != nil {
  51339. if err := s.CreditSpecification.Validate(); err != nil {
  51340. invalidParams.AddNested("CreditSpecification", err.(request.ErrInvalidParams))
  51341. }
  51342. }
  51343. if s.ElasticGpuSpecifications != nil {
  51344. for i, v := range s.ElasticGpuSpecifications {
  51345. if v == nil {
  51346. continue
  51347. }
  51348. if err := v.Validate(); err != nil {
  51349. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ElasticGpuSpecifications", i), err.(request.ErrInvalidParams))
  51350. }
  51351. }
  51352. }
  51353. if s.NetworkInterfaces != nil {
  51354. for i, v := range s.NetworkInterfaces {
  51355. if v == nil {
  51356. continue
  51357. }
  51358. if err := v.Validate(); err != nil {
  51359. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "NetworkInterfaces", i), err.(request.ErrInvalidParams))
  51360. }
  51361. }
  51362. }
  51363. if invalidParams.Len() > 0 {
  51364. return invalidParams
  51365. }
  51366. return nil
  51367. }
  51368. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  51369. func (s *RequestLaunchTemplateData) SetBlockDeviceMappings(v []*LaunchTemplateBlockDeviceMappingRequest) *RequestLaunchTemplateData {
  51370. s.BlockDeviceMappings = v
  51371. return s
  51372. }
  51373. // SetCreditSpecification sets the CreditSpecification field's value.
  51374. func (s *RequestLaunchTemplateData) SetCreditSpecification(v *CreditSpecificationRequest) *RequestLaunchTemplateData {
  51375. s.CreditSpecification = v
  51376. return s
  51377. }
  51378. // SetDisableApiTermination sets the DisableApiTermination field's value.
  51379. func (s *RequestLaunchTemplateData) SetDisableApiTermination(v bool) *RequestLaunchTemplateData {
  51380. s.DisableApiTermination = &v
  51381. return s
  51382. }
  51383. // SetEbsOptimized sets the EbsOptimized field's value.
  51384. func (s *RequestLaunchTemplateData) SetEbsOptimized(v bool) *RequestLaunchTemplateData {
  51385. s.EbsOptimized = &v
  51386. return s
  51387. }
  51388. // SetElasticGpuSpecifications sets the ElasticGpuSpecifications field's value.
  51389. func (s *RequestLaunchTemplateData) SetElasticGpuSpecifications(v []*ElasticGpuSpecification) *RequestLaunchTemplateData {
  51390. s.ElasticGpuSpecifications = v
  51391. return s
  51392. }
  51393. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  51394. func (s *RequestLaunchTemplateData) SetIamInstanceProfile(v *LaunchTemplateIamInstanceProfileSpecificationRequest) *RequestLaunchTemplateData {
  51395. s.IamInstanceProfile = v
  51396. return s
  51397. }
  51398. // SetImageId sets the ImageId field's value.
  51399. func (s *RequestLaunchTemplateData) SetImageId(v string) *RequestLaunchTemplateData {
  51400. s.ImageId = &v
  51401. return s
  51402. }
  51403. // SetInstanceInitiatedShutdownBehavior sets the InstanceInitiatedShutdownBehavior field's value.
  51404. func (s *RequestLaunchTemplateData) SetInstanceInitiatedShutdownBehavior(v string) *RequestLaunchTemplateData {
  51405. s.InstanceInitiatedShutdownBehavior = &v
  51406. return s
  51407. }
  51408. // SetInstanceMarketOptions sets the InstanceMarketOptions field's value.
  51409. func (s *RequestLaunchTemplateData) SetInstanceMarketOptions(v *LaunchTemplateInstanceMarketOptionsRequest) *RequestLaunchTemplateData {
  51410. s.InstanceMarketOptions = v
  51411. return s
  51412. }
  51413. // SetInstanceType sets the InstanceType field's value.
  51414. func (s *RequestLaunchTemplateData) SetInstanceType(v string) *RequestLaunchTemplateData {
  51415. s.InstanceType = &v
  51416. return s
  51417. }
  51418. // SetKernelId sets the KernelId field's value.
  51419. func (s *RequestLaunchTemplateData) SetKernelId(v string) *RequestLaunchTemplateData {
  51420. s.KernelId = &v
  51421. return s
  51422. }
  51423. // SetKeyName sets the KeyName field's value.
  51424. func (s *RequestLaunchTemplateData) SetKeyName(v string) *RequestLaunchTemplateData {
  51425. s.KeyName = &v
  51426. return s
  51427. }
  51428. // SetMonitoring sets the Monitoring field's value.
  51429. func (s *RequestLaunchTemplateData) SetMonitoring(v *LaunchTemplatesMonitoringRequest) *RequestLaunchTemplateData {
  51430. s.Monitoring = v
  51431. return s
  51432. }
  51433. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  51434. func (s *RequestLaunchTemplateData) SetNetworkInterfaces(v []*LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) *RequestLaunchTemplateData {
  51435. s.NetworkInterfaces = v
  51436. return s
  51437. }
  51438. // SetPlacement sets the Placement field's value.
  51439. func (s *RequestLaunchTemplateData) SetPlacement(v *LaunchTemplatePlacementRequest) *RequestLaunchTemplateData {
  51440. s.Placement = v
  51441. return s
  51442. }
  51443. // SetRamDiskId sets the RamDiskId field's value.
  51444. func (s *RequestLaunchTemplateData) SetRamDiskId(v string) *RequestLaunchTemplateData {
  51445. s.RamDiskId = &v
  51446. return s
  51447. }
  51448. // SetSecurityGroupIds sets the SecurityGroupIds field's value.
  51449. func (s *RequestLaunchTemplateData) SetSecurityGroupIds(v []*string) *RequestLaunchTemplateData {
  51450. s.SecurityGroupIds = v
  51451. return s
  51452. }
  51453. // SetSecurityGroups sets the SecurityGroups field's value.
  51454. func (s *RequestLaunchTemplateData) SetSecurityGroups(v []*string) *RequestLaunchTemplateData {
  51455. s.SecurityGroups = v
  51456. return s
  51457. }
  51458. // SetTagSpecifications sets the TagSpecifications field's value.
  51459. func (s *RequestLaunchTemplateData) SetTagSpecifications(v []*LaunchTemplateTagSpecificationRequest) *RequestLaunchTemplateData {
  51460. s.TagSpecifications = v
  51461. return s
  51462. }
  51463. // SetUserData sets the UserData field's value.
  51464. func (s *RequestLaunchTemplateData) SetUserData(v string) *RequestLaunchTemplateData {
  51465. s.UserData = &v
  51466. return s
  51467. }
  51468. // Contains the parameters for RequestSpotFleet.
  51469. type RequestSpotFleetInput struct {
  51470. _ struct{} `type:"structure"`
  51471. // Checks whether you have the required permissions for the action, without
  51472. // actually making the request, and provides an error response. If you have
  51473. // the required permissions, the error response is DryRunOperation. Otherwise,
  51474. // it is UnauthorizedOperation.
  51475. DryRun *bool `locationName:"dryRun" type:"boolean"`
  51476. // The configuration for the Spot Fleet request.
  51477. //
  51478. // SpotFleetRequestConfig is a required field
  51479. SpotFleetRequestConfig *SpotFleetRequestConfigData `locationName:"spotFleetRequestConfig" type:"structure" required:"true"`
  51480. }
  51481. // String returns the string representation
  51482. func (s RequestSpotFleetInput) String() string {
  51483. return awsutil.Prettify(s)
  51484. }
  51485. // GoString returns the string representation
  51486. func (s RequestSpotFleetInput) GoString() string {
  51487. return s.String()
  51488. }
  51489. // Validate inspects the fields of the type to determine if they are valid.
  51490. func (s *RequestSpotFleetInput) Validate() error {
  51491. invalidParams := request.ErrInvalidParams{Context: "RequestSpotFleetInput"}
  51492. if s.SpotFleetRequestConfig == nil {
  51493. invalidParams.Add(request.NewErrParamRequired("SpotFleetRequestConfig"))
  51494. }
  51495. if s.SpotFleetRequestConfig != nil {
  51496. if err := s.SpotFleetRequestConfig.Validate(); err != nil {
  51497. invalidParams.AddNested("SpotFleetRequestConfig", err.(request.ErrInvalidParams))
  51498. }
  51499. }
  51500. if invalidParams.Len() > 0 {
  51501. return invalidParams
  51502. }
  51503. return nil
  51504. }
  51505. // SetDryRun sets the DryRun field's value.
  51506. func (s *RequestSpotFleetInput) SetDryRun(v bool) *RequestSpotFleetInput {
  51507. s.DryRun = &v
  51508. return s
  51509. }
  51510. // SetSpotFleetRequestConfig sets the SpotFleetRequestConfig field's value.
  51511. func (s *RequestSpotFleetInput) SetSpotFleetRequestConfig(v *SpotFleetRequestConfigData) *RequestSpotFleetInput {
  51512. s.SpotFleetRequestConfig = v
  51513. return s
  51514. }
  51515. // Contains the output of RequestSpotFleet.
  51516. type RequestSpotFleetOutput struct {
  51517. _ struct{} `type:"structure"`
  51518. // The ID of the Spot Fleet request.
  51519. //
  51520. // SpotFleetRequestId is a required field
  51521. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
  51522. }
  51523. // String returns the string representation
  51524. func (s RequestSpotFleetOutput) String() string {
  51525. return awsutil.Prettify(s)
  51526. }
  51527. // GoString returns the string representation
  51528. func (s RequestSpotFleetOutput) GoString() string {
  51529. return s.String()
  51530. }
  51531. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  51532. func (s *RequestSpotFleetOutput) SetSpotFleetRequestId(v string) *RequestSpotFleetOutput {
  51533. s.SpotFleetRequestId = &v
  51534. return s
  51535. }
  51536. // Contains the parameters for RequestSpotInstances.
  51537. type RequestSpotInstancesInput struct {
  51538. _ struct{} `type:"structure"`
  51539. // The user-specified name for a logical grouping of requests.
  51540. //
  51541. // When you specify an Availability Zone group in a Spot Instance request, all
  51542. // Spot Instances in the request are launched in the same Availability Zone.
  51543. // Instance proximity is maintained with this parameter, but the choice of Availability
  51544. // Zone is not. The group applies only to requests for Spot Instances of the
  51545. // same instance type. Any additional Spot Instance requests that are specified
  51546. // with the same Availability Zone group name are launched in that same Availability
  51547. // Zone, as long as at least one instance from the group is still active.
  51548. //
  51549. // If there is no active instance running in the Availability Zone group that
  51550. // you specify for a new Spot Instance request (all instances are terminated,
  51551. // the request is expired, or the maximum price you specified falls below current
  51552. // Spot price), then Amazon EC2 launches the instance in any Availability Zone
  51553. // where the constraint can be met. Consequently, the subsequent set of Spot
  51554. // Instances could be placed in a different zone from the original request,
  51555. // even if you specified the same Availability Zone group.
  51556. //
  51557. // Default: Instances are launched in any available Availability Zone.
  51558. AvailabilityZoneGroup *string `locationName:"availabilityZoneGroup" type:"string"`
  51559. // The required duration for the Spot Instances (also known as Spot blocks),
  51560. // in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300,
  51561. // or 360).
  51562. //
  51563. // The duration period starts as soon as your Spot Instance receives its instance
  51564. // ID. At the end of the duration period, Amazon EC2 marks the Spot Instance
  51565. // for termination and provides a Spot Instance termination notice, which gives
  51566. // the instance a two-minute warning before it terminates.
  51567. //
  51568. // You can't specify an Availability Zone group or a launch group if you specify
  51569. // a duration.
  51570. BlockDurationMinutes *int64 `locationName:"blockDurationMinutes" type:"integer"`
  51571. // Unique, case-sensitive identifier that you provide to ensure the idempotency
  51572. // of the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html)
  51573. // in the Amazon EC2 User Guide for Linux Instances.
  51574. ClientToken *string `locationName:"clientToken" type:"string"`
  51575. // Checks whether you have the required permissions for the action, without
  51576. // actually making the request, and provides an error response. If you have
  51577. // the required permissions, the error response is DryRunOperation. Otherwise,
  51578. // it is UnauthorizedOperation.
  51579. DryRun *bool `locationName:"dryRun" type:"boolean"`
  51580. // The maximum number of Spot Instances to launch.
  51581. //
  51582. // Default: 1
  51583. InstanceCount *int64 `locationName:"instanceCount" type:"integer"`
  51584. // The behavior when a Spot Instance is interrupted. The default is terminate.
  51585. InstanceInterruptionBehavior *string `type:"string" enum:"InstanceInterruptionBehavior"`
  51586. // The instance launch group. Launch groups are Spot Instances that launch together
  51587. // and terminate together.
  51588. //
  51589. // Default: Instances are launched and terminated individually
  51590. LaunchGroup *string `locationName:"launchGroup" type:"string"`
  51591. // The launch specification.
  51592. LaunchSpecification *RequestSpotLaunchSpecification `type:"structure"`
  51593. // The maximum price per hour that you are willing to pay for a Spot Instance.
  51594. // The default is the On-Demand price.
  51595. SpotPrice *string `locationName:"spotPrice" type:"string"`
  51596. // The Spot Instance request type.
  51597. //
  51598. // Default: one-time
  51599. Type *string `locationName:"type" type:"string" enum:"SpotInstanceType"`
  51600. // The start date of the request. If this is a one-time request, the request
  51601. // becomes active at this date and time and remains active until all instances
  51602. // launch, the request expires, or the request is canceled. If the request is
  51603. // persistent, the request becomes active at this date and time and remains
  51604. // active until it expires or is canceled.
  51605. ValidFrom *time.Time `locationName:"validFrom" type:"timestamp" timestampFormat:"iso8601"`
  51606. // The end date of the request. If this is a one-time request, the request remains
  51607. // active until all instances launch, the request is canceled, or this date
  51608. // is reached. If the request is persistent, it remains active until it is canceled
  51609. // or this date is reached. The default end date is 7 days from the current
  51610. // date.
  51611. ValidUntil *time.Time `locationName:"validUntil" type:"timestamp" timestampFormat:"iso8601"`
  51612. }
  51613. // String returns the string representation
  51614. func (s RequestSpotInstancesInput) String() string {
  51615. return awsutil.Prettify(s)
  51616. }
  51617. // GoString returns the string representation
  51618. func (s RequestSpotInstancesInput) GoString() string {
  51619. return s.String()
  51620. }
  51621. // Validate inspects the fields of the type to determine if they are valid.
  51622. func (s *RequestSpotInstancesInput) Validate() error {
  51623. invalidParams := request.ErrInvalidParams{Context: "RequestSpotInstancesInput"}
  51624. if s.LaunchSpecification != nil {
  51625. if err := s.LaunchSpecification.Validate(); err != nil {
  51626. invalidParams.AddNested("LaunchSpecification", err.(request.ErrInvalidParams))
  51627. }
  51628. }
  51629. if invalidParams.Len() > 0 {
  51630. return invalidParams
  51631. }
  51632. return nil
  51633. }
  51634. // SetAvailabilityZoneGroup sets the AvailabilityZoneGroup field's value.
  51635. func (s *RequestSpotInstancesInput) SetAvailabilityZoneGroup(v string) *RequestSpotInstancesInput {
  51636. s.AvailabilityZoneGroup = &v
  51637. return s
  51638. }
  51639. // SetBlockDurationMinutes sets the BlockDurationMinutes field's value.
  51640. func (s *RequestSpotInstancesInput) SetBlockDurationMinutes(v int64) *RequestSpotInstancesInput {
  51641. s.BlockDurationMinutes = &v
  51642. return s
  51643. }
  51644. // SetClientToken sets the ClientToken field's value.
  51645. func (s *RequestSpotInstancesInput) SetClientToken(v string) *RequestSpotInstancesInput {
  51646. s.ClientToken = &v
  51647. return s
  51648. }
  51649. // SetDryRun sets the DryRun field's value.
  51650. func (s *RequestSpotInstancesInput) SetDryRun(v bool) *RequestSpotInstancesInput {
  51651. s.DryRun = &v
  51652. return s
  51653. }
  51654. // SetInstanceCount sets the InstanceCount field's value.
  51655. func (s *RequestSpotInstancesInput) SetInstanceCount(v int64) *RequestSpotInstancesInput {
  51656. s.InstanceCount = &v
  51657. return s
  51658. }
  51659. // SetInstanceInterruptionBehavior sets the InstanceInterruptionBehavior field's value.
  51660. func (s *RequestSpotInstancesInput) SetInstanceInterruptionBehavior(v string) *RequestSpotInstancesInput {
  51661. s.InstanceInterruptionBehavior = &v
  51662. return s
  51663. }
  51664. // SetLaunchGroup sets the LaunchGroup field's value.
  51665. func (s *RequestSpotInstancesInput) SetLaunchGroup(v string) *RequestSpotInstancesInput {
  51666. s.LaunchGroup = &v
  51667. return s
  51668. }
  51669. // SetLaunchSpecification sets the LaunchSpecification field's value.
  51670. func (s *RequestSpotInstancesInput) SetLaunchSpecification(v *RequestSpotLaunchSpecification) *RequestSpotInstancesInput {
  51671. s.LaunchSpecification = v
  51672. return s
  51673. }
  51674. // SetSpotPrice sets the SpotPrice field's value.
  51675. func (s *RequestSpotInstancesInput) SetSpotPrice(v string) *RequestSpotInstancesInput {
  51676. s.SpotPrice = &v
  51677. return s
  51678. }
  51679. // SetType sets the Type field's value.
  51680. func (s *RequestSpotInstancesInput) SetType(v string) *RequestSpotInstancesInput {
  51681. s.Type = &v
  51682. return s
  51683. }
  51684. // SetValidFrom sets the ValidFrom field's value.
  51685. func (s *RequestSpotInstancesInput) SetValidFrom(v time.Time) *RequestSpotInstancesInput {
  51686. s.ValidFrom = &v
  51687. return s
  51688. }
  51689. // SetValidUntil sets the ValidUntil field's value.
  51690. func (s *RequestSpotInstancesInput) SetValidUntil(v time.Time) *RequestSpotInstancesInput {
  51691. s.ValidUntil = &v
  51692. return s
  51693. }
  51694. // Contains the output of RequestSpotInstances.
  51695. type RequestSpotInstancesOutput struct {
  51696. _ struct{} `type:"structure"`
  51697. // One or more Spot Instance requests.
  51698. SpotInstanceRequests []*SpotInstanceRequest `locationName:"spotInstanceRequestSet" locationNameList:"item" type:"list"`
  51699. }
  51700. // String returns the string representation
  51701. func (s RequestSpotInstancesOutput) String() string {
  51702. return awsutil.Prettify(s)
  51703. }
  51704. // GoString returns the string representation
  51705. func (s RequestSpotInstancesOutput) GoString() string {
  51706. return s.String()
  51707. }
  51708. // SetSpotInstanceRequests sets the SpotInstanceRequests field's value.
  51709. func (s *RequestSpotInstancesOutput) SetSpotInstanceRequests(v []*SpotInstanceRequest) *RequestSpotInstancesOutput {
  51710. s.SpotInstanceRequests = v
  51711. return s
  51712. }
  51713. // Describes the launch specification for an instance.
  51714. type RequestSpotLaunchSpecification struct {
  51715. _ struct{} `type:"structure"`
  51716. // Deprecated.
  51717. AddressingType *string `locationName:"addressingType" type:"string"`
  51718. // One or more block device mapping entries. You can't specify both a snapshot
  51719. // ID and an encryption value. This is because only blank volumes can be encrypted
  51720. // on creation. If a snapshot is the basis for a volume, it is not blank and
  51721. // its encryption status is used for the volume encryption status.
  51722. BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  51723. // Indicates whether the instance is optimized for EBS I/O. This optimization
  51724. // provides dedicated throughput to Amazon EBS and an optimized configuration
  51725. // stack to provide optimal EBS I/O performance. This optimization isn't available
  51726. // with all instance types. Additional usage charges apply when using an EBS
  51727. // Optimized instance.
  51728. //
  51729. // Default: false
  51730. EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`
  51731. // The IAM instance profile.
  51732. IamInstanceProfile *IamInstanceProfileSpecification `locationName:"iamInstanceProfile" type:"structure"`
  51733. // The ID of the AMI.
  51734. ImageId *string `locationName:"imageId" type:"string"`
  51735. // The instance type.
  51736. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  51737. // The ID of the kernel.
  51738. KernelId *string `locationName:"kernelId" type:"string"`
  51739. // The name of the key pair.
  51740. KeyName *string `locationName:"keyName" type:"string"`
  51741. // Indicates whether basic or detailed monitoring is enabled for the instance.
  51742. //
  51743. // Default: Disabled
  51744. Monitoring *RunInstancesMonitoringEnabled `locationName:"monitoring" type:"structure"`
  51745. // One or more network interfaces. If you specify a network interface, you must
  51746. // specify subnet IDs and security group IDs using the network interface.
  51747. NetworkInterfaces []*InstanceNetworkInterfaceSpecification `locationName:"NetworkInterface" locationNameList:"item" type:"list"`
  51748. // The placement information for the instance.
  51749. Placement *SpotPlacement `locationName:"placement" type:"structure"`
  51750. // The ID of the RAM disk.
  51751. RamdiskId *string `locationName:"ramdiskId" type:"string"`
  51752. // One or more security group IDs.
  51753. SecurityGroupIds []*string `locationName:"SecurityGroupId" locationNameList:"item" type:"list"`
  51754. // One or more security groups. When requesting instances in a VPC, you must
  51755. // specify the IDs of the security groups. When requesting instances in EC2-Classic,
  51756. // you can specify the names or the IDs of the security groups.
  51757. SecurityGroups []*string `locationName:"SecurityGroup" locationNameList:"item" type:"list"`
  51758. // The ID of the subnet in which to launch the instance.
  51759. SubnetId *string `locationName:"subnetId" type:"string"`
  51760. // The Base64-encoded user data for the instance.
  51761. UserData *string `locationName:"userData" type:"string"`
  51762. }
  51763. // String returns the string representation
  51764. func (s RequestSpotLaunchSpecification) String() string {
  51765. return awsutil.Prettify(s)
  51766. }
  51767. // GoString returns the string representation
  51768. func (s RequestSpotLaunchSpecification) GoString() string {
  51769. return s.String()
  51770. }
  51771. // Validate inspects the fields of the type to determine if they are valid.
  51772. func (s *RequestSpotLaunchSpecification) Validate() error {
  51773. invalidParams := request.ErrInvalidParams{Context: "RequestSpotLaunchSpecification"}
  51774. if s.Monitoring != nil {
  51775. if err := s.Monitoring.Validate(); err != nil {
  51776. invalidParams.AddNested("Monitoring", err.(request.ErrInvalidParams))
  51777. }
  51778. }
  51779. if s.NetworkInterfaces != nil {
  51780. for i, v := range s.NetworkInterfaces {
  51781. if v == nil {
  51782. continue
  51783. }
  51784. if err := v.Validate(); err != nil {
  51785. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "NetworkInterfaces", i), err.(request.ErrInvalidParams))
  51786. }
  51787. }
  51788. }
  51789. if invalidParams.Len() > 0 {
  51790. return invalidParams
  51791. }
  51792. return nil
  51793. }
  51794. // SetAddressingType sets the AddressingType field's value.
  51795. func (s *RequestSpotLaunchSpecification) SetAddressingType(v string) *RequestSpotLaunchSpecification {
  51796. s.AddressingType = &v
  51797. return s
  51798. }
  51799. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  51800. func (s *RequestSpotLaunchSpecification) SetBlockDeviceMappings(v []*BlockDeviceMapping) *RequestSpotLaunchSpecification {
  51801. s.BlockDeviceMappings = v
  51802. return s
  51803. }
  51804. // SetEbsOptimized sets the EbsOptimized field's value.
  51805. func (s *RequestSpotLaunchSpecification) SetEbsOptimized(v bool) *RequestSpotLaunchSpecification {
  51806. s.EbsOptimized = &v
  51807. return s
  51808. }
  51809. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  51810. func (s *RequestSpotLaunchSpecification) SetIamInstanceProfile(v *IamInstanceProfileSpecification) *RequestSpotLaunchSpecification {
  51811. s.IamInstanceProfile = v
  51812. return s
  51813. }
  51814. // SetImageId sets the ImageId field's value.
  51815. func (s *RequestSpotLaunchSpecification) SetImageId(v string) *RequestSpotLaunchSpecification {
  51816. s.ImageId = &v
  51817. return s
  51818. }
  51819. // SetInstanceType sets the InstanceType field's value.
  51820. func (s *RequestSpotLaunchSpecification) SetInstanceType(v string) *RequestSpotLaunchSpecification {
  51821. s.InstanceType = &v
  51822. return s
  51823. }
  51824. // SetKernelId sets the KernelId field's value.
  51825. func (s *RequestSpotLaunchSpecification) SetKernelId(v string) *RequestSpotLaunchSpecification {
  51826. s.KernelId = &v
  51827. return s
  51828. }
  51829. // SetKeyName sets the KeyName field's value.
  51830. func (s *RequestSpotLaunchSpecification) SetKeyName(v string) *RequestSpotLaunchSpecification {
  51831. s.KeyName = &v
  51832. return s
  51833. }
  51834. // SetMonitoring sets the Monitoring field's value.
  51835. func (s *RequestSpotLaunchSpecification) SetMonitoring(v *RunInstancesMonitoringEnabled) *RequestSpotLaunchSpecification {
  51836. s.Monitoring = v
  51837. return s
  51838. }
  51839. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  51840. func (s *RequestSpotLaunchSpecification) SetNetworkInterfaces(v []*InstanceNetworkInterfaceSpecification) *RequestSpotLaunchSpecification {
  51841. s.NetworkInterfaces = v
  51842. return s
  51843. }
  51844. // SetPlacement sets the Placement field's value.
  51845. func (s *RequestSpotLaunchSpecification) SetPlacement(v *SpotPlacement) *RequestSpotLaunchSpecification {
  51846. s.Placement = v
  51847. return s
  51848. }
  51849. // SetRamdiskId sets the RamdiskId field's value.
  51850. func (s *RequestSpotLaunchSpecification) SetRamdiskId(v string) *RequestSpotLaunchSpecification {
  51851. s.RamdiskId = &v
  51852. return s
  51853. }
  51854. // SetSecurityGroupIds sets the SecurityGroupIds field's value.
  51855. func (s *RequestSpotLaunchSpecification) SetSecurityGroupIds(v []*string) *RequestSpotLaunchSpecification {
  51856. s.SecurityGroupIds = v
  51857. return s
  51858. }
  51859. // SetSecurityGroups sets the SecurityGroups field's value.
  51860. func (s *RequestSpotLaunchSpecification) SetSecurityGroups(v []*string) *RequestSpotLaunchSpecification {
  51861. s.SecurityGroups = v
  51862. return s
  51863. }
  51864. // SetSubnetId sets the SubnetId field's value.
  51865. func (s *RequestSpotLaunchSpecification) SetSubnetId(v string) *RequestSpotLaunchSpecification {
  51866. s.SubnetId = &v
  51867. return s
  51868. }
  51869. // SetUserData sets the UserData field's value.
  51870. func (s *RequestSpotLaunchSpecification) SetUserData(v string) *RequestSpotLaunchSpecification {
  51871. s.UserData = &v
  51872. return s
  51873. }
  51874. // Describes a reservation.
  51875. type Reservation struct {
  51876. _ struct{} `type:"structure"`
  51877. // [EC2-Classic only] One or more security groups.
  51878. Groups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  51879. // One or more instances.
  51880. Instances []*Instance `locationName:"instancesSet" locationNameList:"item" type:"list"`
  51881. // The ID of the AWS account that owns the reservation.
  51882. OwnerId *string `locationName:"ownerId" type:"string"`
  51883. // The ID of the requester that launched the instances on your behalf (for example,
  51884. // AWS Management Console or Auto Scaling).
  51885. RequesterId *string `locationName:"requesterId" type:"string"`
  51886. // The ID of the reservation.
  51887. ReservationId *string `locationName:"reservationId" type:"string"`
  51888. }
  51889. // String returns the string representation
  51890. func (s Reservation) String() string {
  51891. return awsutil.Prettify(s)
  51892. }
  51893. // GoString returns the string representation
  51894. func (s Reservation) GoString() string {
  51895. return s.String()
  51896. }
  51897. // SetGroups sets the Groups field's value.
  51898. func (s *Reservation) SetGroups(v []*GroupIdentifier) *Reservation {
  51899. s.Groups = v
  51900. return s
  51901. }
  51902. // SetInstances sets the Instances field's value.
  51903. func (s *Reservation) SetInstances(v []*Instance) *Reservation {
  51904. s.Instances = v
  51905. return s
  51906. }
  51907. // SetOwnerId sets the OwnerId field's value.
  51908. func (s *Reservation) SetOwnerId(v string) *Reservation {
  51909. s.OwnerId = &v
  51910. return s
  51911. }
  51912. // SetRequesterId sets the RequesterId field's value.
  51913. func (s *Reservation) SetRequesterId(v string) *Reservation {
  51914. s.RequesterId = &v
  51915. return s
  51916. }
  51917. // SetReservationId sets the ReservationId field's value.
  51918. func (s *Reservation) SetReservationId(v string) *Reservation {
  51919. s.ReservationId = &v
  51920. return s
  51921. }
  51922. // The cost associated with the Reserved Instance.
  51923. type ReservationValue struct {
  51924. _ struct{} `type:"structure"`
  51925. // The hourly rate of the reservation.
  51926. HourlyPrice *string `locationName:"hourlyPrice" type:"string"`
  51927. // The balance of the total value (the sum of remainingUpfrontValue + hourlyPrice
  51928. // * number of hours remaining).
  51929. RemainingTotalValue *string `locationName:"remainingTotalValue" type:"string"`
  51930. // The remaining upfront cost of the reservation.
  51931. RemainingUpfrontValue *string `locationName:"remainingUpfrontValue" type:"string"`
  51932. }
  51933. // String returns the string representation
  51934. func (s ReservationValue) String() string {
  51935. return awsutil.Prettify(s)
  51936. }
  51937. // GoString returns the string representation
  51938. func (s ReservationValue) GoString() string {
  51939. return s.String()
  51940. }
  51941. // SetHourlyPrice sets the HourlyPrice field's value.
  51942. func (s *ReservationValue) SetHourlyPrice(v string) *ReservationValue {
  51943. s.HourlyPrice = &v
  51944. return s
  51945. }
  51946. // SetRemainingTotalValue sets the RemainingTotalValue field's value.
  51947. func (s *ReservationValue) SetRemainingTotalValue(v string) *ReservationValue {
  51948. s.RemainingTotalValue = &v
  51949. return s
  51950. }
  51951. // SetRemainingUpfrontValue sets the RemainingUpfrontValue field's value.
  51952. func (s *ReservationValue) SetRemainingUpfrontValue(v string) *ReservationValue {
  51953. s.RemainingUpfrontValue = &v
  51954. return s
  51955. }
  51956. // Describes the limit price of a Reserved Instance offering.
  51957. type ReservedInstanceLimitPrice struct {
  51958. _ struct{} `type:"structure"`
  51959. // Used for Reserved Instance Marketplace offerings. Specifies the limit price
  51960. // on the total order (instanceCount * price).
  51961. Amount *float64 `locationName:"amount" type:"double"`
  51962. // The currency in which the limitPrice amount is specified. At this time, the
  51963. // only supported currency is USD.
  51964. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  51965. }
  51966. // String returns the string representation
  51967. func (s ReservedInstanceLimitPrice) String() string {
  51968. return awsutil.Prettify(s)
  51969. }
  51970. // GoString returns the string representation
  51971. func (s ReservedInstanceLimitPrice) GoString() string {
  51972. return s.String()
  51973. }
  51974. // SetAmount sets the Amount field's value.
  51975. func (s *ReservedInstanceLimitPrice) SetAmount(v float64) *ReservedInstanceLimitPrice {
  51976. s.Amount = &v
  51977. return s
  51978. }
  51979. // SetCurrencyCode sets the CurrencyCode field's value.
  51980. func (s *ReservedInstanceLimitPrice) SetCurrencyCode(v string) *ReservedInstanceLimitPrice {
  51981. s.CurrencyCode = &v
  51982. return s
  51983. }
  51984. // The total value of the Convertible Reserved Instance.
  51985. type ReservedInstanceReservationValue struct {
  51986. _ struct{} `type:"structure"`
  51987. // The total value of the Convertible Reserved Instance that you are exchanging.
  51988. ReservationValue *ReservationValue `locationName:"reservationValue" type:"structure"`
  51989. // The ID of the Convertible Reserved Instance that you are exchanging.
  51990. ReservedInstanceId *string `locationName:"reservedInstanceId" type:"string"`
  51991. }
  51992. // String returns the string representation
  51993. func (s ReservedInstanceReservationValue) String() string {
  51994. return awsutil.Prettify(s)
  51995. }
  51996. // GoString returns the string representation
  51997. func (s ReservedInstanceReservationValue) GoString() string {
  51998. return s.String()
  51999. }
  52000. // SetReservationValue sets the ReservationValue field's value.
  52001. func (s *ReservedInstanceReservationValue) SetReservationValue(v *ReservationValue) *ReservedInstanceReservationValue {
  52002. s.ReservationValue = v
  52003. return s
  52004. }
  52005. // SetReservedInstanceId sets the ReservedInstanceId field's value.
  52006. func (s *ReservedInstanceReservationValue) SetReservedInstanceId(v string) *ReservedInstanceReservationValue {
  52007. s.ReservedInstanceId = &v
  52008. return s
  52009. }
  52010. // Describes a Reserved Instance.
  52011. type ReservedInstances struct {
  52012. _ struct{} `type:"structure"`
  52013. // The Availability Zone in which the Reserved Instance can be used.
  52014. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  52015. // The currency of the Reserved Instance. It's specified using ISO 4217 standard
  52016. // currency codes. At this time, the only supported currency is USD.
  52017. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  52018. // The duration of the Reserved Instance, in seconds.
  52019. Duration *int64 `locationName:"duration" type:"long"`
  52020. // The time when the Reserved Instance expires.
  52021. End *time.Time `locationName:"end" type:"timestamp" timestampFormat:"iso8601"`
  52022. // The purchase price of the Reserved Instance.
  52023. FixedPrice *float64 `locationName:"fixedPrice" type:"float"`
  52024. // The number of reservations purchased.
  52025. InstanceCount *int64 `locationName:"instanceCount" type:"integer"`
  52026. // The tenancy of the instance.
  52027. InstanceTenancy *string `locationName:"instanceTenancy" type:"string" enum:"Tenancy"`
  52028. // The instance type on which the Reserved Instance can be used.
  52029. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  52030. // The offering class of the Reserved Instance.
  52031. OfferingClass *string `locationName:"offeringClass" type:"string" enum:"OfferingClassType"`
  52032. // The Reserved Instance offering type.
  52033. OfferingType *string `locationName:"offeringType" type:"string" enum:"OfferingTypeValues"`
  52034. // The Reserved Instance product platform description.
  52035. ProductDescription *string `locationName:"productDescription" type:"string" enum:"RIProductDescription"`
  52036. // The recurring charge tag assigned to the resource.
  52037. RecurringCharges []*RecurringCharge `locationName:"recurringCharges" locationNameList:"item" type:"list"`
  52038. // The ID of the Reserved Instance.
  52039. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`
  52040. // The scope of the Reserved Instance.
  52041. Scope *string `locationName:"scope" type:"string" enum:"scope"`
  52042. // The date and time the Reserved Instance started.
  52043. Start *time.Time `locationName:"start" type:"timestamp" timestampFormat:"iso8601"`
  52044. // The state of the Reserved Instance purchase.
  52045. State *string `locationName:"state" type:"string" enum:"ReservedInstanceState"`
  52046. // Any tags assigned to the resource.
  52047. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  52048. // The usage price of the Reserved Instance, per hour.
  52049. UsagePrice *float64 `locationName:"usagePrice" type:"float"`
  52050. }
  52051. // String returns the string representation
  52052. func (s ReservedInstances) String() string {
  52053. return awsutil.Prettify(s)
  52054. }
  52055. // GoString returns the string representation
  52056. func (s ReservedInstances) GoString() string {
  52057. return s.String()
  52058. }
  52059. // SetAvailabilityZone sets the AvailabilityZone field's value.
  52060. func (s *ReservedInstances) SetAvailabilityZone(v string) *ReservedInstances {
  52061. s.AvailabilityZone = &v
  52062. return s
  52063. }
  52064. // SetCurrencyCode sets the CurrencyCode field's value.
  52065. func (s *ReservedInstances) SetCurrencyCode(v string) *ReservedInstances {
  52066. s.CurrencyCode = &v
  52067. return s
  52068. }
  52069. // SetDuration sets the Duration field's value.
  52070. func (s *ReservedInstances) SetDuration(v int64) *ReservedInstances {
  52071. s.Duration = &v
  52072. return s
  52073. }
  52074. // SetEnd sets the End field's value.
  52075. func (s *ReservedInstances) SetEnd(v time.Time) *ReservedInstances {
  52076. s.End = &v
  52077. return s
  52078. }
  52079. // SetFixedPrice sets the FixedPrice field's value.
  52080. func (s *ReservedInstances) SetFixedPrice(v float64) *ReservedInstances {
  52081. s.FixedPrice = &v
  52082. return s
  52083. }
  52084. // SetInstanceCount sets the InstanceCount field's value.
  52085. func (s *ReservedInstances) SetInstanceCount(v int64) *ReservedInstances {
  52086. s.InstanceCount = &v
  52087. return s
  52088. }
  52089. // SetInstanceTenancy sets the InstanceTenancy field's value.
  52090. func (s *ReservedInstances) SetInstanceTenancy(v string) *ReservedInstances {
  52091. s.InstanceTenancy = &v
  52092. return s
  52093. }
  52094. // SetInstanceType sets the InstanceType field's value.
  52095. func (s *ReservedInstances) SetInstanceType(v string) *ReservedInstances {
  52096. s.InstanceType = &v
  52097. return s
  52098. }
  52099. // SetOfferingClass sets the OfferingClass field's value.
  52100. func (s *ReservedInstances) SetOfferingClass(v string) *ReservedInstances {
  52101. s.OfferingClass = &v
  52102. return s
  52103. }
  52104. // SetOfferingType sets the OfferingType field's value.
  52105. func (s *ReservedInstances) SetOfferingType(v string) *ReservedInstances {
  52106. s.OfferingType = &v
  52107. return s
  52108. }
  52109. // SetProductDescription sets the ProductDescription field's value.
  52110. func (s *ReservedInstances) SetProductDescription(v string) *ReservedInstances {
  52111. s.ProductDescription = &v
  52112. return s
  52113. }
  52114. // SetRecurringCharges sets the RecurringCharges field's value.
  52115. func (s *ReservedInstances) SetRecurringCharges(v []*RecurringCharge) *ReservedInstances {
  52116. s.RecurringCharges = v
  52117. return s
  52118. }
  52119. // SetReservedInstancesId sets the ReservedInstancesId field's value.
  52120. func (s *ReservedInstances) SetReservedInstancesId(v string) *ReservedInstances {
  52121. s.ReservedInstancesId = &v
  52122. return s
  52123. }
  52124. // SetScope sets the Scope field's value.
  52125. func (s *ReservedInstances) SetScope(v string) *ReservedInstances {
  52126. s.Scope = &v
  52127. return s
  52128. }
  52129. // SetStart sets the Start field's value.
  52130. func (s *ReservedInstances) SetStart(v time.Time) *ReservedInstances {
  52131. s.Start = &v
  52132. return s
  52133. }
  52134. // SetState sets the State field's value.
  52135. func (s *ReservedInstances) SetState(v string) *ReservedInstances {
  52136. s.State = &v
  52137. return s
  52138. }
  52139. // SetTags sets the Tags field's value.
  52140. func (s *ReservedInstances) SetTags(v []*Tag) *ReservedInstances {
  52141. s.Tags = v
  52142. return s
  52143. }
  52144. // SetUsagePrice sets the UsagePrice field's value.
  52145. func (s *ReservedInstances) SetUsagePrice(v float64) *ReservedInstances {
  52146. s.UsagePrice = &v
  52147. return s
  52148. }
  52149. // Describes the configuration settings for the modified Reserved Instances.
  52150. type ReservedInstancesConfiguration struct {
  52151. _ struct{} `type:"structure"`
  52152. // The Availability Zone for the modified Reserved Instances.
  52153. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  52154. // The number of modified Reserved Instances.
  52155. InstanceCount *int64 `locationName:"instanceCount" type:"integer"`
  52156. // The instance type for the modified Reserved Instances.
  52157. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  52158. // The network platform of the modified Reserved Instances, which is either
  52159. // EC2-Classic or EC2-VPC.
  52160. Platform *string `locationName:"platform" type:"string"`
  52161. // Whether the Reserved Instance is applied to instances in a region or instances
  52162. // in a specific Availability Zone.
  52163. Scope *string `locationName:"scope" type:"string" enum:"scope"`
  52164. }
  52165. // String returns the string representation
  52166. func (s ReservedInstancesConfiguration) String() string {
  52167. return awsutil.Prettify(s)
  52168. }
  52169. // GoString returns the string representation
  52170. func (s ReservedInstancesConfiguration) GoString() string {
  52171. return s.String()
  52172. }
  52173. // SetAvailabilityZone sets the AvailabilityZone field's value.
  52174. func (s *ReservedInstancesConfiguration) SetAvailabilityZone(v string) *ReservedInstancesConfiguration {
  52175. s.AvailabilityZone = &v
  52176. return s
  52177. }
  52178. // SetInstanceCount sets the InstanceCount field's value.
  52179. func (s *ReservedInstancesConfiguration) SetInstanceCount(v int64) *ReservedInstancesConfiguration {
  52180. s.InstanceCount = &v
  52181. return s
  52182. }
  52183. // SetInstanceType sets the InstanceType field's value.
  52184. func (s *ReservedInstancesConfiguration) SetInstanceType(v string) *ReservedInstancesConfiguration {
  52185. s.InstanceType = &v
  52186. return s
  52187. }
  52188. // SetPlatform sets the Platform field's value.
  52189. func (s *ReservedInstancesConfiguration) SetPlatform(v string) *ReservedInstancesConfiguration {
  52190. s.Platform = &v
  52191. return s
  52192. }
  52193. // SetScope sets the Scope field's value.
  52194. func (s *ReservedInstancesConfiguration) SetScope(v string) *ReservedInstancesConfiguration {
  52195. s.Scope = &v
  52196. return s
  52197. }
  52198. // Describes the ID of a Reserved Instance.
  52199. type ReservedInstancesId struct {
  52200. _ struct{} `type:"structure"`
  52201. // The ID of the Reserved Instance.
  52202. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`
  52203. }
  52204. // String returns the string representation
  52205. func (s ReservedInstancesId) String() string {
  52206. return awsutil.Prettify(s)
  52207. }
  52208. // GoString returns the string representation
  52209. func (s ReservedInstancesId) GoString() string {
  52210. return s.String()
  52211. }
  52212. // SetReservedInstancesId sets the ReservedInstancesId field's value.
  52213. func (s *ReservedInstancesId) SetReservedInstancesId(v string) *ReservedInstancesId {
  52214. s.ReservedInstancesId = &v
  52215. return s
  52216. }
  52217. // Describes a Reserved Instance listing.
  52218. type ReservedInstancesListing struct {
  52219. _ struct{} `type:"structure"`
  52220. // A unique, case-sensitive key supplied by the client to ensure that the request
  52221. // is idempotent. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  52222. ClientToken *string `locationName:"clientToken" type:"string"`
  52223. // The time the listing was created.
  52224. CreateDate *time.Time `locationName:"createDate" type:"timestamp" timestampFormat:"iso8601"`
  52225. // The number of instances in this state.
  52226. InstanceCounts []*InstanceCount `locationName:"instanceCounts" locationNameList:"item" type:"list"`
  52227. // The price of the Reserved Instance listing.
  52228. PriceSchedules []*PriceSchedule `locationName:"priceSchedules" locationNameList:"item" type:"list"`
  52229. // The ID of the Reserved Instance.
  52230. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`
  52231. // The ID of the Reserved Instance listing.
  52232. ReservedInstancesListingId *string `locationName:"reservedInstancesListingId" type:"string"`
  52233. // The status of the Reserved Instance listing.
  52234. Status *string `locationName:"status" type:"string" enum:"ListingStatus"`
  52235. // The reason for the current status of the Reserved Instance listing. The response
  52236. // can be blank.
  52237. StatusMessage *string `locationName:"statusMessage" type:"string"`
  52238. // Any tags assigned to the resource.
  52239. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  52240. // The last modified timestamp of the listing.
  52241. UpdateDate *time.Time `locationName:"updateDate" type:"timestamp" timestampFormat:"iso8601"`
  52242. }
  52243. // String returns the string representation
  52244. func (s ReservedInstancesListing) String() string {
  52245. return awsutil.Prettify(s)
  52246. }
  52247. // GoString returns the string representation
  52248. func (s ReservedInstancesListing) GoString() string {
  52249. return s.String()
  52250. }
  52251. // SetClientToken sets the ClientToken field's value.
  52252. func (s *ReservedInstancesListing) SetClientToken(v string) *ReservedInstancesListing {
  52253. s.ClientToken = &v
  52254. return s
  52255. }
  52256. // SetCreateDate sets the CreateDate field's value.
  52257. func (s *ReservedInstancesListing) SetCreateDate(v time.Time) *ReservedInstancesListing {
  52258. s.CreateDate = &v
  52259. return s
  52260. }
  52261. // SetInstanceCounts sets the InstanceCounts field's value.
  52262. func (s *ReservedInstancesListing) SetInstanceCounts(v []*InstanceCount) *ReservedInstancesListing {
  52263. s.InstanceCounts = v
  52264. return s
  52265. }
  52266. // SetPriceSchedules sets the PriceSchedules field's value.
  52267. func (s *ReservedInstancesListing) SetPriceSchedules(v []*PriceSchedule) *ReservedInstancesListing {
  52268. s.PriceSchedules = v
  52269. return s
  52270. }
  52271. // SetReservedInstancesId sets the ReservedInstancesId field's value.
  52272. func (s *ReservedInstancesListing) SetReservedInstancesId(v string) *ReservedInstancesListing {
  52273. s.ReservedInstancesId = &v
  52274. return s
  52275. }
  52276. // SetReservedInstancesListingId sets the ReservedInstancesListingId field's value.
  52277. func (s *ReservedInstancesListing) SetReservedInstancesListingId(v string) *ReservedInstancesListing {
  52278. s.ReservedInstancesListingId = &v
  52279. return s
  52280. }
  52281. // SetStatus sets the Status field's value.
  52282. func (s *ReservedInstancesListing) SetStatus(v string) *ReservedInstancesListing {
  52283. s.Status = &v
  52284. return s
  52285. }
  52286. // SetStatusMessage sets the StatusMessage field's value.
  52287. func (s *ReservedInstancesListing) SetStatusMessage(v string) *ReservedInstancesListing {
  52288. s.StatusMessage = &v
  52289. return s
  52290. }
  52291. // SetTags sets the Tags field's value.
  52292. func (s *ReservedInstancesListing) SetTags(v []*Tag) *ReservedInstancesListing {
  52293. s.Tags = v
  52294. return s
  52295. }
  52296. // SetUpdateDate sets the UpdateDate field's value.
  52297. func (s *ReservedInstancesListing) SetUpdateDate(v time.Time) *ReservedInstancesListing {
  52298. s.UpdateDate = &v
  52299. return s
  52300. }
  52301. // Describes a Reserved Instance modification.
  52302. type ReservedInstancesModification struct {
  52303. _ struct{} `type:"structure"`
  52304. // A unique, case-sensitive key supplied by the client to ensure that the request
  52305. // is idempotent. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  52306. ClientToken *string `locationName:"clientToken" type:"string"`
  52307. // The time when the modification request was created.
  52308. CreateDate *time.Time `locationName:"createDate" type:"timestamp" timestampFormat:"iso8601"`
  52309. // The time for the modification to become effective.
  52310. EffectiveDate *time.Time `locationName:"effectiveDate" type:"timestamp" timestampFormat:"iso8601"`
  52311. // Contains target configurations along with their corresponding new Reserved
  52312. // Instance IDs.
  52313. ModificationResults []*ReservedInstancesModificationResult `locationName:"modificationResultSet" locationNameList:"item" type:"list"`
  52314. // The IDs of one or more Reserved Instances.
  52315. ReservedInstancesIds []*ReservedInstancesId `locationName:"reservedInstancesSet" locationNameList:"item" type:"list"`
  52316. // A unique ID for the Reserved Instance modification.
  52317. ReservedInstancesModificationId *string `locationName:"reservedInstancesModificationId" type:"string"`
  52318. // The status of the Reserved Instances modification request.
  52319. Status *string `locationName:"status" type:"string"`
  52320. // The reason for the status.
  52321. StatusMessage *string `locationName:"statusMessage" type:"string"`
  52322. // The time when the modification request was last updated.
  52323. UpdateDate *time.Time `locationName:"updateDate" type:"timestamp" timestampFormat:"iso8601"`
  52324. }
  52325. // String returns the string representation
  52326. func (s ReservedInstancesModification) String() string {
  52327. return awsutil.Prettify(s)
  52328. }
  52329. // GoString returns the string representation
  52330. func (s ReservedInstancesModification) GoString() string {
  52331. return s.String()
  52332. }
  52333. // SetClientToken sets the ClientToken field's value.
  52334. func (s *ReservedInstancesModification) SetClientToken(v string) *ReservedInstancesModification {
  52335. s.ClientToken = &v
  52336. return s
  52337. }
  52338. // SetCreateDate sets the CreateDate field's value.
  52339. func (s *ReservedInstancesModification) SetCreateDate(v time.Time) *ReservedInstancesModification {
  52340. s.CreateDate = &v
  52341. return s
  52342. }
  52343. // SetEffectiveDate sets the EffectiveDate field's value.
  52344. func (s *ReservedInstancesModification) SetEffectiveDate(v time.Time) *ReservedInstancesModification {
  52345. s.EffectiveDate = &v
  52346. return s
  52347. }
  52348. // SetModificationResults sets the ModificationResults field's value.
  52349. func (s *ReservedInstancesModification) SetModificationResults(v []*ReservedInstancesModificationResult) *ReservedInstancesModification {
  52350. s.ModificationResults = v
  52351. return s
  52352. }
  52353. // SetReservedInstancesIds sets the ReservedInstancesIds field's value.
  52354. func (s *ReservedInstancesModification) SetReservedInstancesIds(v []*ReservedInstancesId) *ReservedInstancesModification {
  52355. s.ReservedInstancesIds = v
  52356. return s
  52357. }
  52358. // SetReservedInstancesModificationId sets the ReservedInstancesModificationId field's value.
  52359. func (s *ReservedInstancesModification) SetReservedInstancesModificationId(v string) *ReservedInstancesModification {
  52360. s.ReservedInstancesModificationId = &v
  52361. return s
  52362. }
  52363. // SetStatus sets the Status field's value.
  52364. func (s *ReservedInstancesModification) SetStatus(v string) *ReservedInstancesModification {
  52365. s.Status = &v
  52366. return s
  52367. }
  52368. // SetStatusMessage sets the StatusMessage field's value.
  52369. func (s *ReservedInstancesModification) SetStatusMessage(v string) *ReservedInstancesModification {
  52370. s.StatusMessage = &v
  52371. return s
  52372. }
  52373. // SetUpdateDate sets the UpdateDate field's value.
  52374. func (s *ReservedInstancesModification) SetUpdateDate(v time.Time) *ReservedInstancesModification {
  52375. s.UpdateDate = &v
  52376. return s
  52377. }
  52378. // Describes the modification request/s.
  52379. type ReservedInstancesModificationResult struct {
  52380. _ struct{} `type:"structure"`
  52381. // The ID for the Reserved Instances that were created as part of the modification
  52382. // request. This field is only available when the modification is fulfilled.
  52383. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`
  52384. // The target Reserved Instances configurations supplied as part of the modification
  52385. // request.
  52386. TargetConfiguration *ReservedInstancesConfiguration `locationName:"targetConfiguration" type:"structure"`
  52387. }
  52388. // String returns the string representation
  52389. func (s ReservedInstancesModificationResult) String() string {
  52390. return awsutil.Prettify(s)
  52391. }
  52392. // GoString returns the string representation
  52393. func (s ReservedInstancesModificationResult) GoString() string {
  52394. return s.String()
  52395. }
  52396. // SetReservedInstancesId sets the ReservedInstancesId field's value.
  52397. func (s *ReservedInstancesModificationResult) SetReservedInstancesId(v string) *ReservedInstancesModificationResult {
  52398. s.ReservedInstancesId = &v
  52399. return s
  52400. }
  52401. // SetTargetConfiguration sets the TargetConfiguration field's value.
  52402. func (s *ReservedInstancesModificationResult) SetTargetConfiguration(v *ReservedInstancesConfiguration) *ReservedInstancesModificationResult {
  52403. s.TargetConfiguration = v
  52404. return s
  52405. }
  52406. // Describes a Reserved Instance offering.
  52407. type ReservedInstancesOffering struct {
  52408. _ struct{} `type:"structure"`
  52409. // The Availability Zone in which the Reserved Instance can be used.
  52410. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  52411. // The currency of the Reserved Instance offering you are purchasing. It's specified
  52412. // using ISO 4217 standard currency codes. At this time, the only supported
  52413. // currency is USD.
  52414. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  52415. // The duration of the Reserved Instance, in seconds.
  52416. Duration *int64 `locationName:"duration" type:"long"`
  52417. // The purchase price of the Reserved Instance.
  52418. FixedPrice *float64 `locationName:"fixedPrice" type:"float"`
  52419. // The tenancy of the instance.
  52420. InstanceTenancy *string `locationName:"instanceTenancy" type:"string" enum:"Tenancy"`
  52421. // The instance type on which the Reserved Instance can be used.
  52422. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  52423. // Indicates whether the offering is available through the Reserved Instance
  52424. // Marketplace (resale) or AWS. If it's a Reserved Instance Marketplace offering,
  52425. // this is true.
  52426. Marketplace *bool `locationName:"marketplace" type:"boolean"`
  52427. // If convertible it can be exchanged for Reserved Instances of the same or
  52428. // higher monetary value, with different configurations. If standard, it is
  52429. // not possible to perform an exchange.
  52430. OfferingClass *string `locationName:"offeringClass" type:"string" enum:"OfferingClassType"`
  52431. // The Reserved Instance offering type.
  52432. OfferingType *string `locationName:"offeringType" type:"string" enum:"OfferingTypeValues"`
  52433. // The pricing details of the Reserved Instance offering.
  52434. PricingDetails []*PricingDetail `locationName:"pricingDetailsSet" locationNameList:"item" type:"list"`
  52435. // The Reserved Instance product platform description.
  52436. ProductDescription *string `locationName:"productDescription" type:"string" enum:"RIProductDescription"`
  52437. // The recurring charge tag assigned to the resource.
  52438. RecurringCharges []*RecurringCharge `locationName:"recurringCharges" locationNameList:"item" type:"list"`
  52439. // The ID of the Reserved Instance offering. This is the offering ID used in
  52440. // GetReservedInstancesExchangeQuote to confirm that an exchange can be made.
  52441. ReservedInstancesOfferingId *string `locationName:"reservedInstancesOfferingId" type:"string"`
  52442. // Whether the Reserved Instance is applied to instances in a region or an Availability
  52443. // Zone.
  52444. Scope *string `locationName:"scope" type:"string" enum:"scope"`
  52445. // The usage price of the Reserved Instance, per hour.
  52446. UsagePrice *float64 `locationName:"usagePrice" type:"float"`
  52447. }
  52448. // String returns the string representation
  52449. func (s ReservedInstancesOffering) String() string {
  52450. return awsutil.Prettify(s)
  52451. }
  52452. // GoString returns the string representation
  52453. func (s ReservedInstancesOffering) GoString() string {
  52454. return s.String()
  52455. }
  52456. // SetAvailabilityZone sets the AvailabilityZone field's value.
  52457. func (s *ReservedInstancesOffering) SetAvailabilityZone(v string) *ReservedInstancesOffering {
  52458. s.AvailabilityZone = &v
  52459. return s
  52460. }
  52461. // SetCurrencyCode sets the CurrencyCode field's value.
  52462. func (s *ReservedInstancesOffering) SetCurrencyCode(v string) *ReservedInstancesOffering {
  52463. s.CurrencyCode = &v
  52464. return s
  52465. }
  52466. // SetDuration sets the Duration field's value.
  52467. func (s *ReservedInstancesOffering) SetDuration(v int64) *ReservedInstancesOffering {
  52468. s.Duration = &v
  52469. return s
  52470. }
  52471. // SetFixedPrice sets the FixedPrice field's value.
  52472. func (s *ReservedInstancesOffering) SetFixedPrice(v float64) *ReservedInstancesOffering {
  52473. s.FixedPrice = &v
  52474. return s
  52475. }
  52476. // SetInstanceTenancy sets the InstanceTenancy field's value.
  52477. func (s *ReservedInstancesOffering) SetInstanceTenancy(v string) *ReservedInstancesOffering {
  52478. s.InstanceTenancy = &v
  52479. return s
  52480. }
  52481. // SetInstanceType sets the InstanceType field's value.
  52482. func (s *ReservedInstancesOffering) SetInstanceType(v string) *ReservedInstancesOffering {
  52483. s.InstanceType = &v
  52484. return s
  52485. }
  52486. // SetMarketplace sets the Marketplace field's value.
  52487. func (s *ReservedInstancesOffering) SetMarketplace(v bool) *ReservedInstancesOffering {
  52488. s.Marketplace = &v
  52489. return s
  52490. }
  52491. // SetOfferingClass sets the OfferingClass field's value.
  52492. func (s *ReservedInstancesOffering) SetOfferingClass(v string) *ReservedInstancesOffering {
  52493. s.OfferingClass = &v
  52494. return s
  52495. }
  52496. // SetOfferingType sets the OfferingType field's value.
  52497. func (s *ReservedInstancesOffering) SetOfferingType(v string) *ReservedInstancesOffering {
  52498. s.OfferingType = &v
  52499. return s
  52500. }
  52501. // SetPricingDetails sets the PricingDetails field's value.
  52502. func (s *ReservedInstancesOffering) SetPricingDetails(v []*PricingDetail) *ReservedInstancesOffering {
  52503. s.PricingDetails = v
  52504. return s
  52505. }
  52506. // SetProductDescription sets the ProductDescription field's value.
  52507. func (s *ReservedInstancesOffering) SetProductDescription(v string) *ReservedInstancesOffering {
  52508. s.ProductDescription = &v
  52509. return s
  52510. }
  52511. // SetRecurringCharges sets the RecurringCharges field's value.
  52512. func (s *ReservedInstancesOffering) SetRecurringCharges(v []*RecurringCharge) *ReservedInstancesOffering {
  52513. s.RecurringCharges = v
  52514. return s
  52515. }
  52516. // SetReservedInstancesOfferingId sets the ReservedInstancesOfferingId field's value.
  52517. func (s *ReservedInstancesOffering) SetReservedInstancesOfferingId(v string) *ReservedInstancesOffering {
  52518. s.ReservedInstancesOfferingId = &v
  52519. return s
  52520. }
  52521. // SetScope sets the Scope field's value.
  52522. func (s *ReservedInstancesOffering) SetScope(v string) *ReservedInstancesOffering {
  52523. s.Scope = &v
  52524. return s
  52525. }
  52526. // SetUsagePrice sets the UsagePrice field's value.
  52527. func (s *ReservedInstancesOffering) SetUsagePrice(v float64) *ReservedInstancesOffering {
  52528. s.UsagePrice = &v
  52529. return s
  52530. }
  52531. type ResetFpgaImageAttributeInput struct {
  52532. _ struct{} `type:"structure"`
  52533. // The attribute.
  52534. Attribute *string `type:"string" enum:"ResetFpgaImageAttributeName"`
  52535. // Checks whether you have the required permissions for the action, without
  52536. // actually making the request, and provides an error response. If you have
  52537. // the required permissions, the error response is DryRunOperation. Otherwise,
  52538. // it is UnauthorizedOperation.
  52539. DryRun *bool `type:"boolean"`
  52540. // The ID of the AFI.
  52541. //
  52542. // FpgaImageId is a required field
  52543. FpgaImageId *string `type:"string" required:"true"`
  52544. }
  52545. // String returns the string representation
  52546. func (s ResetFpgaImageAttributeInput) String() string {
  52547. return awsutil.Prettify(s)
  52548. }
  52549. // GoString returns the string representation
  52550. func (s ResetFpgaImageAttributeInput) GoString() string {
  52551. return s.String()
  52552. }
  52553. // Validate inspects the fields of the type to determine if they are valid.
  52554. func (s *ResetFpgaImageAttributeInput) Validate() error {
  52555. invalidParams := request.ErrInvalidParams{Context: "ResetFpgaImageAttributeInput"}
  52556. if s.FpgaImageId == nil {
  52557. invalidParams.Add(request.NewErrParamRequired("FpgaImageId"))
  52558. }
  52559. if invalidParams.Len() > 0 {
  52560. return invalidParams
  52561. }
  52562. return nil
  52563. }
  52564. // SetAttribute sets the Attribute field's value.
  52565. func (s *ResetFpgaImageAttributeInput) SetAttribute(v string) *ResetFpgaImageAttributeInput {
  52566. s.Attribute = &v
  52567. return s
  52568. }
  52569. // SetDryRun sets the DryRun field's value.
  52570. func (s *ResetFpgaImageAttributeInput) SetDryRun(v bool) *ResetFpgaImageAttributeInput {
  52571. s.DryRun = &v
  52572. return s
  52573. }
  52574. // SetFpgaImageId sets the FpgaImageId field's value.
  52575. func (s *ResetFpgaImageAttributeInput) SetFpgaImageId(v string) *ResetFpgaImageAttributeInput {
  52576. s.FpgaImageId = &v
  52577. return s
  52578. }
  52579. type ResetFpgaImageAttributeOutput struct {
  52580. _ struct{} `type:"structure"`
  52581. // Is true if the request succeeds, and an error otherwise.
  52582. Return *bool `locationName:"return" type:"boolean"`
  52583. }
  52584. // String returns the string representation
  52585. func (s ResetFpgaImageAttributeOutput) String() string {
  52586. return awsutil.Prettify(s)
  52587. }
  52588. // GoString returns the string representation
  52589. func (s ResetFpgaImageAttributeOutput) GoString() string {
  52590. return s.String()
  52591. }
  52592. // SetReturn sets the Return field's value.
  52593. func (s *ResetFpgaImageAttributeOutput) SetReturn(v bool) *ResetFpgaImageAttributeOutput {
  52594. s.Return = &v
  52595. return s
  52596. }
  52597. // Contains the parameters for ResetImageAttribute.
  52598. type ResetImageAttributeInput struct {
  52599. _ struct{} `type:"structure"`
  52600. // The attribute to reset (currently you can only reset the launch permission
  52601. // attribute).
  52602. //
  52603. // Attribute is a required field
  52604. Attribute *string `type:"string" required:"true" enum:"ResetImageAttributeName"`
  52605. // Checks whether you have the required permissions for the action, without
  52606. // actually making the request, and provides an error response. If you have
  52607. // the required permissions, the error response is DryRunOperation. Otherwise,
  52608. // it is UnauthorizedOperation.
  52609. DryRun *bool `locationName:"dryRun" type:"boolean"`
  52610. // The ID of the AMI.
  52611. //
  52612. // ImageId is a required field
  52613. ImageId *string `type:"string" required:"true"`
  52614. }
  52615. // String returns the string representation
  52616. func (s ResetImageAttributeInput) String() string {
  52617. return awsutil.Prettify(s)
  52618. }
  52619. // GoString returns the string representation
  52620. func (s ResetImageAttributeInput) GoString() string {
  52621. return s.String()
  52622. }
  52623. // Validate inspects the fields of the type to determine if they are valid.
  52624. func (s *ResetImageAttributeInput) Validate() error {
  52625. invalidParams := request.ErrInvalidParams{Context: "ResetImageAttributeInput"}
  52626. if s.Attribute == nil {
  52627. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  52628. }
  52629. if s.ImageId == nil {
  52630. invalidParams.Add(request.NewErrParamRequired("ImageId"))
  52631. }
  52632. if invalidParams.Len() > 0 {
  52633. return invalidParams
  52634. }
  52635. return nil
  52636. }
  52637. // SetAttribute sets the Attribute field's value.
  52638. func (s *ResetImageAttributeInput) SetAttribute(v string) *ResetImageAttributeInput {
  52639. s.Attribute = &v
  52640. return s
  52641. }
  52642. // SetDryRun sets the DryRun field's value.
  52643. func (s *ResetImageAttributeInput) SetDryRun(v bool) *ResetImageAttributeInput {
  52644. s.DryRun = &v
  52645. return s
  52646. }
  52647. // SetImageId sets the ImageId field's value.
  52648. func (s *ResetImageAttributeInput) SetImageId(v string) *ResetImageAttributeInput {
  52649. s.ImageId = &v
  52650. return s
  52651. }
  52652. type ResetImageAttributeOutput struct {
  52653. _ struct{} `type:"structure"`
  52654. }
  52655. // String returns the string representation
  52656. func (s ResetImageAttributeOutput) String() string {
  52657. return awsutil.Prettify(s)
  52658. }
  52659. // GoString returns the string representation
  52660. func (s ResetImageAttributeOutput) GoString() string {
  52661. return s.String()
  52662. }
  52663. // Contains the parameters for ResetInstanceAttribute.
  52664. type ResetInstanceAttributeInput struct {
  52665. _ struct{} `type:"structure"`
  52666. // The attribute to reset.
  52667. //
  52668. // You can only reset the following attributes: kernel | ramdisk | sourceDestCheck.
  52669. // To change an instance attribute, use ModifyInstanceAttribute.
  52670. //
  52671. // Attribute is a required field
  52672. Attribute *string `locationName:"attribute" type:"string" required:"true" enum:"InstanceAttributeName"`
  52673. // Checks whether you have the required permissions for the action, without
  52674. // actually making the request, and provides an error response. If you have
  52675. // the required permissions, the error response is DryRunOperation. Otherwise,
  52676. // it is UnauthorizedOperation.
  52677. DryRun *bool `locationName:"dryRun" type:"boolean"`
  52678. // The ID of the instance.
  52679. //
  52680. // InstanceId is a required field
  52681. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  52682. }
  52683. // String returns the string representation
  52684. func (s ResetInstanceAttributeInput) String() string {
  52685. return awsutil.Prettify(s)
  52686. }
  52687. // GoString returns the string representation
  52688. func (s ResetInstanceAttributeInput) GoString() string {
  52689. return s.String()
  52690. }
  52691. // Validate inspects the fields of the type to determine if they are valid.
  52692. func (s *ResetInstanceAttributeInput) Validate() error {
  52693. invalidParams := request.ErrInvalidParams{Context: "ResetInstanceAttributeInput"}
  52694. if s.Attribute == nil {
  52695. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  52696. }
  52697. if s.InstanceId == nil {
  52698. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  52699. }
  52700. if invalidParams.Len() > 0 {
  52701. return invalidParams
  52702. }
  52703. return nil
  52704. }
  52705. // SetAttribute sets the Attribute field's value.
  52706. func (s *ResetInstanceAttributeInput) SetAttribute(v string) *ResetInstanceAttributeInput {
  52707. s.Attribute = &v
  52708. return s
  52709. }
  52710. // SetDryRun sets the DryRun field's value.
  52711. func (s *ResetInstanceAttributeInput) SetDryRun(v bool) *ResetInstanceAttributeInput {
  52712. s.DryRun = &v
  52713. return s
  52714. }
  52715. // SetInstanceId sets the InstanceId field's value.
  52716. func (s *ResetInstanceAttributeInput) SetInstanceId(v string) *ResetInstanceAttributeInput {
  52717. s.InstanceId = &v
  52718. return s
  52719. }
  52720. type ResetInstanceAttributeOutput struct {
  52721. _ struct{} `type:"structure"`
  52722. }
  52723. // String returns the string representation
  52724. func (s ResetInstanceAttributeOutput) String() string {
  52725. return awsutil.Prettify(s)
  52726. }
  52727. // GoString returns the string representation
  52728. func (s ResetInstanceAttributeOutput) GoString() string {
  52729. return s.String()
  52730. }
  52731. // Contains the parameters for ResetNetworkInterfaceAttribute.
  52732. type ResetNetworkInterfaceAttributeInput struct {
  52733. _ struct{} `type:"structure"`
  52734. // Checks whether you have the required permissions for the action, without
  52735. // actually making the request, and provides an error response. If you have
  52736. // the required permissions, the error response is DryRunOperation. Otherwise,
  52737. // it is UnauthorizedOperation.
  52738. DryRun *bool `locationName:"dryRun" type:"boolean"`
  52739. // The ID of the network interface.
  52740. //
  52741. // NetworkInterfaceId is a required field
  52742. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  52743. // The source/destination checking attribute. Resets the value to true.
  52744. SourceDestCheck *string `locationName:"sourceDestCheck" type:"string"`
  52745. }
  52746. // String returns the string representation
  52747. func (s ResetNetworkInterfaceAttributeInput) String() string {
  52748. return awsutil.Prettify(s)
  52749. }
  52750. // GoString returns the string representation
  52751. func (s ResetNetworkInterfaceAttributeInput) GoString() string {
  52752. return s.String()
  52753. }
  52754. // Validate inspects the fields of the type to determine if they are valid.
  52755. func (s *ResetNetworkInterfaceAttributeInput) Validate() error {
  52756. invalidParams := request.ErrInvalidParams{Context: "ResetNetworkInterfaceAttributeInput"}
  52757. if s.NetworkInterfaceId == nil {
  52758. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  52759. }
  52760. if invalidParams.Len() > 0 {
  52761. return invalidParams
  52762. }
  52763. return nil
  52764. }
  52765. // SetDryRun sets the DryRun field's value.
  52766. func (s *ResetNetworkInterfaceAttributeInput) SetDryRun(v bool) *ResetNetworkInterfaceAttributeInput {
  52767. s.DryRun = &v
  52768. return s
  52769. }
  52770. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  52771. func (s *ResetNetworkInterfaceAttributeInput) SetNetworkInterfaceId(v string) *ResetNetworkInterfaceAttributeInput {
  52772. s.NetworkInterfaceId = &v
  52773. return s
  52774. }
  52775. // SetSourceDestCheck sets the SourceDestCheck field's value.
  52776. func (s *ResetNetworkInterfaceAttributeInput) SetSourceDestCheck(v string) *ResetNetworkInterfaceAttributeInput {
  52777. s.SourceDestCheck = &v
  52778. return s
  52779. }
  52780. type ResetNetworkInterfaceAttributeOutput struct {
  52781. _ struct{} `type:"structure"`
  52782. }
  52783. // String returns the string representation
  52784. func (s ResetNetworkInterfaceAttributeOutput) String() string {
  52785. return awsutil.Prettify(s)
  52786. }
  52787. // GoString returns the string representation
  52788. func (s ResetNetworkInterfaceAttributeOutput) GoString() string {
  52789. return s.String()
  52790. }
  52791. // Contains the parameters for ResetSnapshotAttribute.
  52792. type ResetSnapshotAttributeInput struct {
  52793. _ struct{} `type:"structure"`
  52794. // The attribute to reset. Currently, only the attribute for permission to create
  52795. // volumes can be reset.
  52796. //
  52797. // Attribute is a required field
  52798. Attribute *string `type:"string" required:"true" enum:"SnapshotAttributeName"`
  52799. // Checks whether you have the required permissions for the action, without
  52800. // actually making the request, and provides an error response. If you have
  52801. // the required permissions, the error response is DryRunOperation. Otherwise,
  52802. // it is UnauthorizedOperation.
  52803. DryRun *bool `locationName:"dryRun" type:"boolean"`
  52804. // The ID of the snapshot.
  52805. //
  52806. // SnapshotId is a required field
  52807. SnapshotId *string `type:"string" required:"true"`
  52808. }
  52809. // String returns the string representation
  52810. func (s ResetSnapshotAttributeInput) String() string {
  52811. return awsutil.Prettify(s)
  52812. }
  52813. // GoString returns the string representation
  52814. func (s ResetSnapshotAttributeInput) GoString() string {
  52815. return s.String()
  52816. }
  52817. // Validate inspects the fields of the type to determine if they are valid.
  52818. func (s *ResetSnapshotAttributeInput) Validate() error {
  52819. invalidParams := request.ErrInvalidParams{Context: "ResetSnapshotAttributeInput"}
  52820. if s.Attribute == nil {
  52821. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  52822. }
  52823. if s.SnapshotId == nil {
  52824. invalidParams.Add(request.NewErrParamRequired("SnapshotId"))
  52825. }
  52826. if invalidParams.Len() > 0 {
  52827. return invalidParams
  52828. }
  52829. return nil
  52830. }
  52831. // SetAttribute sets the Attribute field's value.
  52832. func (s *ResetSnapshotAttributeInput) SetAttribute(v string) *ResetSnapshotAttributeInput {
  52833. s.Attribute = &v
  52834. return s
  52835. }
  52836. // SetDryRun sets the DryRun field's value.
  52837. func (s *ResetSnapshotAttributeInput) SetDryRun(v bool) *ResetSnapshotAttributeInput {
  52838. s.DryRun = &v
  52839. return s
  52840. }
  52841. // SetSnapshotId sets the SnapshotId field's value.
  52842. func (s *ResetSnapshotAttributeInput) SetSnapshotId(v string) *ResetSnapshotAttributeInput {
  52843. s.SnapshotId = &v
  52844. return s
  52845. }
  52846. type ResetSnapshotAttributeOutput struct {
  52847. _ struct{} `type:"structure"`
  52848. }
  52849. // String returns the string representation
  52850. func (s ResetSnapshotAttributeOutput) String() string {
  52851. return awsutil.Prettify(s)
  52852. }
  52853. // GoString returns the string representation
  52854. func (s ResetSnapshotAttributeOutput) GoString() string {
  52855. return s.String()
  52856. }
  52857. // Describes the error that's returned when you cannot delete a launch template
  52858. // version.
  52859. type ResponseError struct {
  52860. _ struct{} `type:"structure"`
  52861. // The error code.
  52862. Code *string `locationName:"code" type:"string" enum:"LaunchTemplateErrorCode"`
  52863. // The error message, if applicable.
  52864. Message *string `locationName:"message" type:"string"`
  52865. }
  52866. // String returns the string representation
  52867. func (s ResponseError) String() string {
  52868. return awsutil.Prettify(s)
  52869. }
  52870. // GoString returns the string representation
  52871. func (s ResponseError) GoString() string {
  52872. return s.String()
  52873. }
  52874. // SetCode sets the Code field's value.
  52875. func (s *ResponseError) SetCode(v string) *ResponseError {
  52876. s.Code = &v
  52877. return s
  52878. }
  52879. // SetMessage sets the Message field's value.
  52880. func (s *ResponseError) SetMessage(v string) *ResponseError {
  52881. s.Message = &v
  52882. return s
  52883. }
  52884. // The information for a launch template.
  52885. type ResponseLaunchTemplateData struct {
  52886. _ struct{} `type:"structure"`
  52887. // The block device mappings.
  52888. BlockDeviceMappings []*LaunchTemplateBlockDeviceMapping `locationName:"blockDeviceMappingSet" locationNameList:"item" type:"list"`
  52889. // The credit option for CPU usage of the instance.
  52890. CreditSpecification *CreditSpecification `locationName:"creditSpecification" type:"structure"`
  52891. // If set to true, indicates that the instance cannot be terminated using the
  52892. // Amazon EC2 console, command line tool, or API.
  52893. DisableApiTermination *bool `locationName:"disableApiTermination" type:"boolean"`
  52894. // Indicates whether the instance is optimized for Amazon EBS I/O.
  52895. EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`
  52896. // The elastic GPU specification.
  52897. ElasticGpuSpecifications []*ElasticGpuSpecificationResponse `locationName:"elasticGpuSpecificationSet" locationNameList:"item" type:"list"`
  52898. // The IAM instance profile.
  52899. IamInstanceProfile *LaunchTemplateIamInstanceProfileSpecification `locationName:"iamInstanceProfile" type:"structure"`
  52900. // The ID of the AMI that was used to launch the instance.
  52901. ImageId *string `locationName:"imageId" type:"string"`
  52902. // Indicates whether an instance stops or terminates when you initiate shutdown
  52903. // from the instance (using the operating system command for system shutdown).
  52904. InstanceInitiatedShutdownBehavior *string `locationName:"instanceInitiatedShutdownBehavior" type:"string" enum:"ShutdownBehavior"`
  52905. // The market (purchasing) option for the instances.
  52906. InstanceMarketOptions *LaunchTemplateInstanceMarketOptions `locationName:"instanceMarketOptions" type:"structure"`
  52907. // The instance type.
  52908. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  52909. // The ID of the kernel, if applicable.
  52910. KernelId *string `locationName:"kernelId" type:"string"`
  52911. // The name of the key pair.
  52912. KeyName *string `locationName:"keyName" type:"string"`
  52913. // The monitoring for the instance.
  52914. Monitoring *LaunchTemplatesMonitoring `locationName:"monitoring" type:"structure"`
  52915. // The network interfaces.
  52916. NetworkInterfaces []*LaunchTemplateInstanceNetworkInterfaceSpecification `locationName:"networkInterfaceSet" locationNameList:"item" type:"list"`
  52917. // The placement of the instance.
  52918. Placement *LaunchTemplatePlacement `locationName:"placement" type:"structure"`
  52919. // The ID of the RAM disk, if applicable.
  52920. RamDiskId *string `locationName:"ramDiskId" type:"string"`
  52921. // The security group IDs.
  52922. SecurityGroupIds []*string `locationName:"securityGroupIdSet" locationNameList:"item" type:"list"`
  52923. // The security group names.
  52924. SecurityGroups []*string `locationName:"securityGroupSet" locationNameList:"item" type:"list"`
  52925. // The tags.
  52926. TagSpecifications []*LaunchTemplateTagSpecification `locationName:"tagSpecificationSet" locationNameList:"item" type:"list"`
  52927. // The user data for the instance.
  52928. UserData *string `locationName:"userData" type:"string"`
  52929. }
  52930. // String returns the string representation
  52931. func (s ResponseLaunchTemplateData) String() string {
  52932. return awsutil.Prettify(s)
  52933. }
  52934. // GoString returns the string representation
  52935. func (s ResponseLaunchTemplateData) GoString() string {
  52936. return s.String()
  52937. }
  52938. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  52939. func (s *ResponseLaunchTemplateData) SetBlockDeviceMappings(v []*LaunchTemplateBlockDeviceMapping) *ResponseLaunchTemplateData {
  52940. s.BlockDeviceMappings = v
  52941. return s
  52942. }
  52943. // SetCreditSpecification sets the CreditSpecification field's value.
  52944. func (s *ResponseLaunchTemplateData) SetCreditSpecification(v *CreditSpecification) *ResponseLaunchTemplateData {
  52945. s.CreditSpecification = v
  52946. return s
  52947. }
  52948. // SetDisableApiTermination sets the DisableApiTermination field's value.
  52949. func (s *ResponseLaunchTemplateData) SetDisableApiTermination(v bool) *ResponseLaunchTemplateData {
  52950. s.DisableApiTermination = &v
  52951. return s
  52952. }
  52953. // SetEbsOptimized sets the EbsOptimized field's value.
  52954. func (s *ResponseLaunchTemplateData) SetEbsOptimized(v bool) *ResponseLaunchTemplateData {
  52955. s.EbsOptimized = &v
  52956. return s
  52957. }
  52958. // SetElasticGpuSpecifications sets the ElasticGpuSpecifications field's value.
  52959. func (s *ResponseLaunchTemplateData) SetElasticGpuSpecifications(v []*ElasticGpuSpecificationResponse) *ResponseLaunchTemplateData {
  52960. s.ElasticGpuSpecifications = v
  52961. return s
  52962. }
  52963. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  52964. func (s *ResponseLaunchTemplateData) SetIamInstanceProfile(v *LaunchTemplateIamInstanceProfileSpecification) *ResponseLaunchTemplateData {
  52965. s.IamInstanceProfile = v
  52966. return s
  52967. }
  52968. // SetImageId sets the ImageId field's value.
  52969. func (s *ResponseLaunchTemplateData) SetImageId(v string) *ResponseLaunchTemplateData {
  52970. s.ImageId = &v
  52971. return s
  52972. }
  52973. // SetInstanceInitiatedShutdownBehavior sets the InstanceInitiatedShutdownBehavior field's value.
  52974. func (s *ResponseLaunchTemplateData) SetInstanceInitiatedShutdownBehavior(v string) *ResponseLaunchTemplateData {
  52975. s.InstanceInitiatedShutdownBehavior = &v
  52976. return s
  52977. }
  52978. // SetInstanceMarketOptions sets the InstanceMarketOptions field's value.
  52979. func (s *ResponseLaunchTemplateData) SetInstanceMarketOptions(v *LaunchTemplateInstanceMarketOptions) *ResponseLaunchTemplateData {
  52980. s.InstanceMarketOptions = v
  52981. return s
  52982. }
  52983. // SetInstanceType sets the InstanceType field's value.
  52984. func (s *ResponseLaunchTemplateData) SetInstanceType(v string) *ResponseLaunchTemplateData {
  52985. s.InstanceType = &v
  52986. return s
  52987. }
  52988. // SetKernelId sets the KernelId field's value.
  52989. func (s *ResponseLaunchTemplateData) SetKernelId(v string) *ResponseLaunchTemplateData {
  52990. s.KernelId = &v
  52991. return s
  52992. }
  52993. // SetKeyName sets the KeyName field's value.
  52994. func (s *ResponseLaunchTemplateData) SetKeyName(v string) *ResponseLaunchTemplateData {
  52995. s.KeyName = &v
  52996. return s
  52997. }
  52998. // SetMonitoring sets the Monitoring field's value.
  52999. func (s *ResponseLaunchTemplateData) SetMonitoring(v *LaunchTemplatesMonitoring) *ResponseLaunchTemplateData {
  53000. s.Monitoring = v
  53001. return s
  53002. }
  53003. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  53004. func (s *ResponseLaunchTemplateData) SetNetworkInterfaces(v []*LaunchTemplateInstanceNetworkInterfaceSpecification) *ResponseLaunchTemplateData {
  53005. s.NetworkInterfaces = v
  53006. return s
  53007. }
  53008. // SetPlacement sets the Placement field's value.
  53009. func (s *ResponseLaunchTemplateData) SetPlacement(v *LaunchTemplatePlacement) *ResponseLaunchTemplateData {
  53010. s.Placement = v
  53011. return s
  53012. }
  53013. // SetRamDiskId sets the RamDiskId field's value.
  53014. func (s *ResponseLaunchTemplateData) SetRamDiskId(v string) *ResponseLaunchTemplateData {
  53015. s.RamDiskId = &v
  53016. return s
  53017. }
  53018. // SetSecurityGroupIds sets the SecurityGroupIds field's value.
  53019. func (s *ResponseLaunchTemplateData) SetSecurityGroupIds(v []*string) *ResponseLaunchTemplateData {
  53020. s.SecurityGroupIds = v
  53021. return s
  53022. }
  53023. // SetSecurityGroups sets the SecurityGroups field's value.
  53024. func (s *ResponseLaunchTemplateData) SetSecurityGroups(v []*string) *ResponseLaunchTemplateData {
  53025. s.SecurityGroups = v
  53026. return s
  53027. }
  53028. // SetTagSpecifications sets the TagSpecifications field's value.
  53029. func (s *ResponseLaunchTemplateData) SetTagSpecifications(v []*LaunchTemplateTagSpecification) *ResponseLaunchTemplateData {
  53030. s.TagSpecifications = v
  53031. return s
  53032. }
  53033. // SetUserData sets the UserData field's value.
  53034. func (s *ResponseLaunchTemplateData) SetUserData(v string) *ResponseLaunchTemplateData {
  53035. s.UserData = &v
  53036. return s
  53037. }
  53038. // Contains the parameters for RestoreAddressToClassic.
  53039. type RestoreAddressToClassicInput struct {
  53040. _ struct{} `type:"structure"`
  53041. // Checks whether you have the required permissions for the action, without
  53042. // actually making the request, and provides an error response. If you have
  53043. // the required permissions, the error response is DryRunOperation. Otherwise,
  53044. // it is UnauthorizedOperation.
  53045. DryRun *bool `locationName:"dryRun" type:"boolean"`
  53046. // The Elastic IP address.
  53047. //
  53048. // PublicIp is a required field
  53049. PublicIp *string `locationName:"publicIp" type:"string" required:"true"`
  53050. }
  53051. // String returns the string representation
  53052. func (s RestoreAddressToClassicInput) String() string {
  53053. return awsutil.Prettify(s)
  53054. }
  53055. // GoString returns the string representation
  53056. func (s RestoreAddressToClassicInput) GoString() string {
  53057. return s.String()
  53058. }
  53059. // Validate inspects the fields of the type to determine if they are valid.
  53060. func (s *RestoreAddressToClassicInput) Validate() error {
  53061. invalidParams := request.ErrInvalidParams{Context: "RestoreAddressToClassicInput"}
  53062. if s.PublicIp == nil {
  53063. invalidParams.Add(request.NewErrParamRequired("PublicIp"))
  53064. }
  53065. if invalidParams.Len() > 0 {
  53066. return invalidParams
  53067. }
  53068. return nil
  53069. }
  53070. // SetDryRun sets the DryRun field's value.
  53071. func (s *RestoreAddressToClassicInput) SetDryRun(v bool) *RestoreAddressToClassicInput {
  53072. s.DryRun = &v
  53073. return s
  53074. }
  53075. // SetPublicIp sets the PublicIp field's value.
  53076. func (s *RestoreAddressToClassicInput) SetPublicIp(v string) *RestoreAddressToClassicInput {
  53077. s.PublicIp = &v
  53078. return s
  53079. }
  53080. // Contains the output of RestoreAddressToClassic.
  53081. type RestoreAddressToClassicOutput struct {
  53082. _ struct{} `type:"structure"`
  53083. // The Elastic IP address.
  53084. PublicIp *string `locationName:"publicIp" type:"string"`
  53085. // The move status for the IP address.
  53086. Status *string `locationName:"status" type:"string" enum:"Status"`
  53087. }
  53088. // String returns the string representation
  53089. func (s RestoreAddressToClassicOutput) String() string {
  53090. return awsutil.Prettify(s)
  53091. }
  53092. // GoString returns the string representation
  53093. func (s RestoreAddressToClassicOutput) GoString() string {
  53094. return s.String()
  53095. }
  53096. // SetPublicIp sets the PublicIp field's value.
  53097. func (s *RestoreAddressToClassicOutput) SetPublicIp(v string) *RestoreAddressToClassicOutput {
  53098. s.PublicIp = &v
  53099. return s
  53100. }
  53101. // SetStatus sets the Status field's value.
  53102. func (s *RestoreAddressToClassicOutput) SetStatus(v string) *RestoreAddressToClassicOutput {
  53103. s.Status = &v
  53104. return s
  53105. }
  53106. // Contains the parameters for RevokeSecurityGroupEgress.
  53107. type RevokeSecurityGroupEgressInput struct {
  53108. _ struct{} `type:"structure"`
  53109. // Not supported. Use a set of IP permissions to specify the CIDR.
  53110. CidrIp *string `locationName:"cidrIp" type:"string"`
  53111. // Checks whether you have the required permissions for the action, without
  53112. // actually making the request, and provides an error response. If you have
  53113. // the required permissions, the error response is DryRunOperation. Otherwise,
  53114. // it is UnauthorizedOperation.
  53115. DryRun *bool `locationName:"dryRun" type:"boolean"`
  53116. // Not supported. Use a set of IP permissions to specify the port.
  53117. FromPort *int64 `locationName:"fromPort" type:"integer"`
  53118. // The ID of the security group.
  53119. //
  53120. // GroupId is a required field
  53121. GroupId *string `locationName:"groupId" type:"string" required:"true"`
  53122. // One or more sets of IP permissions. You can't specify a destination security
  53123. // group and a CIDR IP address range in the same set of permissions.
  53124. IpPermissions []*IpPermission `locationName:"ipPermissions" locationNameList:"item" type:"list"`
  53125. // Not supported. Use a set of IP permissions to specify the protocol name or
  53126. // number.
  53127. IpProtocol *string `locationName:"ipProtocol" type:"string"`
  53128. // Not supported. Use a set of IP permissions to specify a destination security
  53129. // group.
  53130. SourceSecurityGroupName *string `locationName:"sourceSecurityGroupName" type:"string"`
  53131. // Not supported. Use a set of IP permissions to specify a destination security
  53132. // group.
  53133. SourceSecurityGroupOwnerId *string `locationName:"sourceSecurityGroupOwnerId" type:"string"`
  53134. // Not supported. Use a set of IP permissions to specify the port.
  53135. ToPort *int64 `locationName:"toPort" type:"integer"`
  53136. }
  53137. // String returns the string representation
  53138. func (s RevokeSecurityGroupEgressInput) String() string {
  53139. return awsutil.Prettify(s)
  53140. }
  53141. // GoString returns the string representation
  53142. func (s RevokeSecurityGroupEgressInput) GoString() string {
  53143. return s.String()
  53144. }
  53145. // Validate inspects the fields of the type to determine if they are valid.
  53146. func (s *RevokeSecurityGroupEgressInput) Validate() error {
  53147. invalidParams := request.ErrInvalidParams{Context: "RevokeSecurityGroupEgressInput"}
  53148. if s.GroupId == nil {
  53149. invalidParams.Add(request.NewErrParamRequired("GroupId"))
  53150. }
  53151. if invalidParams.Len() > 0 {
  53152. return invalidParams
  53153. }
  53154. return nil
  53155. }
  53156. // SetCidrIp sets the CidrIp field's value.
  53157. func (s *RevokeSecurityGroupEgressInput) SetCidrIp(v string) *RevokeSecurityGroupEgressInput {
  53158. s.CidrIp = &v
  53159. return s
  53160. }
  53161. // SetDryRun sets the DryRun field's value.
  53162. func (s *RevokeSecurityGroupEgressInput) SetDryRun(v bool) *RevokeSecurityGroupEgressInput {
  53163. s.DryRun = &v
  53164. return s
  53165. }
  53166. // SetFromPort sets the FromPort field's value.
  53167. func (s *RevokeSecurityGroupEgressInput) SetFromPort(v int64) *RevokeSecurityGroupEgressInput {
  53168. s.FromPort = &v
  53169. return s
  53170. }
  53171. // SetGroupId sets the GroupId field's value.
  53172. func (s *RevokeSecurityGroupEgressInput) SetGroupId(v string) *RevokeSecurityGroupEgressInput {
  53173. s.GroupId = &v
  53174. return s
  53175. }
  53176. // SetIpPermissions sets the IpPermissions field's value.
  53177. func (s *RevokeSecurityGroupEgressInput) SetIpPermissions(v []*IpPermission) *RevokeSecurityGroupEgressInput {
  53178. s.IpPermissions = v
  53179. return s
  53180. }
  53181. // SetIpProtocol sets the IpProtocol field's value.
  53182. func (s *RevokeSecurityGroupEgressInput) SetIpProtocol(v string) *RevokeSecurityGroupEgressInput {
  53183. s.IpProtocol = &v
  53184. return s
  53185. }
  53186. // SetSourceSecurityGroupName sets the SourceSecurityGroupName field's value.
  53187. func (s *RevokeSecurityGroupEgressInput) SetSourceSecurityGroupName(v string) *RevokeSecurityGroupEgressInput {
  53188. s.SourceSecurityGroupName = &v
  53189. return s
  53190. }
  53191. // SetSourceSecurityGroupOwnerId sets the SourceSecurityGroupOwnerId field's value.
  53192. func (s *RevokeSecurityGroupEgressInput) SetSourceSecurityGroupOwnerId(v string) *RevokeSecurityGroupEgressInput {
  53193. s.SourceSecurityGroupOwnerId = &v
  53194. return s
  53195. }
  53196. // SetToPort sets the ToPort field's value.
  53197. func (s *RevokeSecurityGroupEgressInput) SetToPort(v int64) *RevokeSecurityGroupEgressInput {
  53198. s.ToPort = &v
  53199. return s
  53200. }
  53201. type RevokeSecurityGroupEgressOutput struct {
  53202. _ struct{} `type:"structure"`
  53203. }
  53204. // String returns the string representation
  53205. func (s RevokeSecurityGroupEgressOutput) String() string {
  53206. return awsutil.Prettify(s)
  53207. }
  53208. // GoString returns the string representation
  53209. func (s RevokeSecurityGroupEgressOutput) GoString() string {
  53210. return s.String()
  53211. }
  53212. // Contains the parameters for RevokeSecurityGroupIngress.
  53213. type RevokeSecurityGroupIngressInput struct {
  53214. _ struct{} `type:"structure"`
  53215. // The CIDR IP address range. You can't specify this parameter when specifying
  53216. // a source security group.
  53217. CidrIp *string `type:"string"`
  53218. // Checks whether you have the required permissions for the action, without
  53219. // actually making the request, and provides an error response. If you have
  53220. // the required permissions, the error response is DryRunOperation. Otherwise,
  53221. // it is UnauthorizedOperation.
  53222. DryRun *bool `locationName:"dryRun" type:"boolean"`
  53223. // The start of port range for the TCP and UDP protocols, or an ICMP type number.
  53224. // For the ICMP type number, use -1 to specify all ICMP types.
  53225. FromPort *int64 `type:"integer"`
  53226. // The ID of the security group. You must specify either the security group
  53227. // ID or the security group name in the request. For security groups in a nondefault
  53228. // VPC, you must specify the security group ID.
  53229. GroupId *string `type:"string"`
  53230. // [EC2-Classic, default VPC] The name of the security group. You must specify
  53231. // either the security group ID or the security group name in the request.
  53232. GroupName *string `type:"string"`
  53233. // One or more sets of IP permissions. You can't specify a source security group
  53234. // and a CIDR IP address range in the same set of permissions.
  53235. IpPermissions []*IpPermission `locationNameList:"item" type:"list"`
  53236. // The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)).
  53237. // Use -1 to specify all.
  53238. IpProtocol *string `type:"string"`
  53239. // [EC2-Classic, default VPC] The name of the source security group. You can't
  53240. // specify this parameter in combination with the following parameters: the
  53241. // CIDR IP address range, the start of the port range, the IP protocol, and
  53242. // the end of the port range. For EC2-VPC, the source security group must be
  53243. // in the same VPC. To revoke a specific rule for an IP protocol and port range,
  53244. // use a set of IP permissions instead.
  53245. SourceSecurityGroupName *string `type:"string"`
  53246. // [EC2-Classic] The AWS account ID of the source security group, if the source
  53247. // security group is in a different account. You can't specify this parameter
  53248. // in combination with the following parameters: the CIDR IP address range,
  53249. // the IP protocol, the start of the port range, and the end of the port range.
  53250. // To revoke a specific rule for an IP protocol and port range, use a set of
  53251. // IP permissions instead.
  53252. SourceSecurityGroupOwnerId *string `type:"string"`
  53253. // The end of port range for the TCP and UDP protocols, or an ICMP code number.
  53254. // For the ICMP code number, use -1 to specify all ICMP codes for the ICMP type.
  53255. ToPort *int64 `type:"integer"`
  53256. }
  53257. // String returns the string representation
  53258. func (s RevokeSecurityGroupIngressInput) String() string {
  53259. return awsutil.Prettify(s)
  53260. }
  53261. // GoString returns the string representation
  53262. func (s RevokeSecurityGroupIngressInput) GoString() string {
  53263. return s.String()
  53264. }
  53265. // SetCidrIp sets the CidrIp field's value.
  53266. func (s *RevokeSecurityGroupIngressInput) SetCidrIp(v string) *RevokeSecurityGroupIngressInput {
  53267. s.CidrIp = &v
  53268. return s
  53269. }
  53270. // SetDryRun sets the DryRun field's value.
  53271. func (s *RevokeSecurityGroupIngressInput) SetDryRun(v bool) *RevokeSecurityGroupIngressInput {
  53272. s.DryRun = &v
  53273. return s
  53274. }
  53275. // SetFromPort sets the FromPort field's value.
  53276. func (s *RevokeSecurityGroupIngressInput) SetFromPort(v int64) *RevokeSecurityGroupIngressInput {
  53277. s.FromPort = &v
  53278. return s
  53279. }
  53280. // SetGroupId sets the GroupId field's value.
  53281. func (s *RevokeSecurityGroupIngressInput) SetGroupId(v string) *RevokeSecurityGroupIngressInput {
  53282. s.GroupId = &v
  53283. return s
  53284. }
  53285. // SetGroupName sets the GroupName field's value.
  53286. func (s *RevokeSecurityGroupIngressInput) SetGroupName(v string) *RevokeSecurityGroupIngressInput {
  53287. s.GroupName = &v
  53288. return s
  53289. }
  53290. // SetIpPermissions sets the IpPermissions field's value.
  53291. func (s *RevokeSecurityGroupIngressInput) SetIpPermissions(v []*IpPermission) *RevokeSecurityGroupIngressInput {
  53292. s.IpPermissions = v
  53293. return s
  53294. }
  53295. // SetIpProtocol sets the IpProtocol field's value.
  53296. func (s *RevokeSecurityGroupIngressInput) SetIpProtocol(v string) *RevokeSecurityGroupIngressInput {
  53297. s.IpProtocol = &v
  53298. return s
  53299. }
  53300. // SetSourceSecurityGroupName sets the SourceSecurityGroupName field's value.
  53301. func (s *RevokeSecurityGroupIngressInput) SetSourceSecurityGroupName(v string) *RevokeSecurityGroupIngressInput {
  53302. s.SourceSecurityGroupName = &v
  53303. return s
  53304. }
  53305. // SetSourceSecurityGroupOwnerId sets the SourceSecurityGroupOwnerId field's value.
  53306. func (s *RevokeSecurityGroupIngressInput) SetSourceSecurityGroupOwnerId(v string) *RevokeSecurityGroupIngressInput {
  53307. s.SourceSecurityGroupOwnerId = &v
  53308. return s
  53309. }
  53310. // SetToPort sets the ToPort field's value.
  53311. func (s *RevokeSecurityGroupIngressInput) SetToPort(v int64) *RevokeSecurityGroupIngressInput {
  53312. s.ToPort = &v
  53313. return s
  53314. }
  53315. type RevokeSecurityGroupIngressOutput struct {
  53316. _ struct{} `type:"structure"`
  53317. }
  53318. // String returns the string representation
  53319. func (s RevokeSecurityGroupIngressOutput) String() string {
  53320. return awsutil.Prettify(s)
  53321. }
  53322. // GoString returns the string representation
  53323. func (s RevokeSecurityGroupIngressOutput) GoString() string {
  53324. return s.String()
  53325. }
  53326. // Describes a route in a route table.
  53327. type Route struct {
  53328. _ struct{} `type:"structure"`
  53329. // The IPv4 CIDR block used for the destination match.
  53330. DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"`
  53331. // The IPv6 CIDR block used for the destination match.
  53332. DestinationIpv6CidrBlock *string `locationName:"destinationIpv6CidrBlock" type:"string"`
  53333. // The prefix of the AWS service.
  53334. DestinationPrefixListId *string `locationName:"destinationPrefixListId" type:"string"`
  53335. // The ID of the egress-only Internet gateway.
  53336. EgressOnlyInternetGatewayId *string `locationName:"egressOnlyInternetGatewayId" type:"string"`
  53337. // The ID of a gateway attached to your VPC.
  53338. GatewayId *string `locationName:"gatewayId" type:"string"`
  53339. // The ID of a NAT instance in your VPC.
  53340. InstanceId *string `locationName:"instanceId" type:"string"`
  53341. // The AWS account ID of the owner of the instance.
  53342. InstanceOwnerId *string `locationName:"instanceOwnerId" type:"string"`
  53343. // The ID of a NAT gateway.
  53344. NatGatewayId *string `locationName:"natGatewayId" type:"string"`
  53345. // The ID of the network interface.
  53346. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  53347. // Describes how the route was created.
  53348. //
  53349. // * CreateRouteTable - The route was automatically created when the route
  53350. // table was created.
  53351. //
  53352. // * CreateRoute - The route was manually added to the route table.
  53353. //
  53354. // * EnableVgwRoutePropagation - The route was propagated by route propagation.
  53355. Origin *string `locationName:"origin" type:"string" enum:"RouteOrigin"`
  53356. // The state of the route. The blackhole state indicates that the route's target
  53357. // isn't available (for example, the specified gateway isn't attached to the
  53358. // VPC, or the specified NAT instance has been terminated).
  53359. State *string `locationName:"state" type:"string" enum:"RouteState"`
  53360. // The ID of the VPC peering connection.
  53361. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
  53362. }
  53363. // String returns the string representation
  53364. func (s Route) String() string {
  53365. return awsutil.Prettify(s)
  53366. }
  53367. // GoString returns the string representation
  53368. func (s Route) GoString() string {
  53369. return s.String()
  53370. }
  53371. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  53372. func (s *Route) SetDestinationCidrBlock(v string) *Route {
  53373. s.DestinationCidrBlock = &v
  53374. return s
  53375. }
  53376. // SetDestinationIpv6CidrBlock sets the DestinationIpv6CidrBlock field's value.
  53377. func (s *Route) SetDestinationIpv6CidrBlock(v string) *Route {
  53378. s.DestinationIpv6CidrBlock = &v
  53379. return s
  53380. }
  53381. // SetDestinationPrefixListId sets the DestinationPrefixListId field's value.
  53382. func (s *Route) SetDestinationPrefixListId(v string) *Route {
  53383. s.DestinationPrefixListId = &v
  53384. return s
  53385. }
  53386. // SetEgressOnlyInternetGatewayId sets the EgressOnlyInternetGatewayId field's value.
  53387. func (s *Route) SetEgressOnlyInternetGatewayId(v string) *Route {
  53388. s.EgressOnlyInternetGatewayId = &v
  53389. return s
  53390. }
  53391. // SetGatewayId sets the GatewayId field's value.
  53392. func (s *Route) SetGatewayId(v string) *Route {
  53393. s.GatewayId = &v
  53394. return s
  53395. }
  53396. // SetInstanceId sets the InstanceId field's value.
  53397. func (s *Route) SetInstanceId(v string) *Route {
  53398. s.InstanceId = &v
  53399. return s
  53400. }
  53401. // SetInstanceOwnerId sets the InstanceOwnerId field's value.
  53402. func (s *Route) SetInstanceOwnerId(v string) *Route {
  53403. s.InstanceOwnerId = &v
  53404. return s
  53405. }
  53406. // SetNatGatewayId sets the NatGatewayId field's value.
  53407. func (s *Route) SetNatGatewayId(v string) *Route {
  53408. s.NatGatewayId = &v
  53409. return s
  53410. }
  53411. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  53412. func (s *Route) SetNetworkInterfaceId(v string) *Route {
  53413. s.NetworkInterfaceId = &v
  53414. return s
  53415. }
  53416. // SetOrigin sets the Origin field's value.
  53417. func (s *Route) SetOrigin(v string) *Route {
  53418. s.Origin = &v
  53419. return s
  53420. }
  53421. // SetState sets the State field's value.
  53422. func (s *Route) SetState(v string) *Route {
  53423. s.State = &v
  53424. return s
  53425. }
  53426. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  53427. func (s *Route) SetVpcPeeringConnectionId(v string) *Route {
  53428. s.VpcPeeringConnectionId = &v
  53429. return s
  53430. }
  53431. // Describes a route table.
  53432. type RouteTable struct {
  53433. _ struct{} `type:"structure"`
  53434. // The associations between the route table and one or more subnets.
  53435. Associations []*RouteTableAssociation `locationName:"associationSet" locationNameList:"item" type:"list"`
  53436. // Any virtual private gateway (VGW) propagating routes.
  53437. PropagatingVgws []*PropagatingVgw `locationName:"propagatingVgwSet" locationNameList:"item" type:"list"`
  53438. // The ID of the route table.
  53439. RouteTableId *string `locationName:"routeTableId" type:"string"`
  53440. // The routes in the route table.
  53441. Routes []*Route `locationName:"routeSet" locationNameList:"item" type:"list"`
  53442. // Any tags assigned to the route table.
  53443. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  53444. // The ID of the VPC.
  53445. VpcId *string `locationName:"vpcId" type:"string"`
  53446. }
  53447. // String returns the string representation
  53448. func (s RouteTable) String() string {
  53449. return awsutil.Prettify(s)
  53450. }
  53451. // GoString returns the string representation
  53452. func (s RouteTable) GoString() string {
  53453. return s.String()
  53454. }
  53455. // SetAssociations sets the Associations field's value.
  53456. func (s *RouteTable) SetAssociations(v []*RouteTableAssociation) *RouteTable {
  53457. s.Associations = v
  53458. return s
  53459. }
  53460. // SetPropagatingVgws sets the PropagatingVgws field's value.
  53461. func (s *RouteTable) SetPropagatingVgws(v []*PropagatingVgw) *RouteTable {
  53462. s.PropagatingVgws = v
  53463. return s
  53464. }
  53465. // SetRouteTableId sets the RouteTableId field's value.
  53466. func (s *RouteTable) SetRouteTableId(v string) *RouteTable {
  53467. s.RouteTableId = &v
  53468. return s
  53469. }
  53470. // SetRoutes sets the Routes field's value.
  53471. func (s *RouteTable) SetRoutes(v []*Route) *RouteTable {
  53472. s.Routes = v
  53473. return s
  53474. }
  53475. // SetTags sets the Tags field's value.
  53476. func (s *RouteTable) SetTags(v []*Tag) *RouteTable {
  53477. s.Tags = v
  53478. return s
  53479. }
  53480. // SetVpcId sets the VpcId field's value.
  53481. func (s *RouteTable) SetVpcId(v string) *RouteTable {
  53482. s.VpcId = &v
  53483. return s
  53484. }
  53485. // Describes an association between a route table and a subnet.
  53486. type RouteTableAssociation struct {
  53487. _ struct{} `type:"structure"`
  53488. // Indicates whether this is the main route table.
  53489. Main *bool `locationName:"main" type:"boolean"`
  53490. // The ID of the association between a route table and a subnet.
  53491. RouteTableAssociationId *string `locationName:"routeTableAssociationId" type:"string"`
  53492. // The ID of the route table.
  53493. RouteTableId *string `locationName:"routeTableId" type:"string"`
  53494. // The ID of the subnet. A subnet ID is not returned for an implicit association.
  53495. SubnetId *string `locationName:"subnetId" type:"string"`
  53496. }
  53497. // String returns the string representation
  53498. func (s RouteTableAssociation) String() string {
  53499. return awsutil.Prettify(s)
  53500. }
  53501. // GoString returns the string representation
  53502. func (s RouteTableAssociation) GoString() string {
  53503. return s.String()
  53504. }
  53505. // SetMain sets the Main field's value.
  53506. func (s *RouteTableAssociation) SetMain(v bool) *RouteTableAssociation {
  53507. s.Main = &v
  53508. return s
  53509. }
  53510. // SetRouteTableAssociationId sets the RouteTableAssociationId field's value.
  53511. func (s *RouteTableAssociation) SetRouteTableAssociationId(v string) *RouteTableAssociation {
  53512. s.RouteTableAssociationId = &v
  53513. return s
  53514. }
  53515. // SetRouteTableId sets the RouteTableId field's value.
  53516. func (s *RouteTableAssociation) SetRouteTableId(v string) *RouteTableAssociation {
  53517. s.RouteTableId = &v
  53518. return s
  53519. }
  53520. // SetSubnetId sets the SubnetId field's value.
  53521. func (s *RouteTableAssociation) SetSubnetId(v string) *RouteTableAssociation {
  53522. s.SubnetId = &v
  53523. return s
  53524. }
  53525. // Contains the parameters for RunInstances.
  53526. type RunInstancesInput struct {
  53527. _ struct{} `type:"structure"`
  53528. // Reserved.
  53529. AdditionalInfo *string `locationName:"additionalInfo" type:"string"`
  53530. // One or more block device mapping entries. You can't specify both a snapshot
  53531. // ID and an encryption value. This is because only blank volumes can be encrypted
  53532. // on creation. If a snapshot is the basis for a volume, it is not blank and
  53533. // its encryption status is used for the volume encryption status.
  53534. BlockDeviceMappings []*BlockDeviceMapping `locationName:"BlockDeviceMapping" locationNameList:"BlockDeviceMapping" type:"list"`
  53535. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  53536. // the request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  53537. //
  53538. // Constraints: Maximum 64 ASCII characters
  53539. ClientToken *string `locationName:"clientToken" type:"string"`
  53540. // The CPU options for the instance. For more information, see Optimizing CPU
  53541. // Options (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html)
  53542. // in the Amazon Elastic Compute Cloud User Guide.
  53543. CpuOptions *CpuOptionsRequest `type:"structure"`
  53544. // The credit option for CPU usage of the instance. Valid values are standard
  53545. // and unlimited. To change this attribute after launch, use ModifyInstanceCreditSpecification.
  53546. // For more information, see T2 Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/t2-instances.html)
  53547. // in the Amazon Elastic Compute Cloud User Guide.
  53548. //
  53549. // Default: standard
  53550. CreditSpecification *CreditSpecificationRequest `type:"structure"`
  53551. // If you set this parameter to true, you can't terminate the instance using
  53552. // the Amazon EC2 console, CLI, or API; otherwise, you can. To change this attribute
  53553. // to false after launch, use ModifyInstanceAttribute. Alternatively, if you
  53554. // set InstanceInitiatedShutdownBehavior to terminate, you can terminate the
  53555. // instance by running the shutdown command from the instance.
  53556. //
  53557. // Default: false
  53558. DisableApiTermination *bool `locationName:"disableApiTermination" type:"boolean"`
  53559. // Checks whether you have the required permissions for the action, without
  53560. // actually making the request, and provides an error response. If you have
  53561. // the required permissions, the error response is DryRunOperation. Otherwise,
  53562. // it is UnauthorizedOperation.
  53563. DryRun *bool `locationName:"dryRun" type:"boolean"`
  53564. // Indicates whether the instance is optimized for Amazon EBS I/O. This optimization
  53565. // provides dedicated throughput to Amazon EBS and an optimized configuration
  53566. // stack to provide optimal Amazon EBS I/O performance. This optimization isn't
  53567. // available with all instance types. Additional usage charges apply when using
  53568. // an EBS-optimized instance.
  53569. //
  53570. // Default: false
  53571. EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`
  53572. // An elastic GPU to associate with the instance.
  53573. ElasticGpuSpecification []*ElasticGpuSpecification `locationNameList:"item" type:"list"`
  53574. // The IAM instance profile.
  53575. IamInstanceProfile *IamInstanceProfileSpecification `locationName:"iamInstanceProfile" type:"structure"`
  53576. // The ID of the AMI, which you can get by calling DescribeImages. An AMI is
  53577. // required to launch an instance and must be specified here or in a launch
  53578. // template.
  53579. ImageId *string `type:"string"`
  53580. // Indicates whether an instance stops or terminates when you initiate shutdown
  53581. // from the instance (using the operating system command for system shutdown).
  53582. //
  53583. // Default: stop
  53584. InstanceInitiatedShutdownBehavior *string `locationName:"instanceInitiatedShutdownBehavior" type:"string" enum:"ShutdownBehavior"`
  53585. // The market (purchasing) option for the instances.
  53586. InstanceMarketOptions *InstanceMarketOptionsRequest `type:"structure"`
  53587. // The instance type. For more information, see Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html)
  53588. // in the Amazon Elastic Compute Cloud User Guide.
  53589. //
  53590. // Default: m1.small
  53591. InstanceType *string `type:"string" enum:"InstanceType"`
  53592. // [EC2-VPC] A number of IPv6 addresses to associate with the primary network
  53593. // interface. Amazon EC2 chooses the IPv6 addresses from the range of your subnet.
  53594. // You cannot specify this option and the option to assign specific IPv6 addresses
  53595. // in the same request. You can specify this option if you've specified a minimum
  53596. // number of instances to launch.
  53597. Ipv6AddressCount *int64 `type:"integer"`
  53598. // [EC2-VPC] Specify one or more IPv6 addresses from the range of the subnet
  53599. // to associate with the primary network interface. You cannot specify this
  53600. // option and the option to assign a number of IPv6 addresses in the same request.
  53601. // You cannot specify this option if you've specified a minimum number of instances
  53602. // to launch.
  53603. Ipv6Addresses []*InstanceIpv6Address `locationName:"Ipv6Address" locationNameList:"item" type:"list"`
  53604. // The ID of the kernel.
  53605. //
  53606. // We recommend that you use PV-GRUB instead of kernels and RAM disks. For more
  53607. // information, see PV-GRUB (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html)
  53608. // in the Amazon Elastic Compute Cloud User Guide.
  53609. KernelId *string `type:"string"`
  53610. // The name of the key pair. You can create a key pair using CreateKeyPair or
  53611. // ImportKeyPair.
  53612. //
  53613. // If you do not specify a key pair, you can't connect to the instance unless
  53614. // you choose an AMI that is configured to allow users another way to log in.
  53615. KeyName *string `type:"string"`
  53616. // The launch template to use to launch the instances. Any parameters that you
  53617. // specify in RunInstances override the same parameters in the launch template.
  53618. // You can specify either the name or ID of a launch template, but not both.
  53619. LaunchTemplate *LaunchTemplateSpecification `type:"structure"`
  53620. // The maximum number of instances to launch. If you specify more instances
  53621. // than Amazon EC2 can launch in the target Availability Zone, Amazon EC2 launches
  53622. // the largest possible number of instances above MinCount.
  53623. //
  53624. // Constraints: Between 1 and the maximum number you're allowed for the specified
  53625. // instance type. For more information about the default limits, and how to
  53626. // 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)
  53627. // in the Amazon EC2 FAQ.
  53628. //
  53629. // MaxCount is a required field
  53630. MaxCount *int64 `type:"integer" required:"true"`
  53631. // The minimum number of instances to launch. If you specify a minimum that
  53632. // is more instances than Amazon EC2 can launch in the target Availability Zone,
  53633. // Amazon EC2 launches no instances.
  53634. //
  53635. // Constraints: Between 1 and the maximum number you're allowed for the specified
  53636. // instance type. For more information about the default limits, and how to
  53637. // 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)
  53638. // in the Amazon EC2 General FAQ.
  53639. //
  53640. // MinCount is a required field
  53641. MinCount *int64 `type:"integer" required:"true"`
  53642. // The monitoring for the instance.
  53643. Monitoring *RunInstancesMonitoringEnabled `type:"structure"`
  53644. // One or more network interfaces.
  53645. NetworkInterfaces []*InstanceNetworkInterfaceSpecification `locationName:"networkInterface" locationNameList:"item" type:"list"`
  53646. // The placement for the instance.
  53647. Placement *Placement `type:"structure"`
  53648. // [EC2-VPC] The primary IPv4 address. You must specify a value from the IPv4
  53649. // address range of the subnet.
  53650. //
  53651. // Only one private IP address can be designated as primary. You can't specify
  53652. // this option if you've specified the option to designate a private IP address
  53653. // as the primary IP address in a network interface specification. You cannot
  53654. // specify this option if you're launching more than one instance in the request.
  53655. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  53656. // The ID of the RAM disk.
  53657. //
  53658. // We recommend that you use PV-GRUB instead of kernels and RAM disks. For more
  53659. // information, see PV-GRUB (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html)
  53660. // in the Amazon Elastic Compute Cloud User Guide.
  53661. RamdiskId *string `type:"string"`
  53662. // One or more security group IDs. You can create a security group using CreateSecurityGroup.
  53663. //
  53664. // Default: Amazon EC2 uses the default security group.
  53665. SecurityGroupIds []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`
  53666. // [EC2-Classic, default VPC] One or more security group names. For a nondefault
  53667. // VPC, you must use security group IDs instead.
  53668. //
  53669. // Default: Amazon EC2 uses the default security group.
  53670. SecurityGroups []*string `locationName:"SecurityGroup" locationNameList:"SecurityGroup" type:"list"`
  53671. // [EC2-VPC] The ID of the subnet to launch the instance into.
  53672. SubnetId *string `type:"string"`
  53673. // The tags to apply to the resources during launch. You can tag instances and
  53674. // volumes. The specified tags are applied to all instances or volumes that
  53675. // are created during launch.
  53676. TagSpecifications []*TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
  53677. // The user data to make available to the instance. For more information, see
  53678. // Running Commands on Your Linux Instance at Launch (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html)
  53679. // (Linux) and Adding User Data (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-instance-metadata.html#instancedata-add-user-data)
  53680. // (Windows). If you are using a command line tool, base64-encoding is performed
  53681. // for you, and you can load the text from a file. Otherwise, you must provide
  53682. // base64-encoded text.
  53683. UserData *string `type:"string"`
  53684. }
  53685. // String returns the string representation
  53686. func (s RunInstancesInput) String() string {
  53687. return awsutil.Prettify(s)
  53688. }
  53689. // GoString returns the string representation
  53690. func (s RunInstancesInput) GoString() string {
  53691. return s.String()
  53692. }
  53693. // Validate inspects the fields of the type to determine if they are valid.
  53694. func (s *RunInstancesInput) Validate() error {
  53695. invalidParams := request.ErrInvalidParams{Context: "RunInstancesInput"}
  53696. if s.MaxCount == nil {
  53697. invalidParams.Add(request.NewErrParamRequired("MaxCount"))
  53698. }
  53699. if s.MinCount == nil {
  53700. invalidParams.Add(request.NewErrParamRequired("MinCount"))
  53701. }
  53702. if s.CreditSpecification != nil {
  53703. if err := s.CreditSpecification.Validate(); err != nil {
  53704. invalidParams.AddNested("CreditSpecification", err.(request.ErrInvalidParams))
  53705. }
  53706. }
  53707. if s.ElasticGpuSpecification != nil {
  53708. for i, v := range s.ElasticGpuSpecification {
  53709. if v == nil {
  53710. continue
  53711. }
  53712. if err := v.Validate(); err != nil {
  53713. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ElasticGpuSpecification", i), err.(request.ErrInvalidParams))
  53714. }
  53715. }
  53716. }
  53717. if s.Monitoring != nil {
  53718. if err := s.Monitoring.Validate(); err != nil {
  53719. invalidParams.AddNested("Monitoring", err.(request.ErrInvalidParams))
  53720. }
  53721. }
  53722. if s.NetworkInterfaces != nil {
  53723. for i, v := range s.NetworkInterfaces {
  53724. if v == nil {
  53725. continue
  53726. }
  53727. if err := v.Validate(); err != nil {
  53728. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "NetworkInterfaces", i), err.(request.ErrInvalidParams))
  53729. }
  53730. }
  53731. }
  53732. if invalidParams.Len() > 0 {
  53733. return invalidParams
  53734. }
  53735. return nil
  53736. }
  53737. // SetAdditionalInfo sets the AdditionalInfo field's value.
  53738. func (s *RunInstancesInput) SetAdditionalInfo(v string) *RunInstancesInput {
  53739. s.AdditionalInfo = &v
  53740. return s
  53741. }
  53742. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  53743. func (s *RunInstancesInput) SetBlockDeviceMappings(v []*BlockDeviceMapping) *RunInstancesInput {
  53744. s.BlockDeviceMappings = v
  53745. return s
  53746. }
  53747. // SetClientToken sets the ClientToken field's value.
  53748. func (s *RunInstancesInput) SetClientToken(v string) *RunInstancesInput {
  53749. s.ClientToken = &v
  53750. return s
  53751. }
  53752. // SetCpuOptions sets the CpuOptions field's value.
  53753. func (s *RunInstancesInput) SetCpuOptions(v *CpuOptionsRequest) *RunInstancesInput {
  53754. s.CpuOptions = v
  53755. return s
  53756. }
  53757. // SetCreditSpecification sets the CreditSpecification field's value.
  53758. func (s *RunInstancesInput) SetCreditSpecification(v *CreditSpecificationRequest) *RunInstancesInput {
  53759. s.CreditSpecification = v
  53760. return s
  53761. }
  53762. // SetDisableApiTermination sets the DisableApiTermination field's value.
  53763. func (s *RunInstancesInput) SetDisableApiTermination(v bool) *RunInstancesInput {
  53764. s.DisableApiTermination = &v
  53765. return s
  53766. }
  53767. // SetDryRun sets the DryRun field's value.
  53768. func (s *RunInstancesInput) SetDryRun(v bool) *RunInstancesInput {
  53769. s.DryRun = &v
  53770. return s
  53771. }
  53772. // SetEbsOptimized sets the EbsOptimized field's value.
  53773. func (s *RunInstancesInput) SetEbsOptimized(v bool) *RunInstancesInput {
  53774. s.EbsOptimized = &v
  53775. return s
  53776. }
  53777. // SetElasticGpuSpecification sets the ElasticGpuSpecification field's value.
  53778. func (s *RunInstancesInput) SetElasticGpuSpecification(v []*ElasticGpuSpecification) *RunInstancesInput {
  53779. s.ElasticGpuSpecification = v
  53780. return s
  53781. }
  53782. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  53783. func (s *RunInstancesInput) SetIamInstanceProfile(v *IamInstanceProfileSpecification) *RunInstancesInput {
  53784. s.IamInstanceProfile = v
  53785. return s
  53786. }
  53787. // SetImageId sets the ImageId field's value.
  53788. func (s *RunInstancesInput) SetImageId(v string) *RunInstancesInput {
  53789. s.ImageId = &v
  53790. return s
  53791. }
  53792. // SetInstanceInitiatedShutdownBehavior sets the InstanceInitiatedShutdownBehavior field's value.
  53793. func (s *RunInstancesInput) SetInstanceInitiatedShutdownBehavior(v string) *RunInstancesInput {
  53794. s.InstanceInitiatedShutdownBehavior = &v
  53795. return s
  53796. }
  53797. // SetInstanceMarketOptions sets the InstanceMarketOptions field's value.
  53798. func (s *RunInstancesInput) SetInstanceMarketOptions(v *InstanceMarketOptionsRequest) *RunInstancesInput {
  53799. s.InstanceMarketOptions = v
  53800. return s
  53801. }
  53802. // SetInstanceType sets the InstanceType field's value.
  53803. func (s *RunInstancesInput) SetInstanceType(v string) *RunInstancesInput {
  53804. s.InstanceType = &v
  53805. return s
  53806. }
  53807. // SetIpv6AddressCount sets the Ipv6AddressCount field's value.
  53808. func (s *RunInstancesInput) SetIpv6AddressCount(v int64) *RunInstancesInput {
  53809. s.Ipv6AddressCount = &v
  53810. return s
  53811. }
  53812. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  53813. func (s *RunInstancesInput) SetIpv6Addresses(v []*InstanceIpv6Address) *RunInstancesInput {
  53814. s.Ipv6Addresses = v
  53815. return s
  53816. }
  53817. // SetKernelId sets the KernelId field's value.
  53818. func (s *RunInstancesInput) SetKernelId(v string) *RunInstancesInput {
  53819. s.KernelId = &v
  53820. return s
  53821. }
  53822. // SetKeyName sets the KeyName field's value.
  53823. func (s *RunInstancesInput) SetKeyName(v string) *RunInstancesInput {
  53824. s.KeyName = &v
  53825. return s
  53826. }
  53827. // SetLaunchTemplate sets the LaunchTemplate field's value.
  53828. func (s *RunInstancesInput) SetLaunchTemplate(v *LaunchTemplateSpecification) *RunInstancesInput {
  53829. s.LaunchTemplate = v
  53830. return s
  53831. }
  53832. // SetMaxCount sets the MaxCount field's value.
  53833. func (s *RunInstancesInput) SetMaxCount(v int64) *RunInstancesInput {
  53834. s.MaxCount = &v
  53835. return s
  53836. }
  53837. // SetMinCount sets the MinCount field's value.
  53838. func (s *RunInstancesInput) SetMinCount(v int64) *RunInstancesInput {
  53839. s.MinCount = &v
  53840. return s
  53841. }
  53842. // SetMonitoring sets the Monitoring field's value.
  53843. func (s *RunInstancesInput) SetMonitoring(v *RunInstancesMonitoringEnabled) *RunInstancesInput {
  53844. s.Monitoring = v
  53845. return s
  53846. }
  53847. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  53848. func (s *RunInstancesInput) SetNetworkInterfaces(v []*InstanceNetworkInterfaceSpecification) *RunInstancesInput {
  53849. s.NetworkInterfaces = v
  53850. return s
  53851. }
  53852. // SetPlacement sets the Placement field's value.
  53853. func (s *RunInstancesInput) SetPlacement(v *Placement) *RunInstancesInput {
  53854. s.Placement = v
  53855. return s
  53856. }
  53857. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  53858. func (s *RunInstancesInput) SetPrivateIpAddress(v string) *RunInstancesInput {
  53859. s.PrivateIpAddress = &v
  53860. return s
  53861. }
  53862. // SetRamdiskId sets the RamdiskId field's value.
  53863. func (s *RunInstancesInput) SetRamdiskId(v string) *RunInstancesInput {
  53864. s.RamdiskId = &v
  53865. return s
  53866. }
  53867. // SetSecurityGroupIds sets the SecurityGroupIds field's value.
  53868. func (s *RunInstancesInput) SetSecurityGroupIds(v []*string) *RunInstancesInput {
  53869. s.SecurityGroupIds = v
  53870. return s
  53871. }
  53872. // SetSecurityGroups sets the SecurityGroups field's value.
  53873. func (s *RunInstancesInput) SetSecurityGroups(v []*string) *RunInstancesInput {
  53874. s.SecurityGroups = v
  53875. return s
  53876. }
  53877. // SetSubnetId sets the SubnetId field's value.
  53878. func (s *RunInstancesInput) SetSubnetId(v string) *RunInstancesInput {
  53879. s.SubnetId = &v
  53880. return s
  53881. }
  53882. // SetTagSpecifications sets the TagSpecifications field's value.
  53883. func (s *RunInstancesInput) SetTagSpecifications(v []*TagSpecification) *RunInstancesInput {
  53884. s.TagSpecifications = v
  53885. return s
  53886. }
  53887. // SetUserData sets the UserData field's value.
  53888. func (s *RunInstancesInput) SetUserData(v string) *RunInstancesInput {
  53889. s.UserData = &v
  53890. return s
  53891. }
  53892. // Describes the monitoring of an instance.
  53893. type RunInstancesMonitoringEnabled struct {
  53894. _ struct{} `type:"structure"`
  53895. // Indicates whether detailed monitoring is enabled. Otherwise, basic monitoring
  53896. // is enabled.
  53897. //
  53898. // Enabled is a required field
  53899. Enabled *bool `locationName:"enabled" type:"boolean" required:"true"`
  53900. }
  53901. // String returns the string representation
  53902. func (s RunInstancesMonitoringEnabled) String() string {
  53903. return awsutil.Prettify(s)
  53904. }
  53905. // GoString returns the string representation
  53906. func (s RunInstancesMonitoringEnabled) GoString() string {
  53907. return s.String()
  53908. }
  53909. // Validate inspects the fields of the type to determine if they are valid.
  53910. func (s *RunInstancesMonitoringEnabled) Validate() error {
  53911. invalidParams := request.ErrInvalidParams{Context: "RunInstancesMonitoringEnabled"}
  53912. if s.Enabled == nil {
  53913. invalidParams.Add(request.NewErrParamRequired("Enabled"))
  53914. }
  53915. if invalidParams.Len() > 0 {
  53916. return invalidParams
  53917. }
  53918. return nil
  53919. }
  53920. // SetEnabled sets the Enabled field's value.
  53921. func (s *RunInstancesMonitoringEnabled) SetEnabled(v bool) *RunInstancesMonitoringEnabled {
  53922. s.Enabled = &v
  53923. return s
  53924. }
  53925. // Contains the parameters for RunScheduledInstances.
  53926. type RunScheduledInstancesInput struct {
  53927. _ struct{} `type:"structure"`
  53928. // Unique, case-sensitive identifier that ensures the idempotency of the request.
  53929. // For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  53930. ClientToken *string `type:"string" idempotencyToken:"true"`
  53931. // Checks whether you have the required permissions for the action, without
  53932. // actually making the request, and provides an error response. If you have
  53933. // the required permissions, the error response is DryRunOperation. Otherwise,
  53934. // it is UnauthorizedOperation.
  53935. DryRun *bool `type:"boolean"`
  53936. // The number of instances.
  53937. //
  53938. // Default: 1
  53939. InstanceCount *int64 `type:"integer"`
  53940. // The launch specification. You must match the instance type, Availability
  53941. // Zone, network, and platform of the schedule that you purchased.
  53942. //
  53943. // LaunchSpecification is a required field
  53944. LaunchSpecification *ScheduledInstancesLaunchSpecification `type:"structure" required:"true"`
  53945. // The Scheduled Instance ID.
  53946. //
  53947. // ScheduledInstanceId is a required field
  53948. ScheduledInstanceId *string `type:"string" required:"true"`
  53949. }
  53950. // String returns the string representation
  53951. func (s RunScheduledInstancesInput) String() string {
  53952. return awsutil.Prettify(s)
  53953. }
  53954. // GoString returns the string representation
  53955. func (s RunScheduledInstancesInput) GoString() string {
  53956. return s.String()
  53957. }
  53958. // Validate inspects the fields of the type to determine if they are valid.
  53959. func (s *RunScheduledInstancesInput) Validate() error {
  53960. invalidParams := request.ErrInvalidParams{Context: "RunScheduledInstancesInput"}
  53961. if s.LaunchSpecification == nil {
  53962. invalidParams.Add(request.NewErrParamRequired("LaunchSpecification"))
  53963. }
  53964. if s.ScheduledInstanceId == nil {
  53965. invalidParams.Add(request.NewErrParamRequired("ScheduledInstanceId"))
  53966. }
  53967. if s.LaunchSpecification != nil {
  53968. if err := s.LaunchSpecification.Validate(); err != nil {
  53969. invalidParams.AddNested("LaunchSpecification", err.(request.ErrInvalidParams))
  53970. }
  53971. }
  53972. if invalidParams.Len() > 0 {
  53973. return invalidParams
  53974. }
  53975. return nil
  53976. }
  53977. // SetClientToken sets the ClientToken field's value.
  53978. func (s *RunScheduledInstancesInput) SetClientToken(v string) *RunScheduledInstancesInput {
  53979. s.ClientToken = &v
  53980. return s
  53981. }
  53982. // SetDryRun sets the DryRun field's value.
  53983. func (s *RunScheduledInstancesInput) SetDryRun(v bool) *RunScheduledInstancesInput {
  53984. s.DryRun = &v
  53985. return s
  53986. }
  53987. // SetInstanceCount sets the InstanceCount field's value.
  53988. func (s *RunScheduledInstancesInput) SetInstanceCount(v int64) *RunScheduledInstancesInput {
  53989. s.InstanceCount = &v
  53990. return s
  53991. }
  53992. // SetLaunchSpecification sets the LaunchSpecification field's value.
  53993. func (s *RunScheduledInstancesInput) SetLaunchSpecification(v *ScheduledInstancesLaunchSpecification) *RunScheduledInstancesInput {
  53994. s.LaunchSpecification = v
  53995. return s
  53996. }
  53997. // SetScheduledInstanceId sets the ScheduledInstanceId field's value.
  53998. func (s *RunScheduledInstancesInput) SetScheduledInstanceId(v string) *RunScheduledInstancesInput {
  53999. s.ScheduledInstanceId = &v
  54000. return s
  54001. }
  54002. // Contains the output of RunScheduledInstances.
  54003. type RunScheduledInstancesOutput struct {
  54004. _ struct{} `type:"structure"`
  54005. // The IDs of the newly launched instances.
  54006. InstanceIdSet []*string `locationName:"instanceIdSet" locationNameList:"item" type:"list"`
  54007. }
  54008. // String returns the string representation
  54009. func (s RunScheduledInstancesOutput) String() string {
  54010. return awsutil.Prettify(s)
  54011. }
  54012. // GoString returns the string representation
  54013. func (s RunScheduledInstancesOutput) GoString() string {
  54014. return s.String()
  54015. }
  54016. // SetInstanceIdSet sets the InstanceIdSet field's value.
  54017. func (s *RunScheduledInstancesOutput) SetInstanceIdSet(v []*string) *RunScheduledInstancesOutput {
  54018. s.InstanceIdSet = v
  54019. return s
  54020. }
  54021. // Describes the storage parameters for S3 and S3 buckets for an instance store-backed
  54022. // AMI.
  54023. type S3Storage struct {
  54024. _ struct{} `type:"structure"`
  54025. // The access key ID of the owner of the bucket. Before you specify a value
  54026. // for your access key ID, review and follow the guidance in Best Practices
  54027. // for Managing AWS Access Keys (http://docs.aws.amazon.com/general/latest/gr/aws-access-keys-best-practices.html).
  54028. AWSAccessKeyId *string `type:"string"`
  54029. // The bucket in which to store the AMI. You can specify a bucket that you already
  54030. // own or a new bucket that Amazon EC2 creates on your behalf. If you specify
  54031. // a bucket that belongs to someone else, Amazon EC2 returns an error.
  54032. Bucket *string `locationName:"bucket" type:"string"`
  54033. // The beginning of the file name of the AMI.
  54034. Prefix *string `locationName:"prefix" type:"string"`
  54035. // An Amazon S3 upload policy that gives Amazon EC2 permission to upload items
  54036. // into Amazon S3 on your behalf.
  54037. //
  54038. // UploadPolicy is automatically base64 encoded/decoded by the SDK.
  54039. UploadPolicy []byte `locationName:"uploadPolicy" type:"blob"`
  54040. // The signature of the JSON document.
  54041. UploadPolicySignature *string `locationName:"uploadPolicySignature" type:"string"`
  54042. }
  54043. // String returns the string representation
  54044. func (s S3Storage) String() string {
  54045. return awsutil.Prettify(s)
  54046. }
  54047. // GoString returns the string representation
  54048. func (s S3Storage) GoString() string {
  54049. return s.String()
  54050. }
  54051. // SetAWSAccessKeyId sets the AWSAccessKeyId field's value.
  54052. func (s *S3Storage) SetAWSAccessKeyId(v string) *S3Storage {
  54053. s.AWSAccessKeyId = &v
  54054. return s
  54055. }
  54056. // SetBucket sets the Bucket field's value.
  54057. func (s *S3Storage) SetBucket(v string) *S3Storage {
  54058. s.Bucket = &v
  54059. return s
  54060. }
  54061. // SetPrefix sets the Prefix field's value.
  54062. func (s *S3Storage) SetPrefix(v string) *S3Storage {
  54063. s.Prefix = &v
  54064. return s
  54065. }
  54066. // SetUploadPolicy sets the UploadPolicy field's value.
  54067. func (s *S3Storage) SetUploadPolicy(v []byte) *S3Storage {
  54068. s.UploadPolicy = v
  54069. return s
  54070. }
  54071. // SetUploadPolicySignature sets the UploadPolicySignature field's value.
  54072. func (s *S3Storage) SetUploadPolicySignature(v string) *S3Storage {
  54073. s.UploadPolicySignature = &v
  54074. return s
  54075. }
  54076. // Describes a Scheduled Instance.
  54077. type ScheduledInstance struct {
  54078. _ struct{} `type:"structure"`
  54079. // The Availability Zone.
  54080. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  54081. // The date when the Scheduled Instance was purchased.
  54082. CreateDate *time.Time `locationName:"createDate" type:"timestamp" timestampFormat:"iso8601"`
  54083. // The hourly price for a single instance.
  54084. HourlyPrice *string `locationName:"hourlyPrice" type:"string"`
  54085. // The number of instances.
  54086. InstanceCount *int64 `locationName:"instanceCount" type:"integer"`
  54087. // The instance type.
  54088. InstanceType *string `locationName:"instanceType" type:"string"`
  54089. // The network platform (EC2-Classic or EC2-VPC).
  54090. NetworkPlatform *string `locationName:"networkPlatform" type:"string"`
  54091. // The time for the next schedule to start.
  54092. NextSlotStartTime *time.Time `locationName:"nextSlotStartTime" type:"timestamp" timestampFormat:"iso8601"`
  54093. // The platform (Linux/UNIX or Windows).
  54094. Platform *string `locationName:"platform" type:"string"`
  54095. // The time that the previous schedule ended or will end.
  54096. PreviousSlotEndTime *time.Time `locationName:"previousSlotEndTime" type:"timestamp" timestampFormat:"iso8601"`
  54097. // The schedule recurrence.
  54098. Recurrence *ScheduledInstanceRecurrence `locationName:"recurrence" type:"structure"`
  54099. // The Scheduled Instance ID.
  54100. ScheduledInstanceId *string `locationName:"scheduledInstanceId" type:"string"`
  54101. // The number of hours in the schedule.
  54102. SlotDurationInHours *int64 `locationName:"slotDurationInHours" type:"integer"`
  54103. // The end date for the Scheduled Instance.
  54104. TermEndDate *time.Time `locationName:"termEndDate" type:"timestamp" timestampFormat:"iso8601"`
  54105. // The start date for the Scheduled Instance.
  54106. TermStartDate *time.Time `locationName:"termStartDate" type:"timestamp" timestampFormat:"iso8601"`
  54107. // The total number of hours for a single instance for the entire term.
  54108. TotalScheduledInstanceHours *int64 `locationName:"totalScheduledInstanceHours" type:"integer"`
  54109. }
  54110. // String returns the string representation
  54111. func (s ScheduledInstance) String() string {
  54112. return awsutil.Prettify(s)
  54113. }
  54114. // GoString returns the string representation
  54115. func (s ScheduledInstance) GoString() string {
  54116. return s.String()
  54117. }
  54118. // SetAvailabilityZone sets the AvailabilityZone field's value.
  54119. func (s *ScheduledInstance) SetAvailabilityZone(v string) *ScheduledInstance {
  54120. s.AvailabilityZone = &v
  54121. return s
  54122. }
  54123. // SetCreateDate sets the CreateDate field's value.
  54124. func (s *ScheduledInstance) SetCreateDate(v time.Time) *ScheduledInstance {
  54125. s.CreateDate = &v
  54126. return s
  54127. }
  54128. // SetHourlyPrice sets the HourlyPrice field's value.
  54129. func (s *ScheduledInstance) SetHourlyPrice(v string) *ScheduledInstance {
  54130. s.HourlyPrice = &v
  54131. return s
  54132. }
  54133. // SetInstanceCount sets the InstanceCount field's value.
  54134. func (s *ScheduledInstance) SetInstanceCount(v int64) *ScheduledInstance {
  54135. s.InstanceCount = &v
  54136. return s
  54137. }
  54138. // SetInstanceType sets the InstanceType field's value.
  54139. func (s *ScheduledInstance) SetInstanceType(v string) *ScheduledInstance {
  54140. s.InstanceType = &v
  54141. return s
  54142. }
  54143. // SetNetworkPlatform sets the NetworkPlatform field's value.
  54144. func (s *ScheduledInstance) SetNetworkPlatform(v string) *ScheduledInstance {
  54145. s.NetworkPlatform = &v
  54146. return s
  54147. }
  54148. // SetNextSlotStartTime sets the NextSlotStartTime field's value.
  54149. func (s *ScheduledInstance) SetNextSlotStartTime(v time.Time) *ScheduledInstance {
  54150. s.NextSlotStartTime = &v
  54151. return s
  54152. }
  54153. // SetPlatform sets the Platform field's value.
  54154. func (s *ScheduledInstance) SetPlatform(v string) *ScheduledInstance {
  54155. s.Platform = &v
  54156. return s
  54157. }
  54158. // SetPreviousSlotEndTime sets the PreviousSlotEndTime field's value.
  54159. func (s *ScheduledInstance) SetPreviousSlotEndTime(v time.Time) *ScheduledInstance {
  54160. s.PreviousSlotEndTime = &v
  54161. return s
  54162. }
  54163. // SetRecurrence sets the Recurrence field's value.
  54164. func (s *ScheduledInstance) SetRecurrence(v *ScheduledInstanceRecurrence) *ScheduledInstance {
  54165. s.Recurrence = v
  54166. return s
  54167. }
  54168. // SetScheduledInstanceId sets the ScheduledInstanceId field's value.
  54169. func (s *ScheduledInstance) SetScheduledInstanceId(v string) *ScheduledInstance {
  54170. s.ScheduledInstanceId = &v
  54171. return s
  54172. }
  54173. // SetSlotDurationInHours sets the SlotDurationInHours field's value.
  54174. func (s *ScheduledInstance) SetSlotDurationInHours(v int64) *ScheduledInstance {
  54175. s.SlotDurationInHours = &v
  54176. return s
  54177. }
  54178. // SetTermEndDate sets the TermEndDate field's value.
  54179. func (s *ScheduledInstance) SetTermEndDate(v time.Time) *ScheduledInstance {
  54180. s.TermEndDate = &v
  54181. return s
  54182. }
  54183. // SetTermStartDate sets the TermStartDate field's value.
  54184. func (s *ScheduledInstance) SetTermStartDate(v time.Time) *ScheduledInstance {
  54185. s.TermStartDate = &v
  54186. return s
  54187. }
  54188. // SetTotalScheduledInstanceHours sets the TotalScheduledInstanceHours field's value.
  54189. func (s *ScheduledInstance) SetTotalScheduledInstanceHours(v int64) *ScheduledInstance {
  54190. s.TotalScheduledInstanceHours = &v
  54191. return s
  54192. }
  54193. // Describes a schedule that is available for your Scheduled Instances.
  54194. type ScheduledInstanceAvailability struct {
  54195. _ struct{} `type:"structure"`
  54196. // The Availability Zone.
  54197. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  54198. // The number of available instances.
  54199. AvailableInstanceCount *int64 `locationName:"availableInstanceCount" type:"integer"`
  54200. // The time period for the first schedule to start.
  54201. FirstSlotStartTime *time.Time `locationName:"firstSlotStartTime" type:"timestamp" timestampFormat:"iso8601"`
  54202. // The hourly price for a single instance.
  54203. HourlyPrice *string `locationName:"hourlyPrice" type:"string"`
  54204. // The instance type. You can specify one of the C3, C4, M4, or R3 instance
  54205. // types.
  54206. InstanceType *string `locationName:"instanceType" type:"string"`
  54207. // The maximum term. The only possible value is 365 days.
  54208. MaxTermDurationInDays *int64 `locationName:"maxTermDurationInDays" type:"integer"`
  54209. // The minimum term. The only possible value is 365 days.
  54210. MinTermDurationInDays *int64 `locationName:"minTermDurationInDays" type:"integer"`
  54211. // The network platform (EC2-Classic or EC2-VPC).
  54212. NetworkPlatform *string `locationName:"networkPlatform" type:"string"`
  54213. // The platform (Linux/UNIX or Windows).
  54214. Platform *string `locationName:"platform" type:"string"`
  54215. // The purchase token. This token expires in two hours.
  54216. PurchaseToken *string `locationName:"purchaseToken" type:"string"`
  54217. // The schedule recurrence.
  54218. Recurrence *ScheduledInstanceRecurrence `locationName:"recurrence" type:"structure"`
  54219. // The number of hours in the schedule.
  54220. SlotDurationInHours *int64 `locationName:"slotDurationInHours" type:"integer"`
  54221. // The total number of hours for a single instance for the entire term.
  54222. TotalScheduledInstanceHours *int64 `locationName:"totalScheduledInstanceHours" type:"integer"`
  54223. }
  54224. // String returns the string representation
  54225. func (s ScheduledInstanceAvailability) String() string {
  54226. return awsutil.Prettify(s)
  54227. }
  54228. // GoString returns the string representation
  54229. func (s ScheduledInstanceAvailability) GoString() string {
  54230. return s.String()
  54231. }
  54232. // SetAvailabilityZone sets the AvailabilityZone field's value.
  54233. func (s *ScheduledInstanceAvailability) SetAvailabilityZone(v string) *ScheduledInstanceAvailability {
  54234. s.AvailabilityZone = &v
  54235. return s
  54236. }
  54237. // SetAvailableInstanceCount sets the AvailableInstanceCount field's value.
  54238. func (s *ScheduledInstanceAvailability) SetAvailableInstanceCount(v int64) *ScheduledInstanceAvailability {
  54239. s.AvailableInstanceCount = &v
  54240. return s
  54241. }
  54242. // SetFirstSlotStartTime sets the FirstSlotStartTime field's value.
  54243. func (s *ScheduledInstanceAvailability) SetFirstSlotStartTime(v time.Time) *ScheduledInstanceAvailability {
  54244. s.FirstSlotStartTime = &v
  54245. return s
  54246. }
  54247. // SetHourlyPrice sets the HourlyPrice field's value.
  54248. func (s *ScheduledInstanceAvailability) SetHourlyPrice(v string) *ScheduledInstanceAvailability {
  54249. s.HourlyPrice = &v
  54250. return s
  54251. }
  54252. // SetInstanceType sets the InstanceType field's value.
  54253. func (s *ScheduledInstanceAvailability) SetInstanceType(v string) *ScheduledInstanceAvailability {
  54254. s.InstanceType = &v
  54255. return s
  54256. }
  54257. // SetMaxTermDurationInDays sets the MaxTermDurationInDays field's value.
  54258. func (s *ScheduledInstanceAvailability) SetMaxTermDurationInDays(v int64) *ScheduledInstanceAvailability {
  54259. s.MaxTermDurationInDays = &v
  54260. return s
  54261. }
  54262. // SetMinTermDurationInDays sets the MinTermDurationInDays field's value.
  54263. func (s *ScheduledInstanceAvailability) SetMinTermDurationInDays(v int64) *ScheduledInstanceAvailability {
  54264. s.MinTermDurationInDays = &v
  54265. return s
  54266. }
  54267. // SetNetworkPlatform sets the NetworkPlatform field's value.
  54268. func (s *ScheduledInstanceAvailability) SetNetworkPlatform(v string) *ScheduledInstanceAvailability {
  54269. s.NetworkPlatform = &v
  54270. return s
  54271. }
  54272. // SetPlatform sets the Platform field's value.
  54273. func (s *ScheduledInstanceAvailability) SetPlatform(v string) *ScheduledInstanceAvailability {
  54274. s.Platform = &v
  54275. return s
  54276. }
  54277. // SetPurchaseToken sets the PurchaseToken field's value.
  54278. func (s *ScheduledInstanceAvailability) SetPurchaseToken(v string) *ScheduledInstanceAvailability {
  54279. s.PurchaseToken = &v
  54280. return s
  54281. }
  54282. // SetRecurrence sets the Recurrence field's value.
  54283. func (s *ScheduledInstanceAvailability) SetRecurrence(v *ScheduledInstanceRecurrence) *ScheduledInstanceAvailability {
  54284. s.Recurrence = v
  54285. return s
  54286. }
  54287. // SetSlotDurationInHours sets the SlotDurationInHours field's value.
  54288. func (s *ScheduledInstanceAvailability) SetSlotDurationInHours(v int64) *ScheduledInstanceAvailability {
  54289. s.SlotDurationInHours = &v
  54290. return s
  54291. }
  54292. // SetTotalScheduledInstanceHours sets the TotalScheduledInstanceHours field's value.
  54293. func (s *ScheduledInstanceAvailability) SetTotalScheduledInstanceHours(v int64) *ScheduledInstanceAvailability {
  54294. s.TotalScheduledInstanceHours = &v
  54295. return s
  54296. }
  54297. // Describes the recurring schedule for a Scheduled Instance.
  54298. type ScheduledInstanceRecurrence struct {
  54299. _ struct{} `type:"structure"`
  54300. // The frequency (Daily, Weekly, or Monthly).
  54301. Frequency *string `locationName:"frequency" type:"string"`
  54302. // The interval quantity. The interval unit depends on the value of frequency.
  54303. // For example, every 2 weeks or every 2 months.
  54304. Interval *int64 `locationName:"interval" type:"integer"`
  54305. // The days. For a monthly schedule, this is one or more days of the month (1-31).
  54306. // For a weekly schedule, this is one or more days of the week (1-7, where 1
  54307. // is Sunday).
  54308. OccurrenceDaySet []*int64 `locationName:"occurrenceDaySet" locationNameList:"item" type:"list"`
  54309. // Indicates whether the occurrence is relative to the end of the specified
  54310. // week or month.
  54311. OccurrenceRelativeToEnd *bool `locationName:"occurrenceRelativeToEnd" type:"boolean"`
  54312. // The unit for occurrenceDaySet (DayOfWeek or DayOfMonth).
  54313. OccurrenceUnit *string `locationName:"occurrenceUnit" type:"string"`
  54314. }
  54315. // String returns the string representation
  54316. func (s ScheduledInstanceRecurrence) String() string {
  54317. return awsutil.Prettify(s)
  54318. }
  54319. // GoString returns the string representation
  54320. func (s ScheduledInstanceRecurrence) GoString() string {
  54321. return s.String()
  54322. }
  54323. // SetFrequency sets the Frequency field's value.
  54324. func (s *ScheduledInstanceRecurrence) SetFrequency(v string) *ScheduledInstanceRecurrence {
  54325. s.Frequency = &v
  54326. return s
  54327. }
  54328. // SetInterval sets the Interval field's value.
  54329. func (s *ScheduledInstanceRecurrence) SetInterval(v int64) *ScheduledInstanceRecurrence {
  54330. s.Interval = &v
  54331. return s
  54332. }
  54333. // SetOccurrenceDaySet sets the OccurrenceDaySet field's value.
  54334. func (s *ScheduledInstanceRecurrence) SetOccurrenceDaySet(v []*int64) *ScheduledInstanceRecurrence {
  54335. s.OccurrenceDaySet = v
  54336. return s
  54337. }
  54338. // SetOccurrenceRelativeToEnd sets the OccurrenceRelativeToEnd field's value.
  54339. func (s *ScheduledInstanceRecurrence) SetOccurrenceRelativeToEnd(v bool) *ScheduledInstanceRecurrence {
  54340. s.OccurrenceRelativeToEnd = &v
  54341. return s
  54342. }
  54343. // SetOccurrenceUnit sets the OccurrenceUnit field's value.
  54344. func (s *ScheduledInstanceRecurrence) SetOccurrenceUnit(v string) *ScheduledInstanceRecurrence {
  54345. s.OccurrenceUnit = &v
  54346. return s
  54347. }
  54348. // Describes the recurring schedule for a Scheduled Instance.
  54349. type ScheduledInstanceRecurrenceRequest struct {
  54350. _ struct{} `type:"structure"`
  54351. // The frequency (Daily, Weekly, or Monthly).
  54352. Frequency *string `type:"string"`
  54353. // The interval quantity. The interval unit depends on the value of Frequency.
  54354. // For example, every 2 weeks or every 2 months.
  54355. Interval *int64 `type:"integer"`
  54356. // The days. For a monthly schedule, this is one or more days of the month (1-31).
  54357. // For a weekly schedule, this is one or more days of the week (1-7, where 1
  54358. // is Sunday). You can't specify this value with a daily schedule. If the occurrence
  54359. // is relative to the end of the month, you can specify only a single day.
  54360. OccurrenceDays []*int64 `locationName:"OccurrenceDay" locationNameList:"OccurenceDay" type:"list"`
  54361. // Indicates whether the occurrence is relative to the end of the specified
  54362. // week or month. You can't specify this value with a daily schedule.
  54363. OccurrenceRelativeToEnd *bool `type:"boolean"`
  54364. // The unit for OccurrenceDays (DayOfWeek or DayOfMonth). This value is required
  54365. // for a monthly schedule. You can't specify DayOfWeek with a weekly schedule.
  54366. // You can't specify this value with a daily schedule.
  54367. OccurrenceUnit *string `type:"string"`
  54368. }
  54369. // String returns the string representation
  54370. func (s ScheduledInstanceRecurrenceRequest) String() string {
  54371. return awsutil.Prettify(s)
  54372. }
  54373. // GoString returns the string representation
  54374. func (s ScheduledInstanceRecurrenceRequest) GoString() string {
  54375. return s.String()
  54376. }
  54377. // SetFrequency sets the Frequency field's value.
  54378. func (s *ScheduledInstanceRecurrenceRequest) SetFrequency(v string) *ScheduledInstanceRecurrenceRequest {
  54379. s.Frequency = &v
  54380. return s
  54381. }
  54382. // SetInterval sets the Interval field's value.
  54383. func (s *ScheduledInstanceRecurrenceRequest) SetInterval(v int64) *ScheduledInstanceRecurrenceRequest {
  54384. s.Interval = &v
  54385. return s
  54386. }
  54387. // SetOccurrenceDays sets the OccurrenceDays field's value.
  54388. func (s *ScheduledInstanceRecurrenceRequest) SetOccurrenceDays(v []*int64) *ScheduledInstanceRecurrenceRequest {
  54389. s.OccurrenceDays = v
  54390. return s
  54391. }
  54392. // SetOccurrenceRelativeToEnd sets the OccurrenceRelativeToEnd field's value.
  54393. func (s *ScheduledInstanceRecurrenceRequest) SetOccurrenceRelativeToEnd(v bool) *ScheduledInstanceRecurrenceRequest {
  54394. s.OccurrenceRelativeToEnd = &v
  54395. return s
  54396. }
  54397. // SetOccurrenceUnit sets the OccurrenceUnit field's value.
  54398. func (s *ScheduledInstanceRecurrenceRequest) SetOccurrenceUnit(v string) *ScheduledInstanceRecurrenceRequest {
  54399. s.OccurrenceUnit = &v
  54400. return s
  54401. }
  54402. // Describes a block device mapping for a Scheduled Instance.
  54403. type ScheduledInstancesBlockDeviceMapping struct {
  54404. _ struct{} `type:"structure"`
  54405. // The device name (for example, /dev/sdh or xvdh).
  54406. DeviceName *string `type:"string"`
  54407. // Parameters used to set up EBS volumes automatically when the instance is
  54408. // launched.
  54409. Ebs *ScheduledInstancesEbs `type:"structure"`
  54410. // Suppresses the specified device included in the block device mapping of the
  54411. // AMI.
  54412. NoDevice *string `type:"string"`
  54413. // The virtual device name (ephemeralN). Instance store volumes are numbered
  54414. // starting from 0. An instance type with two available instance store volumes
  54415. // can specify mappings for ephemeral0 and ephemeral1. The number of available
  54416. // instance store volumes depends on the instance type. After you connect to
  54417. // the instance, you must mount the volume.
  54418. //
  54419. // Constraints: For M3 instances, you must specify instance store volumes in
  54420. // the block device mapping for the instance. When you launch an M3 instance,
  54421. // we ignore any instance store volumes specified in the block device mapping
  54422. // for the AMI.
  54423. VirtualName *string `type:"string"`
  54424. }
  54425. // String returns the string representation
  54426. func (s ScheduledInstancesBlockDeviceMapping) String() string {
  54427. return awsutil.Prettify(s)
  54428. }
  54429. // GoString returns the string representation
  54430. func (s ScheduledInstancesBlockDeviceMapping) GoString() string {
  54431. return s.String()
  54432. }
  54433. // SetDeviceName sets the DeviceName field's value.
  54434. func (s *ScheduledInstancesBlockDeviceMapping) SetDeviceName(v string) *ScheduledInstancesBlockDeviceMapping {
  54435. s.DeviceName = &v
  54436. return s
  54437. }
  54438. // SetEbs sets the Ebs field's value.
  54439. func (s *ScheduledInstancesBlockDeviceMapping) SetEbs(v *ScheduledInstancesEbs) *ScheduledInstancesBlockDeviceMapping {
  54440. s.Ebs = v
  54441. return s
  54442. }
  54443. // SetNoDevice sets the NoDevice field's value.
  54444. func (s *ScheduledInstancesBlockDeviceMapping) SetNoDevice(v string) *ScheduledInstancesBlockDeviceMapping {
  54445. s.NoDevice = &v
  54446. return s
  54447. }
  54448. // SetVirtualName sets the VirtualName field's value.
  54449. func (s *ScheduledInstancesBlockDeviceMapping) SetVirtualName(v string) *ScheduledInstancesBlockDeviceMapping {
  54450. s.VirtualName = &v
  54451. return s
  54452. }
  54453. // Describes an EBS volume for a Scheduled Instance.
  54454. type ScheduledInstancesEbs struct {
  54455. _ struct{} `type:"structure"`
  54456. // Indicates whether the volume is deleted on instance termination.
  54457. DeleteOnTermination *bool `type:"boolean"`
  54458. // Indicates whether the volume is encrypted. You can attached encrypted volumes
  54459. // only to instances that support them.
  54460. Encrypted *bool `type:"boolean"`
  54461. // The number of I/O operations per second (IOPS) that the volume supports.
  54462. // For io1 volumes, this represents the number of IOPS that are provisioned
  54463. // for the volume. For gp2 volumes, this represents the baseline performance
  54464. // of the volume and the rate at which the volume accumulates I/O credits for
  54465. // bursting. For more information about gp2 baseline performance, I/O credits,
  54466. // and bursting, see Amazon EBS Volume Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html)
  54467. // in the Amazon Elastic Compute Cloud User Guide.
  54468. //
  54469. // Constraint: Range is 100-20000 IOPS for io1 volumes and 100-10000 IOPS for
  54470. // gp2 volumes.
  54471. //
  54472. // Condition: This parameter is required for requests to create io1volumes;
  54473. // it is not used in requests to create gp2, st1, sc1, or standard volumes.
  54474. Iops *int64 `type:"integer"`
  54475. // The ID of the snapshot.
  54476. SnapshotId *string `type:"string"`
  54477. // The size of the volume, in GiB.
  54478. //
  54479. // Default: If you're creating the volume from a snapshot and don't specify
  54480. // a volume size, the default is the snapshot size.
  54481. VolumeSize *int64 `type:"integer"`
  54482. // The volume type. gp2 for General Purpose SSD, io1 for Provisioned IOPS SSD,
  54483. // Throughput Optimized HDD for st1, Cold HDD for sc1, or standard for Magnetic.
  54484. //
  54485. // Default: standard
  54486. VolumeType *string `type:"string"`
  54487. }
  54488. // String returns the string representation
  54489. func (s ScheduledInstancesEbs) String() string {
  54490. return awsutil.Prettify(s)
  54491. }
  54492. // GoString returns the string representation
  54493. func (s ScheduledInstancesEbs) GoString() string {
  54494. return s.String()
  54495. }
  54496. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  54497. func (s *ScheduledInstancesEbs) SetDeleteOnTermination(v bool) *ScheduledInstancesEbs {
  54498. s.DeleteOnTermination = &v
  54499. return s
  54500. }
  54501. // SetEncrypted sets the Encrypted field's value.
  54502. func (s *ScheduledInstancesEbs) SetEncrypted(v bool) *ScheduledInstancesEbs {
  54503. s.Encrypted = &v
  54504. return s
  54505. }
  54506. // SetIops sets the Iops field's value.
  54507. func (s *ScheduledInstancesEbs) SetIops(v int64) *ScheduledInstancesEbs {
  54508. s.Iops = &v
  54509. return s
  54510. }
  54511. // SetSnapshotId sets the SnapshotId field's value.
  54512. func (s *ScheduledInstancesEbs) SetSnapshotId(v string) *ScheduledInstancesEbs {
  54513. s.SnapshotId = &v
  54514. return s
  54515. }
  54516. // SetVolumeSize sets the VolumeSize field's value.
  54517. func (s *ScheduledInstancesEbs) SetVolumeSize(v int64) *ScheduledInstancesEbs {
  54518. s.VolumeSize = &v
  54519. return s
  54520. }
  54521. // SetVolumeType sets the VolumeType field's value.
  54522. func (s *ScheduledInstancesEbs) SetVolumeType(v string) *ScheduledInstancesEbs {
  54523. s.VolumeType = &v
  54524. return s
  54525. }
  54526. // Describes an IAM instance profile for a Scheduled Instance.
  54527. type ScheduledInstancesIamInstanceProfile struct {
  54528. _ struct{} `type:"structure"`
  54529. // The Amazon Resource Name (ARN).
  54530. Arn *string `type:"string"`
  54531. // The name.
  54532. Name *string `type:"string"`
  54533. }
  54534. // String returns the string representation
  54535. func (s ScheduledInstancesIamInstanceProfile) String() string {
  54536. return awsutil.Prettify(s)
  54537. }
  54538. // GoString returns the string representation
  54539. func (s ScheduledInstancesIamInstanceProfile) GoString() string {
  54540. return s.String()
  54541. }
  54542. // SetArn sets the Arn field's value.
  54543. func (s *ScheduledInstancesIamInstanceProfile) SetArn(v string) *ScheduledInstancesIamInstanceProfile {
  54544. s.Arn = &v
  54545. return s
  54546. }
  54547. // SetName sets the Name field's value.
  54548. func (s *ScheduledInstancesIamInstanceProfile) SetName(v string) *ScheduledInstancesIamInstanceProfile {
  54549. s.Name = &v
  54550. return s
  54551. }
  54552. // Describes an IPv6 address.
  54553. type ScheduledInstancesIpv6Address struct {
  54554. _ struct{} `type:"structure"`
  54555. // The IPv6 address.
  54556. Ipv6Address *string `type:"string"`
  54557. }
  54558. // String returns the string representation
  54559. func (s ScheduledInstancesIpv6Address) String() string {
  54560. return awsutil.Prettify(s)
  54561. }
  54562. // GoString returns the string representation
  54563. func (s ScheduledInstancesIpv6Address) GoString() string {
  54564. return s.String()
  54565. }
  54566. // SetIpv6Address sets the Ipv6Address field's value.
  54567. func (s *ScheduledInstancesIpv6Address) SetIpv6Address(v string) *ScheduledInstancesIpv6Address {
  54568. s.Ipv6Address = &v
  54569. return s
  54570. }
  54571. // Describes the launch specification for a Scheduled Instance.
  54572. //
  54573. // If you are launching the Scheduled Instance in EC2-VPC, you must specify
  54574. // the ID of the subnet. You can specify the subnet using either SubnetId or
  54575. // NetworkInterface.
  54576. type ScheduledInstancesLaunchSpecification struct {
  54577. _ struct{} `type:"structure"`
  54578. // One or more block device mapping entries.
  54579. BlockDeviceMappings []*ScheduledInstancesBlockDeviceMapping `locationName:"BlockDeviceMapping" locationNameList:"BlockDeviceMapping" type:"list"`
  54580. // Indicates whether the instances are optimized for EBS I/O. This optimization
  54581. // provides dedicated throughput to Amazon EBS and an optimized configuration
  54582. // stack to provide optimal EBS I/O performance. This optimization isn't available
  54583. // with all instance types. Additional usage charges apply when using an EBS-optimized
  54584. // instance.
  54585. //
  54586. // Default: false
  54587. EbsOptimized *bool `type:"boolean"`
  54588. // The IAM instance profile.
  54589. IamInstanceProfile *ScheduledInstancesIamInstanceProfile `type:"structure"`
  54590. // The ID of the Amazon Machine Image (AMI).
  54591. //
  54592. // ImageId is a required field
  54593. ImageId *string `type:"string" required:"true"`
  54594. // The instance type.
  54595. InstanceType *string `type:"string"`
  54596. // The ID of the kernel.
  54597. KernelId *string `type:"string"`
  54598. // The name of the key pair.
  54599. KeyName *string `type:"string"`
  54600. // Enable or disable monitoring for the instances.
  54601. Monitoring *ScheduledInstancesMonitoring `type:"structure"`
  54602. // One or more network interfaces.
  54603. NetworkInterfaces []*ScheduledInstancesNetworkInterface `locationName:"NetworkInterface" locationNameList:"NetworkInterface" type:"list"`
  54604. // The placement information.
  54605. Placement *ScheduledInstancesPlacement `type:"structure"`
  54606. // The ID of the RAM disk.
  54607. RamdiskId *string `type:"string"`
  54608. // The IDs of one or more security groups.
  54609. SecurityGroupIds []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`
  54610. // The ID of the subnet in which to launch the instances.
  54611. SubnetId *string `type:"string"`
  54612. // The base64-encoded MIME user data.
  54613. UserData *string `type:"string"`
  54614. }
  54615. // String returns the string representation
  54616. func (s ScheduledInstancesLaunchSpecification) String() string {
  54617. return awsutil.Prettify(s)
  54618. }
  54619. // GoString returns the string representation
  54620. func (s ScheduledInstancesLaunchSpecification) GoString() string {
  54621. return s.String()
  54622. }
  54623. // Validate inspects the fields of the type to determine if they are valid.
  54624. func (s *ScheduledInstancesLaunchSpecification) Validate() error {
  54625. invalidParams := request.ErrInvalidParams{Context: "ScheduledInstancesLaunchSpecification"}
  54626. if s.ImageId == nil {
  54627. invalidParams.Add(request.NewErrParamRequired("ImageId"))
  54628. }
  54629. if invalidParams.Len() > 0 {
  54630. return invalidParams
  54631. }
  54632. return nil
  54633. }
  54634. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  54635. func (s *ScheduledInstancesLaunchSpecification) SetBlockDeviceMappings(v []*ScheduledInstancesBlockDeviceMapping) *ScheduledInstancesLaunchSpecification {
  54636. s.BlockDeviceMappings = v
  54637. return s
  54638. }
  54639. // SetEbsOptimized sets the EbsOptimized field's value.
  54640. func (s *ScheduledInstancesLaunchSpecification) SetEbsOptimized(v bool) *ScheduledInstancesLaunchSpecification {
  54641. s.EbsOptimized = &v
  54642. return s
  54643. }
  54644. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  54645. func (s *ScheduledInstancesLaunchSpecification) SetIamInstanceProfile(v *ScheduledInstancesIamInstanceProfile) *ScheduledInstancesLaunchSpecification {
  54646. s.IamInstanceProfile = v
  54647. return s
  54648. }
  54649. // SetImageId sets the ImageId field's value.
  54650. func (s *ScheduledInstancesLaunchSpecification) SetImageId(v string) *ScheduledInstancesLaunchSpecification {
  54651. s.ImageId = &v
  54652. return s
  54653. }
  54654. // SetInstanceType sets the InstanceType field's value.
  54655. func (s *ScheduledInstancesLaunchSpecification) SetInstanceType(v string) *ScheduledInstancesLaunchSpecification {
  54656. s.InstanceType = &v
  54657. return s
  54658. }
  54659. // SetKernelId sets the KernelId field's value.
  54660. func (s *ScheduledInstancesLaunchSpecification) SetKernelId(v string) *ScheduledInstancesLaunchSpecification {
  54661. s.KernelId = &v
  54662. return s
  54663. }
  54664. // SetKeyName sets the KeyName field's value.
  54665. func (s *ScheduledInstancesLaunchSpecification) SetKeyName(v string) *ScheduledInstancesLaunchSpecification {
  54666. s.KeyName = &v
  54667. return s
  54668. }
  54669. // SetMonitoring sets the Monitoring field's value.
  54670. func (s *ScheduledInstancesLaunchSpecification) SetMonitoring(v *ScheduledInstancesMonitoring) *ScheduledInstancesLaunchSpecification {
  54671. s.Monitoring = v
  54672. return s
  54673. }
  54674. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  54675. func (s *ScheduledInstancesLaunchSpecification) SetNetworkInterfaces(v []*ScheduledInstancesNetworkInterface) *ScheduledInstancesLaunchSpecification {
  54676. s.NetworkInterfaces = v
  54677. return s
  54678. }
  54679. // SetPlacement sets the Placement field's value.
  54680. func (s *ScheduledInstancesLaunchSpecification) SetPlacement(v *ScheduledInstancesPlacement) *ScheduledInstancesLaunchSpecification {
  54681. s.Placement = v
  54682. return s
  54683. }
  54684. // SetRamdiskId sets the RamdiskId field's value.
  54685. func (s *ScheduledInstancesLaunchSpecification) SetRamdiskId(v string) *ScheduledInstancesLaunchSpecification {
  54686. s.RamdiskId = &v
  54687. return s
  54688. }
  54689. // SetSecurityGroupIds sets the SecurityGroupIds field's value.
  54690. func (s *ScheduledInstancesLaunchSpecification) SetSecurityGroupIds(v []*string) *ScheduledInstancesLaunchSpecification {
  54691. s.SecurityGroupIds = v
  54692. return s
  54693. }
  54694. // SetSubnetId sets the SubnetId field's value.
  54695. func (s *ScheduledInstancesLaunchSpecification) SetSubnetId(v string) *ScheduledInstancesLaunchSpecification {
  54696. s.SubnetId = &v
  54697. return s
  54698. }
  54699. // SetUserData sets the UserData field's value.
  54700. func (s *ScheduledInstancesLaunchSpecification) SetUserData(v string) *ScheduledInstancesLaunchSpecification {
  54701. s.UserData = &v
  54702. return s
  54703. }
  54704. // Describes whether monitoring is enabled for a Scheduled Instance.
  54705. type ScheduledInstancesMonitoring struct {
  54706. _ struct{} `type:"structure"`
  54707. // Indicates whether monitoring is enabled.
  54708. Enabled *bool `type:"boolean"`
  54709. }
  54710. // String returns the string representation
  54711. func (s ScheduledInstancesMonitoring) String() string {
  54712. return awsutil.Prettify(s)
  54713. }
  54714. // GoString returns the string representation
  54715. func (s ScheduledInstancesMonitoring) GoString() string {
  54716. return s.String()
  54717. }
  54718. // SetEnabled sets the Enabled field's value.
  54719. func (s *ScheduledInstancesMonitoring) SetEnabled(v bool) *ScheduledInstancesMonitoring {
  54720. s.Enabled = &v
  54721. return s
  54722. }
  54723. // Describes a network interface for a Scheduled Instance.
  54724. type ScheduledInstancesNetworkInterface struct {
  54725. _ struct{} `type:"structure"`
  54726. // Indicates whether to assign a public IPv4 address to instances launched in
  54727. // a VPC. The public IPv4 address can only be assigned to a network interface
  54728. // for eth0, and can only be assigned to a new network interface, not an existing
  54729. // one. You cannot specify more than one network interface in the request. If
  54730. // launching into a default subnet, the default value is true.
  54731. AssociatePublicIpAddress *bool `type:"boolean"`
  54732. // Indicates whether to delete the interface when the instance is terminated.
  54733. DeleteOnTermination *bool `type:"boolean"`
  54734. // The description.
  54735. Description *string `type:"string"`
  54736. // The index of the device for the network interface attachment.
  54737. DeviceIndex *int64 `type:"integer"`
  54738. // The IDs of one or more security groups.
  54739. Groups []*string `locationName:"Group" locationNameList:"SecurityGroupId" type:"list"`
  54740. // The number of IPv6 addresses to assign to the network interface. The IPv6
  54741. // addresses are automatically selected from the subnet range.
  54742. Ipv6AddressCount *int64 `type:"integer"`
  54743. // One or more specific IPv6 addresses from the subnet range.
  54744. Ipv6Addresses []*ScheduledInstancesIpv6Address `locationName:"Ipv6Address" locationNameList:"Ipv6Address" type:"list"`
  54745. // The ID of the network interface.
  54746. NetworkInterfaceId *string `type:"string"`
  54747. // The IPv4 address of the network interface within the subnet.
  54748. PrivateIpAddress *string `type:"string"`
  54749. // The private IPv4 addresses.
  54750. PrivateIpAddressConfigs []*ScheduledInstancesPrivateIpAddressConfig `locationName:"PrivateIpAddressConfig" locationNameList:"PrivateIpAddressConfigSet" type:"list"`
  54751. // The number of secondary private IPv4 addresses.
  54752. SecondaryPrivateIpAddressCount *int64 `type:"integer"`
  54753. // The ID of the subnet.
  54754. SubnetId *string `type:"string"`
  54755. }
  54756. // String returns the string representation
  54757. func (s ScheduledInstancesNetworkInterface) String() string {
  54758. return awsutil.Prettify(s)
  54759. }
  54760. // GoString returns the string representation
  54761. func (s ScheduledInstancesNetworkInterface) GoString() string {
  54762. return s.String()
  54763. }
  54764. // SetAssociatePublicIpAddress sets the AssociatePublicIpAddress field's value.
  54765. func (s *ScheduledInstancesNetworkInterface) SetAssociatePublicIpAddress(v bool) *ScheduledInstancesNetworkInterface {
  54766. s.AssociatePublicIpAddress = &v
  54767. return s
  54768. }
  54769. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  54770. func (s *ScheduledInstancesNetworkInterface) SetDeleteOnTermination(v bool) *ScheduledInstancesNetworkInterface {
  54771. s.DeleteOnTermination = &v
  54772. return s
  54773. }
  54774. // SetDescription sets the Description field's value.
  54775. func (s *ScheduledInstancesNetworkInterface) SetDescription(v string) *ScheduledInstancesNetworkInterface {
  54776. s.Description = &v
  54777. return s
  54778. }
  54779. // SetDeviceIndex sets the DeviceIndex field's value.
  54780. func (s *ScheduledInstancesNetworkInterface) SetDeviceIndex(v int64) *ScheduledInstancesNetworkInterface {
  54781. s.DeviceIndex = &v
  54782. return s
  54783. }
  54784. // SetGroups sets the Groups field's value.
  54785. func (s *ScheduledInstancesNetworkInterface) SetGroups(v []*string) *ScheduledInstancesNetworkInterface {
  54786. s.Groups = v
  54787. return s
  54788. }
  54789. // SetIpv6AddressCount sets the Ipv6AddressCount field's value.
  54790. func (s *ScheduledInstancesNetworkInterface) SetIpv6AddressCount(v int64) *ScheduledInstancesNetworkInterface {
  54791. s.Ipv6AddressCount = &v
  54792. return s
  54793. }
  54794. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  54795. func (s *ScheduledInstancesNetworkInterface) SetIpv6Addresses(v []*ScheduledInstancesIpv6Address) *ScheduledInstancesNetworkInterface {
  54796. s.Ipv6Addresses = v
  54797. return s
  54798. }
  54799. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  54800. func (s *ScheduledInstancesNetworkInterface) SetNetworkInterfaceId(v string) *ScheduledInstancesNetworkInterface {
  54801. s.NetworkInterfaceId = &v
  54802. return s
  54803. }
  54804. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  54805. func (s *ScheduledInstancesNetworkInterface) SetPrivateIpAddress(v string) *ScheduledInstancesNetworkInterface {
  54806. s.PrivateIpAddress = &v
  54807. return s
  54808. }
  54809. // SetPrivateIpAddressConfigs sets the PrivateIpAddressConfigs field's value.
  54810. func (s *ScheduledInstancesNetworkInterface) SetPrivateIpAddressConfigs(v []*ScheduledInstancesPrivateIpAddressConfig) *ScheduledInstancesNetworkInterface {
  54811. s.PrivateIpAddressConfigs = v
  54812. return s
  54813. }
  54814. // SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value.
  54815. func (s *ScheduledInstancesNetworkInterface) SetSecondaryPrivateIpAddressCount(v int64) *ScheduledInstancesNetworkInterface {
  54816. s.SecondaryPrivateIpAddressCount = &v
  54817. return s
  54818. }
  54819. // SetSubnetId sets the SubnetId field's value.
  54820. func (s *ScheduledInstancesNetworkInterface) SetSubnetId(v string) *ScheduledInstancesNetworkInterface {
  54821. s.SubnetId = &v
  54822. return s
  54823. }
  54824. // Describes the placement for a Scheduled Instance.
  54825. type ScheduledInstancesPlacement struct {
  54826. _ struct{} `type:"structure"`
  54827. // The Availability Zone.
  54828. AvailabilityZone *string `type:"string"`
  54829. // The name of the placement group.
  54830. GroupName *string `type:"string"`
  54831. }
  54832. // String returns the string representation
  54833. func (s ScheduledInstancesPlacement) String() string {
  54834. return awsutil.Prettify(s)
  54835. }
  54836. // GoString returns the string representation
  54837. func (s ScheduledInstancesPlacement) GoString() string {
  54838. return s.String()
  54839. }
  54840. // SetAvailabilityZone sets the AvailabilityZone field's value.
  54841. func (s *ScheduledInstancesPlacement) SetAvailabilityZone(v string) *ScheduledInstancesPlacement {
  54842. s.AvailabilityZone = &v
  54843. return s
  54844. }
  54845. // SetGroupName sets the GroupName field's value.
  54846. func (s *ScheduledInstancesPlacement) SetGroupName(v string) *ScheduledInstancesPlacement {
  54847. s.GroupName = &v
  54848. return s
  54849. }
  54850. // Describes a private IPv4 address for a Scheduled Instance.
  54851. type ScheduledInstancesPrivateIpAddressConfig struct {
  54852. _ struct{} `type:"structure"`
  54853. // Indicates whether this is a primary IPv4 address. Otherwise, this is a secondary
  54854. // IPv4 address.
  54855. Primary *bool `type:"boolean"`
  54856. // The IPv4 address.
  54857. PrivateIpAddress *string `type:"string"`
  54858. }
  54859. // String returns the string representation
  54860. func (s ScheduledInstancesPrivateIpAddressConfig) String() string {
  54861. return awsutil.Prettify(s)
  54862. }
  54863. // GoString returns the string representation
  54864. func (s ScheduledInstancesPrivateIpAddressConfig) GoString() string {
  54865. return s.String()
  54866. }
  54867. // SetPrimary sets the Primary field's value.
  54868. func (s *ScheduledInstancesPrivateIpAddressConfig) SetPrimary(v bool) *ScheduledInstancesPrivateIpAddressConfig {
  54869. s.Primary = &v
  54870. return s
  54871. }
  54872. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  54873. func (s *ScheduledInstancesPrivateIpAddressConfig) SetPrivateIpAddress(v string) *ScheduledInstancesPrivateIpAddressConfig {
  54874. s.PrivateIpAddress = &v
  54875. return s
  54876. }
  54877. // Describes a security group
  54878. type SecurityGroup struct {
  54879. _ struct{} `type:"structure"`
  54880. // A description of the security group.
  54881. Description *string `locationName:"groupDescription" type:"string"`
  54882. // The ID of the security group.
  54883. GroupId *string `locationName:"groupId" type:"string"`
  54884. // The name of the security group.
  54885. GroupName *string `locationName:"groupName" type:"string"`
  54886. // One or more inbound rules associated with the security group.
  54887. IpPermissions []*IpPermission `locationName:"ipPermissions" locationNameList:"item" type:"list"`
  54888. // [EC2-VPC] One or more outbound rules associated with the security group.
  54889. IpPermissionsEgress []*IpPermission `locationName:"ipPermissionsEgress" locationNameList:"item" type:"list"`
  54890. // The AWS account ID of the owner of the security group.
  54891. OwnerId *string `locationName:"ownerId" type:"string"`
  54892. // Any tags assigned to the security group.
  54893. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  54894. // [EC2-VPC] The ID of the VPC for the security group.
  54895. VpcId *string `locationName:"vpcId" type:"string"`
  54896. }
  54897. // String returns the string representation
  54898. func (s SecurityGroup) String() string {
  54899. return awsutil.Prettify(s)
  54900. }
  54901. // GoString returns the string representation
  54902. func (s SecurityGroup) GoString() string {
  54903. return s.String()
  54904. }
  54905. // SetDescription sets the Description field's value.
  54906. func (s *SecurityGroup) SetDescription(v string) *SecurityGroup {
  54907. s.Description = &v
  54908. return s
  54909. }
  54910. // SetGroupId sets the GroupId field's value.
  54911. func (s *SecurityGroup) SetGroupId(v string) *SecurityGroup {
  54912. s.GroupId = &v
  54913. return s
  54914. }
  54915. // SetGroupName sets the GroupName field's value.
  54916. func (s *SecurityGroup) SetGroupName(v string) *SecurityGroup {
  54917. s.GroupName = &v
  54918. return s
  54919. }
  54920. // SetIpPermissions sets the IpPermissions field's value.
  54921. func (s *SecurityGroup) SetIpPermissions(v []*IpPermission) *SecurityGroup {
  54922. s.IpPermissions = v
  54923. return s
  54924. }
  54925. // SetIpPermissionsEgress sets the IpPermissionsEgress field's value.
  54926. func (s *SecurityGroup) SetIpPermissionsEgress(v []*IpPermission) *SecurityGroup {
  54927. s.IpPermissionsEgress = v
  54928. return s
  54929. }
  54930. // SetOwnerId sets the OwnerId field's value.
  54931. func (s *SecurityGroup) SetOwnerId(v string) *SecurityGroup {
  54932. s.OwnerId = &v
  54933. return s
  54934. }
  54935. // SetTags sets the Tags field's value.
  54936. func (s *SecurityGroup) SetTags(v []*Tag) *SecurityGroup {
  54937. s.Tags = v
  54938. return s
  54939. }
  54940. // SetVpcId sets the VpcId field's value.
  54941. func (s *SecurityGroup) SetVpcId(v string) *SecurityGroup {
  54942. s.VpcId = &v
  54943. return s
  54944. }
  54945. // Describes a security group.
  54946. type SecurityGroupIdentifier struct {
  54947. _ struct{} `type:"structure"`
  54948. // The ID of the security group.
  54949. GroupId *string `locationName:"groupId" type:"string"`
  54950. // The name of the security group.
  54951. GroupName *string `locationName:"groupName" type:"string"`
  54952. }
  54953. // String returns the string representation
  54954. func (s SecurityGroupIdentifier) String() string {
  54955. return awsutil.Prettify(s)
  54956. }
  54957. // GoString returns the string representation
  54958. func (s SecurityGroupIdentifier) GoString() string {
  54959. return s.String()
  54960. }
  54961. // SetGroupId sets the GroupId field's value.
  54962. func (s *SecurityGroupIdentifier) SetGroupId(v string) *SecurityGroupIdentifier {
  54963. s.GroupId = &v
  54964. return s
  54965. }
  54966. // SetGroupName sets the GroupName field's value.
  54967. func (s *SecurityGroupIdentifier) SetGroupName(v string) *SecurityGroupIdentifier {
  54968. s.GroupName = &v
  54969. return s
  54970. }
  54971. // Describes a VPC with a security group that references your security group.
  54972. type SecurityGroupReference struct {
  54973. _ struct{} `type:"structure"`
  54974. // The ID of your security group.
  54975. //
  54976. // GroupId is a required field
  54977. GroupId *string `locationName:"groupId" type:"string" required:"true"`
  54978. // The ID of the VPC with the referencing security group.
  54979. //
  54980. // ReferencingVpcId is a required field
  54981. ReferencingVpcId *string `locationName:"referencingVpcId" type:"string" required:"true"`
  54982. // The ID of the VPC peering connection.
  54983. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
  54984. }
  54985. // String returns the string representation
  54986. func (s SecurityGroupReference) String() string {
  54987. return awsutil.Prettify(s)
  54988. }
  54989. // GoString returns the string representation
  54990. func (s SecurityGroupReference) GoString() string {
  54991. return s.String()
  54992. }
  54993. // SetGroupId sets the GroupId field's value.
  54994. func (s *SecurityGroupReference) SetGroupId(v string) *SecurityGroupReference {
  54995. s.GroupId = &v
  54996. return s
  54997. }
  54998. // SetReferencingVpcId sets the ReferencingVpcId field's value.
  54999. func (s *SecurityGroupReference) SetReferencingVpcId(v string) *SecurityGroupReference {
  55000. s.ReferencingVpcId = &v
  55001. return s
  55002. }
  55003. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  55004. func (s *SecurityGroupReference) SetVpcPeeringConnectionId(v string) *SecurityGroupReference {
  55005. s.VpcPeeringConnectionId = &v
  55006. return s
  55007. }
  55008. // Describes a service configuration for a VPC endpoint service.
  55009. type ServiceConfiguration struct {
  55010. _ struct{} `type:"structure"`
  55011. // Indicates whether requests from other AWS accounts to create an endpoint
  55012. // to the service must first be accepted.
  55013. AcceptanceRequired *bool `locationName:"acceptanceRequired" type:"boolean"`
  55014. // In the Availability Zones in which the service is available.
  55015. AvailabilityZones []*string `locationName:"availabilityZoneSet" locationNameList:"item" type:"list"`
  55016. // The DNS names for the service.
  55017. BaseEndpointDnsNames []*string `locationName:"baseEndpointDnsNameSet" locationNameList:"item" type:"list"`
  55018. // The Amazon Resource Names (ARNs) of the Network Load Balancers for the service.
  55019. NetworkLoadBalancerArns []*string `locationName:"networkLoadBalancerArnSet" locationNameList:"item" type:"list"`
  55020. // The private DNS name for the service.
  55021. PrivateDnsName *string `locationName:"privateDnsName" type:"string"`
  55022. // The ID of the service.
  55023. ServiceId *string `locationName:"serviceId" type:"string"`
  55024. // The name of the service.
  55025. ServiceName *string `locationName:"serviceName" type:"string"`
  55026. // The service state.
  55027. ServiceState *string `locationName:"serviceState" type:"string" enum:"ServiceState"`
  55028. // The type of service.
  55029. ServiceType []*ServiceTypeDetail `locationName:"serviceType" locationNameList:"item" type:"list"`
  55030. }
  55031. // String returns the string representation
  55032. func (s ServiceConfiguration) String() string {
  55033. return awsutil.Prettify(s)
  55034. }
  55035. // GoString returns the string representation
  55036. func (s ServiceConfiguration) GoString() string {
  55037. return s.String()
  55038. }
  55039. // SetAcceptanceRequired sets the AcceptanceRequired field's value.
  55040. func (s *ServiceConfiguration) SetAcceptanceRequired(v bool) *ServiceConfiguration {
  55041. s.AcceptanceRequired = &v
  55042. return s
  55043. }
  55044. // SetAvailabilityZones sets the AvailabilityZones field's value.
  55045. func (s *ServiceConfiguration) SetAvailabilityZones(v []*string) *ServiceConfiguration {
  55046. s.AvailabilityZones = v
  55047. return s
  55048. }
  55049. // SetBaseEndpointDnsNames sets the BaseEndpointDnsNames field's value.
  55050. func (s *ServiceConfiguration) SetBaseEndpointDnsNames(v []*string) *ServiceConfiguration {
  55051. s.BaseEndpointDnsNames = v
  55052. return s
  55053. }
  55054. // SetNetworkLoadBalancerArns sets the NetworkLoadBalancerArns field's value.
  55055. func (s *ServiceConfiguration) SetNetworkLoadBalancerArns(v []*string) *ServiceConfiguration {
  55056. s.NetworkLoadBalancerArns = v
  55057. return s
  55058. }
  55059. // SetPrivateDnsName sets the PrivateDnsName field's value.
  55060. func (s *ServiceConfiguration) SetPrivateDnsName(v string) *ServiceConfiguration {
  55061. s.PrivateDnsName = &v
  55062. return s
  55063. }
  55064. // SetServiceId sets the ServiceId field's value.
  55065. func (s *ServiceConfiguration) SetServiceId(v string) *ServiceConfiguration {
  55066. s.ServiceId = &v
  55067. return s
  55068. }
  55069. // SetServiceName sets the ServiceName field's value.
  55070. func (s *ServiceConfiguration) SetServiceName(v string) *ServiceConfiguration {
  55071. s.ServiceName = &v
  55072. return s
  55073. }
  55074. // SetServiceState sets the ServiceState field's value.
  55075. func (s *ServiceConfiguration) SetServiceState(v string) *ServiceConfiguration {
  55076. s.ServiceState = &v
  55077. return s
  55078. }
  55079. // SetServiceType sets the ServiceType field's value.
  55080. func (s *ServiceConfiguration) SetServiceType(v []*ServiceTypeDetail) *ServiceConfiguration {
  55081. s.ServiceType = v
  55082. return s
  55083. }
  55084. // Describes a VPC endpoint service.
  55085. type ServiceDetail struct {
  55086. _ struct{} `type:"structure"`
  55087. // Indicates whether VPC endpoint connection requests to the service must be
  55088. // accepted by the service owner.
  55089. AcceptanceRequired *bool `locationName:"acceptanceRequired" type:"boolean"`
  55090. // The Availability Zones in which the service is available.
  55091. AvailabilityZones []*string `locationName:"availabilityZoneSet" locationNameList:"item" type:"list"`
  55092. // The DNS names for the service.
  55093. BaseEndpointDnsNames []*string `locationName:"baseEndpointDnsNameSet" locationNameList:"item" type:"list"`
  55094. // The AWS account ID of the service owner.
  55095. Owner *string `locationName:"owner" type:"string"`
  55096. // The private DNS name for the service.
  55097. PrivateDnsName *string `locationName:"privateDnsName" type:"string"`
  55098. // The Amazon Resource Name (ARN) of the service.
  55099. ServiceName *string `locationName:"serviceName" type:"string"`
  55100. // The type of service.
  55101. ServiceType []*ServiceTypeDetail `locationName:"serviceType" locationNameList:"item" type:"list"`
  55102. // Indicates whether the service supports endpoint policies.
  55103. VpcEndpointPolicySupported *bool `locationName:"vpcEndpointPolicySupported" type:"boolean"`
  55104. }
  55105. // String returns the string representation
  55106. func (s ServiceDetail) String() string {
  55107. return awsutil.Prettify(s)
  55108. }
  55109. // GoString returns the string representation
  55110. func (s ServiceDetail) GoString() string {
  55111. return s.String()
  55112. }
  55113. // SetAcceptanceRequired sets the AcceptanceRequired field's value.
  55114. func (s *ServiceDetail) SetAcceptanceRequired(v bool) *ServiceDetail {
  55115. s.AcceptanceRequired = &v
  55116. return s
  55117. }
  55118. // SetAvailabilityZones sets the AvailabilityZones field's value.
  55119. func (s *ServiceDetail) SetAvailabilityZones(v []*string) *ServiceDetail {
  55120. s.AvailabilityZones = v
  55121. return s
  55122. }
  55123. // SetBaseEndpointDnsNames sets the BaseEndpointDnsNames field's value.
  55124. func (s *ServiceDetail) SetBaseEndpointDnsNames(v []*string) *ServiceDetail {
  55125. s.BaseEndpointDnsNames = v
  55126. return s
  55127. }
  55128. // SetOwner sets the Owner field's value.
  55129. func (s *ServiceDetail) SetOwner(v string) *ServiceDetail {
  55130. s.Owner = &v
  55131. return s
  55132. }
  55133. // SetPrivateDnsName sets the PrivateDnsName field's value.
  55134. func (s *ServiceDetail) SetPrivateDnsName(v string) *ServiceDetail {
  55135. s.PrivateDnsName = &v
  55136. return s
  55137. }
  55138. // SetServiceName sets the ServiceName field's value.
  55139. func (s *ServiceDetail) SetServiceName(v string) *ServiceDetail {
  55140. s.ServiceName = &v
  55141. return s
  55142. }
  55143. // SetServiceType sets the ServiceType field's value.
  55144. func (s *ServiceDetail) SetServiceType(v []*ServiceTypeDetail) *ServiceDetail {
  55145. s.ServiceType = v
  55146. return s
  55147. }
  55148. // SetVpcEndpointPolicySupported sets the VpcEndpointPolicySupported field's value.
  55149. func (s *ServiceDetail) SetVpcEndpointPolicySupported(v bool) *ServiceDetail {
  55150. s.VpcEndpointPolicySupported = &v
  55151. return s
  55152. }
  55153. // Describes the type of service for a VPC endpoint.
  55154. type ServiceTypeDetail struct {
  55155. _ struct{} `type:"structure"`
  55156. // The type of service.
  55157. ServiceType *string `locationName:"serviceType" type:"string" enum:"ServiceType"`
  55158. }
  55159. // String returns the string representation
  55160. func (s ServiceTypeDetail) String() string {
  55161. return awsutil.Prettify(s)
  55162. }
  55163. // GoString returns the string representation
  55164. func (s ServiceTypeDetail) GoString() string {
  55165. return s.String()
  55166. }
  55167. // SetServiceType sets the ServiceType field's value.
  55168. func (s *ServiceTypeDetail) SetServiceType(v string) *ServiceTypeDetail {
  55169. s.ServiceType = &v
  55170. return s
  55171. }
  55172. // Describes the time period for a Scheduled Instance to start its first schedule.
  55173. // The time period must span less than one day.
  55174. type SlotDateTimeRangeRequest struct {
  55175. _ struct{} `type:"structure"`
  55176. // The earliest date and time, in UTC, for the Scheduled Instance to start.
  55177. //
  55178. // EarliestTime is a required field
  55179. EarliestTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
  55180. // The latest date and time, in UTC, for the Scheduled Instance to start. This
  55181. // value must be later than or equal to the earliest date and at most three
  55182. // months in the future.
  55183. //
  55184. // LatestTime is a required field
  55185. LatestTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
  55186. }
  55187. // String returns the string representation
  55188. func (s SlotDateTimeRangeRequest) String() string {
  55189. return awsutil.Prettify(s)
  55190. }
  55191. // GoString returns the string representation
  55192. func (s SlotDateTimeRangeRequest) GoString() string {
  55193. return s.String()
  55194. }
  55195. // Validate inspects the fields of the type to determine if they are valid.
  55196. func (s *SlotDateTimeRangeRequest) Validate() error {
  55197. invalidParams := request.ErrInvalidParams{Context: "SlotDateTimeRangeRequest"}
  55198. if s.EarliestTime == nil {
  55199. invalidParams.Add(request.NewErrParamRequired("EarliestTime"))
  55200. }
  55201. if s.LatestTime == nil {
  55202. invalidParams.Add(request.NewErrParamRequired("LatestTime"))
  55203. }
  55204. if invalidParams.Len() > 0 {
  55205. return invalidParams
  55206. }
  55207. return nil
  55208. }
  55209. // SetEarliestTime sets the EarliestTime field's value.
  55210. func (s *SlotDateTimeRangeRequest) SetEarliestTime(v time.Time) *SlotDateTimeRangeRequest {
  55211. s.EarliestTime = &v
  55212. return s
  55213. }
  55214. // SetLatestTime sets the LatestTime field's value.
  55215. func (s *SlotDateTimeRangeRequest) SetLatestTime(v time.Time) *SlotDateTimeRangeRequest {
  55216. s.LatestTime = &v
  55217. return s
  55218. }
  55219. // Describes the time period for a Scheduled Instance to start its first schedule.
  55220. type SlotStartTimeRangeRequest struct {
  55221. _ struct{} `type:"structure"`
  55222. // The earliest date and time, in UTC, for the Scheduled Instance to start.
  55223. EarliestTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  55224. // The latest date and time, in UTC, for the Scheduled Instance to start.
  55225. LatestTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  55226. }
  55227. // String returns the string representation
  55228. func (s SlotStartTimeRangeRequest) String() string {
  55229. return awsutil.Prettify(s)
  55230. }
  55231. // GoString returns the string representation
  55232. func (s SlotStartTimeRangeRequest) GoString() string {
  55233. return s.String()
  55234. }
  55235. // SetEarliestTime sets the EarliestTime field's value.
  55236. func (s *SlotStartTimeRangeRequest) SetEarliestTime(v time.Time) *SlotStartTimeRangeRequest {
  55237. s.EarliestTime = &v
  55238. return s
  55239. }
  55240. // SetLatestTime sets the LatestTime field's value.
  55241. func (s *SlotStartTimeRangeRequest) SetLatestTime(v time.Time) *SlotStartTimeRangeRequest {
  55242. s.LatestTime = &v
  55243. return s
  55244. }
  55245. // Describes a snapshot.
  55246. type Snapshot struct {
  55247. _ struct{} `type:"structure"`
  55248. // The data encryption key identifier for the snapshot. This value is a unique
  55249. // identifier that corresponds to the data encryption key that was used to encrypt
  55250. // the original volume or snapshot copy. Because data encryption keys are inherited
  55251. // by volumes created from snapshots, and vice versa, if snapshots share the
  55252. // same data encryption key identifier, then they belong to the same volume/snapshot
  55253. // lineage. This parameter is only returned by the DescribeSnapshots API operation.
  55254. DataEncryptionKeyId *string `locationName:"dataEncryptionKeyId" type:"string"`
  55255. // The description for the snapshot.
  55256. Description *string `locationName:"description" type:"string"`
  55257. // Indicates whether the snapshot is encrypted.
  55258. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  55259. // The full ARN of the AWS Key Management Service (AWS KMS) customer master
  55260. // key (CMK) that was used to protect the volume encryption key for the parent
  55261. // volume.
  55262. KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
  55263. // Value from an Amazon-maintained list (amazon | aws-marketplace | microsoft)
  55264. // of snapshot owners. Not to be confused with the user-configured AWS account
  55265. // alias, which is set from the IAM console.
  55266. OwnerAlias *string `locationName:"ownerAlias" type:"string"`
  55267. // The AWS account ID of the EBS snapshot owner.
  55268. OwnerId *string `locationName:"ownerId" type:"string"`
  55269. // The progress of the snapshot, as a percentage.
  55270. Progress *string `locationName:"progress" type:"string"`
  55271. // The ID of the snapshot. Each snapshot receives a unique identifier when it
  55272. // is created.
  55273. SnapshotId *string `locationName:"snapshotId" type:"string"`
  55274. // The time stamp when the snapshot was initiated.
  55275. StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601"`
  55276. // The snapshot state.
  55277. State *string `locationName:"status" type:"string" enum:"SnapshotState"`
  55278. // Encrypted Amazon EBS snapshots are copied asynchronously. If a snapshot copy
  55279. // operation fails (for example, if the proper AWS Key Management Service (AWS
  55280. // KMS) permissions are not obtained) this field displays error state details
  55281. // to help you diagnose why the error occurred. This parameter is only returned
  55282. // by the DescribeSnapshots API operation.
  55283. StateMessage *string `locationName:"statusMessage" type:"string"`
  55284. // Any tags assigned to the snapshot.
  55285. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  55286. // The ID of the volume that was used to create the snapshot. Snapshots created
  55287. // by the CopySnapshot action have an arbitrary volume ID that should not be
  55288. // used for any purpose.
  55289. VolumeId *string `locationName:"volumeId" type:"string"`
  55290. // The size of the volume, in GiB.
  55291. VolumeSize *int64 `locationName:"volumeSize" type:"integer"`
  55292. }
  55293. // String returns the string representation
  55294. func (s Snapshot) String() string {
  55295. return awsutil.Prettify(s)
  55296. }
  55297. // GoString returns the string representation
  55298. func (s Snapshot) GoString() string {
  55299. return s.String()
  55300. }
  55301. // SetDataEncryptionKeyId sets the DataEncryptionKeyId field's value.
  55302. func (s *Snapshot) SetDataEncryptionKeyId(v string) *Snapshot {
  55303. s.DataEncryptionKeyId = &v
  55304. return s
  55305. }
  55306. // SetDescription sets the Description field's value.
  55307. func (s *Snapshot) SetDescription(v string) *Snapshot {
  55308. s.Description = &v
  55309. return s
  55310. }
  55311. // SetEncrypted sets the Encrypted field's value.
  55312. func (s *Snapshot) SetEncrypted(v bool) *Snapshot {
  55313. s.Encrypted = &v
  55314. return s
  55315. }
  55316. // SetKmsKeyId sets the KmsKeyId field's value.
  55317. func (s *Snapshot) SetKmsKeyId(v string) *Snapshot {
  55318. s.KmsKeyId = &v
  55319. return s
  55320. }
  55321. // SetOwnerAlias sets the OwnerAlias field's value.
  55322. func (s *Snapshot) SetOwnerAlias(v string) *Snapshot {
  55323. s.OwnerAlias = &v
  55324. return s
  55325. }
  55326. // SetOwnerId sets the OwnerId field's value.
  55327. func (s *Snapshot) SetOwnerId(v string) *Snapshot {
  55328. s.OwnerId = &v
  55329. return s
  55330. }
  55331. // SetProgress sets the Progress field's value.
  55332. func (s *Snapshot) SetProgress(v string) *Snapshot {
  55333. s.Progress = &v
  55334. return s
  55335. }
  55336. // SetSnapshotId sets the SnapshotId field's value.
  55337. func (s *Snapshot) SetSnapshotId(v string) *Snapshot {
  55338. s.SnapshotId = &v
  55339. return s
  55340. }
  55341. // SetStartTime sets the StartTime field's value.
  55342. func (s *Snapshot) SetStartTime(v time.Time) *Snapshot {
  55343. s.StartTime = &v
  55344. return s
  55345. }
  55346. // SetState sets the State field's value.
  55347. func (s *Snapshot) SetState(v string) *Snapshot {
  55348. s.State = &v
  55349. return s
  55350. }
  55351. // SetStateMessage sets the StateMessage field's value.
  55352. func (s *Snapshot) SetStateMessage(v string) *Snapshot {
  55353. s.StateMessage = &v
  55354. return s
  55355. }
  55356. // SetTags sets the Tags field's value.
  55357. func (s *Snapshot) SetTags(v []*Tag) *Snapshot {
  55358. s.Tags = v
  55359. return s
  55360. }
  55361. // SetVolumeId sets the VolumeId field's value.
  55362. func (s *Snapshot) SetVolumeId(v string) *Snapshot {
  55363. s.VolumeId = &v
  55364. return s
  55365. }
  55366. // SetVolumeSize sets the VolumeSize field's value.
  55367. func (s *Snapshot) SetVolumeSize(v int64) *Snapshot {
  55368. s.VolumeSize = &v
  55369. return s
  55370. }
  55371. // Describes the snapshot created from the imported disk.
  55372. type SnapshotDetail struct {
  55373. _ struct{} `type:"structure"`
  55374. // A description for the snapshot.
  55375. Description *string `locationName:"description" type:"string"`
  55376. // The block device mapping for the snapshot.
  55377. DeviceName *string `locationName:"deviceName" type:"string"`
  55378. // The size of the disk in the snapshot, in GiB.
  55379. DiskImageSize *float64 `locationName:"diskImageSize" type:"double"`
  55380. // The format of the disk image from which the snapshot is created.
  55381. Format *string `locationName:"format" type:"string"`
  55382. // The percentage of progress for the task.
  55383. Progress *string `locationName:"progress" type:"string"`
  55384. // The snapshot ID of the disk being imported.
  55385. SnapshotId *string `locationName:"snapshotId" type:"string"`
  55386. // A brief status of the snapshot creation.
  55387. Status *string `locationName:"status" type:"string"`
  55388. // A detailed status message for the snapshot creation.
  55389. StatusMessage *string `locationName:"statusMessage" type:"string"`
  55390. // The URL used to access the disk image.
  55391. Url *string `locationName:"url" type:"string"`
  55392. // The S3 bucket for the disk image.
  55393. UserBucket *UserBucketDetails `locationName:"userBucket" type:"structure"`
  55394. }
  55395. // String returns the string representation
  55396. func (s SnapshotDetail) String() string {
  55397. return awsutil.Prettify(s)
  55398. }
  55399. // GoString returns the string representation
  55400. func (s SnapshotDetail) GoString() string {
  55401. return s.String()
  55402. }
  55403. // SetDescription sets the Description field's value.
  55404. func (s *SnapshotDetail) SetDescription(v string) *SnapshotDetail {
  55405. s.Description = &v
  55406. return s
  55407. }
  55408. // SetDeviceName sets the DeviceName field's value.
  55409. func (s *SnapshotDetail) SetDeviceName(v string) *SnapshotDetail {
  55410. s.DeviceName = &v
  55411. return s
  55412. }
  55413. // SetDiskImageSize sets the DiskImageSize field's value.
  55414. func (s *SnapshotDetail) SetDiskImageSize(v float64) *SnapshotDetail {
  55415. s.DiskImageSize = &v
  55416. return s
  55417. }
  55418. // SetFormat sets the Format field's value.
  55419. func (s *SnapshotDetail) SetFormat(v string) *SnapshotDetail {
  55420. s.Format = &v
  55421. return s
  55422. }
  55423. // SetProgress sets the Progress field's value.
  55424. func (s *SnapshotDetail) SetProgress(v string) *SnapshotDetail {
  55425. s.Progress = &v
  55426. return s
  55427. }
  55428. // SetSnapshotId sets the SnapshotId field's value.
  55429. func (s *SnapshotDetail) SetSnapshotId(v string) *SnapshotDetail {
  55430. s.SnapshotId = &v
  55431. return s
  55432. }
  55433. // SetStatus sets the Status field's value.
  55434. func (s *SnapshotDetail) SetStatus(v string) *SnapshotDetail {
  55435. s.Status = &v
  55436. return s
  55437. }
  55438. // SetStatusMessage sets the StatusMessage field's value.
  55439. func (s *SnapshotDetail) SetStatusMessage(v string) *SnapshotDetail {
  55440. s.StatusMessage = &v
  55441. return s
  55442. }
  55443. // SetUrl sets the Url field's value.
  55444. func (s *SnapshotDetail) SetUrl(v string) *SnapshotDetail {
  55445. s.Url = &v
  55446. return s
  55447. }
  55448. // SetUserBucket sets the UserBucket field's value.
  55449. func (s *SnapshotDetail) SetUserBucket(v *UserBucketDetails) *SnapshotDetail {
  55450. s.UserBucket = v
  55451. return s
  55452. }
  55453. // The disk container object for the import snapshot request.
  55454. type SnapshotDiskContainer struct {
  55455. _ struct{} `type:"structure"`
  55456. // The description of the disk image being imported.
  55457. Description *string `type:"string"`
  55458. // The format of the disk image being imported.
  55459. //
  55460. // Valid values: VHD | VMDK | OVA
  55461. Format *string `type:"string"`
  55462. // The URL to the Amazon S3-based disk image being imported. It can either be
  55463. // a https URL (https://..) or an Amazon S3 URL (s3://..).
  55464. Url *string `type:"string"`
  55465. // The S3 bucket for the disk image.
  55466. UserBucket *UserBucket `type:"structure"`
  55467. }
  55468. // String returns the string representation
  55469. func (s SnapshotDiskContainer) String() string {
  55470. return awsutil.Prettify(s)
  55471. }
  55472. // GoString returns the string representation
  55473. func (s SnapshotDiskContainer) GoString() string {
  55474. return s.String()
  55475. }
  55476. // SetDescription sets the Description field's value.
  55477. func (s *SnapshotDiskContainer) SetDescription(v string) *SnapshotDiskContainer {
  55478. s.Description = &v
  55479. return s
  55480. }
  55481. // SetFormat sets the Format field's value.
  55482. func (s *SnapshotDiskContainer) SetFormat(v string) *SnapshotDiskContainer {
  55483. s.Format = &v
  55484. return s
  55485. }
  55486. // SetUrl sets the Url field's value.
  55487. func (s *SnapshotDiskContainer) SetUrl(v string) *SnapshotDiskContainer {
  55488. s.Url = &v
  55489. return s
  55490. }
  55491. // SetUserBucket sets the UserBucket field's value.
  55492. func (s *SnapshotDiskContainer) SetUserBucket(v *UserBucket) *SnapshotDiskContainer {
  55493. s.UserBucket = v
  55494. return s
  55495. }
  55496. // Details about the import snapshot task.
  55497. type SnapshotTaskDetail struct {
  55498. _ struct{} `type:"structure"`
  55499. // The description of the snapshot.
  55500. Description *string `locationName:"description" type:"string"`
  55501. // The size of the disk in the snapshot, in GiB.
  55502. DiskImageSize *float64 `locationName:"diskImageSize" type:"double"`
  55503. // The format of the disk image from which the snapshot is created.
  55504. Format *string `locationName:"format" type:"string"`
  55505. // The percentage of completion for the import snapshot task.
  55506. Progress *string `locationName:"progress" type:"string"`
  55507. // The snapshot ID of the disk being imported.
  55508. SnapshotId *string `locationName:"snapshotId" type:"string"`
  55509. // A brief status for the import snapshot task.
  55510. Status *string `locationName:"status" type:"string"`
  55511. // A detailed status message for the import snapshot task.
  55512. StatusMessage *string `locationName:"statusMessage" type:"string"`
  55513. // The URL of the disk image from which the snapshot is created.
  55514. Url *string `locationName:"url" type:"string"`
  55515. // The S3 bucket for the disk image.
  55516. UserBucket *UserBucketDetails `locationName:"userBucket" type:"structure"`
  55517. }
  55518. // String returns the string representation
  55519. func (s SnapshotTaskDetail) String() string {
  55520. return awsutil.Prettify(s)
  55521. }
  55522. // GoString returns the string representation
  55523. func (s SnapshotTaskDetail) GoString() string {
  55524. return s.String()
  55525. }
  55526. // SetDescription sets the Description field's value.
  55527. func (s *SnapshotTaskDetail) SetDescription(v string) *SnapshotTaskDetail {
  55528. s.Description = &v
  55529. return s
  55530. }
  55531. // SetDiskImageSize sets the DiskImageSize field's value.
  55532. func (s *SnapshotTaskDetail) SetDiskImageSize(v float64) *SnapshotTaskDetail {
  55533. s.DiskImageSize = &v
  55534. return s
  55535. }
  55536. // SetFormat sets the Format field's value.
  55537. func (s *SnapshotTaskDetail) SetFormat(v string) *SnapshotTaskDetail {
  55538. s.Format = &v
  55539. return s
  55540. }
  55541. // SetProgress sets the Progress field's value.
  55542. func (s *SnapshotTaskDetail) SetProgress(v string) *SnapshotTaskDetail {
  55543. s.Progress = &v
  55544. return s
  55545. }
  55546. // SetSnapshotId sets the SnapshotId field's value.
  55547. func (s *SnapshotTaskDetail) SetSnapshotId(v string) *SnapshotTaskDetail {
  55548. s.SnapshotId = &v
  55549. return s
  55550. }
  55551. // SetStatus sets the Status field's value.
  55552. func (s *SnapshotTaskDetail) SetStatus(v string) *SnapshotTaskDetail {
  55553. s.Status = &v
  55554. return s
  55555. }
  55556. // SetStatusMessage sets the StatusMessage field's value.
  55557. func (s *SnapshotTaskDetail) SetStatusMessage(v string) *SnapshotTaskDetail {
  55558. s.StatusMessage = &v
  55559. return s
  55560. }
  55561. // SetUrl sets the Url field's value.
  55562. func (s *SnapshotTaskDetail) SetUrl(v string) *SnapshotTaskDetail {
  55563. s.Url = &v
  55564. return s
  55565. }
  55566. // SetUserBucket sets the UserBucket field's value.
  55567. func (s *SnapshotTaskDetail) SetUserBucket(v *UserBucketDetails) *SnapshotTaskDetail {
  55568. s.UserBucket = v
  55569. return s
  55570. }
  55571. // Describes the data feed for a Spot Instance.
  55572. type SpotDatafeedSubscription struct {
  55573. _ struct{} `type:"structure"`
  55574. // The Amazon S3 bucket where the Spot Instance data feed is located.
  55575. Bucket *string `locationName:"bucket" type:"string"`
  55576. // The fault codes for the Spot Instance request, if any.
  55577. Fault *SpotInstanceStateFault `locationName:"fault" type:"structure"`
  55578. // The AWS account ID of the account.
  55579. OwnerId *string `locationName:"ownerId" type:"string"`
  55580. // The prefix that is prepended to data feed files.
  55581. Prefix *string `locationName:"prefix" type:"string"`
  55582. // The state of the Spot Instance data feed subscription.
  55583. State *string `locationName:"state" type:"string" enum:"DatafeedSubscriptionState"`
  55584. }
  55585. // String returns the string representation
  55586. func (s SpotDatafeedSubscription) String() string {
  55587. return awsutil.Prettify(s)
  55588. }
  55589. // GoString returns the string representation
  55590. func (s SpotDatafeedSubscription) GoString() string {
  55591. return s.String()
  55592. }
  55593. // SetBucket sets the Bucket field's value.
  55594. func (s *SpotDatafeedSubscription) SetBucket(v string) *SpotDatafeedSubscription {
  55595. s.Bucket = &v
  55596. return s
  55597. }
  55598. // SetFault sets the Fault field's value.
  55599. func (s *SpotDatafeedSubscription) SetFault(v *SpotInstanceStateFault) *SpotDatafeedSubscription {
  55600. s.Fault = v
  55601. return s
  55602. }
  55603. // SetOwnerId sets the OwnerId field's value.
  55604. func (s *SpotDatafeedSubscription) SetOwnerId(v string) *SpotDatafeedSubscription {
  55605. s.OwnerId = &v
  55606. return s
  55607. }
  55608. // SetPrefix sets the Prefix field's value.
  55609. func (s *SpotDatafeedSubscription) SetPrefix(v string) *SpotDatafeedSubscription {
  55610. s.Prefix = &v
  55611. return s
  55612. }
  55613. // SetState sets the State field's value.
  55614. func (s *SpotDatafeedSubscription) SetState(v string) *SpotDatafeedSubscription {
  55615. s.State = &v
  55616. return s
  55617. }
  55618. // Describes the launch specification for one or more Spot Instances.
  55619. type SpotFleetLaunchSpecification struct {
  55620. _ struct{} `type:"structure"`
  55621. // Deprecated.
  55622. AddressingType *string `locationName:"addressingType" type:"string"`
  55623. // One or more block device mapping entries. You can't specify both a snapshot
  55624. // ID and an encryption value. This is because only blank volumes can be encrypted
  55625. // on creation. If a snapshot is the basis for a volume, it is not blank and
  55626. // its encryption status is used for the volume encryption status.
  55627. BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  55628. // Indicates whether the instances are optimized for EBS I/O. This optimization
  55629. // provides dedicated throughput to Amazon EBS and an optimized configuration
  55630. // stack to provide optimal EBS I/O performance. This optimization isn't available
  55631. // with all instance types. Additional usage charges apply when using an EBS
  55632. // Optimized instance.
  55633. //
  55634. // Default: false
  55635. EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`
  55636. // The IAM instance profile.
  55637. IamInstanceProfile *IamInstanceProfileSpecification `locationName:"iamInstanceProfile" type:"structure"`
  55638. // The ID of the AMI.
  55639. ImageId *string `locationName:"imageId" type:"string"`
  55640. // The instance type.
  55641. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  55642. // The ID of the kernel.
  55643. KernelId *string `locationName:"kernelId" type:"string"`
  55644. // The name of the key pair.
  55645. KeyName *string `locationName:"keyName" type:"string"`
  55646. // Enable or disable monitoring for the instances.
  55647. Monitoring *SpotFleetMonitoring `locationName:"monitoring" type:"structure"`
  55648. // One or more network interfaces. If you specify a network interface, you must
  55649. // specify subnet IDs and security group IDs using the network interface.
  55650. NetworkInterfaces []*InstanceNetworkInterfaceSpecification `locationName:"networkInterfaceSet" locationNameList:"item" type:"list"`
  55651. // The placement information.
  55652. Placement *SpotPlacement `locationName:"placement" type:"structure"`
  55653. // The ID of the RAM disk.
  55654. RamdiskId *string `locationName:"ramdiskId" type:"string"`
  55655. // One or more security groups. When requesting instances in a VPC, you must
  55656. // specify the IDs of the security groups. When requesting instances in EC2-Classic,
  55657. // you can specify the names or the IDs of the security groups.
  55658. SecurityGroups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  55659. // The maximum price per unit hour that you are willing to pay for a Spot Instance.
  55660. // If this value is not specified, the default is the Spot price specified for
  55661. // the fleet. To determine the Spot price per unit hour, divide the Spot price
  55662. // by the value of WeightedCapacity.
  55663. SpotPrice *string `locationName:"spotPrice" type:"string"`
  55664. // The ID of the subnet in which to launch the instances. To specify multiple
  55665. // subnets, separate them using commas; for example, "subnet-a61dafcf, subnet-65ea5f08".
  55666. SubnetId *string `locationName:"subnetId" type:"string"`
  55667. // The tags to apply during creation.
  55668. TagSpecifications []*SpotFleetTagSpecification `locationName:"tagSpecificationSet" locationNameList:"item" type:"list"`
  55669. // The Base64-encoded user data to make available to the instances.
  55670. UserData *string `locationName:"userData" type:"string"`
  55671. // The number of units provided by the specified instance type. These are the
  55672. // same units that you chose to set the target capacity in terms (instances
  55673. // or a performance characteristic such as vCPUs, memory, or I/O).
  55674. //
  55675. // If the target capacity divided by this value is not a whole number, we round
  55676. // the number of instances to the next whole number. If this value is not specified,
  55677. // the default is 1.
  55678. WeightedCapacity *float64 `locationName:"weightedCapacity" type:"double"`
  55679. }
  55680. // String returns the string representation
  55681. func (s SpotFleetLaunchSpecification) String() string {
  55682. return awsutil.Prettify(s)
  55683. }
  55684. // GoString returns the string representation
  55685. func (s SpotFleetLaunchSpecification) GoString() string {
  55686. return s.String()
  55687. }
  55688. // Validate inspects the fields of the type to determine if they are valid.
  55689. func (s *SpotFleetLaunchSpecification) Validate() error {
  55690. invalidParams := request.ErrInvalidParams{Context: "SpotFleetLaunchSpecification"}
  55691. if s.NetworkInterfaces != nil {
  55692. for i, v := range s.NetworkInterfaces {
  55693. if v == nil {
  55694. continue
  55695. }
  55696. if err := v.Validate(); err != nil {
  55697. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "NetworkInterfaces", i), err.(request.ErrInvalidParams))
  55698. }
  55699. }
  55700. }
  55701. if invalidParams.Len() > 0 {
  55702. return invalidParams
  55703. }
  55704. return nil
  55705. }
  55706. // SetAddressingType sets the AddressingType field's value.
  55707. func (s *SpotFleetLaunchSpecification) SetAddressingType(v string) *SpotFleetLaunchSpecification {
  55708. s.AddressingType = &v
  55709. return s
  55710. }
  55711. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  55712. func (s *SpotFleetLaunchSpecification) SetBlockDeviceMappings(v []*BlockDeviceMapping) *SpotFleetLaunchSpecification {
  55713. s.BlockDeviceMappings = v
  55714. return s
  55715. }
  55716. // SetEbsOptimized sets the EbsOptimized field's value.
  55717. func (s *SpotFleetLaunchSpecification) SetEbsOptimized(v bool) *SpotFleetLaunchSpecification {
  55718. s.EbsOptimized = &v
  55719. return s
  55720. }
  55721. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  55722. func (s *SpotFleetLaunchSpecification) SetIamInstanceProfile(v *IamInstanceProfileSpecification) *SpotFleetLaunchSpecification {
  55723. s.IamInstanceProfile = v
  55724. return s
  55725. }
  55726. // SetImageId sets the ImageId field's value.
  55727. func (s *SpotFleetLaunchSpecification) SetImageId(v string) *SpotFleetLaunchSpecification {
  55728. s.ImageId = &v
  55729. return s
  55730. }
  55731. // SetInstanceType sets the InstanceType field's value.
  55732. func (s *SpotFleetLaunchSpecification) SetInstanceType(v string) *SpotFleetLaunchSpecification {
  55733. s.InstanceType = &v
  55734. return s
  55735. }
  55736. // SetKernelId sets the KernelId field's value.
  55737. func (s *SpotFleetLaunchSpecification) SetKernelId(v string) *SpotFleetLaunchSpecification {
  55738. s.KernelId = &v
  55739. return s
  55740. }
  55741. // SetKeyName sets the KeyName field's value.
  55742. func (s *SpotFleetLaunchSpecification) SetKeyName(v string) *SpotFleetLaunchSpecification {
  55743. s.KeyName = &v
  55744. return s
  55745. }
  55746. // SetMonitoring sets the Monitoring field's value.
  55747. func (s *SpotFleetLaunchSpecification) SetMonitoring(v *SpotFleetMonitoring) *SpotFleetLaunchSpecification {
  55748. s.Monitoring = v
  55749. return s
  55750. }
  55751. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  55752. func (s *SpotFleetLaunchSpecification) SetNetworkInterfaces(v []*InstanceNetworkInterfaceSpecification) *SpotFleetLaunchSpecification {
  55753. s.NetworkInterfaces = v
  55754. return s
  55755. }
  55756. // SetPlacement sets the Placement field's value.
  55757. func (s *SpotFleetLaunchSpecification) SetPlacement(v *SpotPlacement) *SpotFleetLaunchSpecification {
  55758. s.Placement = v
  55759. return s
  55760. }
  55761. // SetRamdiskId sets the RamdiskId field's value.
  55762. func (s *SpotFleetLaunchSpecification) SetRamdiskId(v string) *SpotFleetLaunchSpecification {
  55763. s.RamdiskId = &v
  55764. return s
  55765. }
  55766. // SetSecurityGroups sets the SecurityGroups field's value.
  55767. func (s *SpotFleetLaunchSpecification) SetSecurityGroups(v []*GroupIdentifier) *SpotFleetLaunchSpecification {
  55768. s.SecurityGroups = v
  55769. return s
  55770. }
  55771. // SetSpotPrice sets the SpotPrice field's value.
  55772. func (s *SpotFleetLaunchSpecification) SetSpotPrice(v string) *SpotFleetLaunchSpecification {
  55773. s.SpotPrice = &v
  55774. return s
  55775. }
  55776. // SetSubnetId sets the SubnetId field's value.
  55777. func (s *SpotFleetLaunchSpecification) SetSubnetId(v string) *SpotFleetLaunchSpecification {
  55778. s.SubnetId = &v
  55779. return s
  55780. }
  55781. // SetTagSpecifications sets the TagSpecifications field's value.
  55782. func (s *SpotFleetLaunchSpecification) SetTagSpecifications(v []*SpotFleetTagSpecification) *SpotFleetLaunchSpecification {
  55783. s.TagSpecifications = v
  55784. return s
  55785. }
  55786. // SetUserData sets the UserData field's value.
  55787. func (s *SpotFleetLaunchSpecification) SetUserData(v string) *SpotFleetLaunchSpecification {
  55788. s.UserData = &v
  55789. return s
  55790. }
  55791. // SetWeightedCapacity sets the WeightedCapacity field's value.
  55792. func (s *SpotFleetLaunchSpecification) SetWeightedCapacity(v float64) *SpotFleetLaunchSpecification {
  55793. s.WeightedCapacity = &v
  55794. return s
  55795. }
  55796. // Describes whether monitoring is enabled.
  55797. type SpotFleetMonitoring struct {
  55798. _ struct{} `type:"structure"`
  55799. // Enables monitoring for the instance.
  55800. //
  55801. // Default: false
  55802. Enabled *bool `locationName:"enabled" type:"boolean"`
  55803. }
  55804. // String returns the string representation
  55805. func (s SpotFleetMonitoring) String() string {
  55806. return awsutil.Prettify(s)
  55807. }
  55808. // GoString returns the string representation
  55809. func (s SpotFleetMonitoring) GoString() string {
  55810. return s.String()
  55811. }
  55812. // SetEnabled sets the Enabled field's value.
  55813. func (s *SpotFleetMonitoring) SetEnabled(v bool) *SpotFleetMonitoring {
  55814. s.Enabled = &v
  55815. return s
  55816. }
  55817. // Describes a Spot Fleet request.
  55818. type SpotFleetRequestConfig struct {
  55819. _ struct{} `type:"structure"`
  55820. // The progress of the Spot Fleet request. If there is an error, the status
  55821. // is error. After all requests are placed, the status is pending_fulfillment.
  55822. // If the size of the fleet is equal to or greater than its target capacity,
  55823. // the status is fulfilled. If the size of the fleet is decreased, the status
  55824. // is pending_termination while Spot Instances are terminating.
  55825. ActivityStatus *string `locationName:"activityStatus" type:"string" enum:"ActivityStatus"`
  55826. // The creation date and time of the request.
  55827. //
  55828. // CreateTime is a required field
  55829. CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"iso8601" required:"true"`
  55830. // The configuration of the Spot Fleet request.
  55831. //
  55832. // SpotFleetRequestConfig is a required field
  55833. SpotFleetRequestConfig *SpotFleetRequestConfigData `locationName:"spotFleetRequestConfig" type:"structure" required:"true"`
  55834. // The ID of the Spot Fleet request.
  55835. //
  55836. // SpotFleetRequestId is a required field
  55837. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
  55838. // The state of the Spot Fleet request.
  55839. //
  55840. // SpotFleetRequestState is a required field
  55841. SpotFleetRequestState *string `locationName:"spotFleetRequestState" type:"string" required:"true" enum:"BatchState"`
  55842. }
  55843. // String returns the string representation
  55844. func (s SpotFleetRequestConfig) String() string {
  55845. return awsutil.Prettify(s)
  55846. }
  55847. // GoString returns the string representation
  55848. func (s SpotFleetRequestConfig) GoString() string {
  55849. return s.String()
  55850. }
  55851. // SetActivityStatus sets the ActivityStatus field's value.
  55852. func (s *SpotFleetRequestConfig) SetActivityStatus(v string) *SpotFleetRequestConfig {
  55853. s.ActivityStatus = &v
  55854. return s
  55855. }
  55856. // SetCreateTime sets the CreateTime field's value.
  55857. func (s *SpotFleetRequestConfig) SetCreateTime(v time.Time) *SpotFleetRequestConfig {
  55858. s.CreateTime = &v
  55859. return s
  55860. }
  55861. // SetSpotFleetRequestConfig sets the SpotFleetRequestConfig field's value.
  55862. func (s *SpotFleetRequestConfig) SetSpotFleetRequestConfig(v *SpotFleetRequestConfigData) *SpotFleetRequestConfig {
  55863. s.SpotFleetRequestConfig = v
  55864. return s
  55865. }
  55866. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  55867. func (s *SpotFleetRequestConfig) SetSpotFleetRequestId(v string) *SpotFleetRequestConfig {
  55868. s.SpotFleetRequestId = &v
  55869. return s
  55870. }
  55871. // SetSpotFleetRequestState sets the SpotFleetRequestState field's value.
  55872. func (s *SpotFleetRequestConfig) SetSpotFleetRequestState(v string) *SpotFleetRequestConfig {
  55873. s.SpotFleetRequestState = &v
  55874. return s
  55875. }
  55876. // Describes the configuration of a Spot Fleet request.
  55877. type SpotFleetRequestConfigData struct {
  55878. _ struct{} `type:"structure"`
  55879. // Indicates how to allocate the target capacity across the Spot pools specified
  55880. // by the Spot Fleet request. The default is lowestPrice.
  55881. AllocationStrategy *string `locationName:"allocationStrategy" type:"string" enum:"AllocationStrategy"`
  55882. // A unique, case-sensitive identifier that you provide to ensure the idempotency
  55883. // of your listings. This helps to avoid duplicate listings. For more information,
  55884. // see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  55885. ClientToken *string `locationName:"clientToken" type:"string"`
  55886. // Indicates whether running Spot Instances should be terminated if the target
  55887. // capacity of the Spot Fleet request is decreased below the current size of
  55888. // the Spot Fleet.
  55889. ExcessCapacityTerminationPolicy *string `locationName:"excessCapacityTerminationPolicy" type:"string" enum:"ExcessCapacityTerminationPolicy"`
  55890. // The number of units fulfilled by this request compared to the set target
  55891. // capacity.
  55892. FulfilledCapacity *float64 `locationName:"fulfilledCapacity" type:"double"`
  55893. // Grants the Spot Fleet permission to terminate Spot Instances on your behalf
  55894. // when you cancel its Spot Fleet request using CancelSpotFleetRequests or when
  55895. // the Spot Fleet request expires, if you set terminateInstancesWithExpiration.
  55896. //
  55897. // IamFleetRole is a required field
  55898. IamFleetRole *string `locationName:"iamFleetRole" type:"string" required:"true"`
  55899. // The behavior when a Spot Instance is interrupted. The default is terminate.
  55900. InstanceInterruptionBehavior *string `locationName:"instanceInterruptionBehavior" type:"string" enum:"InstanceInterruptionBehavior"`
  55901. // The launch specifications for the Spot Fleet request.
  55902. LaunchSpecifications []*SpotFleetLaunchSpecification `locationName:"launchSpecifications" locationNameList:"item" type:"list"`
  55903. // The launch template and overrides.
  55904. LaunchTemplateConfigs []*LaunchTemplateConfig `locationName:"launchTemplateConfigs" locationNameList:"item" type:"list"`
  55905. // One or more Classic Load Balancers and target groups to attach to the Spot
  55906. // Fleet request. Spot Fleet registers the running Spot Instances with the specified
  55907. // Classic Load Balancers and target groups.
  55908. //
  55909. // With Network Load Balancers, Spot Fleet cannot register instances that have
  55910. // the following instance types: C1, CC1, CC2, CG1, CG2, CR1, CS1, G1, G2, HI1,
  55911. // HS1, M1, M2, M3, and T1.
  55912. LoadBalancersConfig *LoadBalancersConfig `locationName:"loadBalancersConfig" type:"structure"`
  55913. // The number of On-Demand units fulfilled by this request compared to the set
  55914. // target On-Demand capacity.
  55915. OnDemandFulfilledCapacity *float64 `locationName:"onDemandFulfilledCapacity" type:"double"`
  55916. // The number of On-Demand units to request. You can choose to set the target
  55917. // capacity in terms of instances or a performance characteristic that is important
  55918. // to your application workload, such as vCPUs, memory, or I/O. If the request
  55919. // type is maintain, you can specify a target capacity of 0 and add capacity
  55920. // later.
  55921. OnDemandTargetCapacity *int64 `locationName:"onDemandTargetCapacity" type:"integer"`
  55922. // Indicates whether Spot Fleet should replace unhealthy instances.
  55923. ReplaceUnhealthyInstances *bool `locationName:"replaceUnhealthyInstances" type:"boolean"`
  55924. // The maximum price per unit hour that you are willing to pay for a Spot Instance.
  55925. // The default is the On-Demand price.
  55926. SpotPrice *string `locationName:"spotPrice" type:"string"`
  55927. // The number of units to request. You can choose to set the target capacity
  55928. // in terms of instances or a performance characteristic that is important to
  55929. // your application workload, such as vCPUs, memory, or I/O. If the request
  55930. // type is maintain, you can specify a target capacity of 0 and add capacity
  55931. // later.
  55932. //
  55933. // TargetCapacity is a required field
  55934. TargetCapacity *int64 `locationName:"targetCapacity" type:"integer" required:"true"`
  55935. // Indicates whether running Spot Instances should be terminated when the Spot
  55936. // Fleet request expires.
  55937. TerminateInstancesWithExpiration *bool `locationName:"terminateInstancesWithExpiration" type:"boolean"`
  55938. // The type of request. Indicates whether the Spot Fleet only requests the target
  55939. // capacity or also attempts to maintain it. When this value is request, the
  55940. // Spot Fleet only places the required requests. It does not attempt to replenish
  55941. // Spot Instances if capacity is diminished, nor does it submit requests in
  55942. // alternative Spot pools if capacity is not available. To maintain a certain
  55943. // target capacity, the Spot Fleet places the required requests to meet capacity
  55944. // and automatically replenishes any interrupted instances. Default: maintain.
  55945. Type *string `locationName:"type" type:"string" enum:"FleetType"`
  55946. // The start date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  55947. // The default is to start fulfilling the request immediately.
  55948. ValidFrom *time.Time `locationName:"validFrom" type:"timestamp" timestampFormat:"iso8601"`
  55949. // The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  55950. // At this point, no new Spot Instance requests are placed or able to fulfill
  55951. // the request. The default end date is 7 days from the current date.
  55952. ValidUntil *time.Time `locationName:"validUntil" type:"timestamp" timestampFormat:"iso8601"`
  55953. }
  55954. // String returns the string representation
  55955. func (s SpotFleetRequestConfigData) String() string {
  55956. return awsutil.Prettify(s)
  55957. }
  55958. // GoString returns the string representation
  55959. func (s SpotFleetRequestConfigData) GoString() string {
  55960. return s.String()
  55961. }
  55962. // Validate inspects the fields of the type to determine if they are valid.
  55963. func (s *SpotFleetRequestConfigData) Validate() error {
  55964. invalidParams := request.ErrInvalidParams{Context: "SpotFleetRequestConfigData"}
  55965. if s.IamFleetRole == nil {
  55966. invalidParams.Add(request.NewErrParamRequired("IamFleetRole"))
  55967. }
  55968. if s.TargetCapacity == nil {
  55969. invalidParams.Add(request.NewErrParamRequired("TargetCapacity"))
  55970. }
  55971. if s.LaunchSpecifications != nil {
  55972. for i, v := range s.LaunchSpecifications {
  55973. if v == nil {
  55974. continue
  55975. }
  55976. if err := v.Validate(); err != nil {
  55977. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "LaunchSpecifications", i), err.(request.ErrInvalidParams))
  55978. }
  55979. }
  55980. }
  55981. if s.LaunchTemplateConfigs != nil {
  55982. for i, v := range s.LaunchTemplateConfigs {
  55983. if v == nil {
  55984. continue
  55985. }
  55986. if err := v.Validate(); err != nil {
  55987. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "LaunchTemplateConfigs", i), err.(request.ErrInvalidParams))
  55988. }
  55989. }
  55990. }
  55991. if s.LoadBalancersConfig != nil {
  55992. if err := s.LoadBalancersConfig.Validate(); err != nil {
  55993. invalidParams.AddNested("LoadBalancersConfig", err.(request.ErrInvalidParams))
  55994. }
  55995. }
  55996. if invalidParams.Len() > 0 {
  55997. return invalidParams
  55998. }
  55999. return nil
  56000. }
  56001. // SetAllocationStrategy sets the AllocationStrategy field's value.
  56002. func (s *SpotFleetRequestConfigData) SetAllocationStrategy(v string) *SpotFleetRequestConfigData {
  56003. s.AllocationStrategy = &v
  56004. return s
  56005. }
  56006. // SetClientToken sets the ClientToken field's value.
  56007. func (s *SpotFleetRequestConfigData) SetClientToken(v string) *SpotFleetRequestConfigData {
  56008. s.ClientToken = &v
  56009. return s
  56010. }
  56011. // SetExcessCapacityTerminationPolicy sets the ExcessCapacityTerminationPolicy field's value.
  56012. func (s *SpotFleetRequestConfigData) SetExcessCapacityTerminationPolicy(v string) *SpotFleetRequestConfigData {
  56013. s.ExcessCapacityTerminationPolicy = &v
  56014. return s
  56015. }
  56016. // SetFulfilledCapacity sets the FulfilledCapacity field's value.
  56017. func (s *SpotFleetRequestConfigData) SetFulfilledCapacity(v float64) *SpotFleetRequestConfigData {
  56018. s.FulfilledCapacity = &v
  56019. return s
  56020. }
  56021. // SetIamFleetRole sets the IamFleetRole field's value.
  56022. func (s *SpotFleetRequestConfigData) SetIamFleetRole(v string) *SpotFleetRequestConfigData {
  56023. s.IamFleetRole = &v
  56024. return s
  56025. }
  56026. // SetInstanceInterruptionBehavior sets the InstanceInterruptionBehavior field's value.
  56027. func (s *SpotFleetRequestConfigData) SetInstanceInterruptionBehavior(v string) *SpotFleetRequestConfigData {
  56028. s.InstanceInterruptionBehavior = &v
  56029. return s
  56030. }
  56031. // SetLaunchSpecifications sets the LaunchSpecifications field's value.
  56032. func (s *SpotFleetRequestConfigData) SetLaunchSpecifications(v []*SpotFleetLaunchSpecification) *SpotFleetRequestConfigData {
  56033. s.LaunchSpecifications = v
  56034. return s
  56035. }
  56036. // SetLaunchTemplateConfigs sets the LaunchTemplateConfigs field's value.
  56037. func (s *SpotFleetRequestConfigData) SetLaunchTemplateConfigs(v []*LaunchTemplateConfig) *SpotFleetRequestConfigData {
  56038. s.LaunchTemplateConfigs = v
  56039. return s
  56040. }
  56041. // SetLoadBalancersConfig sets the LoadBalancersConfig field's value.
  56042. func (s *SpotFleetRequestConfigData) SetLoadBalancersConfig(v *LoadBalancersConfig) *SpotFleetRequestConfigData {
  56043. s.LoadBalancersConfig = v
  56044. return s
  56045. }
  56046. // SetOnDemandFulfilledCapacity sets the OnDemandFulfilledCapacity field's value.
  56047. func (s *SpotFleetRequestConfigData) SetOnDemandFulfilledCapacity(v float64) *SpotFleetRequestConfigData {
  56048. s.OnDemandFulfilledCapacity = &v
  56049. return s
  56050. }
  56051. // SetOnDemandTargetCapacity sets the OnDemandTargetCapacity field's value.
  56052. func (s *SpotFleetRequestConfigData) SetOnDemandTargetCapacity(v int64) *SpotFleetRequestConfigData {
  56053. s.OnDemandTargetCapacity = &v
  56054. return s
  56055. }
  56056. // SetReplaceUnhealthyInstances sets the ReplaceUnhealthyInstances field's value.
  56057. func (s *SpotFleetRequestConfigData) SetReplaceUnhealthyInstances(v bool) *SpotFleetRequestConfigData {
  56058. s.ReplaceUnhealthyInstances = &v
  56059. return s
  56060. }
  56061. // SetSpotPrice sets the SpotPrice field's value.
  56062. func (s *SpotFleetRequestConfigData) SetSpotPrice(v string) *SpotFleetRequestConfigData {
  56063. s.SpotPrice = &v
  56064. return s
  56065. }
  56066. // SetTargetCapacity sets the TargetCapacity field's value.
  56067. func (s *SpotFleetRequestConfigData) SetTargetCapacity(v int64) *SpotFleetRequestConfigData {
  56068. s.TargetCapacity = &v
  56069. return s
  56070. }
  56071. // SetTerminateInstancesWithExpiration sets the TerminateInstancesWithExpiration field's value.
  56072. func (s *SpotFleetRequestConfigData) SetTerminateInstancesWithExpiration(v bool) *SpotFleetRequestConfigData {
  56073. s.TerminateInstancesWithExpiration = &v
  56074. return s
  56075. }
  56076. // SetType sets the Type field's value.
  56077. func (s *SpotFleetRequestConfigData) SetType(v string) *SpotFleetRequestConfigData {
  56078. s.Type = &v
  56079. return s
  56080. }
  56081. // SetValidFrom sets the ValidFrom field's value.
  56082. func (s *SpotFleetRequestConfigData) SetValidFrom(v time.Time) *SpotFleetRequestConfigData {
  56083. s.ValidFrom = &v
  56084. return s
  56085. }
  56086. // SetValidUntil sets the ValidUntil field's value.
  56087. func (s *SpotFleetRequestConfigData) SetValidUntil(v time.Time) *SpotFleetRequestConfigData {
  56088. s.ValidUntil = &v
  56089. return s
  56090. }
  56091. // The tags for a Spot Fleet resource.
  56092. type SpotFleetTagSpecification struct {
  56093. _ struct{} `type:"structure"`
  56094. // The type of resource. Currently, the only resource type that is supported
  56095. // is instance.
  56096. ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"`
  56097. // The tags.
  56098. Tags []*Tag `locationName:"tag" locationNameList:"item" type:"list"`
  56099. }
  56100. // String returns the string representation
  56101. func (s SpotFleetTagSpecification) String() string {
  56102. return awsutil.Prettify(s)
  56103. }
  56104. // GoString returns the string representation
  56105. func (s SpotFleetTagSpecification) GoString() string {
  56106. return s.String()
  56107. }
  56108. // SetResourceType sets the ResourceType field's value.
  56109. func (s *SpotFleetTagSpecification) SetResourceType(v string) *SpotFleetTagSpecification {
  56110. s.ResourceType = &v
  56111. return s
  56112. }
  56113. // SetTags sets the Tags field's value.
  56114. func (s *SpotFleetTagSpecification) SetTags(v []*Tag) *SpotFleetTagSpecification {
  56115. s.Tags = v
  56116. return s
  56117. }
  56118. // Describes a Spot Instance request.
  56119. type SpotInstanceRequest struct {
  56120. _ struct{} `type:"structure"`
  56121. // If you specified a duration and your Spot Instance request was fulfilled,
  56122. // this is the fixed hourly price in effect for the Spot Instance while it runs.
  56123. ActualBlockHourlyPrice *string `locationName:"actualBlockHourlyPrice" type:"string"`
  56124. // The Availability Zone group. If you specify the same Availability Zone group
  56125. // for all Spot Instance requests, all Spot Instances are launched in the same
  56126. // Availability Zone.
  56127. AvailabilityZoneGroup *string `locationName:"availabilityZoneGroup" type:"string"`
  56128. // The duration for the Spot Instance, in minutes.
  56129. BlockDurationMinutes *int64 `locationName:"blockDurationMinutes" type:"integer"`
  56130. // The date and time when the Spot Instance request was created, in UTC format
  56131. // (for example, YYYY-MM-DDTHH:MM:SSZ).
  56132. CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"iso8601"`
  56133. // The fault codes for the Spot Instance request, if any.
  56134. Fault *SpotInstanceStateFault `locationName:"fault" type:"structure"`
  56135. // The instance ID, if an instance has been launched to fulfill the Spot Instance
  56136. // request.
  56137. InstanceId *string `locationName:"instanceId" type:"string"`
  56138. // The behavior when a Spot Instance is interrupted.
  56139. InstanceInterruptionBehavior *string `locationName:"instanceInterruptionBehavior" type:"string" enum:"InstanceInterruptionBehavior"`
  56140. // The instance launch group. Launch groups are Spot Instances that launch together
  56141. // and terminate together.
  56142. LaunchGroup *string `locationName:"launchGroup" type:"string"`
  56143. // Additional information for launching instances.
  56144. LaunchSpecification *LaunchSpecification `locationName:"launchSpecification" type:"structure"`
  56145. // The Availability Zone in which the request is launched.
  56146. LaunchedAvailabilityZone *string `locationName:"launchedAvailabilityZone" type:"string"`
  56147. // The product description associated with the Spot Instance.
  56148. ProductDescription *string `locationName:"productDescription" type:"string" enum:"RIProductDescription"`
  56149. // The ID of the Spot Instance request.
  56150. SpotInstanceRequestId *string `locationName:"spotInstanceRequestId" type:"string"`
  56151. // The maximum price per hour that you are willing to pay for a Spot Instance.
  56152. SpotPrice *string `locationName:"spotPrice" type:"string"`
  56153. // The state of the Spot Instance request. Spot status information helps track
  56154. // your Spot Instance requests. For more information, see Spot Status (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-bid-status.html)
  56155. // in the Amazon EC2 User Guide for Linux Instances.
  56156. State *string `locationName:"state" type:"string" enum:"SpotInstanceState"`
  56157. // The status code and status message describing the Spot Instance request.
  56158. Status *SpotInstanceStatus `locationName:"status" type:"structure"`
  56159. // Any tags assigned to the resource.
  56160. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  56161. // The Spot Instance request type.
  56162. Type *string `locationName:"type" type:"string" enum:"SpotInstanceType"`
  56163. // The start date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  56164. // The request becomes active at this date and time.
  56165. ValidFrom *time.Time `locationName:"validFrom" type:"timestamp" timestampFormat:"iso8601"`
  56166. // The end date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  56167. // If this is a one-time request, it remains active until all instances launch,
  56168. // the request is canceled, or this date is reached. If the request is persistent,
  56169. // it remains active until it is canceled or this date is reached. The default
  56170. // end date is 7 days from the current date.
  56171. ValidUntil *time.Time `locationName:"validUntil" type:"timestamp" timestampFormat:"iso8601"`
  56172. }
  56173. // String returns the string representation
  56174. func (s SpotInstanceRequest) String() string {
  56175. return awsutil.Prettify(s)
  56176. }
  56177. // GoString returns the string representation
  56178. func (s SpotInstanceRequest) GoString() string {
  56179. return s.String()
  56180. }
  56181. // SetActualBlockHourlyPrice sets the ActualBlockHourlyPrice field's value.
  56182. func (s *SpotInstanceRequest) SetActualBlockHourlyPrice(v string) *SpotInstanceRequest {
  56183. s.ActualBlockHourlyPrice = &v
  56184. return s
  56185. }
  56186. // SetAvailabilityZoneGroup sets the AvailabilityZoneGroup field's value.
  56187. func (s *SpotInstanceRequest) SetAvailabilityZoneGroup(v string) *SpotInstanceRequest {
  56188. s.AvailabilityZoneGroup = &v
  56189. return s
  56190. }
  56191. // SetBlockDurationMinutes sets the BlockDurationMinutes field's value.
  56192. func (s *SpotInstanceRequest) SetBlockDurationMinutes(v int64) *SpotInstanceRequest {
  56193. s.BlockDurationMinutes = &v
  56194. return s
  56195. }
  56196. // SetCreateTime sets the CreateTime field's value.
  56197. func (s *SpotInstanceRequest) SetCreateTime(v time.Time) *SpotInstanceRequest {
  56198. s.CreateTime = &v
  56199. return s
  56200. }
  56201. // SetFault sets the Fault field's value.
  56202. func (s *SpotInstanceRequest) SetFault(v *SpotInstanceStateFault) *SpotInstanceRequest {
  56203. s.Fault = v
  56204. return s
  56205. }
  56206. // SetInstanceId sets the InstanceId field's value.
  56207. func (s *SpotInstanceRequest) SetInstanceId(v string) *SpotInstanceRequest {
  56208. s.InstanceId = &v
  56209. return s
  56210. }
  56211. // SetInstanceInterruptionBehavior sets the InstanceInterruptionBehavior field's value.
  56212. func (s *SpotInstanceRequest) SetInstanceInterruptionBehavior(v string) *SpotInstanceRequest {
  56213. s.InstanceInterruptionBehavior = &v
  56214. return s
  56215. }
  56216. // SetLaunchGroup sets the LaunchGroup field's value.
  56217. func (s *SpotInstanceRequest) SetLaunchGroup(v string) *SpotInstanceRequest {
  56218. s.LaunchGroup = &v
  56219. return s
  56220. }
  56221. // SetLaunchSpecification sets the LaunchSpecification field's value.
  56222. func (s *SpotInstanceRequest) SetLaunchSpecification(v *LaunchSpecification) *SpotInstanceRequest {
  56223. s.LaunchSpecification = v
  56224. return s
  56225. }
  56226. // SetLaunchedAvailabilityZone sets the LaunchedAvailabilityZone field's value.
  56227. func (s *SpotInstanceRequest) SetLaunchedAvailabilityZone(v string) *SpotInstanceRequest {
  56228. s.LaunchedAvailabilityZone = &v
  56229. return s
  56230. }
  56231. // SetProductDescription sets the ProductDescription field's value.
  56232. func (s *SpotInstanceRequest) SetProductDescription(v string) *SpotInstanceRequest {
  56233. s.ProductDescription = &v
  56234. return s
  56235. }
  56236. // SetSpotInstanceRequestId sets the SpotInstanceRequestId field's value.
  56237. func (s *SpotInstanceRequest) SetSpotInstanceRequestId(v string) *SpotInstanceRequest {
  56238. s.SpotInstanceRequestId = &v
  56239. return s
  56240. }
  56241. // SetSpotPrice sets the SpotPrice field's value.
  56242. func (s *SpotInstanceRequest) SetSpotPrice(v string) *SpotInstanceRequest {
  56243. s.SpotPrice = &v
  56244. return s
  56245. }
  56246. // SetState sets the State field's value.
  56247. func (s *SpotInstanceRequest) SetState(v string) *SpotInstanceRequest {
  56248. s.State = &v
  56249. return s
  56250. }
  56251. // SetStatus sets the Status field's value.
  56252. func (s *SpotInstanceRequest) SetStatus(v *SpotInstanceStatus) *SpotInstanceRequest {
  56253. s.Status = v
  56254. return s
  56255. }
  56256. // SetTags sets the Tags field's value.
  56257. func (s *SpotInstanceRequest) SetTags(v []*Tag) *SpotInstanceRequest {
  56258. s.Tags = v
  56259. return s
  56260. }
  56261. // SetType sets the Type field's value.
  56262. func (s *SpotInstanceRequest) SetType(v string) *SpotInstanceRequest {
  56263. s.Type = &v
  56264. return s
  56265. }
  56266. // SetValidFrom sets the ValidFrom field's value.
  56267. func (s *SpotInstanceRequest) SetValidFrom(v time.Time) *SpotInstanceRequest {
  56268. s.ValidFrom = &v
  56269. return s
  56270. }
  56271. // SetValidUntil sets the ValidUntil field's value.
  56272. func (s *SpotInstanceRequest) SetValidUntil(v time.Time) *SpotInstanceRequest {
  56273. s.ValidUntil = &v
  56274. return s
  56275. }
  56276. // Describes a Spot Instance state change.
  56277. type SpotInstanceStateFault struct {
  56278. _ struct{} `type:"structure"`
  56279. // The reason code for the Spot Instance state change.
  56280. Code *string `locationName:"code" type:"string"`
  56281. // The message for the Spot Instance state change.
  56282. Message *string `locationName:"message" type:"string"`
  56283. }
  56284. // String returns the string representation
  56285. func (s SpotInstanceStateFault) String() string {
  56286. return awsutil.Prettify(s)
  56287. }
  56288. // GoString returns the string representation
  56289. func (s SpotInstanceStateFault) GoString() string {
  56290. return s.String()
  56291. }
  56292. // SetCode sets the Code field's value.
  56293. func (s *SpotInstanceStateFault) SetCode(v string) *SpotInstanceStateFault {
  56294. s.Code = &v
  56295. return s
  56296. }
  56297. // SetMessage sets the Message field's value.
  56298. func (s *SpotInstanceStateFault) SetMessage(v string) *SpotInstanceStateFault {
  56299. s.Message = &v
  56300. return s
  56301. }
  56302. // Describes the status of a Spot Instance request.
  56303. type SpotInstanceStatus struct {
  56304. _ struct{} `type:"structure"`
  56305. // 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)
  56306. // in the Amazon EC2 User Guide for Linux Instances.
  56307. Code *string `locationName:"code" type:"string"`
  56308. // The description for the status code.
  56309. Message *string `locationName:"message" type:"string"`
  56310. // The date and time of the most recent status update, in UTC format (for example,
  56311. // YYYY-MM-DDTHH:MM:SSZ).
  56312. UpdateTime *time.Time `locationName:"updateTime" type:"timestamp" timestampFormat:"iso8601"`
  56313. }
  56314. // String returns the string representation
  56315. func (s SpotInstanceStatus) String() string {
  56316. return awsutil.Prettify(s)
  56317. }
  56318. // GoString returns the string representation
  56319. func (s SpotInstanceStatus) GoString() string {
  56320. return s.String()
  56321. }
  56322. // SetCode sets the Code field's value.
  56323. func (s *SpotInstanceStatus) SetCode(v string) *SpotInstanceStatus {
  56324. s.Code = &v
  56325. return s
  56326. }
  56327. // SetMessage sets the Message field's value.
  56328. func (s *SpotInstanceStatus) SetMessage(v string) *SpotInstanceStatus {
  56329. s.Message = &v
  56330. return s
  56331. }
  56332. // SetUpdateTime sets the UpdateTime field's value.
  56333. func (s *SpotInstanceStatus) SetUpdateTime(v time.Time) *SpotInstanceStatus {
  56334. s.UpdateTime = &v
  56335. return s
  56336. }
  56337. // The options for Spot Instances.
  56338. type SpotMarketOptions struct {
  56339. _ struct{} `type:"structure"`
  56340. // The required duration for the Spot Instances (also known as Spot blocks),
  56341. // in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300,
  56342. // or 360).
  56343. BlockDurationMinutes *int64 `type:"integer"`
  56344. // The behavior when a Spot Instance is interrupted. The default is terminate.
  56345. InstanceInterruptionBehavior *string `type:"string" enum:"InstanceInterruptionBehavior"`
  56346. // The maximum hourly price you're willing to pay for the Spot Instances. The
  56347. // default is the On-Demand price.
  56348. MaxPrice *string `type:"string"`
  56349. // The Spot Instance request type.
  56350. SpotInstanceType *string `type:"string" enum:"SpotInstanceType"`
  56351. // The end date of the request. For a one-time request, the request remains
  56352. // active until all instances launch, the request is canceled, or this date
  56353. // is reached. If the request is persistent, it remains active until it is canceled
  56354. // or this date and time is reached. The default end date is 7 days from the
  56355. // current date.
  56356. ValidUntil *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  56357. }
  56358. // String returns the string representation
  56359. func (s SpotMarketOptions) String() string {
  56360. return awsutil.Prettify(s)
  56361. }
  56362. // GoString returns the string representation
  56363. func (s SpotMarketOptions) GoString() string {
  56364. return s.String()
  56365. }
  56366. // SetBlockDurationMinutes sets the BlockDurationMinutes field's value.
  56367. func (s *SpotMarketOptions) SetBlockDurationMinutes(v int64) *SpotMarketOptions {
  56368. s.BlockDurationMinutes = &v
  56369. return s
  56370. }
  56371. // SetInstanceInterruptionBehavior sets the InstanceInterruptionBehavior field's value.
  56372. func (s *SpotMarketOptions) SetInstanceInterruptionBehavior(v string) *SpotMarketOptions {
  56373. s.InstanceInterruptionBehavior = &v
  56374. return s
  56375. }
  56376. // SetMaxPrice sets the MaxPrice field's value.
  56377. func (s *SpotMarketOptions) SetMaxPrice(v string) *SpotMarketOptions {
  56378. s.MaxPrice = &v
  56379. return s
  56380. }
  56381. // SetSpotInstanceType sets the SpotInstanceType field's value.
  56382. func (s *SpotMarketOptions) SetSpotInstanceType(v string) *SpotMarketOptions {
  56383. s.SpotInstanceType = &v
  56384. return s
  56385. }
  56386. // SetValidUntil sets the ValidUntil field's value.
  56387. func (s *SpotMarketOptions) SetValidUntil(v time.Time) *SpotMarketOptions {
  56388. s.ValidUntil = &v
  56389. return s
  56390. }
  56391. // Describes the configuration of Spot Instances in an EC2 Fleet.
  56392. type SpotOptions struct {
  56393. _ struct{} `type:"structure"`
  56394. // Indicates how to allocate the target capacity across the Spot pools specified
  56395. // by the Spot Fleet request. The default is lowestPrice.
  56396. AllocationStrategy *string `locationName:"allocationStrategy" type:"string" enum:"SpotAllocationStrategy"`
  56397. // The behavior when a Spot Instance is interrupted. The default is terminate.
  56398. InstanceInterruptionBehavior *string `locationName:"instanceInterruptionBehavior" type:"string" enum:"SpotInstanceInterruptionBehavior"`
  56399. }
  56400. // String returns the string representation
  56401. func (s SpotOptions) String() string {
  56402. return awsutil.Prettify(s)
  56403. }
  56404. // GoString returns the string representation
  56405. func (s SpotOptions) GoString() string {
  56406. return s.String()
  56407. }
  56408. // SetAllocationStrategy sets the AllocationStrategy field's value.
  56409. func (s *SpotOptions) SetAllocationStrategy(v string) *SpotOptions {
  56410. s.AllocationStrategy = &v
  56411. return s
  56412. }
  56413. // SetInstanceInterruptionBehavior sets the InstanceInterruptionBehavior field's value.
  56414. func (s *SpotOptions) SetInstanceInterruptionBehavior(v string) *SpotOptions {
  56415. s.InstanceInterruptionBehavior = &v
  56416. return s
  56417. }
  56418. // Describes the configuration of Spot Instances in an EC2 Fleet request.
  56419. type SpotOptionsRequest struct {
  56420. _ struct{} `type:"structure"`
  56421. // Indicates how to allocate the target capacity across the Spot pools specified
  56422. // by the Spot Fleet request. The default is lowestPrice.
  56423. AllocationStrategy *string `type:"string" enum:"SpotAllocationStrategy"`
  56424. // The behavior when a Spot Instance is interrupted. The default is terminate.
  56425. InstanceInterruptionBehavior *string `type:"string" enum:"SpotInstanceInterruptionBehavior"`
  56426. }
  56427. // String returns the string representation
  56428. func (s SpotOptionsRequest) String() string {
  56429. return awsutil.Prettify(s)
  56430. }
  56431. // GoString returns the string representation
  56432. func (s SpotOptionsRequest) GoString() string {
  56433. return s.String()
  56434. }
  56435. // SetAllocationStrategy sets the AllocationStrategy field's value.
  56436. func (s *SpotOptionsRequest) SetAllocationStrategy(v string) *SpotOptionsRequest {
  56437. s.AllocationStrategy = &v
  56438. return s
  56439. }
  56440. // SetInstanceInterruptionBehavior sets the InstanceInterruptionBehavior field's value.
  56441. func (s *SpotOptionsRequest) SetInstanceInterruptionBehavior(v string) *SpotOptionsRequest {
  56442. s.InstanceInterruptionBehavior = &v
  56443. return s
  56444. }
  56445. // Describes Spot Instance placement.
  56446. type SpotPlacement struct {
  56447. _ struct{} `type:"structure"`
  56448. // The Availability Zone.
  56449. //
  56450. // [Spot Fleet only] To specify multiple Availability Zones, separate them using
  56451. // commas; for example, "us-west-2a, us-west-2b".
  56452. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  56453. // The name of the placement group.
  56454. GroupName *string `locationName:"groupName" type:"string"`
  56455. // The tenancy of the instance (if the instance is running in a VPC). An instance
  56456. // with a tenancy of dedicated runs on single-tenant hardware. The host tenancy
  56457. // is not supported for Spot Instances.
  56458. Tenancy *string `locationName:"tenancy" type:"string" enum:"Tenancy"`
  56459. }
  56460. // String returns the string representation
  56461. func (s SpotPlacement) String() string {
  56462. return awsutil.Prettify(s)
  56463. }
  56464. // GoString returns the string representation
  56465. func (s SpotPlacement) GoString() string {
  56466. return s.String()
  56467. }
  56468. // SetAvailabilityZone sets the AvailabilityZone field's value.
  56469. func (s *SpotPlacement) SetAvailabilityZone(v string) *SpotPlacement {
  56470. s.AvailabilityZone = &v
  56471. return s
  56472. }
  56473. // SetGroupName sets the GroupName field's value.
  56474. func (s *SpotPlacement) SetGroupName(v string) *SpotPlacement {
  56475. s.GroupName = &v
  56476. return s
  56477. }
  56478. // SetTenancy sets the Tenancy field's value.
  56479. func (s *SpotPlacement) SetTenancy(v string) *SpotPlacement {
  56480. s.Tenancy = &v
  56481. return s
  56482. }
  56483. // Describes the maximum price per hour that you are willing to pay for a Spot
  56484. // Instance.
  56485. type SpotPrice struct {
  56486. _ struct{} `type:"structure"`
  56487. // The Availability Zone.
  56488. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  56489. // The instance type.
  56490. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  56491. // A general description of the AMI.
  56492. ProductDescription *string `locationName:"productDescription" type:"string" enum:"RIProductDescription"`
  56493. // The maximum price per hour that you are willing to pay for a Spot Instance.
  56494. SpotPrice *string `locationName:"spotPrice" type:"string"`
  56495. // The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  56496. Timestamp *time.Time `locationName:"timestamp" type:"timestamp" timestampFormat:"iso8601"`
  56497. }
  56498. // String returns the string representation
  56499. func (s SpotPrice) String() string {
  56500. return awsutil.Prettify(s)
  56501. }
  56502. // GoString returns the string representation
  56503. func (s SpotPrice) GoString() string {
  56504. return s.String()
  56505. }
  56506. // SetAvailabilityZone sets the AvailabilityZone field's value.
  56507. func (s *SpotPrice) SetAvailabilityZone(v string) *SpotPrice {
  56508. s.AvailabilityZone = &v
  56509. return s
  56510. }
  56511. // SetInstanceType sets the InstanceType field's value.
  56512. func (s *SpotPrice) SetInstanceType(v string) *SpotPrice {
  56513. s.InstanceType = &v
  56514. return s
  56515. }
  56516. // SetProductDescription sets the ProductDescription field's value.
  56517. func (s *SpotPrice) SetProductDescription(v string) *SpotPrice {
  56518. s.ProductDescription = &v
  56519. return s
  56520. }
  56521. // SetSpotPrice sets the SpotPrice field's value.
  56522. func (s *SpotPrice) SetSpotPrice(v string) *SpotPrice {
  56523. s.SpotPrice = &v
  56524. return s
  56525. }
  56526. // SetTimestamp sets the Timestamp field's value.
  56527. func (s *SpotPrice) SetTimestamp(v time.Time) *SpotPrice {
  56528. s.Timestamp = &v
  56529. return s
  56530. }
  56531. // Describes a stale rule in a security group.
  56532. type StaleIpPermission struct {
  56533. _ struct{} `type:"structure"`
  56534. // The start of the port range for the TCP and UDP protocols, or an ICMP type
  56535. // number. A value of -1 indicates all ICMP types.
  56536. FromPort *int64 `locationName:"fromPort" type:"integer"`
  56537. // The IP protocol name (for tcp, udp, and icmp) or number (see Protocol Numbers)
  56538. // (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml).
  56539. IpProtocol *string `locationName:"ipProtocol" type:"string"`
  56540. // One or more IP ranges. Not applicable for stale security group rules.
  56541. IpRanges []*string `locationName:"ipRanges" locationNameList:"item" type:"list"`
  56542. // One or more prefix list IDs for an AWS service. Not applicable for stale
  56543. // security group rules.
  56544. PrefixListIds []*string `locationName:"prefixListIds" locationNameList:"item" type:"list"`
  56545. // The end of the port range for the TCP and UDP protocols, or an ICMP type
  56546. // number. A value of -1 indicates all ICMP types.
  56547. ToPort *int64 `locationName:"toPort" type:"integer"`
  56548. // One or more security group pairs. Returns the ID of the referenced security
  56549. // group and VPC, and the ID and status of the VPC peering connection.
  56550. UserIdGroupPairs []*UserIdGroupPair `locationName:"groups" locationNameList:"item" type:"list"`
  56551. }
  56552. // String returns the string representation
  56553. func (s StaleIpPermission) String() string {
  56554. return awsutil.Prettify(s)
  56555. }
  56556. // GoString returns the string representation
  56557. func (s StaleIpPermission) GoString() string {
  56558. return s.String()
  56559. }
  56560. // SetFromPort sets the FromPort field's value.
  56561. func (s *StaleIpPermission) SetFromPort(v int64) *StaleIpPermission {
  56562. s.FromPort = &v
  56563. return s
  56564. }
  56565. // SetIpProtocol sets the IpProtocol field's value.
  56566. func (s *StaleIpPermission) SetIpProtocol(v string) *StaleIpPermission {
  56567. s.IpProtocol = &v
  56568. return s
  56569. }
  56570. // SetIpRanges sets the IpRanges field's value.
  56571. func (s *StaleIpPermission) SetIpRanges(v []*string) *StaleIpPermission {
  56572. s.IpRanges = v
  56573. return s
  56574. }
  56575. // SetPrefixListIds sets the PrefixListIds field's value.
  56576. func (s *StaleIpPermission) SetPrefixListIds(v []*string) *StaleIpPermission {
  56577. s.PrefixListIds = v
  56578. return s
  56579. }
  56580. // SetToPort sets the ToPort field's value.
  56581. func (s *StaleIpPermission) SetToPort(v int64) *StaleIpPermission {
  56582. s.ToPort = &v
  56583. return s
  56584. }
  56585. // SetUserIdGroupPairs sets the UserIdGroupPairs field's value.
  56586. func (s *StaleIpPermission) SetUserIdGroupPairs(v []*UserIdGroupPair) *StaleIpPermission {
  56587. s.UserIdGroupPairs = v
  56588. return s
  56589. }
  56590. // Describes a stale security group (a security group that contains stale rules).
  56591. type StaleSecurityGroup struct {
  56592. _ struct{} `type:"structure"`
  56593. // The description of the security group.
  56594. Description *string `locationName:"description" type:"string"`
  56595. // The ID of the security group.
  56596. //
  56597. // GroupId is a required field
  56598. GroupId *string `locationName:"groupId" type:"string" required:"true"`
  56599. // The name of the security group.
  56600. GroupName *string `locationName:"groupName" type:"string"`
  56601. // Information about the stale inbound rules in the security group.
  56602. StaleIpPermissions []*StaleIpPermission `locationName:"staleIpPermissions" locationNameList:"item" type:"list"`
  56603. // Information about the stale outbound rules in the security group.
  56604. StaleIpPermissionsEgress []*StaleIpPermission `locationName:"staleIpPermissionsEgress" locationNameList:"item" type:"list"`
  56605. // The ID of the VPC for the security group.
  56606. VpcId *string `locationName:"vpcId" type:"string"`
  56607. }
  56608. // String returns the string representation
  56609. func (s StaleSecurityGroup) String() string {
  56610. return awsutil.Prettify(s)
  56611. }
  56612. // GoString returns the string representation
  56613. func (s StaleSecurityGroup) GoString() string {
  56614. return s.String()
  56615. }
  56616. // SetDescription sets the Description field's value.
  56617. func (s *StaleSecurityGroup) SetDescription(v string) *StaleSecurityGroup {
  56618. s.Description = &v
  56619. return s
  56620. }
  56621. // SetGroupId sets the GroupId field's value.
  56622. func (s *StaleSecurityGroup) SetGroupId(v string) *StaleSecurityGroup {
  56623. s.GroupId = &v
  56624. return s
  56625. }
  56626. // SetGroupName sets the GroupName field's value.
  56627. func (s *StaleSecurityGroup) SetGroupName(v string) *StaleSecurityGroup {
  56628. s.GroupName = &v
  56629. return s
  56630. }
  56631. // SetStaleIpPermissions sets the StaleIpPermissions field's value.
  56632. func (s *StaleSecurityGroup) SetStaleIpPermissions(v []*StaleIpPermission) *StaleSecurityGroup {
  56633. s.StaleIpPermissions = v
  56634. return s
  56635. }
  56636. // SetStaleIpPermissionsEgress sets the StaleIpPermissionsEgress field's value.
  56637. func (s *StaleSecurityGroup) SetStaleIpPermissionsEgress(v []*StaleIpPermission) *StaleSecurityGroup {
  56638. s.StaleIpPermissionsEgress = v
  56639. return s
  56640. }
  56641. // SetVpcId sets the VpcId field's value.
  56642. func (s *StaleSecurityGroup) SetVpcId(v string) *StaleSecurityGroup {
  56643. s.VpcId = &v
  56644. return s
  56645. }
  56646. // Contains the parameters for StartInstances.
  56647. type StartInstancesInput struct {
  56648. _ struct{} `type:"structure"`
  56649. // Reserved.
  56650. AdditionalInfo *string `locationName:"additionalInfo" type:"string"`
  56651. // Checks whether you have the required permissions for the action, without
  56652. // actually making the request, and provides an error response. If you have
  56653. // the required permissions, the error response is DryRunOperation. Otherwise,
  56654. // it is UnauthorizedOperation.
  56655. DryRun *bool `locationName:"dryRun" type:"boolean"`
  56656. // One or more instance IDs.
  56657. //
  56658. // InstanceIds is a required field
  56659. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"`
  56660. }
  56661. // String returns the string representation
  56662. func (s StartInstancesInput) String() string {
  56663. return awsutil.Prettify(s)
  56664. }
  56665. // GoString returns the string representation
  56666. func (s StartInstancesInput) GoString() string {
  56667. return s.String()
  56668. }
  56669. // Validate inspects the fields of the type to determine if they are valid.
  56670. func (s *StartInstancesInput) Validate() error {
  56671. invalidParams := request.ErrInvalidParams{Context: "StartInstancesInput"}
  56672. if s.InstanceIds == nil {
  56673. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  56674. }
  56675. if invalidParams.Len() > 0 {
  56676. return invalidParams
  56677. }
  56678. return nil
  56679. }
  56680. // SetAdditionalInfo sets the AdditionalInfo field's value.
  56681. func (s *StartInstancesInput) SetAdditionalInfo(v string) *StartInstancesInput {
  56682. s.AdditionalInfo = &v
  56683. return s
  56684. }
  56685. // SetDryRun sets the DryRun field's value.
  56686. func (s *StartInstancesInput) SetDryRun(v bool) *StartInstancesInput {
  56687. s.DryRun = &v
  56688. return s
  56689. }
  56690. // SetInstanceIds sets the InstanceIds field's value.
  56691. func (s *StartInstancesInput) SetInstanceIds(v []*string) *StartInstancesInput {
  56692. s.InstanceIds = v
  56693. return s
  56694. }
  56695. // Contains the output of StartInstances.
  56696. type StartInstancesOutput struct {
  56697. _ struct{} `type:"structure"`
  56698. // Information about one or more started instances.
  56699. StartingInstances []*InstanceStateChange `locationName:"instancesSet" locationNameList:"item" type:"list"`
  56700. }
  56701. // String returns the string representation
  56702. func (s StartInstancesOutput) String() string {
  56703. return awsutil.Prettify(s)
  56704. }
  56705. // GoString returns the string representation
  56706. func (s StartInstancesOutput) GoString() string {
  56707. return s.String()
  56708. }
  56709. // SetStartingInstances sets the StartingInstances field's value.
  56710. func (s *StartInstancesOutput) SetStartingInstances(v []*InstanceStateChange) *StartInstancesOutput {
  56711. s.StartingInstances = v
  56712. return s
  56713. }
  56714. // Describes a state change.
  56715. type StateReason struct {
  56716. _ struct{} `type:"structure"`
  56717. // The reason code for the state change.
  56718. Code *string `locationName:"code" type:"string"`
  56719. // The message for the state change.
  56720. //
  56721. // * Server.InsufficientInstanceCapacity: There was insufficient capacity
  56722. // available to satisfy the launch request.
  56723. //
  56724. // * Server.InternalError: An internal error caused the instance to terminate
  56725. // during launch.
  56726. //
  56727. // * Server.ScheduledStop: The instance was stopped due to a scheduled retirement.
  56728. //
  56729. // * Server.SpotInstanceShutdown: The instance was stopped because the number
  56730. // of Spot requests with a maximum price equal to or higher than the Spot
  56731. // price exceeded available capacity or because of an increase in the Spot
  56732. // price.
  56733. //
  56734. // * Server.SpotInstanceTermination: The instance was terminated because
  56735. // the number of Spot requests with a maximum price equal to or higher than
  56736. // the Spot price exceeded available capacity or because of an increase in
  56737. // the Spot price.
  56738. //
  56739. // * Client.InstanceInitiatedShutdown: The instance was shut down using the
  56740. // shutdown -h command from the instance.
  56741. //
  56742. // * Client.InstanceTerminated: The instance was terminated or rebooted during
  56743. // AMI creation.
  56744. //
  56745. // * Client.InternalError: A client error caused the instance to terminate
  56746. // during launch.
  56747. //
  56748. // * Client.InvalidSnapshot.NotFound: The specified snapshot was not found.
  56749. //
  56750. // * Client.UserInitiatedShutdown: The instance was shut down using the Amazon
  56751. // EC2 API.
  56752. //
  56753. // * Client.VolumeLimitExceeded: The limit on the number of EBS volumes or
  56754. // total storage was exceeded. Decrease usage or request an increase in your
  56755. // account limits.
  56756. Message *string `locationName:"message" type:"string"`
  56757. }
  56758. // String returns the string representation
  56759. func (s StateReason) String() string {
  56760. return awsutil.Prettify(s)
  56761. }
  56762. // GoString returns the string representation
  56763. func (s StateReason) GoString() string {
  56764. return s.String()
  56765. }
  56766. // SetCode sets the Code field's value.
  56767. func (s *StateReason) SetCode(v string) *StateReason {
  56768. s.Code = &v
  56769. return s
  56770. }
  56771. // SetMessage sets the Message field's value.
  56772. func (s *StateReason) SetMessage(v string) *StateReason {
  56773. s.Message = &v
  56774. return s
  56775. }
  56776. // Contains the parameters for StopInstances.
  56777. type StopInstancesInput struct {
  56778. _ struct{} `type:"structure"`
  56779. // Checks whether you have the required permissions for the action, without
  56780. // actually making the request, and provides an error response. If you have
  56781. // the required permissions, the error response is DryRunOperation. Otherwise,
  56782. // it is UnauthorizedOperation.
  56783. DryRun *bool `locationName:"dryRun" type:"boolean"`
  56784. // Forces the instances to stop. The instances do not have an opportunity to
  56785. // flush file system caches or file system metadata. If you use this option,
  56786. // you must perform file system check and repair procedures. This option is
  56787. // not recommended for Windows instances.
  56788. //
  56789. // Default: false
  56790. Force *bool `locationName:"force" type:"boolean"`
  56791. // One or more instance IDs.
  56792. //
  56793. // InstanceIds is a required field
  56794. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"`
  56795. }
  56796. // String returns the string representation
  56797. func (s StopInstancesInput) String() string {
  56798. return awsutil.Prettify(s)
  56799. }
  56800. // GoString returns the string representation
  56801. func (s StopInstancesInput) GoString() string {
  56802. return s.String()
  56803. }
  56804. // Validate inspects the fields of the type to determine if they are valid.
  56805. func (s *StopInstancesInput) Validate() error {
  56806. invalidParams := request.ErrInvalidParams{Context: "StopInstancesInput"}
  56807. if s.InstanceIds == nil {
  56808. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  56809. }
  56810. if invalidParams.Len() > 0 {
  56811. return invalidParams
  56812. }
  56813. return nil
  56814. }
  56815. // SetDryRun sets the DryRun field's value.
  56816. func (s *StopInstancesInput) SetDryRun(v bool) *StopInstancesInput {
  56817. s.DryRun = &v
  56818. return s
  56819. }
  56820. // SetForce sets the Force field's value.
  56821. func (s *StopInstancesInput) SetForce(v bool) *StopInstancesInput {
  56822. s.Force = &v
  56823. return s
  56824. }
  56825. // SetInstanceIds sets the InstanceIds field's value.
  56826. func (s *StopInstancesInput) SetInstanceIds(v []*string) *StopInstancesInput {
  56827. s.InstanceIds = v
  56828. return s
  56829. }
  56830. // Contains the output of StopInstances.
  56831. type StopInstancesOutput struct {
  56832. _ struct{} `type:"structure"`
  56833. // Information about one or more stopped instances.
  56834. StoppingInstances []*InstanceStateChange `locationName:"instancesSet" locationNameList:"item" type:"list"`
  56835. }
  56836. // String returns the string representation
  56837. func (s StopInstancesOutput) String() string {
  56838. return awsutil.Prettify(s)
  56839. }
  56840. // GoString returns the string representation
  56841. func (s StopInstancesOutput) GoString() string {
  56842. return s.String()
  56843. }
  56844. // SetStoppingInstances sets the StoppingInstances field's value.
  56845. func (s *StopInstancesOutput) SetStoppingInstances(v []*InstanceStateChange) *StopInstancesOutput {
  56846. s.StoppingInstances = v
  56847. return s
  56848. }
  56849. // Describes the storage location for an instance store-backed AMI.
  56850. type Storage struct {
  56851. _ struct{} `type:"structure"`
  56852. // An Amazon S3 storage location.
  56853. S3 *S3Storage `type:"structure"`
  56854. }
  56855. // String returns the string representation
  56856. func (s Storage) String() string {
  56857. return awsutil.Prettify(s)
  56858. }
  56859. // GoString returns the string representation
  56860. func (s Storage) GoString() string {
  56861. return s.String()
  56862. }
  56863. // SetS3 sets the S3 field's value.
  56864. func (s *Storage) SetS3(v *S3Storage) *Storage {
  56865. s.S3 = v
  56866. return s
  56867. }
  56868. // Describes a storage location in Amazon S3.
  56869. type StorageLocation struct {
  56870. _ struct{} `type:"structure"`
  56871. // The name of the S3 bucket.
  56872. Bucket *string `type:"string"`
  56873. // The key.
  56874. Key *string `type:"string"`
  56875. }
  56876. // String returns the string representation
  56877. func (s StorageLocation) String() string {
  56878. return awsutil.Prettify(s)
  56879. }
  56880. // GoString returns the string representation
  56881. func (s StorageLocation) GoString() string {
  56882. return s.String()
  56883. }
  56884. // SetBucket sets the Bucket field's value.
  56885. func (s *StorageLocation) SetBucket(v string) *StorageLocation {
  56886. s.Bucket = &v
  56887. return s
  56888. }
  56889. // SetKey sets the Key field's value.
  56890. func (s *StorageLocation) SetKey(v string) *StorageLocation {
  56891. s.Key = &v
  56892. return s
  56893. }
  56894. // Describes a subnet.
  56895. type Subnet struct {
  56896. _ struct{} `type:"structure"`
  56897. // Indicates whether a network interface created in this subnet (including a
  56898. // network interface created by RunInstances) receives an IPv6 address.
  56899. AssignIpv6AddressOnCreation *bool `locationName:"assignIpv6AddressOnCreation" type:"boolean"`
  56900. // The Availability Zone of the subnet.
  56901. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  56902. // The number of unused private IPv4 addresses in the subnet. Note that the
  56903. // IPv4 addresses for any stopped instances are considered unavailable.
  56904. AvailableIpAddressCount *int64 `locationName:"availableIpAddressCount" type:"integer"`
  56905. // The IPv4 CIDR block assigned to the subnet.
  56906. CidrBlock *string `locationName:"cidrBlock" type:"string"`
  56907. // Indicates whether this is the default subnet for the Availability Zone.
  56908. DefaultForAz *bool `locationName:"defaultForAz" type:"boolean"`
  56909. // Information about the IPv6 CIDR blocks associated with the subnet.
  56910. Ipv6CidrBlockAssociationSet []*SubnetIpv6CidrBlockAssociation `locationName:"ipv6CidrBlockAssociationSet" locationNameList:"item" type:"list"`
  56911. // Indicates whether instances launched in this subnet receive a public IPv4
  56912. // address.
  56913. MapPublicIpOnLaunch *bool `locationName:"mapPublicIpOnLaunch" type:"boolean"`
  56914. // The current state of the subnet.
  56915. State *string `locationName:"state" type:"string" enum:"SubnetState"`
  56916. // The ID of the subnet.
  56917. SubnetId *string `locationName:"subnetId" type:"string"`
  56918. // Any tags assigned to the subnet.
  56919. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  56920. // The ID of the VPC the subnet is in.
  56921. VpcId *string `locationName:"vpcId" type:"string"`
  56922. }
  56923. // String returns the string representation
  56924. func (s Subnet) String() string {
  56925. return awsutil.Prettify(s)
  56926. }
  56927. // GoString returns the string representation
  56928. func (s Subnet) GoString() string {
  56929. return s.String()
  56930. }
  56931. // SetAssignIpv6AddressOnCreation sets the AssignIpv6AddressOnCreation field's value.
  56932. func (s *Subnet) SetAssignIpv6AddressOnCreation(v bool) *Subnet {
  56933. s.AssignIpv6AddressOnCreation = &v
  56934. return s
  56935. }
  56936. // SetAvailabilityZone sets the AvailabilityZone field's value.
  56937. func (s *Subnet) SetAvailabilityZone(v string) *Subnet {
  56938. s.AvailabilityZone = &v
  56939. return s
  56940. }
  56941. // SetAvailableIpAddressCount sets the AvailableIpAddressCount field's value.
  56942. func (s *Subnet) SetAvailableIpAddressCount(v int64) *Subnet {
  56943. s.AvailableIpAddressCount = &v
  56944. return s
  56945. }
  56946. // SetCidrBlock sets the CidrBlock field's value.
  56947. func (s *Subnet) SetCidrBlock(v string) *Subnet {
  56948. s.CidrBlock = &v
  56949. return s
  56950. }
  56951. // SetDefaultForAz sets the DefaultForAz field's value.
  56952. func (s *Subnet) SetDefaultForAz(v bool) *Subnet {
  56953. s.DefaultForAz = &v
  56954. return s
  56955. }
  56956. // SetIpv6CidrBlockAssociationSet sets the Ipv6CidrBlockAssociationSet field's value.
  56957. func (s *Subnet) SetIpv6CidrBlockAssociationSet(v []*SubnetIpv6CidrBlockAssociation) *Subnet {
  56958. s.Ipv6CidrBlockAssociationSet = v
  56959. return s
  56960. }
  56961. // SetMapPublicIpOnLaunch sets the MapPublicIpOnLaunch field's value.
  56962. func (s *Subnet) SetMapPublicIpOnLaunch(v bool) *Subnet {
  56963. s.MapPublicIpOnLaunch = &v
  56964. return s
  56965. }
  56966. // SetState sets the State field's value.
  56967. func (s *Subnet) SetState(v string) *Subnet {
  56968. s.State = &v
  56969. return s
  56970. }
  56971. // SetSubnetId sets the SubnetId field's value.
  56972. func (s *Subnet) SetSubnetId(v string) *Subnet {
  56973. s.SubnetId = &v
  56974. return s
  56975. }
  56976. // SetTags sets the Tags field's value.
  56977. func (s *Subnet) SetTags(v []*Tag) *Subnet {
  56978. s.Tags = v
  56979. return s
  56980. }
  56981. // SetVpcId sets the VpcId field's value.
  56982. func (s *Subnet) SetVpcId(v string) *Subnet {
  56983. s.VpcId = &v
  56984. return s
  56985. }
  56986. // Describes the state of a CIDR block.
  56987. type SubnetCidrBlockState struct {
  56988. _ struct{} `type:"structure"`
  56989. // The state of a CIDR block.
  56990. State *string `locationName:"state" type:"string" enum:"SubnetCidrBlockStateCode"`
  56991. // A message about the status of the CIDR block, if applicable.
  56992. StatusMessage *string `locationName:"statusMessage" type:"string"`
  56993. }
  56994. // String returns the string representation
  56995. func (s SubnetCidrBlockState) String() string {
  56996. return awsutil.Prettify(s)
  56997. }
  56998. // GoString returns the string representation
  56999. func (s SubnetCidrBlockState) GoString() string {
  57000. return s.String()
  57001. }
  57002. // SetState sets the State field's value.
  57003. func (s *SubnetCidrBlockState) SetState(v string) *SubnetCidrBlockState {
  57004. s.State = &v
  57005. return s
  57006. }
  57007. // SetStatusMessage sets the StatusMessage field's value.
  57008. func (s *SubnetCidrBlockState) SetStatusMessage(v string) *SubnetCidrBlockState {
  57009. s.StatusMessage = &v
  57010. return s
  57011. }
  57012. // Describes an IPv6 CIDR block associated with a subnet.
  57013. type SubnetIpv6CidrBlockAssociation struct {
  57014. _ struct{} `type:"structure"`
  57015. // The association ID for the CIDR block.
  57016. AssociationId *string `locationName:"associationId" type:"string"`
  57017. // The IPv6 CIDR block.
  57018. Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"`
  57019. // Information about the state of the CIDR block.
  57020. Ipv6CidrBlockState *SubnetCidrBlockState `locationName:"ipv6CidrBlockState" type:"structure"`
  57021. }
  57022. // String returns the string representation
  57023. func (s SubnetIpv6CidrBlockAssociation) String() string {
  57024. return awsutil.Prettify(s)
  57025. }
  57026. // GoString returns the string representation
  57027. func (s SubnetIpv6CidrBlockAssociation) GoString() string {
  57028. return s.String()
  57029. }
  57030. // SetAssociationId sets the AssociationId field's value.
  57031. func (s *SubnetIpv6CidrBlockAssociation) SetAssociationId(v string) *SubnetIpv6CidrBlockAssociation {
  57032. s.AssociationId = &v
  57033. return s
  57034. }
  57035. // SetIpv6CidrBlock sets the Ipv6CidrBlock field's value.
  57036. func (s *SubnetIpv6CidrBlockAssociation) SetIpv6CidrBlock(v string) *SubnetIpv6CidrBlockAssociation {
  57037. s.Ipv6CidrBlock = &v
  57038. return s
  57039. }
  57040. // SetIpv6CidrBlockState sets the Ipv6CidrBlockState field's value.
  57041. func (s *SubnetIpv6CidrBlockAssociation) SetIpv6CidrBlockState(v *SubnetCidrBlockState) *SubnetIpv6CidrBlockAssociation {
  57042. s.Ipv6CidrBlockState = v
  57043. return s
  57044. }
  57045. // Describes the T2 instance whose credit option for CPU usage was successfully
  57046. // modified.
  57047. type SuccessfulInstanceCreditSpecificationItem struct {
  57048. _ struct{} `type:"structure"`
  57049. // The ID of the instance.
  57050. InstanceId *string `locationName:"instanceId" type:"string"`
  57051. }
  57052. // String returns the string representation
  57053. func (s SuccessfulInstanceCreditSpecificationItem) String() string {
  57054. return awsutil.Prettify(s)
  57055. }
  57056. // GoString returns the string representation
  57057. func (s SuccessfulInstanceCreditSpecificationItem) GoString() string {
  57058. return s.String()
  57059. }
  57060. // SetInstanceId sets the InstanceId field's value.
  57061. func (s *SuccessfulInstanceCreditSpecificationItem) SetInstanceId(v string) *SuccessfulInstanceCreditSpecificationItem {
  57062. s.InstanceId = &v
  57063. return s
  57064. }
  57065. // Describes a tag.
  57066. type Tag struct {
  57067. _ struct{} `type:"structure"`
  57068. // The key of the tag.
  57069. //
  57070. // Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode
  57071. // characters. May not begin with aws:
  57072. Key *string `locationName:"key" type:"string"`
  57073. // The value of the tag.
  57074. //
  57075. // Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode
  57076. // characters.
  57077. Value *string `locationName:"value" type:"string"`
  57078. }
  57079. // String returns the string representation
  57080. func (s Tag) String() string {
  57081. return awsutil.Prettify(s)
  57082. }
  57083. // GoString returns the string representation
  57084. func (s Tag) GoString() string {
  57085. return s.String()
  57086. }
  57087. // SetKey sets the Key field's value.
  57088. func (s *Tag) SetKey(v string) *Tag {
  57089. s.Key = &v
  57090. return s
  57091. }
  57092. // SetValue sets the Value field's value.
  57093. func (s *Tag) SetValue(v string) *Tag {
  57094. s.Value = &v
  57095. return s
  57096. }
  57097. // Describes a tag.
  57098. type TagDescription struct {
  57099. _ struct{} `type:"structure"`
  57100. // The tag key.
  57101. Key *string `locationName:"key" type:"string"`
  57102. // The ID of the resource. For example, ami-1a2b3c4d.
  57103. ResourceId *string `locationName:"resourceId" type:"string"`
  57104. // The resource type.
  57105. ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"`
  57106. // The tag value.
  57107. Value *string `locationName:"value" type:"string"`
  57108. }
  57109. // String returns the string representation
  57110. func (s TagDescription) String() string {
  57111. return awsutil.Prettify(s)
  57112. }
  57113. // GoString returns the string representation
  57114. func (s TagDescription) GoString() string {
  57115. return s.String()
  57116. }
  57117. // SetKey sets the Key field's value.
  57118. func (s *TagDescription) SetKey(v string) *TagDescription {
  57119. s.Key = &v
  57120. return s
  57121. }
  57122. // SetResourceId sets the ResourceId field's value.
  57123. func (s *TagDescription) SetResourceId(v string) *TagDescription {
  57124. s.ResourceId = &v
  57125. return s
  57126. }
  57127. // SetResourceType sets the ResourceType field's value.
  57128. func (s *TagDescription) SetResourceType(v string) *TagDescription {
  57129. s.ResourceType = &v
  57130. return s
  57131. }
  57132. // SetValue sets the Value field's value.
  57133. func (s *TagDescription) SetValue(v string) *TagDescription {
  57134. s.Value = &v
  57135. return s
  57136. }
  57137. // The tags to apply to a resource when the resource is being created.
  57138. type TagSpecification struct {
  57139. _ struct{} `type:"structure"`
  57140. // The type of resource to tag. Currently, the resource types that support tagging
  57141. // on creation are instance, snapshot, and volume.
  57142. ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"`
  57143. // The tags to apply to the resource.
  57144. Tags []*Tag `locationName:"Tag" locationNameList:"item" type:"list"`
  57145. }
  57146. // String returns the string representation
  57147. func (s TagSpecification) String() string {
  57148. return awsutil.Prettify(s)
  57149. }
  57150. // GoString returns the string representation
  57151. func (s TagSpecification) GoString() string {
  57152. return s.String()
  57153. }
  57154. // SetResourceType sets the ResourceType field's value.
  57155. func (s *TagSpecification) SetResourceType(v string) *TagSpecification {
  57156. s.ResourceType = &v
  57157. return s
  57158. }
  57159. // SetTags sets the Tags field's value.
  57160. func (s *TagSpecification) SetTags(v []*Tag) *TagSpecification {
  57161. s.Tags = v
  57162. return s
  57163. }
  57164. // The number of units to request. You can choose to set the target capacity
  57165. // in terms of instances or a performance characteristic that is important to
  57166. // your application workload, such as vCPUs, memory, or I/O. If the request
  57167. // type is maintain, you can specify a target capacity of 0 and add capacity
  57168. // later.
  57169. type TargetCapacitySpecification struct {
  57170. _ struct{} `type:"structure"`
  57171. // The default TotalTargetCapacity, which is either Spot or On-Demand.
  57172. DefaultTargetCapacityType *string `locationName:"defaultTargetCapacityType" type:"string" enum:"DefaultTargetCapacityType"`
  57173. // The number of On-Demand units to request.
  57174. OnDemandTargetCapacity *int64 `locationName:"onDemandTargetCapacity" type:"integer"`
  57175. // The maximum number of Spot units to launch.
  57176. SpotTargetCapacity *int64 `locationName:"spotTargetCapacity" type:"integer"`
  57177. // The number of units to request, filled using DefaultTargetCapacityType.
  57178. TotalTargetCapacity *int64 `locationName:"totalTargetCapacity" type:"integer"`
  57179. }
  57180. // String returns the string representation
  57181. func (s TargetCapacitySpecification) String() string {
  57182. return awsutil.Prettify(s)
  57183. }
  57184. // GoString returns the string representation
  57185. func (s TargetCapacitySpecification) GoString() string {
  57186. return s.String()
  57187. }
  57188. // SetDefaultTargetCapacityType sets the DefaultTargetCapacityType field's value.
  57189. func (s *TargetCapacitySpecification) SetDefaultTargetCapacityType(v string) *TargetCapacitySpecification {
  57190. s.DefaultTargetCapacityType = &v
  57191. return s
  57192. }
  57193. // SetOnDemandTargetCapacity sets the OnDemandTargetCapacity field's value.
  57194. func (s *TargetCapacitySpecification) SetOnDemandTargetCapacity(v int64) *TargetCapacitySpecification {
  57195. s.OnDemandTargetCapacity = &v
  57196. return s
  57197. }
  57198. // SetSpotTargetCapacity sets the SpotTargetCapacity field's value.
  57199. func (s *TargetCapacitySpecification) SetSpotTargetCapacity(v int64) *TargetCapacitySpecification {
  57200. s.SpotTargetCapacity = &v
  57201. return s
  57202. }
  57203. // SetTotalTargetCapacity sets the TotalTargetCapacity field's value.
  57204. func (s *TargetCapacitySpecification) SetTotalTargetCapacity(v int64) *TargetCapacitySpecification {
  57205. s.TotalTargetCapacity = &v
  57206. return s
  57207. }
  57208. // The number of units to request. You can choose to set the target capacity
  57209. // in terms of instances or a performance characteristic that is important to
  57210. // your application workload, such as vCPUs, memory, or I/O. If the request
  57211. // type is maintain, you can specify a target capacity of 0 and add capacity
  57212. // later.
  57213. type TargetCapacitySpecificationRequest struct {
  57214. _ struct{} `type:"structure"`
  57215. // The default TotalTargetCapacity, which is either Spot or On-Demand.
  57216. DefaultTargetCapacityType *string `type:"string" enum:"DefaultTargetCapacityType"`
  57217. // The number of On-Demand units to request.
  57218. OnDemandTargetCapacity *int64 `type:"integer"`
  57219. // The number of Spot units to request.
  57220. SpotTargetCapacity *int64 `type:"integer"`
  57221. // The number of units to request, filled using DefaultTargetCapacityType.
  57222. //
  57223. // TotalTargetCapacity is a required field
  57224. TotalTargetCapacity *int64 `type:"integer" required:"true"`
  57225. }
  57226. // String returns the string representation
  57227. func (s TargetCapacitySpecificationRequest) String() string {
  57228. return awsutil.Prettify(s)
  57229. }
  57230. // GoString returns the string representation
  57231. func (s TargetCapacitySpecificationRequest) GoString() string {
  57232. return s.String()
  57233. }
  57234. // Validate inspects the fields of the type to determine if they are valid.
  57235. func (s *TargetCapacitySpecificationRequest) Validate() error {
  57236. invalidParams := request.ErrInvalidParams{Context: "TargetCapacitySpecificationRequest"}
  57237. if s.TotalTargetCapacity == nil {
  57238. invalidParams.Add(request.NewErrParamRequired("TotalTargetCapacity"))
  57239. }
  57240. if invalidParams.Len() > 0 {
  57241. return invalidParams
  57242. }
  57243. return nil
  57244. }
  57245. // SetDefaultTargetCapacityType sets the DefaultTargetCapacityType field's value.
  57246. func (s *TargetCapacitySpecificationRequest) SetDefaultTargetCapacityType(v string) *TargetCapacitySpecificationRequest {
  57247. s.DefaultTargetCapacityType = &v
  57248. return s
  57249. }
  57250. // SetOnDemandTargetCapacity sets the OnDemandTargetCapacity field's value.
  57251. func (s *TargetCapacitySpecificationRequest) SetOnDemandTargetCapacity(v int64) *TargetCapacitySpecificationRequest {
  57252. s.OnDemandTargetCapacity = &v
  57253. return s
  57254. }
  57255. // SetSpotTargetCapacity sets the SpotTargetCapacity field's value.
  57256. func (s *TargetCapacitySpecificationRequest) SetSpotTargetCapacity(v int64) *TargetCapacitySpecificationRequest {
  57257. s.SpotTargetCapacity = &v
  57258. return s
  57259. }
  57260. // SetTotalTargetCapacity sets the TotalTargetCapacity field's value.
  57261. func (s *TargetCapacitySpecificationRequest) SetTotalTargetCapacity(v int64) *TargetCapacitySpecificationRequest {
  57262. s.TotalTargetCapacity = &v
  57263. return s
  57264. }
  57265. // Information about the Convertible Reserved Instance offering.
  57266. type TargetConfiguration struct {
  57267. _ struct{} `type:"structure"`
  57268. // The number of instances the Convertible Reserved Instance offering can be
  57269. // applied to. This parameter is reserved and cannot be specified in a request
  57270. InstanceCount *int64 `locationName:"instanceCount" type:"integer"`
  57271. // The ID of the Convertible Reserved Instance offering.
  57272. OfferingId *string `locationName:"offeringId" type:"string"`
  57273. }
  57274. // String returns the string representation
  57275. func (s TargetConfiguration) String() string {
  57276. return awsutil.Prettify(s)
  57277. }
  57278. // GoString returns the string representation
  57279. func (s TargetConfiguration) GoString() string {
  57280. return s.String()
  57281. }
  57282. // SetInstanceCount sets the InstanceCount field's value.
  57283. func (s *TargetConfiguration) SetInstanceCount(v int64) *TargetConfiguration {
  57284. s.InstanceCount = &v
  57285. return s
  57286. }
  57287. // SetOfferingId sets the OfferingId field's value.
  57288. func (s *TargetConfiguration) SetOfferingId(v string) *TargetConfiguration {
  57289. s.OfferingId = &v
  57290. return s
  57291. }
  57292. // Details about the target configuration.
  57293. type TargetConfigurationRequest struct {
  57294. _ struct{} `type:"structure"`
  57295. // The number of instances the Covertible Reserved Instance offering can be
  57296. // applied to. This parameter is reserved and cannot be specified in a request
  57297. InstanceCount *int64 `type:"integer"`
  57298. // The Convertible Reserved Instance offering ID.
  57299. //
  57300. // OfferingId is a required field
  57301. OfferingId *string `type:"string" required:"true"`
  57302. }
  57303. // String returns the string representation
  57304. func (s TargetConfigurationRequest) String() string {
  57305. return awsutil.Prettify(s)
  57306. }
  57307. // GoString returns the string representation
  57308. func (s TargetConfigurationRequest) GoString() string {
  57309. return s.String()
  57310. }
  57311. // Validate inspects the fields of the type to determine if they are valid.
  57312. func (s *TargetConfigurationRequest) Validate() error {
  57313. invalidParams := request.ErrInvalidParams{Context: "TargetConfigurationRequest"}
  57314. if s.OfferingId == nil {
  57315. invalidParams.Add(request.NewErrParamRequired("OfferingId"))
  57316. }
  57317. if invalidParams.Len() > 0 {
  57318. return invalidParams
  57319. }
  57320. return nil
  57321. }
  57322. // SetInstanceCount sets the InstanceCount field's value.
  57323. func (s *TargetConfigurationRequest) SetInstanceCount(v int64) *TargetConfigurationRequest {
  57324. s.InstanceCount = &v
  57325. return s
  57326. }
  57327. // SetOfferingId sets the OfferingId field's value.
  57328. func (s *TargetConfigurationRequest) SetOfferingId(v string) *TargetConfigurationRequest {
  57329. s.OfferingId = &v
  57330. return s
  57331. }
  57332. // Describes a load balancer target group.
  57333. type TargetGroup struct {
  57334. _ struct{} `type:"structure"`
  57335. // The Amazon Resource Name (ARN) of the target group.
  57336. //
  57337. // Arn is a required field
  57338. Arn *string `locationName:"arn" type:"string" required:"true"`
  57339. }
  57340. // String returns the string representation
  57341. func (s TargetGroup) String() string {
  57342. return awsutil.Prettify(s)
  57343. }
  57344. // GoString returns the string representation
  57345. func (s TargetGroup) GoString() string {
  57346. return s.String()
  57347. }
  57348. // Validate inspects the fields of the type to determine if they are valid.
  57349. func (s *TargetGroup) Validate() error {
  57350. invalidParams := request.ErrInvalidParams{Context: "TargetGroup"}
  57351. if s.Arn == nil {
  57352. invalidParams.Add(request.NewErrParamRequired("Arn"))
  57353. }
  57354. if invalidParams.Len() > 0 {
  57355. return invalidParams
  57356. }
  57357. return nil
  57358. }
  57359. // SetArn sets the Arn field's value.
  57360. func (s *TargetGroup) SetArn(v string) *TargetGroup {
  57361. s.Arn = &v
  57362. return s
  57363. }
  57364. // Describes the target groups to attach to a Spot Fleet. Spot Fleet registers
  57365. // the running Spot Instances with these target groups.
  57366. type TargetGroupsConfig struct {
  57367. _ struct{} `type:"structure"`
  57368. // One or more target groups.
  57369. //
  57370. // TargetGroups is a required field
  57371. TargetGroups []*TargetGroup `locationName:"targetGroups" locationNameList:"item" min:"1" type:"list" required:"true"`
  57372. }
  57373. // String returns the string representation
  57374. func (s TargetGroupsConfig) String() string {
  57375. return awsutil.Prettify(s)
  57376. }
  57377. // GoString returns the string representation
  57378. func (s TargetGroupsConfig) GoString() string {
  57379. return s.String()
  57380. }
  57381. // Validate inspects the fields of the type to determine if they are valid.
  57382. func (s *TargetGroupsConfig) Validate() error {
  57383. invalidParams := request.ErrInvalidParams{Context: "TargetGroupsConfig"}
  57384. if s.TargetGroups == nil {
  57385. invalidParams.Add(request.NewErrParamRequired("TargetGroups"))
  57386. }
  57387. if s.TargetGroups != nil && len(s.TargetGroups) < 1 {
  57388. invalidParams.Add(request.NewErrParamMinLen("TargetGroups", 1))
  57389. }
  57390. if s.TargetGroups != nil {
  57391. for i, v := range s.TargetGroups {
  57392. if v == nil {
  57393. continue
  57394. }
  57395. if err := v.Validate(); err != nil {
  57396. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TargetGroups", i), err.(request.ErrInvalidParams))
  57397. }
  57398. }
  57399. }
  57400. if invalidParams.Len() > 0 {
  57401. return invalidParams
  57402. }
  57403. return nil
  57404. }
  57405. // SetTargetGroups sets the TargetGroups field's value.
  57406. func (s *TargetGroupsConfig) SetTargetGroups(v []*TargetGroup) *TargetGroupsConfig {
  57407. s.TargetGroups = v
  57408. return s
  57409. }
  57410. // The total value of the new Convertible Reserved Instances.
  57411. type TargetReservationValue struct {
  57412. _ struct{} `type:"structure"`
  57413. // The total value of the Convertible Reserved Instances that make up the exchange.
  57414. // This is the sum of the list value, remaining upfront price, and additional
  57415. // upfront cost of the exchange.
  57416. ReservationValue *ReservationValue `locationName:"reservationValue" type:"structure"`
  57417. // The configuration of the Convertible Reserved Instances that make up the
  57418. // exchange.
  57419. TargetConfiguration *TargetConfiguration `locationName:"targetConfiguration" type:"structure"`
  57420. }
  57421. // String returns the string representation
  57422. func (s TargetReservationValue) String() string {
  57423. return awsutil.Prettify(s)
  57424. }
  57425. // GoString returns the string representation
  57426. func (s TargetReservationValue) GoString() string {
  57427. return s.String()
  57428. }
  57429. // SetReservationValue sets the ReservationValue field's value.
  57430. func (s *TargetReservationValue) SetReservationValue(v *ReservationValue) *TargetReservationValue {
  57431. s.ReservationValue = v
  57432. return s
  57433. }
  57434. // SetTargetConfiguration sets the TargetConfiguration field's value.
  57435. func (s *TargetReservationValue) SetTargetConfiguration(v *TargetConfiguration) *TargetReservationValue {
  57436. s.TargetConfiguration = v
  57437. return s
  57438. }
  57439. // Contains the parameters for TerminateInstances.
  57440. type TerminateInstancesInput struct {
  57441. _ struct{} `type:"structure"`
  57442. // Checks whether you have the required permissions for the action, without
  57443. // actually making the request, and provides an error response. If you have
  57444. // the required permissions, the error response is DryRunOperation. Otherwise,
  57445. // it is UnauthorizedOperation.
  57446. DryRun *bool `locationName:"dryRun" type:"boolean"`
  57447. // One or more instance IDs.
  57448. //
  57449. // Constraints: Up to 1000 instance IDs. We recommend breaking up this request
  57450. // into smaller batches.
  57451. //
  57452. // InstanceIds is a required field
  57453. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"`
  57454. }
  57455. // String returns the string representation
  57456. func (s TerminateInstancesInput) String() string {
  57457. return awsutil.Prettify(s)
  57458. }
  57459. // GoString returns the string representation
  57460. func (s TerminateInstancesInput) GoString() string {
  57461. return s.String()
  57462. }
  57463. // Validate inspects the fields of the type to determine if they are valid.
  57464. func (s *TerminateInstancesInput) Validate() error {
  57465. invalidParams := request.ErrInvalidParams{Context: "TerminateInstancesInput"}
  57466. if s.InstanceIds == nil {
  57467. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  57468. }
  57469. if invalidParams.Len() > 0 {
  57470. return invalidParams
  57471. }
  57472. return nil
  57473. }
  57474. // SetDryRun sets the DryRun field's value.
  57475. func (s *TerminateInstancesInput) SetDryRun(v bool) *TerminateInstancesInput {
  57476. s.DryRun = &v
  57477. return s
  57478. }
  57479. // SetInstanceIds sets the InstanceIds field's value.
  57480. func (s *TerminateInstancesInput) SetInstanceIds(v []*string) *TerminateInstancesInput {
  57481. s.InstanceIds = v
  57482. return s
  57483. }
  57484. // Contains the output of TerminateInstances.
  57485. type TerminateInstancesOutput struct {
  57486. _ struct{} `type:"structure"`
  57487. // Information about one or more terminated instances.
  57488. TerminatingInstances []*InstanceStateChange `locationName:"instancesSet" locationNameList:"item" type:"list"`
  57489. }
  57490. // String returns the string representation
  57491. func (s TerminateInstancesOutput) String() string {
  57492. return awsutil.Prettify(s)
  57493. }
  57494. // GoString returns the string representation
  57495. func (s TerminateInstancesOutput) GoString() string {
  57496. return s.String()
  57497. }
  57498. // SetTerminatingInstances sets the TerminatingInstances field's value.
  57499. func (s *TerminateInstancesOutput) SetTerminatingInstances(v []*InstanceStateChange) *TerminateInstancesOutput {
  57500. s.TerminatingInstances = v
  57501. return s
  57502. }
  57503. type UnassignIpv6AddressesInput struct {
  57504. _ struct{} `type:"structure"`
  57505. // The IPv6 addresses to unassign from the network interface.
  57506. //
  57507. // Ipv6Addresses is a required field
  57508. Ipv6Addresses []*string `locationName:"ipv6Addresses" locationNameList:"item" type:"list" required:"true"`
  57509. // The ID of the network interface.
  57510. //
  57511. // NetworkInterfaceId is a required field
  57512. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  57513. }
  57514. // String returns the string representation
  57515. func (s UnassignIpv6AddressesInput) String() string {
  57516. return awsutil.Prettify(s)
  57517. }
  57518. // GoString returns the string representation
  57519. func (s UnassignIpv6AddressesInput) GoString() string {
  57520. return s.String()
  57521. }
  57522. // Validate inspects the fields of the type to determine if they are valid.
  57523. func (s *UnassignIpv6AddressesInput) Validate() error {
  57524. invalidParams := request.ErrInvalidParams{Context: "UnassignIpv6AddressesInput"}
  57525. if s.Ipv6Addresses == nil {
  57526. invalidParams.Add(request.NewErrParamRequired("Ipv6Addresses"))
  57527. }
  57528. if s.NetworkInterfaceId == nil {
  57529. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  57530. }
  57531. if invalidParams.Len() > 0 {
  57532. return invalidParams
  57533. }
  57534. return nil
  57535. }
  57536. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  57537. func (s *UnassignIpv6AddressesInput) SetIpv6Addresses(v []*string) *UnassignIpv6AddressesInput {
  57538. s.Ipv6Addresses = v
  57539. return s
  57540. }
  57541. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  57542. func (s *UnassignIpv6AddressesInput) SetNetworkInterfaceId(v string) *UnassignIpv6AddressesInput {
  57543. s.NetworkInterfaceId = &v
  57544. return s
  57545. }
  57546. type UnassignIpv6AddressesOutput struct {
  57547. _ struct{} `type:"structure"`
  57548. // The ID of the network interface.
  57549. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  57550. // The IPv6 addresses that have been unassigned from the network interface.
  57551. UnassignedIpv6Addresses []*string `locationName:"unassignedIpv6Addresses" locationNameList:"item" type:"list"`
  57552. }
  57553. // String returns the string representation
  57554. func (s UnassignIpv6AddressesOutput) String() string {
  57555. return awsutil.Prettify(s)
  57556. }
  57557. // GoString returns the string representation
  57558. func (s UnassignIpv6AddressesOutput) GoString() string {
  57559. return s.String()
  57560. }
  57561. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  57562. func (s *UnassignIpv6AddressesOutput) SetNetworkInterfaceId(v string) *UnassignIpv6AddressesOutput {
  57563. s.NetworkInterfaceId = &v
  57564. return s
  57565. }
  57566. // SetUnassignedIpv6Addresses sets the UnassignedIpv6Addresses field's value.
  57567. func (s *UnassignIpv6AddressesOutput) SetUnassignedIpv6Addresses(v []*string) *UnassignIpv6AddressesOutput {
  57568. s.UnassignedIpv6Addresses = v
  57569. return s
  57570. }
  57571. // Contains the parameters for UnassignPrivateIpAddresses.
  57572. type UnassignPrivateIpAddressesInput struct {
  57573. _ struct{} `type:"structure"`
  57574. // The ID of the network interface.
  57575. //
  57576. // NetworkInterfaceId is a required field
  57577. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  57578. // The secondary private IP addresses to unassign from the network interface.
  57579. // You can specify this option multiple times to unassign more than one IP address.
  57580. //
  57581. // PrivateIpAddresses is a required field
  57582. PrivateIpAddresses []*string `locationName:"privateIpAddress" locationNameList:"PrivateIpAddress" type:"list" required:"true"`
  57583. }
  57584. // String returns the string representation
  57585. func (s UnassignPrivateIpAddressesInput) String() string {
  57586. return awsutil.Prettify(s)
  57587. }
  57588. // GoString returns the string representation
  57589. func (s UnassignPrivateIpAddressesInput) GoString() string {
  57590. return s.String()
  57591. }
  57592. // Validate inspects the fields of the type to determine if they are valid.
  57593. func (s *UnassignPrivateIpAddressesInput) Validate() error {
  57594. invalidParams := request.ErrInvalidParams{Context: "UnassignPrivateIpAddressesInput"}
  57595. if s.NetworkInterfaceId == nil {
  57596. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  57597. }
  57598. if s.PrivateIpAddresses == nil {
  57599. invalidParams.Add(request.NewErrParamRequired("PrivateIpAddresses"))
  57600. }
  57601. if invalidParams.Len() > 0 {
  57602. return invalidParams
  57603. }
  57604. return nil
  57605. }
  57606. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  57607. func (s *UnassignPrivateIpAddressesInput) SetNetworkInterfaceId(v string) *UnassignPrivateIpAddressesInput {
  57608. s.NetworkInterfaceId = &v
  57609. return s
  57610. }
  57611. // SetPrivateIpAddresses sets the PrivateIpAddresses field's value.
  57612. func (s *UnassignPrivateIpAddressesInput) SetPrivateIpAddresses(v []*string) *UnassignPrivateIpAddressesInput {
  57613. s.PrivateIpAddresses = v
  57614. return s
  57615. }
  57616. type UnassignPrivateIpAddressesOutput struct {
  57617. _ struct{} `type:"structure"`
  57618. }
  57619. // String returns the string representation
  57620. func (s UnassignPrivateIpAddressesOutput) String() string {
  57621. return awsutil.Prettify(s)
  57622. }
  57623. // GoString returns the string representation
  57624. func (s UnassignPrivateIpAddressesOutput) GoString() string {
  57625. return s.String()
  57626. }
  57627. // Contains the parameters for UnmonitorInstances.
  57628. type UnmonitorInstancesInput struct {
  57629. _ struct{} `type:"structure"`
  57630. // Checks whether you have the required permissions for the action, without
  57631. // actually making the request, and provides an error response. If you have
  57632. // the required permissions, the error response is DryRunOperation. Otherwise,
  57633. // it is UnauthorizedOperation.
  57634. DryRun *bool `locationName:"dryRun" type:"boolean"`
  57635. // One or more instance IDs.
  57636. //
  57637. // InstanceIds is a required field
  57638. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"`
  57639. }
  57640. // String returns the string representation
  57641. func (s UnmonitorInstancesInput) String() string {
  57642. return awsutil.Prettify(s)
  57643. }
  57644. // GoString returns the string representation
  57645. func (s UnmonitorInstancesInput) GoString() string {
  57646. return s.String()
  57647. }
  57648. // Validate inspects the fields of the type to determine if they are valid.
  57649. func (s *UnmonitorInstancesInput) Validate() error {
  57650. invalidParams := request.ErrInvalidParams{Context: "UnmonitorInstancesInput"}
  57651. if s.InstanceIds == nil {
  57652. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  57653. }
  57654. if invalidParams.Len() > 0 {
  57655. return invalidParams
  57656. }
  57657. return nil
  57658. }
  57659. // SetDryRun sets the DryRun field's value.
  57660. func (s *UnmonitorInstancesInput) SetDryRun(v bool) *UnmonitorInstancesInput {
  57661. s.DryRun = &v
  57662. return s
  57663. }
  57664. // SetInstanceIds sets the InstanceIds field's value.
  57665. func (s *UnmonitorInstancesInput) SetInstanceIds(v []*string) *UnmonitorInstancesInput {
  57666. s.InstanceIds = v
  57667. return s
  57668. }
  57669. // Contains the output of UnmonitorInstances.
  57670. type UnmonitorInstancesOutput struct {
  57671. _ struct{} `type:"structure"`
  57672. // The monitoring information.
  57673. InstanceMonitorings []*InstanceMonitoring `locationName:"instancesSet" locationNameList:"item" type:"list"`
  57674. }
  57675. // String returns the string representation
  57676. func (s UnmonitorInstancesOutput) String() string {
  57677. return awsutil.Prettify(s)
  57678. }
  57679. // GoString returns the string representation
  57680. func (s UnmonitorInstancesOutput) GoString() string {
  57681. return s.String()
  57682. }
  57683. // SetInstanceMonitorings sets the InstanceMonitorings field's value.
  57684. func (s *UnmonitorInstancesOutput) SetInstanceMonitorings(v []*InstanceMonitoring) *UnmonitorInstancesOutput {
  57685. s.InstanceMonitorings = v
  57686. return s
  57687. }
  57688. // Describes the T2 instance whose credit option for CPU usage was not modified.
  57689. type UnsuccessfulInstanceCreditSpecificationItem struct {
  57690. _ struct{} `type:"structure"`
  57691. // The applicable error for the T2 instance whose credit option for CPU usage
  57692. // was not modified.
  57693. Error *UnsuccessfulInstanceCreditSpecificationItemError `locationName:"error" type:"structure"`
  57694. // The ID of the instance.
  57695. InstanceId *string `locationName:"instanceId" type:"string"`
  57696. }
  57697. // String returns the string representation
  57698. func (s UnsuccessfulInstanceCreditSpecificationItem) String() string {
  57699. return awsutil.Prettify(s)
  57700. }
  57701. // GoString returns the string representation
  57702. func (s UnsuccessfulInstanceCreditSpecificationItem) GoString() string {
  57703. return s.String()
  57704. }
  57705. // SetError sets the Error field's value.
  57706. func (s *UnsuccessfulInstanceCreditSpecificationItem) SetError(v *UnsuccessfulInstanceCreditSpecificationItemError) *UnsuccessfulInstanceCreditSpecificationItem {
  57707. s.Error = v
  57708. return s
  57709. }
  57710. // SetInstanceId sets the InstanceId field's value.
  57711. func (s *UnsuccessfulInstanceCreditSpecificationItem) SetInstanceId(v string) *UnsuccessfulInstanceCreditSpecificationItem {
  57712. s.InstanceId = &v
  57713. return s
  57714. }
  57715. // Information about the error for the T2 instance whose credit option for CPU
  57716. // usage was not modified.
  57717. type UnsuccessfulInstanceCreditSpecificationItemError struct {
  57718. _ struct{} `type:"structure"`
  57719. // The error code.
  57720. Code *string `locationName:"code" type:"string" enum:"UnsuccessfulInstanceCreditSpecificationErrorCode"`
  57721. // The applicable error message.
  57722. Message *string `locationName:"message" type:"string"`
  57723. }
  57724. // String returns the string representation
  57725. func (s UnsuccessfulInstanceCreditSpecificationItemError) String() string {
  57726. return awsutil.Prettify(s)
  57727. }
  57728. // GoString returns the string representation
  57729. func (s UnsuccessfulInstanceCreditSpecificationItemError) GoString() string {
  57730. return s.String()
  57731. }
  57732. // SetCode sets the Code field's value.
  57733. func (s *UnsuccessfulInstanceCreditSpecificationItemError) SetCode(v string) *UnsuccessfulInstanceCreditSpecificationItemError {
  57734. s.Code = &v
  57735. return s
  57736. }
  57737. // SetMessage sets the Message field's value.
  57738. func (s *UnsuccessfulInstanceCreditSpecificationItemError) SetMessage(v string) *UnsuccessfulInstanceCreditSpecificationItemError {
  57739. s.Message = &v
  57740. return s
  57741. }
  57742. // Information about items that were not successfully processed in a batch call.
  57743. type UnsuccessfulItem struct {
  57744. _ struct{} `type:"structure"`
  57745. // Information about the error.
  57746. //
  57747. // Error is a required field
  57748. Error *UnsuccessfulItemError `locationName:"error" type:"structure" required:"true"`
  57749. // The ID of the resource.
  57750. ResourceId *string `locationName:"resourceId" type:"string"`
  57751. }
  57752. // String returns the string representation
  57753. func (s UnsuccessfulItem) String() string {
  57754. return awsutil.Prettify(s)
  57755. }
  57756. // GoString returns the string representation
  57757. func (s UnsuccessfulItem) GoString() string {
  57758. return s.String()
  57759. }
  57760. // SetError sets the Error field's value.
  57761. func (s *UnsuccessfulItem) SetError(v *UnsuccessfulItemError) *UnsuccessfulItem {
  57762. s.Error = v
  57763. return s
  57764. }
  57765. // SetResourceId sets the ResourceId field's value.
  57766. func (s *UnsuccessfulItem) SetResourceId(v string) *UnsuccessfulItem {
  57767. s.ResourceId = &v
  57768. return s
  57769. }
  57770. // Information about the error that occurred. For more information about errors,
  57771. // see Error Codes (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html).
  57772. type UnsuccessfulItemError struct {
  57773. _ struct{} `type:"structure"`
  57774. // The error code.
  57775. //
  57776. // Code is a required field
  57777. Code *string `locationName:"code" type:"string" required:"true"`
  57778. // The error message accompanying the error code.
  57779. //
  57780. // Message is a required field
  57781. Message *string `locationName:"message" type:"string" required:"true"`
  57782. }
  57783. // String returns the string representation
  57784. func (s UnsuccessfulItemError) String() string {
  57785. return awsutil.Prettify(s)
  57786. }
  57787. // GoString returns the string representation
  57788. func (s UnsuccessfulItemError) GoString() string {
  57789. return s.String()
  57790. }
  57791. // SetCode sets the Code field's value.
  57792. func (s *UnsuccessfulItemError) SetCode(v string) *UnsuccessfulItemError {
  57793. s.Code = &v
  57794. return s
  57795. }
  57796. // SetMessage sets the Message field's value.
  57797. func (s *UnsuccessfulItemError) SetMessage(v string) *UnsuccessfulItemError {
  57798. s.Message = &v
  57799. return s
  57800. }
  57801. // Contains the parameters for UpdateSecurityGroupRuleDescriptionsEgress.
  57802. type UpdateSecurityGroupRuleDescriptionsEgressInput struct {
  57803. _ struct{} `type:"structure"`
  57804. // Checks whether you have the required permissions for the action, without
  57805. // actually making the request, and provides an error response. If you have
  57806. // the required permissions, the error response is DryRunOperation. Otherwise,
  57807. // it is UnauthorizedOperation.
  57808. DryRun *bool `type:"boolean"`
  57809. // The ID of the security group. You must specify either the security group
  57810. // ID or the security group name in the request. For security groups in a nondefault
  57811. // VPC, you must specify the security group ID.
  57812. GroupId *string `type:"string"`
  57813. // [Default VPC] The name of the security group. You must specify either the
  57814. // security group ID or the security group name in the request.
  57815. GroupName *string `type:"string"`
  57816. // The IP permissions for the security group rule.
  57817. //
  57818. // IpPermissions is a required field
  57819. IpPermissions []*IpPermission `locationNameList:"item" type:"list" required:"true"`
  57820. }
  57821. // String returns the string representation
  57822. func (s UpdateSecurityGroupRuleDescriptionsEgressInput) String() string {
  57823. return awsutil.Prettify(s)
  57824. }
  57825. // GoString returns the string representation
  57826. func (s UpdateSecurityGroupRuleDescriptionsEgressInput) GoString() string {
  57827. return s.String()
  57828. }
  57829. // Validate inspects the fields of the type to determine if they are valid.
  57830. func (s *UpdateSecurityGroupRuleDescriptionsEgressInput) Validate() error {
  57831. invalidParams := request.ErrInvalidParams{Context: "UpdateSecurityGroupRuleDescriptionsEgressInput"}
  57832. if s.IpPermissions == nil {
  57833. invalidParams.Add(request.NewErrParamRequired("IpPermissions"))
  57834. }
  57835. if invalidParams.Len() > 0 {
  57836. return invalidParams
  57837. }
  57838. return nil
  57839. }
  57840. // SetDryRun sets the DryRun field's value.
  57841. func (s *UpdateSecurityGroupRuleDescriptionsEgressInput) SetDryRun(v bool) *UpdateSecurityGroupRuleDescriptionsEgressInput {
  57842. s.DryRun = &v
  57843. return s
  57844. }
  57845. // SetGroupId sets the GroupId field's value.
  57846. func (s *UpdateSecurityGroupRuleDescriptionsEgressInput) SetGroupId(v string) *UpdateSecurityGroupRuleDescriptionsEgressInput {
  57847. s.GroupId = &v
  57848. return s
  57849. }
  57850. // SetGroupName sets the GroupName field's value.
  57851. func (s *UpdateSecurityGroupRuleDescriptionsEgressInput) SetGroupName(v string) *UpdateSecurityGroupRuleDescriptionsEgressInput {
  57852. s.GroupName = &v
  57853. return s
  57854. }
  57855. // SetIpPermissions sets the IpPermissions field's value.
  57856. func (s *UpdateSecurityGroupRuleDescriptionsEgressInput) SetIpPermissions(v []*IpPermission) *UpdateSecurityGroupRuleDescriptionsEgressInput {
  57857. s.IpPermissions = v
  57858. return s
  57859. }
  57860. // Contains the output of UpdateSecurityGroupRuleDescriptionsEgress.
  57861. type UpdateSecurityGroupRuleDescriptionsEgressOutput struct {
  57862. _ struct{} `type:"structure"`
  57863. // Returns true if the request succeeds; otherwise, returns an error.
  57864. Return *bool `locationName:"return" type:"boolean"`
  57865. }
  57866. // String returns the string representation
  57867. func (s UpdateSecurityGroupRuleDescriptionsEgressOutput) String() string {
  57868. return awsutil.Prettify(s)
  57869. }
  57870. // GoString returns the string representation
  57871. func (s UpdateSecurityGroupRuleDescriptionsEgressOutput) GoString() string {
  57872. return s.String()
  57873. }
  57874. // SetReturn sets the Return field's value.
  57875. func (s *UpdateSecurityGroupRuleDescriptionsEgressOutput) SetReturn(v bool) *UpdateSecurityGroupRuleDescriptionsEgressOutput {
  57876. s.Return = &v
  57877. return s
  57878. }
  57879. // Contains the parameters for UpdateSecurityGroupRuleDescriptionsIngress.
  57880. type UpdateSecurityGroupRuleDescriptionsIngressInput struct {
  57881. _ struct{} `type:"structure"`
  57882. // Checks whether you have the required permissions for the action, without
  57883. // actually making the request, and provides an error response. If you have
  57884. // the required permissions, the error response is DryRunOperation. Otherwise,
  57885. // it is UnauthorizedOperation.
  57886. DryRun *bool `type:"boolean"`
  57887. // The ID of the security group. You must specify either the security group
  57888. // ID or the security group name in the request. For security groups in a nondefault
  57889. // VPC, you must specify the security group ID.
  57890. GroupId *string `type:"string"`
  57891. // [EC2-Classic, default VPC] The name of the security group. You must specify
  57892. // either the security group ID or the security group name in the request.
  57893. GroupName *string `type:"string"`
  57894. // The IP permissions for the security group rule.
  57895. //
  57896. // IpPermissions is a required field
  57897. IpPermissions []*IpPermission `locationNameList:"item" type:"list" required:"true"`
  57898. }
  57899. // String returns the string representation
  57900. func (s UpdateSecurityGroupRuleDescriptionsIngressInput) String() string {
  57901. return awsutil.Prettify(s)
  57902. }
  57903. // GoString returns the string representation
  57904. func (s UpdateSecurityGroupRuleDescriptionsIngressInput) GoString() string {
  57905. return s.String()
  57906. }
  57907. // Validate inspects the fields of the type to determine if they are valid.
  57908. func (s *UpdateSecurityGroupRuleDescriptionsIngressInput) Validate() error {
  57909. invalidParams := request.ErrInvalidParams{Context: "UpdateSecurityGroupRuleDescriptionsIngressInput"}
  57910. if s.IpPermissions == nil {
  57911. invalidParams.Add(request.NewErrParamRequired("IpPermissions"))
  57912. }
  57913. if invalidParams.Len() > 0 {
  57914. return invalidParams
  57915. }
  57916. return nil
  57917. }
  57918. // SetDryRun sets the DryRun field's value.
  57919. func (s *UpdateSecurityGroupRuleDescriptionsIngressInput) SetDryRun(v bool) *UpdateSecurityGroupRuleDescriptionsIngressInput {
  57920. s.DryRun = &v
  57921. return s
  57922. }
  57923. // SetGroupId sets the GroupId field's value.
  57924. func (s *UpdateSecurityGroupRuleDescriptionsIngressInput) SetGroupId(v string) *UpdateSecurityGroupRuleDescriptionsIngressInput {
  57925. s.GroupId = &v
  57926. return s
  57927. }
  57928. // SetGroupName sets the GroupName field's value.
  57929. func (s *UpdateSecurityGroupRuleDescriptionsIngressInput) SetGroupName(v string) *UpdateSecurityGroupRuleDescriptionsIngressInput {
  57930. s.GroupName = &v
  57931. return s
  57932. }
  57933. // SetIpPermissions sets the IpPermissions field's value.
  57934. func (s *UpdateSecurityGroupRuleDescriptionsIngressInput) SetIpPermissions(v []*IpPermission) *UpdateSecurityGroupRuleDescriptionsIngressInput {
  57935. s.IpPermissions = v
  57936. return s
  57937. }
  57938. // Contains the output of UpdateSecurityGroupRuleDescriptionsIngress.
  57939. type UpdateSecurityGroupRuleDescriptionsIngressOutput struct {
  57940. _ struct{} `type:"structure"`
  57941. // Returns true if the request succeeds; otherwise, returns an error.
  57942. Return *bool `locationName:"return" type:"boolean"`
  57943. }
  57944. // String returns the string representation
  57945. func (s UpdateSecurityGroupRuleDescriptionsIngressOutput) String() string {
  57946. return awsutil.Prettify(s)
  57947. }
  57948. // GoString returns the string representation
  57949. func (s UpdateSecurityGroupRuleDescriptionsIngressOutput) GoString() string {
  57950. return s.String()
  57951. }
  57952. // SetReturn sets the Return field's value.
  57953. func (s *UpdateSecurityGroupRuleDescriptionsIngressOutput) SetReturn(v bool) *UpdateSecurityGroupRuleDescriptionsIngressOutput {
  57954. s.Return = &v
  57955. return s
  57956. }
  57957. // Describes the S3 bucket for the disk image.
  57958. type UserBucket struct {
  57959. _ struct{} `type:"structure"`
  57960. // The name of the S3 bucket where the disk image is located.
  57961. S3Bucket *string `type:"string"`
  57962. // The file name of the disk image.
  57963. S3Key *string `type:"string"`
  57964. }
  57965. // String returns the string representation
  57966. func (s UserBucket) String() string {
  57967. return awsutil.Prettify(s)
  57968. }
  57969. // GoString returns the string representation
  57970. func (s UserBucket) GoString() string {
  57971. return s.String()
  57972. }
  57973. // SetS3Bucket sets the S3Bucket field's value.
  57974. func (s *UserBucket) SetS3Bucket(v string) *UserBucket {
  57975. s.S3Bucket = &v
  57976. return s
  57977. }
  57978. // SetS3Key sets the S3Key field's value.
  57979. func (s *UserBucket) SetS3Key(v string) *UserBucket {
  57980. s.S3Key = &v
  57981. return s
  57982. }
  57983. // Describes the S3 bucket for the disk image.
  57984. type UserBucketDetails struct {
  57985. _ struct{} `type:"structure"`
  57986. // The S3 bucket from which the disk image was created.
  57987. S3Bucket *string `locationName:"s3Bucket" type:"string"`
  57988. // The file name of the disk image.
  57989. S3Key *string `locationName:"s3Key" type:"string"`
  57990. }
  57991. // String returns the string representation
  57992. func (s UserBucketDetails) String() string {
  57993. return awsutil.Prettify(s)
  57994. }
  57995. // GoString returns the string representation
  57996. func (s UserBucketDetails) GoString() string {
  57997. return s.String()
  57998. }
  57999. // SetS3Bucket sets the S3Bucket field's value.
  58000. func (s *UserBucketDetails) SetS3Bucket(v string) *UserBucketDetails {
  58001. s.S3Bucket = &v
  58002. return s
  58003. }
  58004. // SetS3Key sets the S3Key field's value.
  58005. func (s *UserBucketDetails) SetS3Key(v string) *UserBucketDetails {
  58006. s.S3Key = &v
  58007. return s
  58008. }
  58009. // Describes the user data for an instance.
  58010. type UserData struct {
  58011. _ struct{} `type:"structure"`
  58012. // The user data. If you are using an AWS SDK or command line tool, Base64-encoding
  58013. // is performed for you, and you can load the text from a file. Otherwise, you
  58014. // must provide Base64-encoded text.
  58015. Data *string `locationName:"data" type:"string"`
  58016. }
  58017. // String returns the string representation
  58018. func (s UserData) String() string {
  58019. return awsutil.Prettify(s)
  58020. }
  58021. // GoString returns the string representation
  58022. func (s UserData) GoString() string {
  58023. return s.String()
  58024. }
  58025. // SetData sets the Data field's value.
  58026. func (s *UserData) SetData(v string) *UserData {
  58027. s.Data = &v
  58028. return s
  58029. }
  58030. // Describes a security group and AWS account ID pair.
  58031. type UserIdGroupPair struct {
  58032. _ struct{} `type:"structure"`
  58033. // A description for the security group rule that references this user ID group
  58034. // pair.
  58035. //
  58036. // Constraints: Up to 255 characters in length. Allowed characters are a-z,
  58037. // A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$*
  58038. Description *string `locationName:"description" type:"string"`
  58039. // The ID of the security group.
  58040. GroupId *string `locationName:"groupId" type:"string"`
  58041. // The name of the security group. In a request, use this parameter for a security
  58042. // group in EC2-Classic or a default VPC only. For a security group in a nondefault
  58043. // VPC, use the security group ID.
  58044. //
  58045. // For a referenced security group in another VPC, this value is not returned
  58046. // if the referenced security group is deleted.
  58047. GroupName *string `locationName:"groupName" type:"string"`
  58048. // The status of a VPC peering connection, if applicable.
  58049. PeeringStatus *string `locationName:"peeringStatus" type:"string"`
  58050. // The ID of an AWS account.
  58051. //
  58052. // For a referenced security group in another VPC, the account ID of the referenced
  58053. // security group is returned in the response. If the referenced security group
  58054. // is deleted, this value is not returned.
  58055. //
  58056. // [EC2-Classic] Required when adding or removing rules that reference a security
  58057. // group in another AWS account.
  58058. UserId *string `locationName:"userId" type:"string"`
  58059. // The ID of the VPC for the referenced security group, if applicable.
  58060. VpcId *string `locationName:"vpcId" type:"string"`
  58061. // The ID of the VPC peering connection, if applicable.
  58062. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
  58063. }
  58064. // String returns the string representation
  58065. func (s UserIdGroupPair) String() string {
  58066. return awsutil.Prettify(s)
  58067. }
  58068. // GoString returns the string representation
  58069. func (s UserIdGroupPair) GoString() string {
  58070. return s.String()
  58071. }
  58072. // SetDescription sets the Description field's value.
  58073. func (s *UserIdGroupPair) SetDescription(v string) *UserIdGroupPair {
  58074. s.Description = &v
  58075. return s
  58076. }
  58077. // SetGroupId sets the GroupId field's value.
  58078. func (s *UserIdGroupPair) SetGroupId(v string) *UserIdGroupPair {
  58079. s.GroupId = &v
  58080. return s
  58081. }
  58082. // SetGroupName sets the GroupName field's value.
  58083. func (s *UserIdGroupPair) SetGroupName(v string) *UserIdGroupPair {
  58084. s.GroupName = &v
  58085. return s
  58086. }
  58087. // SetPeeringStatus sets the PeeringStatus field's value.
  58088. func (s *UserIdGroupPair) SetPeeringStatus(v string) *UserIdGroupPair {
  58089. s.PeeringStatus = &v
  58090. return s
  58091. }
  58092. // SetUserId sets the UserId field's value.
  58093. func (s *UserIdGroupPair) SetUserId(v string) *UserIdGroupPair {
  58094. s.UserId = &v
  58095. return s
  58096. }
  58097. // SetVpcId sets the VpcId field's value.
  58098. func (s *UserIdGroupPair) SetVpcId(v string) *UserIdGroupPair {
  58099. s.VpcId = &v
  58100. return s
  58101. }
  58102. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  58103. func (s *UserIdGroupPair) SetVpcPeeringConnectionId(v string) *UserIdGroupPair {
  58104. s.VpcPeeringConnectionId = &v
  58105. return s
  58106. }
  58107. // Describes telemetry for a VPN tunnel.
  58108. type VgwTelemetry struct {
  58109. _ struct{} `type:"structure"`
  58110. // The number of accepted routes.
  58111. AcceptedRouteCount *int64 `locationName:"acceptedRouteCount" type:"integer"`
  58112. // The date and time of the last change in status.
  58113. LastStatusChange *time.Time `locationName:"lastStatusChange" type:"timestamp" timestampFormat:"iso8601"`
  58114. // The Internet-routable IP address of the virtual private gateway's outside
  58115. // interface.
  58116. OutsideIpAddress *string `locationName:"outsideIpAddress" type:"string"`
  58117. // The status of the VPN tunnel.
  58118. Status *string `locationName:"status" type:"string" enum:"TelemetryStatus"`
  58119. // If an error occurs, a description of the error.
  58120. StatusMessage *string `locationName:"statusMessage" type:"string"`
  58121. }
  58122. // String returns the string representation
  58123. func (s VgwTelemetry) String() string {
  58124. return awsutil.Prettify(s)
  58125. }
  58126. // GoString returns the string representation
  58127. func (s VgwTelemetry) GoString() string {
  58128. return s.String()
  58129. }
  58130. // SetAcceptedRouteCount sets the AcceptedRouteCount field's value.
  58131. func (s *VgwTelemetry) SetAcceptedRouteCount(v int64) *VgwTelemetry {
  58132. s.AcceptedRouteCount = &v
  58133. return s
  58134. }
  58135. // SetLastStatusChange sets the LastStatusChange field's value.
  58136. func (s *VgwTelemetry) SetLastStatusChange(v time.Time) *VgwTelemetry {
  58137. s.LastStatusChange = &v
  58138. return s
  58139. }
  58140. // SetOutsideIpAddress sets the OutsideIpAddress field's value.
  58141. func (s *VgwTelemetry) SetOutsideIpAddress(v string) *VgwTelemetry {
  58142. s.OutsideIpAddress = &v
  58143. return s
  58144. }
  58145. // SetStatus sets the Status field's value.
  58146. func (s *VgwTelemetry) SetStatus(v string) *VgwTelemetry {
  58147. s.Status = &v
  58148. return s
  58149. }
  58150. // SetStatusMessage sets the StatusMessage field's value.
  58151. func (s *VgwTelemetry) SetStatusMessage(v string) *VgwTelemetry {
  58152. s.StatusMessage = &v
  58153. return s
  58154. }
  58155. // Describes a volume.
  58156. type Volume struct {
  58157. _ struct{} `type:"structure"`
  58158. // Information about the volume attachments.
  58159. Attachments []*VolumeAttachment `locationName:"attachmentSet" locationNameList:"item" type:"list"`
  58160. // The Availability Zone for the volume.
  58161. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  58162. // The time stamp when volume creation was initiated.
  58163. CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"iso8601"`
  58164. // Indicates whether the volume will be encrypted.
  58165. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  58166. // The number of I/O operations per second (IOPS) that the volume supports.
  58167. // For Provisioned IOPS SSD volumes, this represents the number of IOPS that
  58168. // are provisioned for the volume. For General Purpose SSD volumes, this represents
  58169. // the baseline performance of the volume and the rate at which the volume accumulates
  58170. // I/O credits for bursting. For more information on General Purpose SSD baseline
  58171. // performance, I/O credits, and bursting, see Amazon EBS Volume Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html)
  58172. // in the Amazon Elastic Compute Cloud User Guide.
  58173. //
  58174. // Constraint: Range is 100-32000 IOPS for io1 volumes and 100-10000 IOPS for
  58175. // gp2 volumes.
  58176. //
  58177. // Condition: This parameter is required for requests to create io1 volumes;
  58178. // it is not used in requests to create gp2, st1, sc1, or standard volumes.
  58179. Iops *int64 `locationName:"iops" type:"integer"`
  58180. // The full ARN of the AWS Key Management Service (AWS KMS) customer master
  58181. // key (CMK) that was used to protect the volume encryption key for the volume.
  58182. KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
  58183. // The size of the volume, in GiBs.
  58184. Size *int64 `locationName:"size" type:"integer"`
  58185. // The snapshot from which the volume was created, if applicable.
  58186. SnapshotId *string `locationName:"snapshotId" type:"string"`
  58187. // The volume state.
  58188. State *string `locationName:"status" type:"string" enum:"VolumeState"`
  58189. // Any tags assigned to the volume.
  58190. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  58191. // The ID of the volume.
  58192. VolumeId *string `locationName:"volumeId" type:"string"`
  58193. // The volume type. This can be gp2 for General Purpose SSD, io1 for Provisioned
  58194. // IOPS SSD, st1 for Throughput Optimized HDD, sc1 for Cold HDD, or standard
  58195. // for Magnetic volumes.
  58196. VolumeType *string `locationName:"volumeType" type:"string" enum:"VolumeType"`
  58197. }
  58198. // String returns the string representation
  58199. func (s Volume) String() string {
  58200. return awsutil.Prettify(s)
  58201. }
  58202. // GoString returns the string representation
  58203. func (s Volume) GoString() string {
  58204. return s.String()
  58205. }
  58206. // SetAttachments sets the Attachments field's value.
  58207. func (s *Volume) SetAttachments(v []*VolumeAttachment) *Volume {
  58208. s.Attachments = v
  58209. return s
  58210. }
  58211. // SetAvailabilityZone sets the AvailabilityZone field's value.
  58212. func (s *Volume) SetAvailabilityZone(v string) *Volume {
  58213. s.AvailabilityZone = &v
  58214. return s
  58215. }
  58216. // SetCreateTime sets the CreateTime field's value.
  58217. func (s *Volume) SetCreateTime(v time.Time) *Volume {
  58218. s.CreateTime = &v
  58219. return s
  58220. }
  58221. // SetEncrypted sets the Encrypted field's value.
  58222. func (s *Volume) SetEncrypted(v bool) *Volume {
  58223. s.Encrypted = &v
  58224. return s
  58225. }
  58226. // SetIops sets the Iops field's value.
  58227. func (s *Volume) SetIops(v int64) *Volume {
  58228. s.Iops = &v
  58229. return s
  58230. }
  58231. // SetKmsKeyId sets the KmsKeyId field's value.
  58232. func (s *Volume) SetKmsKeyId(v string) *Volume {
  58233. s.KmsKeyId = &v
  58234. return s
  58235. }
  58236. // SetSize sets the Size field's value.
  58237. func (s *Volume) SetSize(v int64) *Volume {
  58238. s.Size = &v
  58239. return s
  58240. }
  58241. // SetSnapshotId sets the SnapshotId field's value.
  58242. func (s *Volume) SetSnapshotId(v string) *Volume {
  58243. s.SnapshotId = &v
  58244. return s
  58245. }
  58246. // SetState sets the State field's value.
  58247. func (s *Volume) SetState(v string) *Volume {
  58248. s.State = &v
  58249. return s
  58250. }
  58251. // SetTags sets the Tags field's value.
  58252. func (s *Volume) SetTags(v []*Tag) *Volume {
  58253. s.Tags = v
  58254. return s
  58255. }
  58256. // SetVolumeId sets the VolumeId field's value.
  58257. func (s *Volume) SetVolumeId(v string) *Volume {
  58258. s.VolumeId = &v
  58259. return s
  58260. }
  58261. // SetVolumeType sets the VolumeType field's value.
  58262. func (s *Volume) SetVolumeType(v string) *Volume {
  58263. s.VolumeType = &v
  58264. return s
  58265. }
  58266. // Describes volume attachment details.
  58267. type VolumeAttachment struct {
  58268. _ struct{} `type:"structure"`
  58269. // The time stamp when the attachment initiated.
  58270. AttachTime *time.Time `locationName:"attachTime" type:"timestamp" timestampFormat:"iso8601"`
  58271. // Indicates whether the EBS volume is deleted on instance termination.
  58272. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  58273. // The device name.
  58274. Device *string `locationName:"device" type:"string"`
  58275. // The ID of the instance.
  58276. InstanceId *string `locationName:"instanceId" type:"string"`
  58277. // The attachment state of the volume.
  58278. State *string `locationName:"status" type:"string" enum:"VolumeAttachmentState"`
  58279. // The ID of the volume.
  58280. VolumeId *string `locationName:"volumeId" type:"string"`
  58281. }
  58282. // String returns the string representation
  58283. func (s VolumeAttachment) String() string {
  58284. return awsutil.Prettify(s)
  58285. }
  58286. // GoString returns the string representation
  58287. func (s VolumeAttachment) GoString() string {
  58288. return s.String()
  58289. }
  58290. // SetAttachTime sets the AttachTime field's value.
  58291. func (s *VolumeAttachment) SetAttachTime(v time.Time) *VolumeAttachment {
  58292. s.AttachTime = &v
  58293. return s
  58294. }
  58295. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  58296. func (s *VolumeAttachment) SetDeleteOnTermination(v bool) *VolumeAttachment {
  58297. s.DeleteOnTermination = &v
  58298. return s
  58299. }
  58300. // SetDevice sets the Device field's value.
  58301. func (s *VolumeAttachment) SetDevice(v string) *VolumeAttachment {
  58302. s.Device = &v
  58303. return s
  58304. }
  58305. // SetInstanceId sets the InstanceId field's value.
  58306. func (s *VolumeAttachment) SetInstanceId(v string) *VolumeAttachment {
  58307. s.InstanceId = &v
  58308. return s
  58309. }
  58310. // SetState sets the State field's value.
  58311. func (s *VolumeAttachment) SetState(v string) *VolumeAttachment {
  58312. s.State = &v
  58313. return s
  58314. }
  58315. // SetVolumeId sets the VolumeId field's value.
  58316. func (s *VolumeAttachment) SetVolumeId(v string) *VolumeAttachment {
  58317. s.VolumeId = &v
  58318. return s
  58319. }
  58320. // Describes an EBS volume.
  58321. type VolumeDetail struct {
  58322. _ struct{} `type:"structure"`
  58323. // The size of the volume, in GiB.
  58324. //
  58325. // Size is a required field
  58326. Size *int64 `locationName:"size" type:"long" required:"true"`
  58327. }
  58328. // String returns the string representation
  58329. func (s VolumeDetail) String() string {
  58330. return awsutil.Prettify(s)
  58331. }
  58332. // GoString returns the string representation
  58333. func (s VolumeDetail) GoString() string {
  58334. return s.String()
  58335. }
  58336. // Validate inspects the fields of the type to determine if they are valid.
  58337. func (s *VolumeDetail) Validate() error {
  58338. invalidParams := request.ErrInvalidParams{Context: "VolumeDetail"}
  58339. if s.Size == nil {
  58340. invalidParams.Add(request.NewErrParamRequired("Size"))
  58341. }
  58342. if invalidParams.Len() > 0 {
  58343. return invalidParams
  58344. }
  58345. return nil
  58346. }
  58347. // SetSize sets the Size field's value.
  58348. func (s *VolumeDetail) SetSize(v int64) *VolumeDetail {
  58349. s.Size = &v
  58350. return s
  58351. }
  58352. // Describes the modification status of an EBS volume.
  58353. //
  58354. // If the volume has never been modified, some element values will be null.
  58355. type VolumeModification struct {
  58356. _ struct{} `type:"structure"`
  58357. // Modification completion or failure time.
  58358. EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"iso8601"`
  58359. // Current state of modification. Modification state is null for unmodified
  58360. // volumes.
  58361. ModificationState *string `locationName:"modificationState" type:"string" enum:"VolumeModificationState"`
  58362. // Original IOPS rate of the volume being modified.
  58363. OriginalIops *int64 `locationName:"originalIops" type:"integer"`
  58364. // Original size of the volume being modified.
  58365. OriginalSize *int64 `locationName:"originalSize" type:"integer"`
  58366. // Original EBS volume type of the volume being modified.
  58367. OriginalVolumeType *string `locationName:"originalVolumeType" type:"string" enum:"VolumeType"`
  58368. // Modification progress from 0 to 100%.
  58369. Progress *int64 `locationName:"progress" type:"long"`
  58370. // Modification start time
  58371. StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601"`
  58372. // Generic status message on modification progress or failure.
  58373. StatusMessage *string `locationName:"statusMessage" type:"string"`
  58374. // Target IOPS rate of the volume being modified.
  58375. TargetIops *int64 `locationName:"targetIops" type:"integer"`
  58376. // Target size of the volume being modified.
  58377. TargetSize *int64 `locationName:"targetSize" type:"integer"`
  58378. // Target EBS volume type of the volume being modified.
  58379. TargetVolumeType *string `locationName:"targetVolumeType" type:"string" enum:"VolumeType"`
  58380. // ID of the volume being modified.
  58381. VolumeId *string `locationName:"volumeId" type:"string"`
  58382. }
  58383. // String returns the string representation
  58384. func (s VolumeModification) String() string {
  58385. return awsutil.Prettify(s)
  58386. }
  58387. // GoString returns the string representation
  58388. func (s VolumeModification) GoString() string {
  58389. return s.String()
  58390. }
  58391. // SetEndTime sets the EndTime field's value.
  58392. func (s *VolumeModification) SetEndTime(v time.Time) *VolumeModification {
  58393. s.EndTime = &v
  58394. return s
  58395. }
  58396. // SetModificationState sets the ModificationState field's value.
  58397. func (s *VolumeModification) SetModificationState(v string) *VolumeModification {
  58398. s.ModificationState = &v
  58399. return s
  58400. }
  58401. // SetOriginalIops sets the OriginalIops field's value.
  58402. func (s *VolumeModification) SetOriginalIops(v int64) *VolumeModification {
  58403. s.OriginalIops = &v
  58404. return s
  58405. }
  58406. // SetOriginalSize sets the OriginalSize field's value.
  58407. func (s *VolumeModification) SetOriginalSize(v int64) *VolumeModification {
  58408. s.OriginalSize = &v
  58409. return s
  58410. }
  58411. // SetOriginalVolumeType sets the OriginalVolumeType field's value.
  58412. func (s *VolumeModification) SetOriginalVolumeType(v string) *VolumeModification {
  58413. s.OriginalVolumeType = &v
  58414. return s
  58415. }
  58416. // SetProgress sets the Progress field's value.
  58417. func (s *VolumeModification) SetProgress(v int64) *VolumeModification {
  58418. s.Progress = &v
  58419. return s
  58420. }
  58421. // SetStartTime sets the StartTime field's value.
  58422. func (s *VolumeModification) SetStartTime(v time.Time) *VolumeModification {
  58423. s.StartTime = &v
  58424. return s
  58425. }
  58426. // SetStatusMessage sets the StatusMessage field's value.
  58427. func (s *VolumeModification) SetStatusMessage(v string) *VolumeModification {
  58428. s.StatusMessage = &v
  58429. return s
  58430. }
  58431. // SetTargetIops sets the TargetIops field's value.
  58432. func (s *VolumeModification) SetTargetIops(v int64) *VolumeModification {
  58433. s.TargetIops = &v
  58434. return s
  58435. }
  58436. // SetTargetSize sets the TargetSize field's value.
  58437. func (s *VolumeModification) SetTargetSize(v int64) *VolumeModification {
  58438. s.TargetSize = &v
  58439. return s
  58440. }
  58441. // SetTargetVolumeType sets the TargetVolumeType field's value.
  58442. func (s *VolumeModification) SetTargetVolumeType(v string) *VolumeModification {
  58443. s.TargetVolumeType = &v
  58444. return s
  58445. }
  58446. // SetVolumeId sets the VolumeId field's value.
  58447. func (s *VolumeModification) SetVolumeId(v string) *VolumeModification {
  58448. s.VolumeId = &v
  58449. return s
  58450. }
  58451. // Describes a volume status operation code.
  58452. type VolumeStatusAction struct {
  58453. _ struct{} `type:"structure"`
  58454. // The code identifying the operation, for example, enable-volume-io.
  58455. Code *string `locationName:"code" type:"string"`
  58456. // A description of the operation.
  58457. Description *string `locationName:"description" type:"string"`
  58458. // The ID of the event associated with this operation.
  58459. EventId *string `locationName:"eventId" type:"string"`
  58460. // The event type associated with this operation.
  58461. EventType *string `locationName:"eventType" type:"string"`
  58462. }
  58463. // String returns the string representation
  58464. func (s VolumeStatusAction) String() string {
  58465. return awsutil.Prettify(s)
  58466. }
  58467. // GoString returns the string representation
  58468. func (s VolumeStatusAction) GoString() string {
  58469. return s.String()
  58470. }
  58471. // SetCode sets the Code field's value.
  58472. func (s *VolumeStatusAction) SetCode(v string) *VolumeStatusAction {
  58473. s.Code = &v
  58474. return s
  58475. }
  58476. // SetDescription sets the Description field's value.
  58477. func (s *VolumeStatusAction) SetDescription(v string) *VolumeStatusAction {
  58478. s.Description = &v
  58479. return s
  58480. }
  58481. // SetEventId sets the EventId field's value.
  58482. func (s *VolumeStatusAction) SetEventId(v string) *VolumeStatusAction {
  58483. s.EventId = &v
  58484. return s
  58485. }
  58486. // SetEventType sets the EventType field's value.
  58487. func (s *VolumeStatusAction) SetEventType(v string) *VolumeStatusAction {
  58488. s.EventType = &v
  58489. return s
  58490. }
  58491. // Describes a volume status.
  58492. type VolumeStatusDetails struct {
  58493. _ struct{} `type:"structure"`
  58494. // The name of the volume status.
  58495. Name *string `locationName:"name" type:"string" enum:"VolumeStatusName"`
  58496. // The intended status of the volume status.
  58497. Status *string `locationName:"status" type:"string"`
  58498. }
  58499. // String returns the string representation
  58500. func (s VolumeStatusDetails) String() string {
  58501. return awsutil.Prettify(s)
  58502. }
  58503. // GoString returns the string representation
  58504. func (s VolumeStatusDetails) GoString() string {
  58505. return s.String()
  58506. }
  58507. // SetName sets the Name field's value.
  58508. func (s *VolumeStatusDetails) SetName(v string) *VolumeStatusDetails {
  58509. s.Name = &v
  58510. return s
  58511. }
  58512. // SetStatus sets the Status field's value.
  58513. func (s *VolumeStatusDetails) SetStatus(v string) *VolumeStatusDetails {
  58514. s.Status = &v
  58515. return s
  58516. }
  58517. // Describes a volume status event.
  58518. type VolumeStatusEvent struct {
  58519. _ struct{} `type:"structure"`
  58520. // A description of the event.
  58521. Description *string `locationName:"description" type:"string"`
  58522. // The ID of this event.
  58523. EventId *string `locationName:"eventId" type:"string"`
  58524. // The type of this event.
  58525. EventType *string `locationName:"eventType" type:"string"`
  58526. // The latest end time of the event.
  58527. NotAfter *time.Time `locationName:"notAfter" type:"timestamp" timestampFormat:"iso8601"`
  58528. // The earliest start time of the event.
  58529. NotBefore *time.Time `locationName:"notBefore" type:"timestamp" timestampFormat:"iso8601"`
  58530. }
  58531. // String returns the string representation
  58532. func (s VolumeStatusEvent) String() string {
  58533. return awsutil.Prettify(s)
  58534. }
  58535. // GoString returns the string representation
  58536. func (s VolumeStatusEvent) GoString() string {
  58537. return s.String()
  58538. }
  58539. // SetDescription sets the Description field's value.
  58540. func (s *VolumeStatusEvent) SetDescription(v string) *VolumeStatusEvent {
  58541. s.Description = &v
  58542. return s
  58543. }
  58544. // SetEventId sets the EventId field's value.
  58545. func (s *VolumeStatusEvent) SetEventId(v string) *VolumeStatusEvent {
  58546. s.EventId = &v
  58547. return s
  58548. }
  58549. // SetEventType sets the EventType field's value.
  58550. func (s *VolumeStatusEvent) SetEventType(v string) *VolumeStatusEvent {
  58551. s.EventType = &v
  58552. return s
  58553. }
  58554. // SetNotAfter sets the NotAfter field's value.
  58555. func (s *VolumeStatusEvent) SetNotAfter(v time.Time) *VolumeStatusEvent {
  58556. s.NotAfter = &v
  58557. return s
  58558. }
  58559. // SetNotBefore sets the NotBefore field's value.
  58560. func (s *VolumeStatusEvent) SetNotBefore(v time.Time) *VolumeStatusEvent {
  58561. s.NotBefore = &v
  58562. return s
  58563. }
  58564. // Describes the status of a volume.
  58565. type VolumeStatusInfo struct {
  58566. _ struct{} `type:"structure"`
  58567. // The details of the volume status.
  58568. Details []*VolumeStatusDetails `locationName:"details" locationNameList:"item" type:"list"`
  58569. // The status of the volume.
  58570. Status *string `locationName:"status" type:"string" enum:"VolumeStatusInfoStatus"`
  58571. }
  58572. // String returns the string representation
  58573. func (s VolumeStatusInfo) String() string {
  58574. return awsutil.Prettify(s)
  58575. }
  58576. // GoString returns the string representation
  58577. func (s VolumeStatusInfo) GoString() string {
  58578. return s.String()
  58579. }
  58580. // SetDetails sets the Details field's value.
  58581. func (s *VolumeStatusInfo) SetDetails(v []*VolumeStatusDetails) *VolumeStatusInfo {
  58582. s.Details = v
  58583. return s
  58584. }
  58585. // SetStatus sets the Status field's value.
  58586. func (s *VolumeStatusInfo) SetStatus(v string) *VolumeStatusInfo {
  58587. s.Status = &v
  58588. return s
  58589. }
  58590. // Describes the volume status.
  58591. type VolumeStatusItem struct {
  58592. _ struct{} `type:"structure"`
  58593. // The details of the operation.
  58594. Actions []*VolumeStatusAction `locationName:"actionsSet" locationNameList:"item" type:"list"`
  58595. // The Availability Zone of the volume.
  58596. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  58597. // A list of events associated with the volume.
  58598. Events []*VolumeStatusEvent `locationName:"eventsSet" locationNameList:"item" type:"list"`
  58599. // The volume ID.
  58600. VolumeId *string `locationName:"volumeId" type:"string"`
  58601. // The volume status.
  58602. VolumeStatus *VolumeStatusInfo `locationName:"volumeStatus" type:"structure"`
  58603. }
  58604. // String returns the string representation
  58605. func (s VolumeStatusItem) String() string {
  58606. return awsutil.Prettify(s)
  58607. }
  58608. // GoString returns the string representation
  58609. func (s VolumeStatusItem) GoString() string {
  58610. return s.String()
  58611. }
  58612. // SetActions sets the Actions field's value.
  58613. func (s *VolumeStatusItem) SetActions(v []*VolumeStatusAction) *VolumeStatusItem {
  58614. s.Actions = v
  58615. return s
  58616. }
  58617. // SetAvailabilityZone sets the AvailabilityZone field's value.
  58618. func (s *VolumeStatusItem) SetAvailabilityZone(v string) *VolumeStatusItem {
  58619. s.AvailabilityZone = &v
  58620. return s
  58621. }
  58622. // SetEvents sets the Events field's value.
  58623. func (s *VolumeStatusItem) SetEvents(v []*VolumeStatusEvent) *VolumeStatusItem {
  58624. s.Events = v
  58625. return s
  58626. }
  58627. // SetVolumeId sets the VolumeId field's value.
  58628. func (s *VolumeStatusItem) SetVolumeId(v string) *VolumeStatusItem {
  58629. s.VolumeId = &v
  58630. return s
  58631. }
  58632. // SetVolumeStatus sets the VolumeStatus field's value.
  58633. func (s *VolumeStatusItem) SetVolumeStatus(v *VolumeStatusInfo) *VolumeStatusItem {
  58634. s.VolumeStatus = v
  58635. return s
  58636. }
  58637. // Describes a VPC.
  58638. type Vpc struct {
  58639. _ struct{} `type:"structure"`
  58640. // The primary IPv4 CIDR block for the VPC.
  58641. CidrBlock *string `locationName:"cidrBlock" type:"string"`
  58642. // Information about the IPv4 CIDR blocks associated with the VPC.
  58643. CidrBlockAssociationSet []*VpcCidrBlockAssociation `locationName:"cidrBlockAssociationSet" locationNameList:"item" type:"list"`
  58644. // The ID of the set of DHCP options you've associated with the VPC (or default
  58645. // if the default options are associated with the VPC).
  58646. DhcpOptionsId *string `locationName:"dhcpOptionsId" type:"string"`
  58647. // The allowed tenancy of instances launched into the VPC.
  58648. InstanceTenancy *string `locationName:"instanceTenancy" type:"string" enum:"Tenancy"`
  58649. // Information about the IPv6 CIDR blocks associated with the VPC.
  58650. Ipv6CidrBlockAssociationSet []*VpcIpv6CidrBlockAssociation `locationName:"ipv6CidrBlockAssociationSet" locationNameList:"item" type:"list"`
  58651. // Indicates whether the VPC is the default VPC.
  58652. IsDefault *bool `locationName:"isDefault" type:"boolean"`
  58653. // The current state of the VPC.
  58654. State *string `locationName:"state" type:"string" enum:"VpcState"`
  58655. // Any tags assigned to the VPC.
  58656. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  58657. // The ID of the VPC.
  58658. VpcId *string `locationName:"vpcId" type:"string"`
  58659. }
  58660. // String returns the string representation
  58661. func (s Vpc) String() string {
  58662. return awsutil.Prettify(s)
  58663. }
  58664. // GoString returns the string representation
  58665. func (s Vpc) GoString() string {
  58666. return s.String()
  58667. }
  58668. // SetCidrBlock sets the CidrBlock field's value.
  58669. func (s *Vpc) SetCidrBlock(v string) *Vpc {
  58670. s.CidrBlock = &v
  58671. return s
  58672. }
  58673. // SetCidrBlockAssociationSet sets the CidrBlockAssociationSet field's value.
  58674. func (s *Vpc) SetCidrBlockAssociationSet(v []*VpcCidrBlockAssociation) *Vpc {
  58675. s.CidrBlockAssociationSet = v
  58676. return s
  58677. }
  58678. // SetDhcpOptionsId sets the DhcpOptionsId field's value.
  58679. func (s *Vpc) SetDhcpOptionsId(v string) *Vpc {
  58680. s.DhcpOptionsId = &v
  58681. return s
  58682. }
  58683. // SetInstanceTenancy sets the InstanceTenancy field's value.
  58684. func (s *Vpc) SetInstanceTenancy(v string) *Vpc {
  58685. s.InstanceTenancy = &v
  58686. return s
  58687. }
  58688. // SetIpv6CidrBlockAssociationSet sets the Ipv6CidrBlockAssociationSet field's value.
  58689. func (s *Vpc) SetIpv6CidrBlockAssociationSet(v []*VpcIpv6CidrBlockAssociation) *Vpc {
  58690. s.Ipv6CidrBlockAssociationSet = v
  58691. return s
  58692. }
  58693. // SetIsDefault sets the IsDefault field's value.
  58694. func (s *Vpc) SetIsDefault(v bool) *Vpc {
  58695. s.IsDefault = &v
  58696. return s
  58697. }
  58698. // SetState sets the State field's value.
  58699. func (s *Vpc) SetState(v string) *Vpc {
  58700. s.State = &v
  58701. return s
  58702. }
  58703. // SetTags sets the Tags field's value.
  58704. func (s *Vpc) SetTags(v []*Tag) *Vpc {
  58705. s.Tags = v
  58706. return s
  58707. }
  58708. // SetVpcId sets the VpcId field's value.
  58709. func (s *Vpc) SetVpcId(v string) *Vpc {
  58710. s.VpcId = &v
  58711. return s
  58712. }
  58713. // Describes an attachment between a virtual private gateway and a VPC.
  58714. type VpcAttachment struct {
  58715. _ struct{} `type:"structure"`
  58716. // The current state of the attachment.
  58717. State *string `locationName:"state" type:"string" enum:"AttachmentStatus"`
  58718. // The ID of the VPC.
  58719. VpcId *string `locationName:"vpcId" type:"string"`
  58720. }
  58721. // String returns the string representation
  58722. func (s VpcAttachment) String() string {
  58723. return awsutil.Prettify(s)
  58724. }
  58725. // GoString returns the string representation
  58726. func (s VpcAttachment) GoString() string {
  58727. return s.String()
  58728. }
  58729. // SetState sets the State field's value.
  58730. func (s *VpcAttachment) SetState(v string) *VpcAttachment {
  58731. s.State = &v
  58732. return s
  58733. }
  58734. // SetVpcId sets the VpcId field's value.
  58735. func (s *VpcAttachment) SetVpcId(v string) *VpcAttachment {
  58736. s.VpcId = &v
  58737. return s
  58738. }
  58739. // Describes an IPv4 CIDR block associated with a VPC.
  58740. type VpcCidrBlockAssociation struct {
  58741. _ struct{} `type:"structure"`
  58742. // The association ID for the IPv4 CIDR block.
  58743. AssociationId *string `locationName:"associationId" type:"string"`
  58744. // The IPv4 CIDR block.
  58745. CidrBlock *string `locationName:"cidrBlock" type:"string"`
  58746. // Information about the state of the CIDR block.
  58747. CidrBlockState *VpcCidrBlockState `locationName:"cidrBlockState" type:"structure"`
  58748. }
  58749. // String returns the string representation
  58750. func (s VpcCidrBlockAssociation) String() string {
  58751. return awsutil.Prettify(s)
  58752. }
  58753. // GoString returns the string representation
  58754. func (s VpcCidrBlockAssociation) GoString() string {
  58755. return s.String()
  58756. }
  58757. // SetAssociationId sets the AssociationId field's value.
  58758. func (s *VpcCidrBlockAssociation) SetAssociationId(v string) *VpcCidrBlockAssociation {
  58759. s.AssociationId = &v
  58760. return s
  58761. }
  58762. // SetCidrBlock sets the CidrBlock field's value.
  58763. func (s *VpcCidrBlockAssociation) SetCidrBlock(v string) *VpcCidrBlockAssociation {
  58764. s.CidrBlock = &v
  58765. return s
  58766. }
  58767. // SetCidrBlockState sets the CidrBlockState field's value.
  58768. func (s *VpcCidrBlockAssociation) SetCidrBlockState(v *VpcCidrBlockState) *VpcCidrBlockAssociation {
  58769. s.CidrBlockState = v
  58770. return s
  58771. }
  58772. // Describes the state of a CIDR block.
  58773. type VpcCidrBlockState struct {
  58774. _ struct{} `type:"structure"`
  58775. // The state of the CIDR block.
  58776. State *string `locationName:"state" type:"string" enum:"VpcCidrBlockStateCode"`
  58777. // A message about the status of the CIDR block, if applicable.
  58778. StatusMessage *string `locationName:"statusMessage" type:"string"`
  58779. }
  58780. // String returns the string representation
  58781. func (s VpcCidrBlockState) String() string {
  58782. return awsutil.Prettify(s)
  58783. }
  58784. // GoString returns the string representation
  58785. func (s VpcCidrBlockState) GoString() string {
  58786. return s.String()
  58787. }
  58788. // SetState sets the State field's value.
  58789. func (s *VpcCidrBlockState) SetState(v string) *VpcCidrBlockState {
  58790. s.State = &v
  58791. return s
  58792. }
  58793. // SetStatusMessage sets the StatusMessage field's value.
  58794. func (s *VpcCidrBlockState) SetStatusMessage(v string) *VpcCidrBlockState {
  58795. s.StatusMessage = &v
  58796. return s
  58797. }
  58798. // Describes whether a VPC is enabled for ClassicLink.
  58799. type VpcClassicLink struct {
  58800. _ struct{} `type:"structure"`
  58801. // Indicates whether the VPC is enabled for ClassicLink.
  58802. ClassicLinkEnabled *bool `locationName:"classicLinkEnabled" type:"boolean"`
  58803. // Any tags assigned to the VPC.
  58804. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  58805. // The ID of the VPC.
  58806. VpcId *string `locationName:"vpcId" type:"string"`
  58807. }
  58808. // String returns the string representation
  58809. func (s VpcClassicLink) String() string {
  58810. return awsutil.Prettify(s)
  58811. }
  58812. // GoString returns the string representation
  58813. func (s VpcClassicLink) GoString() string {
  58814. return s.String()
  58815. }
  58816. // SetClassicLinkEnabled sets the ClassicLinkEnabled field's value.
  58817. func (s *VpcClassicLink) SetClassicLinkEnabled(v bool) *VpcClassicLink {
  58818. s.ClassicLinkEnabled = &v
  58819. return s
  58820. }
  58821. // SetTags sets the Tags field's value.
  58822. func (s *VpcClassicLink) SetTags(v []*Tag) *VpcClassicLink {
  58823. s.Tags = v
  58824. return s
  58825. }
  58826. // SetVpcId sets the VpcId field's value.
  58827. func (s *VpcClassicLink) SetVpcId(v string) *VpcClassicLink {
  58828. s.VpcId = &v
  58829. return s
  58830. }
  58831. // Describes a VPC endpoint.
  58832. type VpcEndpoint struct {
  58833. _ struct{} `type:"structure"`
  58834. // The date and time the VPC endpoint was created.
  58835. CreationTimestamp *time.Time `locationName:"creationTimestamp" type:"timestamp" timestampFormat:"iso8601"`
  58836. // (Interface endpoint) The DNS entries for the endpoint.
  58837. DnsEntries []*DnsEntry `locationName:"dnsEntrySet" locationNameList:"item" type:"list"`
  58838. // (Interface endpoint) Information about the security groups associated with
  58839. // the network interface.
  58840. Groups []*SecurityGroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  58841. // (Interface endpoint) One or more network interfaces for the endpoint.
  58842. NetworkInterfaceIds []*string `locationName:"networkInterfaceIdSet" locationNameList:"item" type:"list"`
  58843. // The policy document associated with the endpoint, if applicable.
  58844. PolicyDocument *string `locationName:"policyDocument" type:"string"`
  58845. // (Interface endpoint) Indicates whether the VPC is associated with a private
  58846. // hosted zone.
  58847. PrivateDnsEnabled *bool `locationName:"privateDnsEnabled" type:"boolean"`
  58848. // (Gateway endpoint) One or more route tables associated with the endpoint.
  58849. RouteTableIds []*string `locationName:"routeTableIdSet" locationNameList:"item" type:"list"`
  58850. // The name of the service to which the endpoint is associated.
  58851. ServiceName *string `locationName:"serviceName" type:"string"`
  58852. // The state of the VPC endpoint.
  58853. State *string `locationName:"state" type:"string" enum:"State"`
  58854. // (Interface endpoint) One or more subnets in which the endpoint is located.
  58855. SubnetIds []*string `locationName:"subnetIdSet" locationNameList:"item" type:"list"`
  58856. // The ID of the VPC endpoint.
  58857. VpcEndpointId *string `locationName:"vpcEndpointId" type:"string"`
  58858. // The type of endpoint.
  58859. VpcEndpointType *string `locationName:"vpcEndpointType" type:"string" enum:"VpcEndpointType"`
  58860. // The ID of the VPC to which the endpoint is associated.
  58861. VpcId *string `locationName:"vpcId" type:"string"`
  58862. }
  58863. // String returns the string representation
  58864. func (s VpcEndpoint) String() string {
  58865. return awsutil.Prettify(s)
  58866. }
  58867. // GoString returns the string representation
  58868. func (s VpcEndpoint) GoString() string {
  58869. return s.String()
  58870. }
  58871. // SetCreationTimestamp sets the CreationTimestamp field's value.
  58872. func (s *VpcEndpoint) SetCreationTimestamp(v time.Time) *VpcEndpoint {
  58873. s.CreationTimestamp = &v
  58874. return s
  58875. }
  58876. // SetDnsEntries sets the DnsEntries field's value.
  58877. func (s *VpcEndpoint) SetDnsEntries(v []*DnsEntry) *VpcEndpoint {
  58878. s.DnsEntries = v
  58879. return s
  58880. }
  58881. // SetGroups sets the Groups field's value.
  58882. func (s *VpcEndpoint) SetGroups(v []*SecurityGroupIdentifier) *VpcEndpoint {
  58883. s.Groups = v
  58884. return s
  58885. }
  58886. // SetNetworkInterfaceIds sets the NetworkInterfaceIds field's value.
  58887. func (s *VpcEndpoint) SetNetworkInterfaceIds(v []*string) *VpcEndpoint {
  58888. s.NetworkInterfaceIds = v
  58889. return s
  58890. }
  58891. // SetPolicyDocument sets the PolicyDocument field's value.
  58892. func (s *VpcEndpoint) SetPolicyDocument(v string) *VpcEndpoint {
  58893. s.PolicyDocument = &v
  58894. return s
  58895. }
  58896. // SetPrivateDnsEnabled sets the PrivateDnsEnabled field's value.
  58897. func (s *VpcEndpoint) SetPrivateDnsEnabled(v bool) *VpcEndpoint {
  58898. s.PrivateDnsEnabled = &v
  58899. return s
  58900. }
  58901. // SetRouteTableIds sets the RouteTableIds field's value.
  58902. func (s *VpcEndpoint) SetRouteTableIds(v []*string) *VpcEndpoint {
  58903. s.RouteTableIds = v
  58904. return s
  58905. }
  58906. // SetServiceName sets the ServiceName field's value.
  58907. func (s *VpcEndpoint) SetServiceName(v string) *VpcEndpoint {
  58908. s.ServiceName = &v
  58909. return s
  58910. }
  58911. // SetState sets the State field's value.
  58912. func (s *VpcEndpoint) SetState(v string) *VpcEndpoint {
  58913. s.State = &v
  58914. return s
  58915. }
  58916. // SetSubnetIds sets the SubnetIds field's value.
  58917. func (s *VpcEndpoint) SetSubnetIds(v []*string) *VpcEndpoint {
  58918. s.SubnetIds = v
  58919. return s
  58920. }
  58921. // SetVpcEndpointId sets the VpcEndpointId field's value.
  58922. func (s *VpcEndpoint) SetVpcEndpointId(v string) *VpcEndpoint {
  58923. s.VpcEndpointId = &v
  58924. return s
  58925. }
  58926. // SetVpcEndpointType sets the VpcEndpointType field's value.
  58927. func (s *VpcEndpoint) SetVpcEndpointType(v string) *VpcEndpoint {
  58928. s.VpcEndpointType = &v
  58929. return s
  58930. }
  58931. // SetVpcId sets the VpcId field's value.
  58932. func (s *VpcEndpoint) SetVpcId(v string) *VpcEndpoint {
  58933. s.VpcId = &v
  58934. return s
  58935. }
  58936. // Describes a VPC endpoint connection to a service.
  58937. type VpcEndpointConnection struct {
  58938. _ struct{} `type:"structure"`
  58939. // The date and time the VPC endpoint was created.
  58940. CreationTimestamp *time.Time `locationName:"creationTimestamp" type:"timestamp" timestampFormat:"iso8601"`
  58941. // The ID of the service to which the endpoint is connected.
  58942. ServiceId *string `locationName:"serviceId" type:"string"`
  58943. // The ID of the VPC endpoint.
  58944. VpcEndpointId *string `locationName:"vpcEndpointId" type:"string"`
  58945. // The AWS account ID of the owner of the VPC endpoint.
  58946. VpcEndpointOwner *string `locationName:"vpcEndpointOwner" type:"string"`
  58947. // The state of the VPC endpoint.
  58948. VpcEndpointState *string `locationName:"vpcEndpointState" type:"string" enum:"State"`
  58949. }
  58950. // String returns the string representation
  58951. func (s VpcEndpointConnection) String() string {
  58952. return awsutil.Prettify(s)
  58953. }
  58954. // GoString returns the string representation
  58955. func (s VpcEndpointConnection) GoString() string {
  58956. return s.String()
  58957. }
  58958. // SetCreationTimestamp sets the CreationTimestamp field's value.
  58959. func (s *VpcEndpointConnection) SetCreationTimestamp(v time.Time) *VpcEndpointConnection {
  58960. s.CreationTimestamp = &v
  58961. return s
  58962. }
  58963. // SetServiceId sets the ServiceId field's value.
  58964. func (s *VpcEndpointConnection) SetServiceId(v string) *VpcEndpointConnection {
  58965. s.ServiceId = &v
  58966. return s
  58967. }
  58968. // SetVpcEndpointId sets the VpcEndpointId field's value.
  58969. func (s *VpcEndpointConnection) SetVpcEndpointId(v string) *VpcEndpointConnection {
  58970. s.VpcEndpointId = &v
  58971. return s
  58972. }
  58973. // SetVpcEndpointOwner sets the VpcEndpointOwner field's value.
  58974. func (s *VpcEndpointConnection) SetVpcEndpointOwner(v string) *VpcEndpointConnection {
  58975. s.VpcEndpointOwner = &v
  58976. return s
  58977. }
  58978. // SetVpcEndpointState sets the VpcEndpointState field's value.
  58979. func (s *VpcEndpointConnection) SetVpcEndpointState(v string) *VpcEndpointConnection {
  58980. s.VpcEndpointState = &v
  58981. return s
  58982. }
  58983. // Describes an IPv6 CIDR block associated with a VPC.
  58984. type VpcIpv6CidrBlockAssociation struct {
  58985. _ struct{} `type:"structure"`
  58986. // The association ID for the IPv6 CIDR block.
  58987. AssociationId *string `locationName:"associationId" type:"string"`
  58988. // The IPv6 CIDR block.
  58989. Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"`
  58990. // Information about the state of the CIDR block.
  58991. Ipv6CidrBlockState *VpcCidrBlockState `locationName:"ipv6CidrBlockState" type:"structure"`
  58992. }
  58993. // String returns the string representation
  58994. func (s VpcIpv6CidrBlockAssociation) String() string {
  58995. return awsutil.Prettify(s)
  58996. }
  58997. // GoString returns the string representation
  58998. func (s VpcIpv6CidrBlockAssociation) GoString() string {
  58999. return s.String()
  59000. }
  59001. // SetAssociationId sets the AssociationId field's value.
  59002. func (s *VpcIpv6CidrBlockAssociation) SetAssociationId(v string) *VpcIpv6CidrBlockAssociation {
  59003. s.AssociationId = &v
  59004. return s
  59005. }
  59006. // SetIpv6CidrBlock sets the Ipv6CidrBlock field's value.
  59007. func (s *VpcIpv6CidrBlockAssociation) SetIpv6CidrBlock(v string) *VpcIpv6CidrBlockAssociation {
  59008. s.Ipv6CidrBlock = &v
  59009. return s
  59010. }
  59011. // SetIpv6CidrBlockState sets the Ipv6CidrBlockState field's value.
  59012. func (s *VpcIpv6CidrBlockAssociation) SetIpv6CidrBlockState(v *VpcCidrBlockState) *VpcIpv6CidrBlockAssociation {
  59013. s.Ipv6CidrBlockState = v
  59014. return s
  59015. }
  59016. // Describes a VPC peering connection.
  59017. type VpcPeeringConnection struct {
  59018. _ struct{} `type:"structure"`
  59019. // Information about the accepter VPC. CIDR block information is only returned
  59020. // when describing an active VPC peering connection.
  59021. AccepterVpcInfo *VpcPeeringConnectionVpcInfo `locationName:"accepterVpcInfo" type:"structure"`
  59022. // The time that an unaccepted VPC peering connection will expire.
  59023. ExpirationTime *time.Time `locationName:"expirationTime" type:"timestamp" timestampFormat:"iso8601"`
  59024. // Information about the requester VPC. CIDR block information is only returned
  59025. // when describing an active VPC peering connection.
  59026. RequesterVpcInfo *VpcPeeringConnectionVpcInfo `locationName:"requesterVpcInfo" type:"structure"`
  59027. // The status of the VPC peering connection.
  59028. Status *VpcPeeringConnectionStateReason `locationName:"status" type:"structure"`
  59029. // Any tags assigned to the resource.
  59030. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  59031. // The ID of the VPC peering connection.
  59032. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
  59033. }
  59034. // String returns the string representation
  59035. func (s VpcPeeringConnection) String() string {
  59036. return awsutil.Prettify(s)
  59037. }
  59038. // GoString returns the string representation
  59039. func (s VpcPeeringConnection) GoString() string {
  59040. return s.String()
  59041. }
  59042. // SetAccepterVpcInfo sets the AccepterVpcInfo field's value.
  59043. func (s *VpcPeeringConnection) SetAccepterVpcInfo(v *VpcPeeringConnectionVpcInfo) *VpcPeeringConnection {
  59044. s.AccepterVpcInfo = v
  59045. return s
  59046. }
  59047. // SetExpirationTime sets the ExpirationTime field's value.
  59048. func (s *VpcPeeringConnection) SetExpirationTime(v time.Time) *VpcPeeringConnection {
  59049. s.ExpirationTime = &v
  59050. return s
  59051. }
  59052. // SetRequesterVpcInfo sets the RequesterVpcInfo field's value.
  59053. func (s *VpcPeeringConnection) SetRequesterVpcInfo(v *VpcPeeringConnectionVpcInfo) *VpcPeeringConnection {
  59054. s.RequesterVpcInfo = v
  59055. return s
  59056. }
  59057. // SetStatus sets the Status field's value.
  59058. func (s *VpcPeeringConnection) SetStatus(v *VpcPeeringConnectionStateReason) *VpcPeeringConnection {
  59059. s.Status = v
  59060. return s
  59061. }
  59062. // SetTags sets the Tags field's value.
  59063. func (s *VpcPeeringConnection) SetTags(v []*Tag) *VpcPeeringConnection {
  59064. s.Tags = v
  59065. return s
  59066. }
  59067. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  59068. func (s *VpcPeeringConnection) SetVpcPeeringConnectionId(v string) *VpcPeeringConnection {
  59069. s.VpcPeeringConnectionId = &v
  59070. return s
  59071. }
  59072. // Describes the VPC peering connection options.
  59073. type VpcPeeringConnectionOptionsDescription struct {
  59074. _ struct{} `type:"structure"`
  59075. // Indicates whether a local VPC can resolve public DNS hostnames to private
  59076. // IP addresses when queried from instances in a peer VPC.
  59077. AllowDnsResolutionFromRemoteVpc *bool `locationName:"allowDnsResolutionFromRemoteVpc" type:"boolean"`
  59078. // Indicates whether a local ClassicLink connection can communicate with the
  59079. // peer VPC over the VPC peering connection.
  59080. AllowEgressFromLocalClassicLinkToRemoteVpc *bool `locationName:"allowEgressFromLocalClassicLinkToRemoteVpc" type:"boolean"`
  59081. // Indicates whether a local VPC can communicate with a ClassicLink connection
  59082. // in the peer VPC over the VPC peering connection.
  59083. AllowEgressFromLocalVpcToRemoteClassicLink *bool `locationName:"allowEgressFromLocalVpcToRemoteClassicLink" type:"boolean"`
  59084. }
  59085. // String returns the string representation
  59086. func (s VpcPeeringConnectionOptionsDescription) String() string {
  59087. return awsutil.Prettify(s)
  59088. }
  59089. // GoString returns the string representation
  59090. func (s VpcPeeringConnectionOptionsDescription) GoString() string {
  59091. return s.String()
  59092. }
  59093. // SetAllowDnsResolutionFromRemoteVpc sets the AllowDnsResolutionFromRemoteVpc field's value.
  59094. func (s *VpcPeeringConnectionOptionsDescription) SetAllowDnsResolutionFromRemoteVpc(v bool) *VpcPeeringConnectionOptionsDescription {
  59095. s.AllowDnsResolutionFromRemoteVpc = &v
  59096. return s
  59097. }
  59098. // SetAllowEgressFromLocalClassicLinkToRemoteVpc sets the AllowEgressFromLocalClassicLinkToRemoteVpc field's value.
  59099. func (s *VpcPeeringConnectionOptionsDescription) SetAllowEgressFromLocalClassicLinkToRemoteVpc(v bool) *VpcPeeringConnectionOptionsDescription {
  59100. s.AllowEgressFromLocalClassicLinkToRemoteVpc = &v
  59101. return s
  59102. }
  59103. // SetAllowEgressFromLocalVpcToRemoteClassicLink sets the AllowEgressFromLocalVpcToRemoteClassicLink field's value.
  59104. func (s *VpcPeeringConnectionOptionsDescription) SetAllowEgressFromLocalVpcToRemoteClassicLink(v bool) *VpcPeeringConnectionOptionsDescription {
  59105. s.AllowEgressFromLocalVpcToRemoteClassicLink = &v
  59106. return s
  59107. }
  59108. // Describes the status of a VPC peering connection.
  59109. type VpcPeeringConnectionStateReason struct {
  59110. _ struct{} `type:"structure"`
  59111. // The status of the VPC peering connection.
  59112. Code *string `locationName:"code" type:"string" enum:"VpcPeeringConnectionStateReasonCode"`
  59113. // A message that provides more information about the status, if applicable.
  59114. Message *string `locationName:"message" type:"string"`
  59115. }
  59116. // String returns the string representation
  59117. func (s VpcPeeringConnectionStateReason) String() string {
  59118. return awsutil.Prettify(s)
  59119. }
  59120. // GoString returns the string representation
  59121. func (s VpcPeeringConnectionStateReason) GoString() string {
  59122. return s.String()
  59123. }
  59124. // SetCode sets the Code field's value.
  59125. func (s *VpcPeeringConnectionStateReason) SetCode(v string) *VpcPeeringConnectionStateReason {
  59126. s.Code = &v
  59127. return s
  59128. }
  59129. // SetMessage sets the Message field's value.
  59130. func (s *VpcPeeringConnectionStateReason) SetMessage(v string) *VpcPeeringConnectionStateReason {
  59131. s.Message = &v
  59132. return s
  59133. }
  59134. // Describes a VPC in a VPC peering connection.
  59135. type VpcPeeringConnectionVpcInfo struct {
  59136. _ struct{} `type:"structure"`
  59137. // The IPv4 CIDR block for the VPC.
  59138. CidrBlock *string `locationName:"cidrBlock" type:"string"`
  59139. // Information about the IPv4 CIDR blocks for the VPC.
  59140. CidrBlockSet []*CidrBlock `locationName:"cidrBlockSet" locationNameList:"item" type:"list"`
  59141. // The IPv6 CIDR block for the VPC.
  59142. Ipv6CidrBlockSet []*Ipv6CidrBlock `locationName:"ipv6CidrBlockSet" locationNameList:"item" type:"list"`
  59143. // The AWS account ID of the VPC owner.
  59144. OwnerId *string `locationName:"ownerId" type:"string"`
  59145. // Information about the VPC peering connection options for the accepter or
  59146. // requester VPC.
  59147. PeeringOptions *VpcPeeringConnectionOptionsDescription `locationName:"peeringOptions" type:"structure"`
  59148. // The region in which the VPC is located.
  59149. Region *string `locationName:"region" type:"string"`
  59150. // The ID of the VPC.
  59151. VpcId *string `locationName:"vpcId" type:"string"`
  59152. }
  59153. // String returns the string representation
  59154. func (s VpcPeeringConnectionVpcInfo) String() string {
  59155. return awsutil.Prettify(s)
  59156. }
  59157. // GoString returns the string representation
  59158. func (s VpcPeeringConnectionVpcInfo) GoString() string {
  59159. return s.String()
  59160. }
  59161. // SetCidrBlock sets the CidrBlock field's value.
  59162. func (s *VpcPeeringConnectionVpcInfo) SetCidrBlock(v string) *VpcPeeringConnectionVpcInfo {
  59163. s.CidrBlock = &v
  59164. return s
  59165. }
  59166. // SetCidrBlockSet sets the CidrBlockSet field's value.
  59167. func (s *VpcPeeringConnectionVpcInfo) SetCidrBlockSet(v []*CidrBlock) *VpcPeeringConnectionVpcInfo {
  59168. s.CidrBlockSet = v
  59169. return s
  59170. }
  59171. // SetIpv6CidrBlockSet sets the Ipv6CidrBlockSet field's value.
  59172. func (s *VpcPeeringConnectionVpcInfo) SetIpv6CidrBlockSet(v []*Ipv6CidrBlock) *VpcPeeringConnectionVpcInfo {
  59173. s.Ipv6CidrBlockSet = v
  59174. return s
  59175. }
  59176. // SetOwnerId sets the OwnerId field's value.
  59177. func (s *VpcPeeringConnectionVpcInfo) SetOwnerId(v string) *VpcPeeringConnectionVpcInfo {
  59178. s.OwnerId = &v
  59179. return s
  59180. }
  59181. // SetPeeringOptions sets the PeeringOptions field's value.
  59182. func (s *VpcPeeringConnectionVpcInfo) SetPeeringOptions(v *VpcPeeringConnectionOptionsDescription) *VpcPeeringConnectionVpcInfo {
  59183. s.PeeringOptions = v
  59184. return s
  59185. }
  59186. // SetRegion sets the Region field's value.
  59187. func (s *VpcPeeringConnectionVpcInfo) SetRegion(v string) *VpcPeeringConnectionVpcInfo {
  59188. s.Region = &v
  59189. return s
  59190. }
  59191. // SetVpcId sets the VpcId field's value.
  59192. func (s *VpcPeeringConnectionVpcInfo) SetVpcId(v string) *VpcPeeringConnectionVpcInfo {
  59193. s.VpcId = &v
  59194. return s
  59195. }
  59196. // Describes a VPN connection.
  59197. type VpnConnection struct {
  59198. _ struct{} `type:"structure"`
  59199. // The category of the VPN connection. A value of VPN indicates an AWS VPN connection.
  59200. // A value of VPN-Classic indicates an AWS Classic VPN connection. For more
  59201. // information, see AWS Managed VPN Categories (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html#vpn-categories)
  59202. // in the Amazon Virtual Private Cloud User Guide.
  59203. Category *string `locationName:"category" type:"string"`
  59204. // The configuration information for the VPN connection's customer gateway (in
  59205. // the native XML format). This element is always present in the CreateVpnConnection
  59206. // response; however, it's present in the DescribeVpnConnections response only
  59207. // if the VPN connection is in the pending or available state.
  59208. CustomerGatewayConfiguration *string `locationName:"customerGatewayConfiguration" type:"string"`
  59209. // The ID of the customer gateway at your end of the VPN connection.
  59210. CustomerGatewayId *string `locationName:"customerGatewayId" type:"string"`
  59211. // The VPN connection options.
  59212. Options *VpnConnectionOptions `locationName:"options" type:"structure"`
  59213. // The static routes associated with the VPN connection.
  59214. Routes []*VpnStaticRoute `locationName:"routes" locationNameList:"item" type:"list"`
  59215. // The current state of the VPN connection.
  59216. State *string `locationName:"state" type:"string" enum:"VpnState"`
  59217. // Any tags assigned to the VPN connection.
  59218. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  59219. // The type of VPN connection.
  59220. Type *string `locationName:"type" type:"string" enum:"GatewayType"`
  59221. // Information about the VPN tunnel.
  59222. VgwTelemetry []*VgwTelemetry `locationName:"vgwTelemetry" locationNameList:"item" type:"list"`
  59223. // The ID of the VPN connection.
  59224. VpnConnectionId *string `locationName:"vpnConnectionId" type:"string"`
  59225. // The ID of the virtual private gateway at the AWS side of the VPN connection.
  59226. VpnGatewayId *string `locationName:"vpnGatewayId" type:"string"`
  59227. }
  59228. // String returns the string representation
  59229. func (s VpnConnection) String() string {
  59230. return awsutil.Prettify(s)
  59231. }
  59232. // GoString returns the string representation
  59233. func (s VpnConnection) GoString() string {
  59234. return s.String()
  59235. }
  59236. // SetCategory sets the Category field's value.
  59237. func (s *VpnConnection) SetCategory(v string) *VpnConnection {
  59238. s.Category = &v
  59239. return s
  59240. }
  59241. // SetCustomerGatewayConfiguration sets the CustomerGatewayConfiguration field's value.
  59242. func (s *VpnConnection) SetCustomerGatewayConfiguration(v string) *VpnConnection {
  59243. s.CustomerGatewayConfiguration = &v
  59244. return s
  59245. }
  59246. // SetCustomerGatewayId sets the CustomerGatewayId field's value.
  59247. func (s *VpnConnection) SetCustomerGatewayId(v string) *VpnConnection {
  59248. s.CustomerGatewayId = &v
  59249. return s
  59250. }
  59251. // SetOptions sets the Options field's value.
  59252. func (s *VpnConnection) SetOptions(v *VpnConnectionOptions) *VpnConnection {
  59253. s.Options = v
  59254. return s
  59255. }
  59256. // SetRoutes sets the Routes field's value.
  59257. func (s *VpnConnection) SetRoutes(v []*VpnStaticRoute) *VpnConnection {
  59258. s.Routes = v
  59259. return s
  59260. }
  59261. // SetState sets the State field's value.
  59262. func (s *VpnConnection) SetState(v string) *VpnConnection {
  59263. s.State = &v
  59264. return s
  59265. }
  59266. // SetTags sets the Tags field's value.
  59267. func (s *VpnConnection) SetTags(v []*Tag) *VpnConnection {
  59268. s.Tags = v
  59269. return s
  59270. }
  59271. // SetType sets the Type field's value.
  59272. func (s *VpnConnection) SetType(v string) *VpnConnection {
  59273. s.Type = &v
  59274. return s
  59275. }
  59276. // SetVgwTelemetry sets the VgwTelemetry field's value.
  59277. func (s *VpnConnection) SetVgwTelemetry(v []*VgwTelemetry) *VpnConnection {
  59278. s.VgwTelemetry = v
  59279. return s
  59280. }
  59281. // SetVpnConnectionId sets the VpnConnectionId field's value.
  59282. func (s *VpnConnection) SetVpnConnectionId(v string) *VpnConnection {
  59283. s.VpnConnectionId = &v
  59284. return s
  59285. }
  59286. // SetVpnGatewayId sets the VpnGatewayId field's value.
  59287. func (s *VpnConnection) SetVpnGatewayId(v string) *VpnConnection {
  59288. s.VpnGatewayId = &v
  59289. return s
  59290. }
  59291. // Describes VPN connection options.
  59292. type VpnConnectionOptions struct {
  59293. _ struct{} `type:"structure"`
  59294. // Indicates whether the VPN connection uses static routes only. Static routes
  59295. // must be used for devices that don't support BGP.
  59296. StaticRoutesOnly *bool `locationName:"staticRoutesOnly" type:"boolean"`
  59297. }
  59298. // String returns the string representation
  59299. func (s VpnConnectionOptions) String() string {
  59300. return awsutil.Prettify(s)
  59301. }
  59302. // GoString returns the string representation
  59303. func (s VpnConnectionOptions) GoString() string {
  59304. return s.String()
  59305. }
  59306. // SetStaticRoutesOnly sets the StaticRoutesOnly field's value.
  59307. func (s *VpnConnectionOptions) SetStaticRoutesOnly(v bool) *VpnConnectionOptions {
  59308. s.StaticRoutesOnly = &v
  59309. return s
  59310. }
  59311. // Describes VPN connection options.
  59312. type VpnConnectionOptionsSpecification struct {
  59313. _ struct{} `type:"structure"`
  59314. // Indicate whether the VPN connection uses static routes only. If you are creating
  59315. // a VPN connection for a device that does not support BGP, you must specify
  59316. // true. Use CreateVpnConnectionRoute to create a static route.
  59317. //
  59318. // Default: false
  59319. StaticRoutesOnly *bool `locationName:"staticRoutesOnly" type:"boolean"`
  59320. // The tunnel options for the VPN connection.
  59321. TunnelOptions []*VpnTunnelOptionsSpecification `locationNameList:"item" type:"list"`
  59322. }
  59323. // String returns the string representation
  59324. func (s VpnConnectionOptionsSpecification) String() string {
  59325. return awsutil.Prettify(s)
  59326. }
  59327. // GoString returns the string representation
  59328. func (s VpnConnectionOptionsSpecification) GoString() string {
  59329. return s.String()
  59330. }
  59331. // SetStaticRoutesOnly sets the StaticRoutesOnly field's value.
  59332. func (s *VpnConnectionOptionsSpecification) SetStaticRoutesOnly(v bool) *VpnConnectionOptionsSpecification {
  59333. s.StaticRoutesOnly = &v
  59334. return s
  59335. }
  59336. // SetTunnelOptions sets the TunnelOptions field's value.
  59337. func (s *VpnConnectionOptionsSpecification) SetTunnelOptions(v []*VpnTunnelOptionsSpecification) *VpnConnectionOptionsSpecification {
  59338. s.TunnelOptions = v
  59339. return s
  59340. }
  59341. // Describes a virtual private gateway.
  59342. type VpnGateway struct {
  59343. _ struct{} `type:"structure"`
  59344. // The private Autonomous System Number (ASN) for the Amazon side of a BGP session.
  59345. AmazonSideAsn *int64 `locationName:"amazonSideAsn" type:"long"`
  59346. // The Availability Zone where the virtual private gateway was created, if applicable.
  59347. // This field may be empty or not returned.
  59348. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  59349. // The current state of the virtual private gateway.
  59350. State *string `locationName:"state" type:"string" enum:"VpnState"`
  59351. // Any tags assigned to the virtual private gateway.
  59352. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  59353. // The type of VPN connection the virtual private gateway supports.
  59354. Type *string `locationName:"type" type:"string" enum:"GatewayType"`
  59355. // Any VPCs attached to the virtual private gateway.
  59356. VpcAttachments []*VpcAttachment `locationName:"attachments" locationNameList:"item" type:"list"`
  59357. // The ID of the virtual private gateway.
  59358. VpnGatewayId *string `locationName:"vpnGatewayId" type:"string"`
  59359. }
  59360. // String returns the string representation
  59361. func (s VpnGateway) String() string {
  59362. return awsutil.Prettify(s)
  59363. }
  59364. // GoString returns the string representation
  59365. func (s VpnGateway) GoString() string {
  59366. return s.String()
  59367. }
  59368. // SetAmazonSideAsn sets the AmazonSideAsn field's value.
  59369. func (s *VpnGateway) SetAmazonSideAsn(v int64) *VpnGateway {
  59370. s.AmazonSideAsn = &v
  59371. return s
  59372. }
  59373. // SetAvailabilityZone sets the AvailabilityZone field's value.
  59374. func (s *VpnGateway) SetAvailabilityZone(v string) *VpnGateway {
  59375. s.AvailabilityZone = &v
  59376. return s
  59377. }
  59378. // SetState sets the State field's value.
  59379. func (s *VpnGateway) SetState(v string) *VpnGateway {
  59380. s.State = &v
  59381. return s
  59382. }
  59383. // SetTags sets the Tags field's value.
  59384. func (s *VpnGateway) SetTags(v []*Tag) *VpnGateway {
  59385. s.Tags = v
  59386. return s
  59387. }
  59388. // SetType sets the Type field's value.
  59389. func (s *VpnGateway) SetType(v string) *VpnGateway {
  59390. s.Type = &v
  59391. return s
  59392. }
  59393. // SetVpcAttachments sets the VpcAttachments field's value.
  59394. func (s *VpnGateway) SetVpcAttachments(v []*VpcAttachment) *VpnGateway {
  59395. s.VpcAttachments = v
  59396. return s
  59397. }
  59398. // SetVpnGatewayId sets the VpnGatewayId field's value.
  59399. func (s *VpnGateway) SetVpnGatewayId(v string) *VpnGateway {
  59400. s.VpnGatewayId = &v
  59401. return s
  59402. }
  59403. // Describes a static route for a VPN connection.
  59404. type VpnStaticRoute struct {
  59405. _ struct{} `type:"structure"`
  59406. // The CIDR block associated with the local subnet of the customer data center.
  59407. DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"`
  59408. // Indicates how the routes were provided.
  59409. Source *string `locationName:"source" type:"string" enum:"VpnStaticRouteSource"`
  59410. // The current state of the static route.
  59411. State *string `locationName:"state" type:"string" enum:"VpnState"`
  59412. }
  59413. // String returns the string representation
  59414. func (s VpnStaticRoute) String() string {
  59415. return awsutil.Prettify(s)
  59416. }
  59417. // GoString returns the string representation
  59418. func (s VpnStaticRoute) GoString() string {
  59419. return s.String()
  59420. }
  59421. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  59422. func (s *VpnStaticRoute) SetDestinationCidrBlock(v string) *VpnStaticRoute {
  59423. s.DestinationCidrBlock = &v
  59424. return s
  59425. }
  59426. // SetSource sets the Source field's value.
  59427. func (s *VpnStaticRoute) SetSource(v string) *VpnStaticRoute {
  59428. s.Source = &v
  59429. return s
  59430. }
  59431. // SetState sets the State field's value.
  59432. func (s *VpnStaticRoute) SetState(v string) *VpnStaticRoute {
  59433. s.State = &v
  59434. return s
  59435. }
  59436. // The tunnel options for a VPN connection.
  59437. type VpnTunnelOptionsSpecification struct {
  59438. _ struct{} `type:"structure"`
  59439. // The pre-shared key (PSK) to establish initial authentication between the
  59440. // virtual private gateway and customer gateway.
  59441. //
  59442. // Constraints: Allowed characters are alphanumeric characters and ._. Must
  59443. // be between 8 and 64 characters in length and cannot start with zero (0).
  59444. PreSharedKey *string `type:"string"`
  59445. // The range of inside IP addresses for the tunnel. Any specified CIDR blocks
  59446. // must be unique across all VPN connections that use the same virtual private
  59447. // gateway.
  59448. //
  59449. // Constraints: A size /30 CIDR block from the 169.254.0.0/16 range. The following
  59450. // CIDR blocks are reserved and cannot be used:
  59451. //
  59452. // * 169.254.0.0/30
  59453. //
  59454. // * 169.254.1.0/30
  59455. //
  59456. // * 169.254.2.0/30
  59457. //
  59458. // * 169.254.3.0/30
  59459. //
  59460. // * 169.254.4.0/30
  59461. //
  59462. // * 169.254.5.0/30
  59463. //
  59464. // * 169.254.169.252/30
  59465. TunnelInsideCidr *string `type:"string"`
  59466. }
  59467. // String returns the string representation
  59468. func (s VpnTunnelOptionsSpecification) String() string {
  59469. return awsutil.Prettify(s)
  59470. }
  59471. // GoString returns the string representation
  59472. func (s VpnTunnelOptionsSpecification) GoString() string {
  59473. return s.String()
  59474. }
  59475. // SetPreSharedKey sets the PreSharedKey field's value.
  59476. func (s *VpnTunnelOptionsSpecification) SetPreSharedKey(v string) *VpnTunnelOptionsSpecification {
  59477. s.PreSharedKey = &v
  59478. return s
  59479. }
  59480. // SetTunnelInsideCidr sets the TunnelInsideCidr field's value.
  59481. func (s *VpnTunnelOptionsSpecification) SetTunnelInsideCidr(v string) *VpnTunnelOptionsSpecification {
  59482. s.TunnelInsideCidr = &v
  59483. return s
  59484. }
  59485. const (
  59486. // AccountAttributeNameSupportedPlatforms is a AccountAttributeName enum value
  59487. AccountAttributeNameSupportedPlatforms = "supported-platforms"
  59488. // AccountAttributeNameDefaultVpc is a AccountAttributeName enum value
  59489. AccountAttributeNameDefaultVpc = "default-vpc"
  59490. )
  59491. const (
  59492. // ActivityStatusError is a ActivityStatus enum value
  59493. ActivityStatusError = "error"
  59494. // ActivityStatusPendingFulfillment is a ActivityStatus enum value
  59495. ActivityStatusPendingFulfillment = "pending_fulfillment"
  59496. // ActivityStatusPendingTermination is a ActivityStatus enum value
  59497. ActivityStatusPendingTermination = "pending_termination"
  59498. // ActivityStatusFulfilled is a ActivityStatus enum value
  59499. ActivityStatusFulfilled = "fulfilled"
  59500. )
  59501. const (
  59502. // AffinityDefault is a Affinity enum value
  59503. AffinityDefault = "default"
  59504. // AffinityHost is a Affinity enum value
  59505. AffinityHost = "host"
  59506. )
  59507. const (
  59508. // AllocationStateAvailable is a AllocationState enum value
  59509. AllocationStateAvailable = "available"
  59510. // AllocationStateUnderAssessment is a AllocationState enum value
  59511. AllocationStateUnderAssessment = "under-assessment"
  59512. // AllocationStatePermanentFailure is a AllocationState enum value
  59513. AllocationStatePermanentFailure = "permanent-failure"
  59514. // AllocationStateReleased is a AllocationState enum value
  59515. AllocationStateReleased = "released"
  59516. // AllocationStateReleasedPermanentFailure is a AllocationState enum value
  59517. AllocationStateReleasedPermanentFailure = "released-permanent-failure"
  59518. )
  59519. const (
  59520. // AllocationStrategyLowestPrice is a AllocationStrategy enum value
  59521. AllocationStrategyLowestPrice = "lowestPrice"
  59522. // AllocationStrategyDiversified is a AllocationStrategy enum value
  59523. AllocationStrategyDiversified = "diversified"
  59524. )
  59525. const (
  59526. // ArchitectureValuesI386 is a ArchitectureValues enum value
  59527. ArchitectureValuesI386 = "i386"
  59528. // ArchitectureValuesX8664 is a ArchitectureValues enum value
  59529. ArchitectureValuesX8664 = "x86_64"
  59530. )
  59531. const (
  59532. // AttachmentStatusAttaching is a AttachmentStatus enum value
  59533. AttachmentStatusAttaching = "attaching"
  59534. // AttachmentStatusAttached is a AttachmentStatus enum value
  59535. AttachmentStatusAttached = "attached"
  59536. // AttachmentStatusDetaching is a AttachmentStatus enum value
  59537. AttachmentStatusDetaching = "detaching"
  59538. // AttachmentStatusDetached is a AttachmentStatus enum value
  59539. AttachmentStatusDetached = "detached"
  59540. )
  59541. const (
  59542. // AutoPlacementOn is a AutoPlacement enum value
  59543. AutoPlacementOn = "on"
  59544. // AutoPlacementOff is a AutoPlacement enum value
  59545. AutoPlacementOff = "off"
  59546. )
  59547. const (
  59548. // AvailabilityZoneStateAvailable is a AvailabilityZoneState enum value
  59549. AvailabilityZoneStateAvailable = "available"
  59550. // AvailabilityZoneStateInformation is a AvailabilityZoneState enum value
  59551. AvailabilityZoneStateInformation = "information"
  59552. // AvailabilityZoneStateImpaired is a AvailabilityZoneState enum value
  59553. AvailabilityZoneStateImpaired = "impaired"
  59554. // AvailabilityZoneStateUnavailable is a AvailabilityZoneState enum value
  59555. AvailabilityZoneStateUnavailable = "unavailable"
  59556. )
  59557. const (
  59558. // BatchStateSubmitted is a BatchState enum value
  59559. BatchStateSubmitted = "submitted"
  59560. // BatchStateActive is a BatchState enum value
  59561. BatchStateActive = "active"
  59562. // BatchStateCancelled is a BatchState enum value
  59563. BatchStateCancelled = "cancelled"
  59564. // BatchStateFailed is a BatchState enum value
  59565. BatchStateFailed = "failed"
  59566. // BatchStateCancelledRunning is a BatchState enum value
  59567. BatchStateCancelledRunning = "cancelled_running"
  59568. // BatchStateCancelledTerminating is a BatchState enum value
  59569. BatchStateCancelledTerminating = "cancelled_terminating"
  59570. // BatchStateModifying is a BatchState enum value
  59571. BatchStateModifying = "modifying"
  59572. )
  59573. const (
  59574. // BundleTaskStatePending is a BundleTaskState enum value
  59575. BundleTaskStatePending = "pending"
  59576. // BundleTaskStateWaitingForShutdown is a BundleTaskState enum value
  59577. BundleTaskStateWaitingForShutdown = "waiting-for-shutdown"
  59578. // BundleTaskStateBundling is a BundleTaskState enum value
  59579. BundleTaskStateBundling = "bundling"
  59580. // BundleTaskStateStoring is a BundleTaskState enum value
  59581. BundleTaskStateStoring = "storing"
  59582. // BundleTaskStateCancelling is a BundleTaskState enum value
  59583. BundleTaskStateCancelling = "cancelling"
  59584. // BundleTaskStateComplete is a BundleTaskState enum value
  59585. BundleTaskStateComplete = "complete"
  59586. // BundleTaskStateFailed is a BundleTaskState enum value
  59587. BundleTaskStateFailed = "failed"
  59588. )
  59589. const (
  59590. // CancelBatchErrorCodeFleetRequestIdDoesNotExist is a CancelBatchErrorCode enum value
  59591. CancelBatchErrorCodeFleetRequestIdDoesNotExist = "fleetRequestIdDoesNotExist"
  59592. // CancelBatchErrorCodeFleetRequestIdMalformed is a CancelBatchErrorCode enum value
  59593. CancelBatchErrorCodeFleetRequestIdMalformed = "fleetRequestIdMalformed"
  59594. // CancelBatchErrorCodeFleetRequestNotInCancellableState is a CancelBatchErrorCode enum value
  59595. CancelBatchErrorCodeFleetRequestNotInCancellableState = "fleetRequestNotInCancellableState"
  59596. // CancelBatchErrorCodeUnexpectedError is a CancelBatchErrorCode enum value
  59597. CancelBatchErrorCodeUnexpectedError = "unexpectedError"
  59598. )
  59599. const (
  59600. // CancelSpotInstanceRequestStateActive is a CancelSpotInstanceRequestState enum value
  59601. CancelSpotInstanceRequestStateActive = "active"
  59602. // CancelSpotInstanceRequestStateOpen is a CancelSpotInstanceRequestState enum value
  59603. CancelSpotInstanceRequestStateOpen = "open"
  59604. // CancelSpotInstanceRequestStateClosed is a CancelSpotInstanceRequestState enum value
  59605. CancelSpotInstanceRequestStateClosed = "closed"
  59606. // CancelSpotInstanceRequestStateCancelled is a CancelSpotInstanceRequestState enum value
  59607. CancelSpotInstanceRequestStateCancelled = "cancelled"
  59608. // CancelSpotInstanceRequestStateCompleted is a CancelSpotInstanceRequestState enum value
  59609. CancelSpotInstanceRequestStateCompleted = "completed"
  59610. )
  59611. const (
  59612. // ConnectionNotificationStateEnabled is a ConnectionNotificationState enum value
  59613. ConnectionNotificationStateEnabled = "Enabled"
  59614. // ConnectionNotificationStateDisabled is a ConnectionNotificationState enum value
  59615. ConnectionNotificationStateDisabled = "Disabled"
  59616. )
  59617. const (
  59618. // ConnectionNotificationTypeTopic is a ConnectionNotificationType enum value
  59619. ConnectionNotificationTypeTopic = "Topic"
  59620. )
  59621. const (
  59622. // ContainerFormatOva is a ContainerFormat enum value
  59623. ContainerFormatOva = "ova"
  59624. )
  59625. const (
  59626. // ConversionTaskStateActive is a ConversionTaskState enum value
  59627. ConversionTaskStateActive = "active"
  59628. // ConversionTaskStateCancelling is a ConversionTaskState enum value
  59629. ConversionTaskStateCancelling = "cancelling"
  59630. // ConversionTaskStateCancelled is a ConversionTaskState enum value
  59631. ConversionTaskStateCancelled = "cancelled"
  59632. // ConversionTaskStateCompleted is a ConversionTaskState enum value
  59633. ConversionTaskStateCompleted = "completed"
  59634. )
  59635. const (
  59636. // CurrencyCodeValuesUsd is a CurrencyCodeValues enum value
  59637. CurrencyCodeValuesUsd = "USD"
  59638. )
  59639. const (
  59640. // DatafeedSubscriptionStateActive is a DatafeedSubscriptionState enum value
  59641. DatafeedSubscriptionStateActive = "Active"
  59642. // DatafeedSubscriptionStateInactive is a DatafeedSubscriptionState enum value
  59643. DatafeedSubscriptionStateInactive = "Inactive"
  59644. )
  59645. const (
  59646. // DefaultTargetCapacityTypeSpot is a DefaultTargetCapacityType enum value
  59647. DefaultTargetCapacityTypeSpot = "spot"
  59648. // DefaultTargetCapacityTypeOnDemand is a DefaultTargetCapacityType enum value
  59649. DefaultTargetCapacityTypeOnDemand = "on-demand"
  59650. )
  59651. const (
  59652. // DeleteFleetErrorCodeFleetIdDoesNotExist is a DeleteFleetErrorCode enum value
  59653. DeleteFleetErrorCodeFleetIdDoesNotExist = "fleetIdDoesNotExist"
  59654. // DeleteFleetErrorCodeFleetIdMalformed is a DeleteFleetErrorCode enum value
  59655. DeleteFleetErrorCodeFleetIdMalformed = "fleetIdMalformed"
  59656. // DeleteFleetErrorCodeFleetNotInDeletableState is a DeleteFleetErrorCode enum value
  59657. DeleteFleetErrorCodeFleetNotInDeletableState = "fleetNotInDeletableState"
  59658. // DeleteFleetErrorCodeUnexpectedError is a DeleteFleetErrorCode enum value
  59659. DeleteFleetErrorCodeUnexpectedError = "unexpectedError"
  59660. )
  59661. const (
  59662. // DeviceTypeEbs is a DeviceType enum value
  59663. DeviceTypeEbs = "ebs"
  59664. // DeviceTypeInstanceStore is a DeviceType enum value
  59665. DeviceTypeInstanceStore = "instance-store"
  59666. )
  59667. const (
  59668. // DiskImageFormatVmdk is a DiskImageFormat enum value
  59669. DiskImageFormatVmdk = "VMDK"
  59670. // DiskImageFormatRaw is a DiskImageFormat enum value
  59671. DiskImageFormatRaw = "RAW"
  59672. // DiskImageFormatVhd is a DiskImageFormat enum value
  59673. DiskImageFormatVhd = "VHD"
  59674. )
  59675. const (
  59676. // DomainTypeVpc is a DomainType enum value
  59677. DomainTypeVpc = "vpc"
  59678. // DomainTypeStandard is a DomainType enum value
  59679. DomainTypeStandard = "standard"
  59680. )
  59681. const (
  59682. // ElasticGpuStateAttached is a ElasticGpuState enum value
  59683. ElasticGpuStateAttached = "ATTACHED"
  59684. )
  59685. const (
  59686. // ElasticGpuStatusOk is a ElasticGpuStatus enum value
  59687. ElasticGpuStatusOk = "OK"
  59688. // ElasticGpuStatusImpaired is a ElasticGpuStatus enum value
  59689. ElasticGpuStatusImpaired = "IMPAIRED"
  59690. )
  59691. const (
  59692. // EventCodeInstanceReboot is a EventCode enum value
  59693. EventCodeInstanceReboot = "instance-reboot"
  59694. // EventCodeSystemReboot is a EventCode enum value
  59695. EventCodeSystemReboot = "system-reboot"
  59696. // EventCodeSystemMaintenance is a EventCode enum value
  59697. EventCodeSystemMaintenance = "system-maintenance"
  59698. // EventCodeInstanceRetirement is a EventCode enum value
  59699. EventCodeInstanceRetirement = "instance-retirement"
  59700. // EventCodeInstanceStop is a EventCode enum value
  59701. EventCodeInstanceStop = "instance-stop"
  59702. )
  59703. const (
  59704. // EventTypeInstanceChange is a EventType enum value
  59705. EventTypeInstanceChange = "instanceChange"
  59706. // EventTypeFleetRequestChange is a EventType enum value
  59707. EventTypeFleetRequestChange = "fleetRequestChange"
  59708. // EventTypeError is a EventType enum value
  59709. EventTypeError = "error"
  59710. )
  59711. const (
  59712. // ExcessCapacityTerminationPolicyNoTermination is a ExcessCapacityTerminationPolicy enum value
  59713. ExcessCapacityTerminationPolicyNoTermination = "noTermination"
  59714. // ExcessCapacityTerminationPolicyDefault is a ExcessCapacityTerminationPolicy enum value
  59715. ExcessCapacityTerminationPolicyDefault = "default"
  59716. )
  59717. const (
  59718. // ExportEnvironmentCitrix is a ExportEnvironment enum value
  59719. ExportEnvironmentCitrix = "citrix"
  59720. // ExportEnvironmentVmware is a ExportEnvironment enum value
  59721. ExportEnvironmentVmware = "vmware"
  59722. // ExportEnvironmentMicrosoft is a ExportEnvironment enum value
  59723. ExportEnvironmentMicrosoft = "microsoft"
  59724. )
  59725. const (
  59726. // ExportTaskStateActive is a ExportTaskState enum value
  59727. ExportTaskStateActive = "active"
  59728. // ExportTaskStateCancelling is a ExportTaskState enum value
  59729. ExportTaskStateCancelling = "cancelling"
  59730. // ExportTaskStateCancelled is a ExportTaskState enum value
  59731. ExportTaskStateCancelled = "cancelled"
  59732. // ExportTaskStateCompleted is a ExportTaskState enum value
  59733. ExportTaskStateCompleted = "completed"
  59734. )
  59735. const (
  59736. // FleetActivityStatusError is a FleetActivityStatus enum value
  59737. FleetActivityStatusError = "error"
  59738. // FleetActivityStatusPendingFulfillment is a FleetActivityStatus enum value
  59739. FleetActivityStatusPendingFulfillment = "pending-fulfillment"
  59740. // FleetActivityStatusPendingTermination is a FleetActivityStatus enum value
  59741. FleetActivityStatusPendingTermination = "pending-termination"
  59742. // FleetActivityStatusFulfilled is a FleetActivityStatus enum value
  59743. FleetActivityStatusFulfilled = "fulfilled"
  59744. )
  59745. const (
  59746. // FleetEventTypeInstanceChange is a FleetEventType enum value
  59747. FleetEventTypeInstanceChange = "instance-change"
  59748. // FleetEventTypeFleetChange is a FleetEventType enum value
  59749. FleetEventTypeFleetChange = "fleet-change"
  59750. // FleetEventTypeServiceError is a FleetEventType enum value
  59751. FleetEventTypeServiceError = "service-error"
  59752. )
  59753. const (
  59754. // FleetExcessCapacityTerminationPolicyNoTermination is a FleetExcessCapacityTerminationPolicy enum value
  59755. FleetExcessCapacityTerminationPolicyNoTermination = "no-termination"
  59756. // FleetExcessCapacityTerminationPolicyTermination is a FleetExcessCapacityTerminationPolicy enum value
  59757. FleetExcessCapacityTerminationPolicyTermination = "termination"
  59758. )
  59759. const (
  59760. // FleetStateCodeSubmitted is a FleetStateCode enum value
  59761. FleetStateCodeSubmitted = "submitted"
  59762. // FleetStateCodeActive is a FleetStateCode enum value
  59763. FleetStateCodeActive = "active"
  59764. // FleetStateCodeDeleted is a FleetStateCode enum value
  59765. FleetStateCodeDeleted = "deleted"
  59766. // FleetStateCodeFailed is a FleetStateCode enum value
  59767. FleetStateCodeFailed = "failed"
  59768. // FleetStateCodeDeletedRunning is a FleetStateCode enum value
  59769. FleetStateCodeDeletedRunning = "deleted-running"
  59770. // FleetStateCodeDeletedTerminating is a FleetStateCode enum value
  59771. FleetStateCodeDeletedTerminating = "deleted-terminating"
  59772. // FleetStateCodeModifying is a FleetStateCode enum value
  59773. FleetStateCodeModifying = "modifying"
  59774. )
  59775. const (
  59776. // FleetTypeRequest is a FleetType enum value
  59777. FleetTypeRequest = "request"
  59778. // FleetTypeMaintain is a FleetType enum value
  59779. FleetTypeMaintain = "maintain"
  59780. )
  59781. const (
  59782. // FlowLogsResourceTypeVpc is a FlowLogsResourceType enum value
  59783. FlowLogsResourceTypeVpc = "VPC"
  59784. // FlowLogsResourceTypeSubnet is a FlowLogsResourceType enum value
  59785. FlowLogsResourceTypeSubnet = "Subnet"
  59786. // FlowLogsResourceTypeNetworkInterface is a FlowLogsResourceType enum value
  59787. FlowLogsResourceTypeNetworkInterface = "NetworkInterface"
  59788. )
  59789. const (
  59790. // FpgaImageAttributeNameDescription is a FpgaImageAttributeName enum value
  59791. FpgaImageAttributeNameDescription = "description"
  59792. // FpgaImageAttributeNameName is a FpgaImageAttributeName enum value
  59793. FpgaImageAttributeNameName = "name"
  59794. // FpgaImageAttributeNameLoadPermission is a FpgaImageAttributeName enum value
  59795. FpgaImageAttributeNameLoadPermission = "loadPermission"
  59796. // FpgaImageAttributeNameProductCodes is a FpgaImageAttributeName enum value
  59797. FpgaImageAttributeNameProductCodes = "productCodes"
  59798. )
  59799. const (
  59800. // FpgaImageStateCodePending is a FpgaImageStateCode enum value
  59801. FpgaImageStateCodePending = "pending"
  59802. // FpgaImageStateCodeFailed is a FpgaImageStateCode enum value
  59803. FpgaImageStateCodeFailed = "failed"
  59804. // FpgaImageStateCodeAvailable is a FpgaImageStateCode enum value
  59805. FpgaImageStateCodeAvailable = "available"
  59806. // FpgaImageStateCodeUnavailable is a FpgaImageStateCode enum value
  59807. FpgaImageStateCodeUnavailable = "unavailable"
  59808. )
  59809. const (
  59810. // GatewayTypeIpsec1 is a GatewayType enum value
  59811. GatewayTypeIpsec1 = "ipsec.1"
  59812. )
  59813. const (
  59814. // HostTenancyDedicated is a HostTenancy enum value
  59815. HostTenancyDedicated = "dedicated"
  59816. // HostTenancyHost is a HostTenancy enum value
  59817. HostTenancyHost = "host"
  59818. )
  59819. const (
  59820. // HypervisorTypeOvm is a HypervisorType enum value
  59821. HypervisorTypeOvm = "ovm"
  59822. // HypervisorTypeXen is a HypervisorType enum value
  59823. HypervisorTypeXen = "xen"
  59824. )
  59825. const (
  59826. // IamInstanceProfileAssociationStateAssociating is a IamInstanceProfileAssociationState enum value
  59827. IamInstanceProfileAssociationStateAssociating = "associating"
  59828. // IamInstanceProfileAssociationStateAssociated is a IamInstanceProfileAssociationState enum value
  59829. IamInstanceProfileAssociationStateAssociated = "associated"
  59830. // IamInstanceProfileAssociationStateDisassociating is a IamInstanceProfileAssociationState enum value
  59831. IamInstanceProfileAssociationStateDisassociating = "disassociating"
  59832. // IamInstanceProfileAssociationStateDisassociated is a IamInstanceProfileAssociationState enum value
  59833. IamInstanceProfileAssociationStateDisassociated = "disassociated"
  59834. )
  59835. const (
  59836. // ImageAttributeNameDescription is a ImageAttributeName enum value
  59837. ImageAttributeNameDescription = "description"
  59838. // ImageAttributeNameKernel is a ImageAttributeName enum value
  59839. ImageAttributeNameKernel = "kernel"
  59840. // ImageAttributeNameRamdisk is a ImageAttributeName enum value
  59841. ImageAttributeNameRamdisk = "ramdisk"
  59842. // ImageAttributeNameLaunchPermission is a ImageAttributeName enum value
  59843. ImageAttributeNameLaunchPermission = "launchPermission"
  59844. // ImageAttributeNameProductCodes is a ImageAttributeName enum value
  59845. ImageAttributeNameProductCodes = "productCodes"
  59846. // ImageAttributeNameBlockDeviceMapping is a ImageAttributeName enum value
  59847. ImageAttributeNameBlockDeviceMapping = "blockDeviceMapping"
  59848. // ImageAttributeNameSriovNetSupport is a ImageAttributeName enum value
  59849. ImageAttributeNameSriovNetSupport = "sriovNetSupport"
  59850. )
  59851. const (
  59852. // ImageStatePending is a ImageState enum value
  59853. ImageStatePending = "pending"
  59854. // ImageStateAvailable is a ImageState enum value
  59855. ImageStateAvailable = "available"
  59856. // ImageStateInvalid is a ImageState enum value
  59857. ImageStateInvalid = "invalid"
  59858. // ImageStateDeregistered is a ImageState enum value
  59859. ImageStateDeregistered = "deregistered"
  59860. // ImageStateTransient is a ImageState enum value
  59861. ImageStateTransient = "transient"
  59862. // ImageStateFailed is a ImageState enum value
  59863. ImageStateFailed = "failed"
  59864. // ImageStateError is a ImageState enum value
  59865. ImageStateError = "error"
  59866. )
  59867. const (
  59868. // ImageTypeValuesMachine is a ImageTypeValues enum value
  59869. ImageTypeValuesMachine = "machine"
  59870. // ImageTypeValuesKernel is a ImageTypeValues enum value
  59871. ImageTypeValuesKernel = "kernel"
  59872. // ImageTypeValuesRamdisk is a ImageTypeValues enum value
  59873. ImageTypeValuesRamdisk = "ramdisk"
  59874. )
  59875. const (
  59876. // InstanceAttributeNameInstanceType is a InstanceAttributeName enum value
  59877. InstanceAttributeNameInstanceType = "instanceType"
  59878. // InstanceAttributeNameKernel is a InstanceAttributeName enum value
  59879. InstanceAttributeNameKernel = "kernel"
  59880. // InstanceAttributeNameRamdisk is a InstanceAttributeName enum value
  59881. InstanceAttributeNameRamdisk = "ramdisk"
  59882. // InstanceAttributeNameUserData is a InstanceAttributeName enum value
  59883. InstanceAttributeNameUserData = "userData"
  59884. // InstanceAttributeNameDisableApiTermination is a InstanceAttributeName enum value
  59885. InstanceAttributeNameDisableApiTermination = "disableApiTermination"
  59886. // InstanceAttributeNameInstanceInitiatedShutdownBehavior is a InstanceAttributeName enum value
  59887. InstanceAttributeNameInstanceInitiatedShutdownBehavior = "instanceInitiatedShutdownBehavior"
  59888. // InstanceAttributeNameRootDeviceName is a InstanceAttributeName enum value
  59889. InstanceAttributeNameRootDeviceName = "rootDeviceName"
  59890. // InstanceAttributeNameBlockDeviceMapping is a InstanceAttributeName enum value
  59891. InstanceAttributeNameBlockDeviceMapping = "blockDeviceMapping"
  59892. // InstanceAttributeNameProductCodes is a InstanceAttributeName enum value
  59893. InstanceAttributeNameProductCodes = "productCodes"
  59894. // InstanceAttributeNameSourceDestCheck is a InstanceAttributeName enum value
  59895. InstanceAttributeNameSourceDestCheck = "sourceDestCheck"
  59896. // InstanceAttributeNameGroupSet is a InstanceAttributeName enum value
  59897. InstanceAttributeNameGroupSet = "groupSet"
  59898. // InstanceAttributeNameEbsOptimized is a InstanceAttributeName enum value
  59899. InstanceAttributeNameEbsOptimized = "ebsOptimized"
  59900. // InstanceAttributeNameSriovNetSupport is a InstanceAttributeName enum value
  59901. InstanceAttributeNameSriovNetSupport = "sriovNetSupport"
  59902. // InstanceAttributeNameEnaSupport is a InstanceAttributeName enum value
  59903. InstanceAttributeNameEnaSupport = "enaSupport"
  59904. )
  59905. const (
  59906. // InstanceHealthStatusHealthy is a InstanceHealthStatus enum value
  59907. InstanceHealthStatusHealthy = "healthy"
  59908. // InstanceHealthStatusUnhealthy is a InstanceHealthStatus enum value
  59909. InstanceHealthStatusUnhealthy = "unhealthy"
  59910. )
  59911. const (
  59912. // InstanceInterruptionBehaviorHibernate is a InstanceInterruptionBehavior enum value
  59913. InstanceInterruptionBehaviorHibernate = "hibernate"
  59914. // InstanceInterruptionBehaviorStop is a InstanceInterruptionBehavior enum value
  59915. InstanceInterruptionBehaviorStop = "stop"
  59916. // InstanceInterruptionBehaviorTerminate is a InstanceInterruptionBehavior enum value
  59917. InstanceInterruptionBehaviorTerminate = "terminate"
  59918. )
  59919. const (
  59920. // InstanceLifecycleTypeSpot is a InstanceLifecycleType enum value
  59921. InstanceLifecycleTypeSpot = "spot"
  59922. // InstanceLifecycleTypeScheduled is a InstanceLifecycleType enum value
  59923. InstanceLifecycleTypeScheduled = "scheduled"
  59924. )
  59925. const (
  59926. // InstanceStateNamePending is a InstanceStateName enum value
  59927. InstanceStateNamePending = "pending"
  59928. // InstanceStateNameRunning is a InstanceStateName enum value
  59929. InstanceStateNameRunning = "running"
  59930. // InstanceStateNameShuttingDown is a InstanceStateName enum value
  59931. InstanceStateNameShuttingDown = "shutting-down"
  59932. // InstanceStateNameTerminated is a InstanceStateName enum value
  59933. InstanceStateNameTerminated = "terminated"
  59934. // InstanceStateNameStopping is a InstanceStateName enum value
  59935. InstanceStateNameStopping = "stopping"
  59936. // InstanceStateNameStopped is a InstanceStateName enum value
  59937. InstanceStateNameStopped = "stopped"
  59938. )
  59939. const (
  59940. // InstanceTypeT1Micro is a InstanceType enum value
  59941. InstanceTypeT1Micro = "t1.micro"
  59942. // InstanceTypeT2Nano is a InstanceType enum value
  59943. InstanceTypeT2Nano = "t2.nano"
  59944. // InstanceTypeT2Micro is a InstanceType enum value
  59945. InstanceTypeT2Micro = "t2.micro"
  59946. // InstanceTypeT2Small is a InstanceType enum value
  59947. InstanceTypeT2Small = "t2.small"
  59948. // InstanceTypeT2Medium is a InstanceType enum value
  59949. InstanceTypeT2Medium = "t2.medium"
  59950. // InstanceTypeT2Large is a InstanceType enum value
  59951. InstanceTypeT2Large = "t2.large"
  59952. // InstanceTypeT2Xlarge is a InstanceType enum value
  59953. InstanceTypeT2Xlarge = "t2.xlarge"
  59954. // InstanceTypeT22xlarge is a InstanceType enum value
  59955. InstanceTypeT22xlarge = "t2.2xlarge"
  59956. // InstanceTypeM1Small is a InstanceType enum value
  59957. InstanceTypeM1Small = "m1.small"
  59958. // InstanceTypeM1Medium is a InstanceType enum value
  59959. InstanceTypeM1Medium = "m1.medium"
  59960. // InstanceTypeM1Large is a InstanceType enum value
  59961. InstanceTypeM1Large = "m1.large"
  59962. // InstanceTypeM1Xlarge is a InstanceType enum value
  59963. InstanceTypeM1Xlarge = "m1.xlarge"
  59964. // InstanceTypeM3Medium is a InstanceType enum value
  59965. InstanceTypeM3Medium = "m3.medium"
  59966. // InstanceTypeM3Large is a InstanceType enum value
  59967. InstanceTypeM3Large = "m3.large"
  59968. // InstanceTypeM3Xlarge is a InstanceType enum value
  59969. InstanceTypeM3Xlarge = "m3.xlarge"
  59970. // InstanceTypeM32xlarge is a InstanceType enum value
  59971. InstanceTypeM32xlarge = "m3.2xlarge"
  59972. // InstanceTypeM4Large is a InstanceType enum value
  59973. InstanceTypeM4Large = "m4.large"
  59974. // InstanceTypeM4Xlarge is a InstanceType enum value
  59975. InstanceTypeM4Xlarge = "m4.xlarge"
  59976. // InstanceTypeM42xlarge is a InstanceType enum value
  59977. InstanceTypeM42xlarge = "m4.2xlarge"
  59978. // InstanceTypeM44xlarge is a InstanceType enum value
  59979. InstanceTypeM44xlarge = "m4.4xlarge"
  59980. // InstanceTypeM410xlarge is a InstanceType enum value
  59981. InstanceTypeM410xlarge = "m4.10xlarge"
  59982. // InstanceTypeM416xlarge is a InstanceType enum value
  59983. InstanceTypeM416xlarge = "m4.16xlarge"
  59984. // InstanceTypeM2Xlarge is a InstanceType enum value
  59985. InstanceTypeM2Xlarge = "m2.xlarge"
  59986. // InstanceTypeM22xlarge is a InstanceType enum value
  59987. InstanceTypeM22xlarge = "m2.2xlarge"
  59988. // InstanceTypeM24xlarge is a InstanceType enum value
  59989. InstanceTypeM24xlarge = "m2.4xlarge"
  59990. // InstanceTypeCr18xlarge is a InstanceType enum value
  59991. InstanceTypeCr18xlarge = "cr1.8xlarge"
  59992. // InstanceTypeR3Large is a InstanceType enum value
  59993. InstanceTypeR3Large = "r3.large"
  59994. // InstanceTypeR3Xlarge is a InstanceType enum value
  59995. InstanceTypeR3Xlarge = "r3.xlarge"
  59996. // InstanceTypeR32xlarge is a InstanceType enum value
  59997. InstanceTypeR32xlarge = "r3.2xlarge"
  59998. // InstanceTypeR34xlarge is a InstanceType enum value
  59999. InstanceTypeR34xlarge = "r3.4xlarge"
  60000. // InstanceTypeR38xlarge is a InstanceType enum value
  60001. InstanceTypeR38xlarge = "r3.8xlarge"
  60002. // InstanceTypeR4Large is a InstanceType enum value
  60003. InstanceTypeR4Large = "r4.large"
  60004. // InstanceTypeR4Xlarge is a InstanceType enum value
  60005. InstanceTypeR4Xlarge = "r4.xlarge"
  60006. // InstanceTypeR42xlarge is a InstanceType enum value
  60007. InstanceTypeR42xlarge = "r4.2xlarge"
  60008. // InstanceTypeR44xlarge is a InstanceType enum value
  60009. InstanceTypeR44xlarge = "r4.4xlarge"
  60010. // InstanceTypeR48xlarge is a InstanceType enum value
  60011. InstanceTypeR48xlarge = "r4.8xlarge"
  60012. // InstanceTypeR416xlarge is a InstanceType enum value
  60013. InstanceTypeR416xlarge = "r4.16xlarge"
  60014. // InstanceTypeX116xlarge is a InstanceType enum value
  60015. InstanceTypeX116xlarge = "x1.16xlarge"
  60016. // InstanceTypeX132xlarge is a InstanceType enum value
  60017. InstanceTypeX132xlarge = "x1.32xlarge"
  60018. // InstanceTypeX1eXlarge is a InstanceType enum value
  60019. InstanceTypeX1eXlarge = "x1e.xlarge"
  60020. // InstanceTypeX1e2xlarge is a InstanceType enum value
  60021. InstanceTypeX1e2xlarge = "x1e.2xlarge"
  60022. // InstanceTypeX1e4xlarge is a InstanceType enum value
  60023. InstanceTypeX1e4xlarge = "x1e.4xlarge"
  60024. // InstanceTypeX1e8xlarge is a InstanceType enum value
  60025. InstanceTypeX1e8xlarge = "x1e.8xlarge"
  60026. // InstanceTypeX1e16xlarge is a InstanceType enum value
  60027. InstanceTypeX1e16xlarge = "x1e.16xlarge"
  60028. // InstanceTypeX1e32xlarge is a InstanceType enum value
  60029. InstanceTypeX1e32xlarge = "x1e.32xlarge"
  60030. // InstanceTypeI2Xlarge is a InstanceType enum value
  60031. InstanceTypeI2Xlarge = "i2.xlarge"
  60032. // InstanceTypeI22xlarge is a InstanceType enum value
  60033. InstanceTypeI22xlarge = "i2.2xlarge"
  60034. // InstanceTypeI24xlarge is a InstanceType enum value
  60035. InstanceTypeI24xlarge = "i2.4xlarge"
  60036. // InstanceTypeI28xlarge is a InstanceType enum value
  60037. InstanceTypeI28xlarge = "i2.8xlarge"
  60038. // InstanceTypeI3Large is a InstanceType enum value
  60039. InstanceTypeI3Large = "i3.large"
  60040. // InstanceTypeI3Xlarge is a InstanceType enum value
  60041. InstanceTypeI3Xlarge = "i3.xlarge"
  60042. // InstanceTypeI32xlarge is a InstanceType enum value
  60043. InstanceTypeI32xlarge = "i3.2xlarge"
  60044. // InstanceTypeI34xlarge is a InstanceType enum value
  60045. InstanceTypeI34xlarge = "i3.4xlarge"
  60046. // InstanceTypeI38xlarge is a InstanceType enum value
  60047. InstanceTypeI38xlarge = "i3.8xlarge"
  60048. // InstanceTypeI316xlarge is a InstanceType enum value
  60049. InstanceTypeI316xlarge = "i3.16xlarge"
  60050. // InstanceTypeI3Metal is a InstanceType enum value
  60051. InstanceTypeI3Metal = "i3.metal"
  60052. // InstanceTypeHi14xlarge is a InstanceType enum value
  60053. InstanceTypeHi14xlarge = "hi1.4xlarge"
  60054. // InstanceTypeHs18xlarge is a InstanceType enum value
  60055. InstanceTypeHs18xlarge = "hs1.8xlarge"
  60056. // InstanceTypeC1Medium is a InstanceType enum value
  60057. InstanceTypeC1Medium = "c1.medium"
  60058. // InstanceTypeC1Xlarge is a InstanceType enum value
  60059. InstanceTypeC1Xlarge = "c1.xlarge"
  60060. // InstanceTypeC3Large is a InstanceType enum value
  60061. InstanceTypeC3Large = "c3.large"
  60062. // InstanceTypeC3Xlarge is a InstanceType enum value
  60063. InstanceTypeC3Xlarge = "c3.xlarge"
  60064. // InstanceTypeC32xlarge is a InstanceType enum value
  60065. InstanceTypeC32xlarge = "c3.2xlarge"
  60066. // InstanceTypeC34xlarge is a InstanceType enum value
  60067. InstanceTypeC34xlarge = "c3.4xlarge"
  60068. // InstanceTypeC38xlarge is a InstanceType enum value
  60069. InstanceTypeC38xlarge = "c3.8xlarge"
  60070. // InstanceTypeC4Large is a InstanceType enum value
  60071. InstanceTypeC4Large = "c4.large"
  60072. // InstanceTypeC4Xlarge is a InstanceType enum value
  60073. InstanceTypeC4Xlarge = "c4.xlarge"
  60074. // InstanceTypeC42xlarge is a InstanceType enum value
  60075. InstanceTypeC42xlarge = "c4.2xlarge"
  60076. // InstanceTypeC44xlarge is a InstanceType enum value
  60077. InstanceTypeC44xlarge = "c4.4xlarge"
  60078. // InstanceTypeC48xlarge is a InstanceType enum value
  60079. InstanceTypeC48xlarge = "c4.8xlarge"
  60080. // InstanceTypeC5Large is a InstanceType enum value
  60081. InstanceTypeC5Large = "c5.large"
  60082. // InstanceTypeC5Xlarge is a InstanceType enum value
  60083. InstanceTypeC5Xlarge = "c5.xlarge"
  60084. // InstanceTypeC52xlarge is a InstanceType enum value
  60085. InstanceTypeC52xlarge = "c5.2xlarge"
  60086. // InstanceTypeC54xlarge is a InstanceType enum value
  60087. InstanceTypeC54xlarge = "c5.4xlarge"
  60088. // InstanceTypeC59xlarge is a InstanceType enum value
  60089. InstanceTypeC59xlarge = "c5.9xlarge"
  60090. // InstanceTypeC518xlarge is a InstanceType enum value
  60091. InstanceTypeC518xlarge = "c5.18xlarge"
  60092. // InstanceTypeC5dLarge is a InstanceType enum value
  60093. InstanceTypeC5dLarge = "c5d.large"
  60094. // InstanceTypeC5dXlarge is a InstanceType enum value
  60095. InstanceTypeC5dXlarge = "c5d.xlarge"
  60096. // InstanceTypeC5d2xlarge is a InstanceType enum value
  60097. InstanceTypeC5d2xlarge = "c5d.2xlarge"
  60098. // InstanceTypeC5d4xlarge is a InstanceType enum value
  60099. InstanceTypeC5d4xlarge = "c5d.4xlarge"
  60100. // InstanceTypeC5d9xlarge is a InstanceType enum value
  60101. InstanceTypeC5d9xlarge = "c5d.9xlarge"
  60102. // InstanceTypeC5d18xlarge is a InstanceType enum value
  60103. InstanceTypeC5d18xlarge = "c5d.18xlarge"
  60104. // InstanceTypeCc14xlarge is a InstanceType enum value
  60105. InstanceTypeCc14xlarge = "cc1.4xlarge"
  60106. // InstanceTypeCc28xlarge is a InstanceType enum value
  60107. InstanceTypeCc28xlarge = "cc2.8xlarge"
  60108. // InstanceTypeG22xlarge is a InstanceType enum value
  60109. InstanceTypeG22xlarge = "g2.2xlarge"
  60110. // InstanceTypeG28xlarge is a InstanceType enum value
  60111. InstanceTypeG28xlarge = "g2.8xlarge"
  60112. // InstanceTypeG34xlarge is a InstanceType enum value
  60113. InstanceTypeG34xlarge = "g3.4xlarge"
  60114. // InstanceTypeG38xlarge is a InstanceType enum value
  60115. InstanceTypeG38xlarge = "g3.8xlarge"
  60116. // InstanceTypeG316xlarge is a InstanceType enum value
  60117. InstanceTypeG316xlarge = "g3.16xlarge"
  60118. // InstanceTypeCg14xlarge is a InstanceType enum value
  60119. InstanceTypeCg14xlarge = "cg1.4xlarge"
  60120. // InstanceTypeP2Xlarge is a InstanceType enum value
  60121. InstanceTypeP2Xlarge = "p2.xlarge"
  60122. // InstanceTypeP28xlarge is a InstanceType enum value
  60123. InstanceTypeP28xlarge = "p2.8xlarge"
  60124. // InstanceTypeP216xlarge is a InstanceType enum value
  60125. InstanceTypeP216xlarge = "p2.16xlarge"
  60126. // InstanceTypeP32xlarge is a InstanceType enum value
  60127. InstanceTypeP32xlarge = "p3.2xlarge"
  60128. // InstanceTypeP38xlarge is a InstanceType enum value
  60129. InstanceTypeP38xlarge = "p3.8xlarge"
  60130. // InstanceTypeP316xlarge is a InstanceType enum value
  60131. InstanceTypeP316xlarge = "p3.16xlarge"
  60132. // InstanceTypeD2Xlarge is a InstanceType enum value
  60133. InstanceTypeD2Xlarge = "d2.xlarge"
  60134. // InstanceTypeD22xlarge is a InstanceType enum value
  60135. InstanceTypeD22xlarge = "d2.2xlarge"
  60136. // InstanceTypeD24xlarge is a InstanceType enum value
  60137. InstanceTypeD24xlarge = "d2.4xlarge"
  60138. // InstanceTypeD28xlarge is a InstanceType enum value
  60139. InstanceTypeD28xlarge = "d2.8xlarge"
  60140. // InstanceTypeF12xlarge is a InstanceType enum value
  60141. InstanceTypeF12xlarge = "f1.2xlarge"
  60142. // InstanceTypeF116xlarge is a InstanceType enum value
  60143. InstanceTypeF116xlarge = "f1.16xlarge"
  60144. // InstanceTypeM5Large is a InstanceType enum value
  60145. InstanceTypeM5Large = "m5.large"
  60146. // InstanceTypeM5Xlarge is a InstanceType enum value
  60147. InstanceTypeM5Xlarge = "m5.xlarge"
  60148. // InstanceTypeM52xlarge is a InstanceType enum value
  60149. InstanceTypeM52xlarge = "m5.2xlarge"
  60150. // InstanceTypeM54xlarge is a InstanceType enum value
  60151. InstanceTypeM54xlarge = "m5.4xlarge"
  60152. // InstanceTypeM512xlarge is a InstanceType enum value
  60153. InstanceTypeM512xlarge = "m5.12xlarge"
  60154. // InstanceTypeM524xlarge is a InstanceType enum value
  60155. InstanceTypeM524xlarge = "m5.24xlarge"
  60156. // InstanceTypeM5dLarge is a InstanceType enum value
  60157. InstanceTypeM5dLarge = "m5d.large"
  60158. // InstanceTypeM5dXlarge is a InstanceType enum value
  60159. InstanceTypeM5dXlarge = "m5d.xlarge"
  60160. // InstanceTypeM5d2xlarge is a InstanceType enum value
  60161. InstanceTypeM5d2xlarge = "m5d.2xlarge"
  60162. // InstanceTypeM5d4xlarge is a InstanceType enum value
  60163. InstanceTypeM5d4xlarge = "m5d.4xlarge"
  60164. // InstanceTypeM5d12xlarge is a InstanceType enum value
  60165. InstanceTypeM5d12xlarge = "m5d.12xlarge"
  60166. // InstanceTypeM5d24xlarge is a InstanceType enum value
  60167. InstanceTypeM5d24xlarge = "m5d.24xlarge"
  60168. // InstanceTypeH12xlarge is a InstanceType enum value
  60169. InstanceTypeH12xlarge = "h1.2xlarge"
  60170. // InstanceTypeH14xlarge is a InstanceType enum value
  60171. InstanceTypeH14xlarge = "h1.4xlarge"
  60172. // InstanceTypeH18xlarge is a InstanceType enum value
  60173. InstanceTypeH18xlarge = "h1.8xlarge"
  60174. // InstanceTypeH116xlarge is a InstanceType enum value
  60175. InstanceTypeH116xlarge = "h1.16xlarge"
  60176. )
  60177. const (
  60178. // InterfacePermissionTypeInstanceAttach is a InterfacePermissionType enum value
  60179. InterfacePermissionTypeInstanceAttach = "INSTANCE-ATTACH"
  60180. // InterfacePermissionTypeEipAssociate is a InterfacePermissionType enum value
  60181. InterfacePermissionTypeEipAssociate = "EIP-ASSOCIATE"
  60182. )
  60183. const (
  60184. // LaunchTemplateErrorCodeLaunchTemplateIdDoesNotExist is a LaunchTemplateErrorCode enum value
  60185. LaunchTemplateErrorCodeLaunchTemplateIdDoesNotExist = "launchTemplateIdDoesNotExist"
  60186. // LaunchTemplateErrorCodeLaunchTemplateIdMalformed is a LaunchTemplateErrorCode enum value
  60187. LaunchTemplateErrorCodeLaunchTemplateIdMalformed = "launchTemplateIdMalformed"
  60188. // LaunchTemplateErrorCodeLaunchTemplateNameDoesNotExist is a LaunchTemplateErrorCode enum value
  60189. LaunchTemplateErrorCodeLaunchTemplateNameDoesNotExist = "launchTemplateNameDoesNotExist"
  60190. // LaunchTemplateErrorCodeLaunchTemplateNameMalformed is a LaunchTemplateErrorCode enum value
  60191. LaunchTemplateErrorCodeLaunchTemplateNameMalformed = "launchTemplateNameMalformed"
  60192. // LaunchTemplateErrorCodeLaunchTemplateVersionDoesNotExist is a LaunchTemplateErrorCode enum value
  60193. LaunchTemplateErrorCodeLaunchTemplateVersionDoesNotExist = "launchTemplateVersionDoesNotExist"
  60194. // LaunchTemplateErrorCodeUnexpectedError is a LaunchTemplateErrorCode enum value
  60195. LaunchTemplateErrorCodeUnexpectedError = "unexpectedError"
  60196. )
  60197. const (
  60198. // ListingStateAvailable is a ListingState enum value
  60199. ListingStateAvailable = "available"
  60200. // ListingStateSold is a ListingState enum value
  60201. ListingStateSold = "sold"
  60202. // ListingStateCancelled is a ListingState enum value
  60203. ListingStateCancelled = "cancelled"
  60204. // ListingStatePending is a ListingState enum value
  60205. ListingStatePending = "pending"
  60206. )
  60207. const (
  60208. // ListingStatusActive is a ListingStatus enum value
  60209. ListingStatusActive = "active"
  60210. // ListingStatusPending is a ListingStatus enum value
  60211. ListingStatusPending = "pending"
  60212. // ListingStatusCancelled is a ListingStatus enum value
  60213. ListingStatusCancelled = "cancelled"
  60214. // ListingStatusClosed is a ListingStatus enum value
  60215. ListingStatusClosed = "closed"
  60216. )
  60217. const (
  60218. // MarketTypeSpot is a MarketType enum value
  60219. MarketTypeSpot = "spot"
  60220. )
  60221. const (
  60222. // MonitoringStateDisabled is a MonitoringState enum value
  60223. MonitoringStateDisabled = "disabled"
  60224. // MonitoringStateDisabling is a MonitoringState enum value
  60225. MonitoringStateDisabling = "disabling"
  60226. // MonitoringStateEnabled is a MonitoringState enum value
  60227. MonitoringStateEnabled = "enabled"
  60228. // MonitoringStatePending is a MonitoringState enum value
  60229. MonitoringStatePending = "pending"
  60230. )
  60231. const (
  60232. // MoveStatusMovingToVpc is a MoveStatus enum value
  60233. MoveStatusMovingToVpc = "movingToVpc"
  60234. // MoveStatusRestoringToClassic is a MoveStatus enum value
  60235. MoveStatusRestoringToClassic = "restoringToClassic"
  60236. )
  60237. const (
  60238. // NatGatewayStatePending is a NatGatewayState enum value
  60239. NatGatewayStatePending = "pending"
  60240. // NatGatewayStateFailed is a NatGatewayState enum value
  60241. NatGatewayStateFailed = "failed"
  60242. // NatGatewayStateAvailable is a NatGatewayState enum value
  60243. NatGatewayStateAvailable = "available"
  60244. // NatGatewayStateDeleting is a NatGatewayState enum value
  60245. NatGatewayStateDeleting = "deleting"
  60246. // NatGatewayStateDeleted is a NatGatewayState enum value
  60247. NatGatewayStateDeleted = "deleted"
  60248. )
  60249. const (
  60250. // NetworkInterfaceAttributeDescription is a NetworkInterfaceAttribute enum value
  60251. NetworkInterfaceAttributeDescription = "description"
  60252. // NetworkInterfaceAttributeGroupSet is a NetworkInterfaceAttribute enum value
  60253. NetworkInterfaceAttributeGroupSet = "groupSet"
  60254. // NetworkInterfaceAttributeSourceDestCheck is a NetworkInterfaceAttribute enum value
  60255. NetworkInterfaceAttributeSourceDestCheck = "sourceDestCheck"
  60256. // NetworkInterfaceAttributeAttachment is a NetworkInterfaceAttribute enum value
  60257. NetworkInterfaceAttributeAttachment = "attachment"
  60258. )
  60259. const (
  60260. // NetworkInterfacePermissionStateCodePending is a NetworkInterfacePermissionStateCode enum value
  60261. NetworkInterfacePermissionStateCodePending = "pending"
  60262. // NetworkInterfacePermissionStateCodeGranted is a NetworkInterfacePermissionStateCode enum value
  60263. NetworkInterfacePermissionStateCodeGranted = "granted"
  60264. // NetworkInterfacePermissionStateCodeRevoking is a NetworkInterfacePermissionStateCode enum value
  60265. NetworkInterfacePermissionStateCodeRevoking = "revoking"
  60266. // NetworkInterfacePermissionStateCodeRevoked is a NetworkInterfacePermissionStateCode enum value
  60267. NetworkInterfacePermissionStateCodeRevoked = "revoked"
  60268. )
  60269. const (
  60270. // NetworkInterfaceStatusAvailable is a NetworkInterfaceStatus enum value
  60271. NetworkInterfaceStatusAvailable = "available"
  60272. // NetworkInterfaceStatusAssociated is a NetworkInterfaceStatus enum value
  60273. NetworkInterfaceStatusAssociated = "associated"
  60274. // NetworkInterfaceStatusAttaching is a NetworkInterfaceStatus enum value
  60275. NetworkInterfaceStatusAttaching = "attaching"
  60276. // NetworkInterfaceStatusInUse is a NetworkInterfaceStatus enum value
  60277. NetworkInterfaceStatusInUse = "in-use"
  60278. // NetworkInterfaceStatusDetaching is a NetworkInterfaceStatus enum value
  60279. NetworkInterfaceStatusDetaching = "detaching"
  60280. )
  60281. const (
  60282. // NetworkInterfaceTypeInterface is a NetworkInterfaceType enum value
  60283. NetworkInterfaceTypeInterface = "interface"
  60284. // NetworkInterfaceTypeNatGateway is a NetworkInterfaceType enum value
  60285. NetworkInterfaceTypeNatGateway = "natGateway"
  60286. )
  60287. const (
  60288. // OfferingClassTypeStandard is a OfferingClassType enum value
  60289. OfferingClassTypeStandard = "standard"
  60290. // OfferingClassTypeConvertible is a OfferingClassType enum value
  60291. OfferingClassTypeConvertible = "convertible"
  60292. )
  60293. const (
  60294. // OfferingTypeValuesHeavyUtilization is a OfferingTypeValues enum value
  60295. OfferingTypeValuesHeavyUtilization = "Heavy Utilization"
  60296. // OfferingTypeValuesMediumUtilization is a OfferingTypeValues enum value
  60297. OfferingTypeValuesMediumUtilization = "Medium Utilization"
  60298. // OfferingTypeValuesLightUtilization is a OfferingTypeValues enum value
  60299. OfferingTypeValuesLightUtilization = "Light Utilization"
  60300. // OfferingTypeValuesNoUpfront is a OfferingTypeValues enum value
  60301. OfferingTypeValuesNoUpfront = "No Upfront"
  60302. // OfferingTypeValuesPartialUpfront is a OfferingTypeValues enum value
  60303. OfferingTypeValuesPartialUpfront = "Partial Upfront"
  60304. // OfferingTypeValuesAllUpfront is a OfferingTypeValues enum value
  60305. OfferingTypeValuesAllUpfront = "All Upfront"
  60306. )
  60307. const (
  60308. // OperationTypeAdd is a OperationType enum value
  60309. OperationTypeAdd = "add"
  60310. // OperationTypeRemove is a OperationType enum value
  60311. OperationTypeRemove = "remove"
  60312. )
  60313. const (
  60314. // PaymentOptionAllUpfront is a PaymentOption enum value
  60315. PaymentOptionAllUpfront = "AllUpfront"
  60316. // PaymentOptionPartialUpfront is a PaymentOption enum value
  60317. PaymentOptionPartialUpfront = "PartialUpfront"
  60318. // PaymentOptionNoUpfront is a PaymentOption enum value
  60319. PaymentOptionNoUpfront = "NoUpfront"
  60320. )
  60321. const (
  60322. // PermissionGroupAll is a PermissionGroup enum value
  60323. PermissionGroupAll = "all"
  60324. )
  60325. const (
  60326. // PlacementGroupStatePending is a PlacementGroupState enum value
  60327. PlacementGroupStatePending = "pending"
  60328. // PlacementGroupStateAvailable is a PlacementGroupState enum value
  60329. PlacementGroupStateAvailable = "available"
  60330. // PlacementGroupStateDeleting is a PlacementGroupState enum value
  60331. PlacementGroupStateDeleting = "deleting"
  60332. // PlacementGroupStateDeleted is a PlacementGroupState enum value
  60333. PlacementGroupStateDeleted = "deleted"
  60334. )
  60335. const (
  60336. // PlacementStrategyCluster is a PlacementStrategy enum value
  60337. PlacementStrategyCluster = "cluster"
  60338. // PlacementStrategySpread is a PlacementStrategy enum value
  60339. PlacementStrategySpread = "spread"
  60340. )
  60341. const (
  60342. // PlatformValuesWindows is a PlatformValues enum value
  60343. PlatformValuesWindows = "Windows"
  60344. )
  60345. const (
  60346. // PrincipalTypeAll is a PrincipalType enum value
  60347. PrincipalTypeAll = "All"
  60348. // PrincipalTypeService is a PrincipalType enum value
  60349. PrincipalTypeService = "Service"
  60350. // PrincipalTypeOrganizationUnit is a PrincipalType enum value
  60351. PrincipalTypeOrganizationUnit = "OrganizationUnit"
  60352. // PrincipalTypeAccount is a PrincipalType enum value
  60353. PrincipalTypeAccount = "Account"
  60354. // PrincipalTypeUser is a PrincipalType enum value
  60355. PrincipalTypeUser = "User"
  60356. // PrincipalTypeRole is a PrincipalType enum value
  60357. PrincipalTypeRole = "Role"
  60358. )
  60359. const (
  60360. // ProductCodeValuesDevpay is a ProductCodeValues enum value
  60361. ProductCodeValuesDevpay = "devpay"
  60362. // ProductCodeValuesMarketplace is a ProductCodeValues enum value
  60363. ProductCodeValuesMarketplace = "marketplace"
  60364. )
  60365. const (
  60366. // RIProductDescriptionLinuxUnix is a RIProductDescription enum value
  60367. RIProductDescriptionLinuxUnix = "Linux/UNIX"
  60368. // RIProductDescriptionLinuxUnixamazonVpc is a RIProductDescription enum value
  60369. RIProductDescriptionLinuxUnixamazonVpc = "Linux/UNIX (Amazon VPC)"
  60370. // RIProductDescriptionWindows is a RIProductDescription enum value
  60371. RIProductDescriptionWindows = "Windows"
  60372. // RIProductDescriptionWindowsAmazonVpc is a RIProductDescription enum value
  60373. RIProductDescriptionWindowsAmazonVpc = "Windows (Amazon VPC)"
  60374. )
  60375. const (
  60376. // RecurringChargeFrequencyHourly is a RecurringChargeFrequency enum value
  60377. RecurringChargeFrequencyHourly = "Hourly"
  60378. )
  60379. const (
  60380. // ReportInstanceReasonCodesInstanceStuckInState is a ReportInstanceReasonCodes enum value
  60381. ReportInstanceReasonCodesInstanceStuckInState = "instance-stuck-in-state"
  60382. // ReportInstanceReasonCodesUnresponsive is a ReportInstanceReasonCodes enum value
  60383. ReportInstanceReasonCodesUnresponsive = "unresponsive"
  60384. // ReportInstanceReasonCodesNotAcceptingCredentials is a ReportInstanceReasonCodes enum value
  60385. ReportInstanceReasonCodesNotAcceptingCredentials = "not-accepting-credentials"
  60386. // ReportInstanceReasonCodesPasswordNotAvailable is a ReportInstanceReasonCodes enum value
  60387. ReportInstanceReasonCodesPasswordNotAvailable = "password-not-available"
  60388. // ReportInstanceReasonCodesPerformanceNetwork is a ReportInstanceReasonCodes enum value
  60389. ReportInstanceReasonCodesPerformanceNetwork = "performance-network"
  60390. // ReportInstanceReasonCodesPerformanceInstanceStore is a ReportInstanceReasonCodes enum value
  60391. ReportInstanceReasonCodesPerformanceInstanceStore = "performance-instance-store"
  60392. // ReportInstanceReasonCodesPerformanceEbsVolume is a ReportInstanceReasonCodes enum value
  60393. ReportInstanceReasonCodesPerformanceEbsVolume = "performance-ebs-volume"
  60394. // ReportInstanceReasonCodesPerformanceOther is a ReportInstanceReasonCodes enum value
  60395. ReportInstanceReasonCodesPerformanceOther = "performance-other"
  60396. // ReportInstanceReasonCodesOther is a ReportInstanceReasonCodes enum value
  60397. ReportInstanceReasonCodesOther = "other"
  60398. )
  60399. const (
  60400. // ReportStatusTypeOk is a ReportStatusType enum value
  60401. ReportStatusTypeOk = "ok"
  60402. // ReportStatusTypeImpaired is a ReportStatusType enum value
  60403. ReportStatusTypeImpaired = "impaired"
  60404. )
  60405. const (
  60406. // ReservationStatePaymentPending is a ReservationState enum value
  60407. ReservationStatePaymentPending = "payment-pending"
  60408. // ReservationStatePaymentFailed is a ReservationState enum value
  60409. ReservationStatePaymentFailed = "payment-failed"
  60410. // ReservationStateActive is a ReservationState enum value
  60411. ReservationStateActive = "active"
  60412. // ReservationStateRetired is a ReservationState enum value
  60413. ReservationStateRetired = "retired"
  60414. )
  60415. const (
  60416. // ReservedInstanceStatePaymentPending is a ReservedInstanceState enum value
  60417. ReservedInstanceStatePaymentPending = "payment-pending"
  60418. // ReservedInstanceStateActive is a ReservedInstanceState enum value
  60419. ReservedInstanceStateActive = "active"
  60420. // ReservedInstanceStatePaymentFailed is a ReservedInstanceState enum value
  60421. ReservedInstanceStatePaymentFailed = "payment-failed"
  60422. // ReservedInstanceStateRetired is a ReservedInstanceState enum value
  60423. ReservedInstanceStateRetired = "retired"
  60424. )
  60425. const (
  60426. // ResetFpgaImageAttributeNameLoadPermission is a ResetFpgaImageAttributeName enum value
  60427. ResetFpgaImageAttributeNameLoadPermission = "loadPermission"
  60428. )
  60429. const (
  60430. // ResetImageAttributeNameLaunchPermission is a ResetImageAttributeName enum value
  60431. ResetImageAttributeNameLaunchPermission = "launchPermission"
  60432. )
  60433. const (
  60434. // ResourceTypeCustomerGateway is a ResourceType enum value
  60435. ResourceTypeCustomerGateway = "customer-gateway"
  60436. // ResourceTypeDhcpOptions is a ResourceType enum value
  60437. ResourceTypeDhcpOptions = "dhcp-options"
  60438. // ResourceTypeImage is a ResourceType enum value
  60439. ResourceTypeImage = "image"
  60440. // ResourceTypeInstance is a ResourceType enum value
  60441. ResourceTypeInstance = "instance"
  60442. // ResourceTypeInternetGateway is a ResourceType enum value
  60443. ResourceTypeInternetGateway = "internet-gateway"
  60444. // ResourceTypeNetworkAcl is a ResourceType enum value
  60445. ResourceTypeNetworkAcl = "network-acl"
  60446. // ResourceTypeNetworkInterface is a ResourceType enum value
  60447. ResourceTypeNetworkInterface = "network-interface"
  60448. // ResourceTypeReservedInstances is a ResourceType enum value
  60449. ResourceTypeReservedInstances = "reserved-instances"
  60450. // ResourceTypeRouteTable is a ResourceType enum value
  60451. ResourceTypeRouteTable = "route-table"
  60452. // ResourceTypeSnapshot is a ResourceType enum value
  60453. ResourceTypeSnapshot = "snapshot"
  60454. // ResourceTypeSpotInstancesRequest is a ResourceType enum value
  60455. ResourceTypeSpotInstancesRequest = "spot-instances-request"
  60456. // ResourceTypeSubnet is a ResourceType enum value
  60457. ResourceTypeSubnet = "subnet"
  60458. // ResourceTypeSecurityGroup is a ResourceType enum value
  60459. ResourceTypeSecurityGroup = "security-group"
  60460. // ResourceTypeVolume is a ResourceType enum value
  60461. ResourceTypeVolume = "volume"
  60462. // ResourceTypeVpc is a ResourceType enum value
  60463. ResourceTypeVpc = "vpc"
  60464. // ResourceTypeVpnConnection is a ResourceType enum value
  60465. ResourceTypeVpnConnection = "vpn-connection"
  60466. // ResourceTypeVpnGateway is a ResourceType enum value
  60467. ResourceTypeVpnGateway = "vpn-gateway"
  60468. )
  60469. const (
  60470. // RouteOriginCreateRouteTable is a RouteOrigin enum value
  60471. RouteOriginCreateRouteTable = "CreateRouteTable"
  60472. // RouteOriginCreateRoute is a RouteOrigin enum value
  60473. RouteOriginCreateRoute = "CreateRoute"
  60474. // RouteOriginEnableVgwRoutePropagation is a RouteOrigin enum value
  60475. RouteOriginEnableVgwRoutePropagation = "EnableVgwRoutePropagation"
  60476. )
  60477. const (
  60478. // RouteStateActive is a RouteState enum value
  60479. RouteStateActive = "active"
  60480. // RouteStateBlackhole is a RouteState enum value
  60481. RouteStateBlackhole = "blackhole"
  60482. )
  60483. const (
  60484. // RuleActionAllow is a RuleAction enum value
  60485. RuleActionAllow = "allow"
  60486. // RuleActionDeny is a RuleAction enum value
  60487. RuleActionDeny = "deny"
  60488. )
  60489. const (
  60490. // ServiceStatePending is a ServiceState enum value
  60491. ServiceStatePending = "Pending"
  60492. // ServiceStateAvailable is a ServiceState enum value
  60493. ServiceStateAvailable = "Available"
  60494. // ServiceStateDeleting is a ServiceState enum value
  60495. ServiceStateDeleting = "Deleting"
  60496. // ServiceStateDeleted is a ServiceState enum value
  60497. ServiceStateDeleted = "Deleted"
  60498. // ServiceStateFailed is a ServiceState enum value
  60499. ServiceStateFailed = "Failed"
  60500. )
  60501. const (
  60502. // ServiceTypeInterface is a ServiceType enum value
  60503. ServiceTypeInterface = "Interface"
  60504. // ServiceTypeGateway is a ServiceType enum value
  60505. ServiceTypeGateway = "Gateway"
  60506. )
  60507. const (
  60508. // ShutdownBehaviorStop is a ShutdownBehavior enum value
  60509. ShutdownBehaviorStop = "stop"
  60510. // ShutdownBehaviorTerminate is a ShutdownBehavior enum value
  60511. ShutdownBehaviorTerminate = "terminate"
  60512. )
  60513. const (
  60514. // SnapshotAttributeNameProductCodes is a SnapshotAttributeName enum value
  60515. SnapshotAttributeNameProductCodes = "productCodes"
  60516. // SnapshotAttributeNameCreateVolumePermission is a SnapshotAttributeName enum value
  60517. SnapshotAttributeNameCreateVolumePermission = "createVolumePermission"
  60518. )
  60519. const (
  60520. // SnapshotStatePending is a SnapshotState enum value
  60521. SnapshotStatePending = "pending"
  60522. // SnapshotStateCompleted is a SnapshotState enum value
  60523. SnapshotStateCompleted = "completed"
  60524. // SnapshotStateError is a SnapshotState enum value
  60525. SnapshotStateError = "error"
  60526. )
  60527. const (
  60528. // SpotAllocationStrategyLowestPrice is a SpotAllocationStrategy enum value
  60529. SpotAllocationStrategyLowestPrice = "lowest-price"
  60530. // SpotAllocationStrategyDiversified is a SpotAllocationStrategy enum value
  60531. SpotAllocationStrategyDiversified = "diversified"
  60532. )
  60533. const (
  60534. // SpotInstanceInterruptionBehaviorHibernate is a SpotInstanceInterruptionBehavior enum value
  60535. SpotInstanceInterruptionBehaviorHibernate = "hibernate"
  60536. // SpotInstanceInterruptionBehaviorStop is a SpotInstanceInterruptionBehavior enum value
  60537. SpotInstanceInterruptionBehaviorStop = "stop"
  60538. // SpotInstanceInterruptionBehaviorTerminate is a SpotInstanceInterruptionBehavior enum value
  60539. SpotInstanceInterruptionBehaviorTerminate = "terminate"
  60540. )
  60541. const (
  60542. // SpotInstanceStateOpen is a SpotInstanceState enum value
  60543. SpotInstanceStateOpen = "open"
  60544. // SpotInstanceStateActive is a SpotInstanceState enum value
  60545. SpotInstanceStateActive = "active"
  60546. // SpotInstanceStateClosed is a SpotInstanceState enum value
  60547. SpotInstanceStateClosed = "closed"
  60548. // SpotInstanceStateCancelled is a SpotInstanceState enum value
  60549. SpotInstanceStateCancelled = "cancelled"
  60550. // SpotInstanceStateFailed is a SpotInstanceState enum value
  60551. SpotInstanceStateFailed = "failed"
  60552. )
  60553. const (
  60554. // SpotInstanceTypeOneTime is a SpotInstanceType enum value
  60555. SpotInstanceTypeOneTime = "one-time"
  60556. // SpotInstanceTypePersistent is a SpotInstanceType enum value
  60557. SpotInstanceTypePersistent = "persistent"
  60558. )
  60559. const (
  60560. // StatePendingAcceptance is a State enum value
  60561. StatePendingAcceptance = "PendingAcceptance"
  60562. // StatePending is a State enum value
  60563. StatePending = "Pending"
  60564. // StateAvailable is a State enum value
  60565. StateAvailable = "Available"
  60566. // StateDeleting is a State enum value
  60567. StateDeleting = "Deleting"
  60568. // StateDeleted is a State enum value
  60569. StateDeleted = "Deleted"
  60570. // StateRejected is a State enum value
  60571. StateRejected = "Rejected"
  60572. // StateFailed is a State enum value
  60573. StateFailed = "Failed"
  60574. // StateExpired is a State enum value
  60575. StateExpired = "Expired"
  60576. )
  60577. const (
  60578. // StatusMoveInProgress is a Status enum value
  60579. StatusMoveInProgress = "MoveInProgress"
  60580. // StatusInVpc is a Status enum value
  60581. StatusInVpc = "InVpc"
  60582. // StatusInClassic is a Status enum value
  60583. StatusInClassic = "InClassic"
  60584. )
  60585. const (
  60586. // StatusNameReachability is a StatusName enum value
  60587. StatusNameReachability = "reachability"
  60588. )
  60589. const (
  60590. // StatusTypePassed is a StatusType enum value
  60591. StatusTypePassed = "passed"
  60592. // StatusTypeFailed is a StatusType enum value
  60593. StatusTypeFailed = "failed"
  60594. // StatusTypeInsufficientData is a StatusType enum value
  60595. StatusTypeInsufficientData = "insufficient-data"
  60596. // StatusTypeInitializing is a StatusType enum value
  60597. StatusTypeInitializing = "initializing"
  60598. )
  60599. const (
  60600. // SubnetCidrBlockStateCodeAssociating is a SubnetCidrBlockStateCode enum value
  60601. SubnetCidrBlockStateCodeAssociating = "associating"
  60602. // SubnetCidrBlockStateCodeAssociated is a SubnetCidrBlockStateCode enum value
  60603. SubnetCidrBlockStateCodeAssociated = "associated"
  60604. // SubnetCidrBlockStateCodeDisassociating is a SubnetCidrBlockStateCode enum value
  60605. SubnetCidrBlockStateCodeDisassociating = "disassociating"
  60606. // SubnetCidrBlockStateCodeDisassociated is a SubnetCidrBlockStateCode enum value
  60607. SubnetCidrBlockStateCodeDisassociated = "disassociated"
  60608. // SubnetCidrBlockStateCodeFailing is a SubnetCidrBlockStateCode enum value
  60609. SubnetCidrBlockStateCodeFailing = "failing"
  60610. // SubnetCidrBlockStateCodeFailed is a SubnetCidrBlockStateCode enum value
  60611. SubnetCidrBlockStateCodeFailed = "failed"
  60612. )
  60613. const (
  60614. // SubnetStatePending is a SubnetState enum value
  60615. SubnetStatePending = "pending"
  60616. // SubnetStateAvailable is a SubnetState enum value
  60617. SubnetStateAvailable = "available"
  60618. )
  60619. const (
  60620. // SummaryStatusOk is a SummaryStatus enum value
  60621. SummaryStatusOk = "ok"
  60622. // SummaryStatusImpaired is a SummaryStatus enum value
  60623. SummaryStatusImpaired = "impaired"
  60624. // SummaryStatusInsufficientData is a SummaryStatus enum value
  60625. SummaryStatusInsufficientData = "insufficient-data"
  60626. // SummaryStatusNotApplicable is a SummaryStatus enum value
  60627. SummaryStatusNotApplicable = "not-applicable"
  60628. // SummaryStatusInitializing is a SummaryStatus enum value
  60629. SummaryStatusInitializing = "initializing"
  60630. )
  60631. const (
  60632. // TelemetryStatusUp is a TelemetryStatus enum value
  60633. TelemetryStatusUp = "UP"
  60634. // TelemetryStatusDown is a TelemetryStatus enum value
  60635. TelemetryStatusDown = "DOWN"
  60636. )
  60637. const (
  60638. // TenancyDefault is a Tenancy enum value
  60639. TenancyDefault = "default"
  60640. // TenancyDedicated is a Tenancy enum value
  60641. TenancyDedicated = "dedicated"
  60642. // TenancyHost is a Tenancy enum value
  60643. TenancyHost = "host"
  60644. )
  60645. const (
  60646. // TrafficTypeAccept is a TrafficType enum value
  60647. TrafficTypeAccept = "ACCEPT"
  60648. // TrafficTypeReject is a TrafficType enum value
  60649. TrafficTypeReject = "REJECT"
  60650. // TrafficTypeAll is a TrafficType enum value
  60651. TrafficTypeAll = "ALL"
  60652. )
  60653. const (
  60654. // UnsuccessfulInstanceCreditSpecificationErrorCodeInvalidInstanceIdMalformed is a UnsuccessfulInstanceCreditSpecificationErrorCode enum value
  60655. UnsuccessfulInstanceCreditSpecificationErrorCodeInvalidInstanceIdMalformed = "InvalidInstanceID.Malformed"
  60656. // UnsuccessfulInstanceCreditSpecificationErrorCodeInvalidInstanceIdNotFound is a UnsuccessfulInstanceCreditSpecificationErrorCode enum value
  60657. UnsuccessfulInstanceCreditSpecificationErrorCodeInvalidInstanceIdNotFound = "InvalidInstanceID.NotFound"
  60658. // UnsuccessfulInstanceCreditSpecificationErrorCodeIncorrectInstanceState is a UnsuccessfulInstanceCreditSpecificationErrorCode enum value
  60659. UnsuccessfulInstanceCreditSpecificationErrorCodeIncorrectInstanceState = "IncorrectInstanceState"
  60660. // UnsuccessfulInstanceCreditSpecificationErrorCodeInstanceCreditSpecificationNotSupported is a UnsuccessfulInstanceCreditSpecificationErrorCode enum value
  60661. UnsuccessfulInstanceCreditSpecificationErrorCodeInstanceCreditSpecificationNotSupported = "InstanceCreditSpecification.NotSupported"
  60662. )
  60663. const (
  60664. // VirtualizationTypeHvm is a VirtualizationType enum value
  60665. VirtualizationTypeHvm = "hvm"
  60666. // VirtualizationTypeParavirtual is a VirtualizationType enum value
  60667. VirtualizationTypeParavirtual = "paravirtual"
  60668. )
  60669. const (
  60670. // VolumeAttachmentStateAttaching is a VolumeAttachmentState enum value
  60671. VolumeAttachmentStateAttaching = "attaching"
  60672. // VolumeAttachmentStateAttached is a VolumeAttachmentState enum value
  60673. VolumeAttachmentStateAttached = "attached"
  60674. // VolumeAttachmentStateDetaching is a VolumeAttachmentState enum value
  60675. VolumeAttachmentStateDetaching = "detaching"
  60676. // VolumeAttachmentStateDetached is a VolumeAttachmentState enum value
  60677. VolumeAttachmentStateDetached = "detached"
  60678. // VolumeAttachmentStateBusy is a VolumeAttachmentState enum value
  60679. VolumeAttachmentStateBusy = "busy"
  60680. )
  60681. const (
  60682. // VolumeAttributeNameAutoEnableIo is a VolumeAttributeName enum value
  60683. VolumeAttributeNameAutoEnableIo = "autoEnableIO"
  60684. // VolumeAttributeNameProductCodes is a VolumeAttributeName enum value
  60685. VolumeAttributeNameProductCodes = "productCodes"
  60686. )
  60687. const (
  60688. // VolumeModificationStateModifying is a VolumeModificationState enum value
  60689. VolumeModificationStateModifying = "modifying"
  60690. // VolumeModificationStateOptimizing is a VolumeModificationState enum value
  60691. VolumeModificationStateOptimizing = "optimizing"
  60692. // VolumeModificationStateCompleted is a VolumeModificationState enum value
  60693. VolumeModificationStateCompleted = "completed"
  60694. // VolumeModificationStateFailed is a VolumeModificationState enum value
  60695. VolumeModificationStateFailed = "failed"
  60696. )
  60697. const (
  60698. // VolumeStateCreating is a VolumeState enum value
  60699. VolumeStateCreating = "creating"
  60700. // VolumeStateAvailable is a VolumeState enum value
  60701. VolumeStateAvailable = "available"
  60702. // VolumeStateInUse is a VolumeState enum value
  60703. VolumeStateInUse = "in-use"
  60704. // VolumeStateDeleting is a VolumeState enum value
  60705. VolumeStateDeleting = "deleting"
  60706. // VolumeStateDeleted is a VolumeState enum value
  60707. VolumeStateDeleted = "deleted"
  60708. // VolumeStateError is a VolumeState enum value
  60709. VolumeStateError = "error"
  60710. )
  60711. const (
  60712. // VolumeStatusInfoStatusOk is a VolumeStatusInfoStatus enum value
  60713. VolumeStatusInfoStatusOk = "ok"
  60714. // VolumeStatusInfoStatusImpaired is a VolumeStatusInfoStatus enum value
  60715. VolumeStatusInfoStatusImpaired = "impaired"
  60716. // VolumeStatusInfoStatusInsufficientData is a VolumeStatusInfoStatus enum value
  60717. VolumeStatusInfoStatusInsufficientData = "insufficient-data"
  60718. )
  60719. const (
  60720. // VolumeStatusNameIoEnabled is a VolumeStatusName enum value
  60721. VolumeStatusNameIoEnabled = "io-enabled"
  60722. // VolumeStatusNameIoPerformance is a VolumeStatusName enum value
  60723. VolumeStatusNameIoPerformance = "io-performance"
  60724. )
  60725. const (
  60726. // VolumeTypeStandard is a VolumeType enum value
  60727. VolumeTypeStandard = "standard"
  60728. // VolumeTypeIo1 is a VolumeType enum value
  60729. VolumeTypeIo1 = "io1"
  60730. // VolumeTypeGp2 is a VolumeType enum value
  60731. VolumeTypeGp2 = "gp2"
  60732. // VolumeTypeSc1 is a VolumeType enum value
  60733. VolumeTypeSc1 = "sc1"
  60734. // VolumeTypeSt1 is a VolumeType enum value
  60735. VolumeTypeSt1 = "st1"
  60736. )
  60737. const (
  60738. // VpcAttributeNameEnableDnsSupport is a VpcAttributeName enum value
  60739. VpcAttributeNameEnableDnsSupport = "enableDnsSupport"
  60740. // VpcAttributeNameEnableDnsHostnames is a VpcAttributeName enum value
  60741. VpcAttributeNameEnableDnsHostnames = "enableDnsHostnames"
  60742. )
  60743. const (
  60744. // VpcCidrBlockStateCodeAssociating is a VpcCidrBlockStateCode enum value
  60745. VpcCidrBlockStateCodeAssociating = "associating"
  60746. // VpcCidrBlockStateCodeAssociated is a VpcCidrBlockStateCode enum value
  60747. VpcCidrBlockStateCodeAssociated = "associated"
  60748. // VpcCidrBlockStateCodeDisassociating is a VpcCidrBlockStateCode enum value
  60749. VpcCidrBlockStateCodeDisassociating = "disassociating"
  60750. // VpcCidrBlockStateCodeDisassociated is a VpcCidrBlockStateCode enum value
  60751. VpcCidrBlockStateCodeDisassociated = "disassociated"
  60752. // VpcCidrBlockStateCodeFailing is a VpcCidrBlockStateCode enum value
  60753. VpcCidrBlockStateCodeFailing = "failing"
  60754. // VpcCidrBlockStateCodeFailed is a VpcCidrBlockStateCode enum value
  60755. VpcCidrBlockStateCodeFailed = "failed"
  60756. )
  60757. const (
  60758. // VpcEndpointTypeInterface is a VpcEndpointType enum value
  60759. VpcEndpointTypeInterface = "Interface"
  60760. // VpcEndpointTypeGateway is a VpcEndpointType enum value
  60761. VpcEndpointTypeGateway = "Gateway"
  60762. )
  60763. const (
  60764. // VpcPeeringConnectionStateReasonCodeInitiatingRequest is a VpcPeeringConnectionStateReasonCode enum value
  60765. VpcPeeringConnectionStateReasonCodeInitiatingRequest = "initiating-request"
  60766. // VpcPeeringConnectionStateReasonCodePendingAcceptance is a VpcPeeringConnectionStateReasonCode enum value
  60767. VpcPeeringConnectionStateReasonCodePendingAcceptance = "pending-acceptance"
  60768. // VpcPeeringConnectionStateReasonCodeActive is a VpcPeeringConnectionStateReasonCode enum value
  60769. VpcPeeringConnectionStateReasonCodeActive = "active"
  60770. // VpcPeeringConnectionStateReasonCodeDeleted is a VpcPeeringConnectionStateReasonCode enum value
  60771. VpcPeeringConnectionStateReasonCodeDeleted = "deleted"
  60772. // VpcPeeringConnectionStateReasonCodeRejected is a VpcPeeringConnectionStateReasonCode enum value
  60773. VpcPeeringConnectionStateReasonCodeRejected = "rejected"
  60774. // VpcPeeringConnectionStateReasonCodeFailed is a VpcPeeringConnectionStateReasonCode enum value
  60775. VpcPeeringConnectionStateReasonCodeFailed = "failed"
  60776. // VpcPeeringConnectionStateReasonCodeExpired is a VpcPeeringConnectionStateReasonCode enum value
  60777. VpcPeeringConnectionStateReasonCodeExpired = "expired"
  60778. // VpcPeeringConnectionStateReasonCodeProvisioning is a VpcPeeringConnectionStateReasonCode enum value
  60779. VpcPeeringConnectionStateReasonCodeProvisioning = "provisioning"
  60780. // VpcPeeringConnectionStateReasonCodeDeleting is a VpcPeeringConnectionStateReasonCode enum value
  60781. VpcPeeringConnectionStateReasonCodeDeleting = "deleting"
  60782. )
  60783. const (
  60784. // VpcStatePending is a VpcState enum value
  60785. VpcStatePending = "pending"
  60786. // VpcStateAvailable is a VpcState enum value
  60787. VpcStateAvailable = "available"
  60788. )
  60789. const (
  60790. // VpcTenancyDefault is a VpcTenancy enum value
  60791. VpcTenancyDefault = "default"
  60792. )
  60793. const (
  60794. // VpnStatePending is a VpnState enum value
  60795. VpnStatePending = "pending"
  60796. // VpnStateAvailable is a VpnState enum value
  60797. VpnStateAvailable = "available"
  60798. // VpnStateDeleting is a VpnState enum value
  60799. VpnStateDeleting = "deleting"
  60800. // VpnStateDeleted is a VpnState enum value
  60801. VpnStateDeleted = "deleted"
  60802. )
  60803. const (
  60804. // VpnStaticRouteSourceStatic is a VpnStaticRouteSource enum value
  60805. VpnStaticRouteSourceStatic = "Static"
  60806. )
  60807. const (
  60808. // ScopeAvailabilityZone is a scope enum value
  60809. ScopeAvailabilityZone = "Availability Zone"
  60810. // ScopeRegion is a scope enum value
  60811. ScopeRegion = "Region"
  60812. )